drm/amd/display: fix chroma vp wa corner case
authorEric Yang <Eric.Yang2@amd.com>
Mon, 9 Dec 2019 21:18:21 +0000 (16:18 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 18:41:27 +0000 (13:41 -0500)
commit93a8955b109608459c35b4a774f21b3099f0051f
tree0f6af3049eb1d910549ac615350cdd20fa646259
parent30221e6217ebd761e5977c98daab1de0cb70880d
drm/amd/display: fix chroma vp wa corner case

[Why]
Previous implementation we may have residual chroma address offset
if transition from wa enable -> wa disable.

[How]
Clear address offset cache when viewport updates. Also update the
vp size check condition to account for rotation angle

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c