diff options
author | Danylo Piliaiev <dpiliaiev@igalia.com> | 2024-02-28 13:30:58 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-02-28 16:30:15 +0000 |
commit | be466399747bc1d63030abc4f3193690cef31065 (patch) | |
tree | 9e7cc478836c6925a6a5ce0eb0a83ef0a477ba44 | |
parent | 25a0eadcaef9612865ee29156018923c51e2e8cb (diff) | |
download | mesa3d-be466399747bc1d63030abc4f3193690cef31065.tar.gz |
freedreno/a7xx: Fix base_align for non-UBWC depth-stencil
A7XX appears to require alignment of 4096 for DS in both
UBWC and non-UBWC cases.
Fixes rendering with TU_DEBUG=noubwc
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27848>
-rw-r--r-- | src/freedreno/fdl/fd6_layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/fdl/fd6_layout.c b/src/freedreno/fdl/fd6_layout.c index d900acdc4bb..ba47529de68 100644 --- a/src/freedreno/fdl/fd6_layout.c +++ b/src/freedreno/fdl/fd6_layout.c @@ -105,7 +105,7 @@ fdl6_tile_alignment(struct fdl_layout *layout, uint32_t *heightalign) * looser alignment requirements, however the validity of alignment is * heavily undertested and the "officially" supported alignment is 4096b. */ - if (layout->ubwc) + if (layout->ubwc || util_format_is_depth_or_stencil(layout->format)) layout->base_align = 4096; else if (layout->cpp == 1) layout->base_align = 64; |