mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
8c8048f207
commit
e6b268dde4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue