OSDN Git Service

drm/amd/display: redesign scaling rotation math
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Fri, 19 Oct 2018 20:17:29 +0000 (16:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2018 20:27:39 +0000 (15:27 -0500)
commit9b6067c08de84215d4c66a74150e9ac3e9f0ef72
treedf5a3ebcee982c11acfd3a6c45ce4a9ac8d511a5
parent3ce224421b66c740bb2902e69f0dd1163373842a
drm/amd/display: redesign scaling rotation math

Change the math to work in viewport rotation when calculating
viewport and viewport adjustment. This simplifies the math
for viewport calculation and makes viewport adjustment easier to
understand.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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