OSDN Git Service

drm/amd/display: Renoir chroma viewport WA change formula
authorJoseph Gravenor <joseph.gravenor@amd.com>
Thu, 17 Oct 2019 15:56:34 +0000 (11:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 15:12:51 +0000 (10:12 -0500)
commite6b268dde4cdc4d0b35eb7997520327183957294
treeb3e59d41c93a05facdc3da0bdb62c9ee866291e8
parent8c8048f207e785707270bc4985d8d4e1673eefb8
drm/amd/display: Renoir chroma viewport WA change formula

[why]
we want to increase the pte row plus 1 line if chroma viewport
height is integer multiple of the pte row height

[how]
instead of ceiling viewport height, we floor it. this allows
us to accommodate both cases: those where the chroma viewport
height is integer multiple of the pte row height and those where
it is not

Signed-off-by: Joseph Gravenor <joseph.gravenor@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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