drm/amd/display: correct image viewport calculation
authorMartin Tsai <Martin.Tsai@amd.com>
Fri, 27 Jul 2018 07:39:47 +0000 (15:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:09:57 +0000 (11:09 -0500)
commit9b5349f74a85a6aa05c06d30f10b3a83d6ec00b1
treec0588b1daff3c9babad6e8b7372e039f9e71a9c0
parent1b369d3c0d9364df702fc9e50dd9f471b640ddff
drm/amd/display: correct image viewport calculation

[why]
We didn't transfer the camera/video viewport coordinate
when doing rotation and mirror.

[how]
To correct the viewport coordinate in calculate_viewport().

Signed-off-by: Martin Tsai <Martin.Tsai@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c