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>
This commit is contained in:
Danylo Piliaiev 2024-02-28 13:30:58 +01:00 committed by Marge Bot
parent 25a0eadcae
commit be46639974

View file

@ -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;