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)
commitb6c3053a8f431a032a1473dc0e0069ca7fd0b0e5
tree234090ee0349de7125aacddf01d1e63c271367b3
parentbf28c2e205b1c37e412cb6785a34f10de944bae1
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