diff options
author | Joseph Gravenor <joseph.gravenor@amd.com> | 2019-10-17 11:56:34 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-19 10:12:51 -0500 |
commit | e6b268dde4cdc4d0b35eb7997520327183957294 (patch) | |
tree | b3e59d41c93a05facdc3da0bdb62c9ee866291e8 /drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c | |
parent | 8c8048f207e785707270bc4985d8d4e1673eefb8 (diff) | |
download | linux-stable-e6b268dde4cdc4d0b35eb7997520327183957294.tar.gz linux-stable-e6b268dde4cdc4d0b35eb7997520327183957294.tar.bz2 linux-stable-e6b268dde4cdc4d0b35eb7997520327183957294.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c index 1ddd6ae22155..d86b6b6211bc 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c +++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c @@ -204,8 +204,8 @@ void hubp21_set_viewport( PTE_ROW_HEIGHT_LINEAR, &pte_row_height); pte_row_height = 1 << (pte_row_height + 3); - pte_rows = (viewport_c->height + pte_row_height - 1) / pte_row_height; - patched_viewport_height = pte_rows * pte_row_height + 3; + pte_rows = (viewport_c->height / pte_row_height) + 1; + patched_viewport_height = pte_rows * pte_row_height + 1; } |