mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
freedreno/a6xx: Align lrz height to 32
Emperically this seems to be required when doing a linear clear of the tiled LRZ buffer (because height needs to match aligned height for a linear clear to dtrt). Issue could be reproduced with nolrzfc and: glmark2 -s 1472x920 --visual-config samples=2 -b terrain Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12336 Fixes:a127a78548("freedreno: Re-enable LRZ for a7xx") Signed-off-by: Rob Clark <robdclark@chromium.org> (cherry picked from commit3759889846) Conflicts: src/gallium/drivers/freedreno/a6xx/fd6_resource.cc Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32852>
This commit is contained in:
parent
40cb39104d
commit
467783980a
2 changed files with 2 additions and 2 deletions
|
|
@ -504,7 +504,7 @@
|
|||
"description": "freedreno/a6xx: Align lrz height to 32",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "a127a78548721716b5262b127fcc9715052507a2",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ setup_lrz(struct fd_resource *rsc)
|
|||
}
|
||||
|
||||
unsigned lrz_pitch = align(DIV_ROUND_UP(width0, 8), 32);
|
||||
unsigned lrz_height = align(DIV_ROUND_UP(height0, 8), 16);
|
||||
unsigned lrz_height = align(DIV_ROUND_UP(height0, 8), 32);
|
||||
|
||||
rsc->lrz_height = lrz_height;
|
||||
rsc->lrz_width = lrz_pitch;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue