drm/amd/display: upgrade scaler math
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 3 May 2018 17:42:43 +0000 (13:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 17:20:22 +0000 (12:20 -0500)
commit9a08f51fa737d6cc167beb98bc21db8821b2dff2
tree5858064af84eab9c643d4a9617f7ed1848104d07
parent66e48cd37147e153cef61bcbfbfa4771fe632207
drm/amd/display: upgrade scaler math

This change will allow the viewport overlap to apply to rotated/
mirrored surfaces. Viewport overlap results in extra pixels being
added to viewport allowing the first few pixels to be scaled as
if there is no cut-off(mpo or pipe split) and allows us to get matching
crc's between scaled split and unsplit outputs of the same thing.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@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/core/dc_resource.c