]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Check scaling ration not viewports params.
authorYongqiang Sun <yongqiang.sun@amd.com>
Fri, 8 Jun 2018 18:07:53 +0000 (13:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:38:43 +0000 (16:38 -0500)
commitff97c3f128d2c740c579546d782fc571f70e3fc2
tree234090ee0349de7125aacddf01d1e63c271367b3
parent6f1ca09307bfb313f6b8be4d1085893a5cf78011
drm/amd/display: Check scaling ration not viewports params.

In case of roation, width and height in viewport is difference
between viewport and h_active and v_active, while this is not scaling.
The right way is check ratios in scaling data,
to determine it is a scaling case or not.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c