freedreno/fdl: Use 4k alignment for tiled
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Tiled-but-not-UBWC images should also have 4k alignment.

Cc: mesa-stable
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40333>
This commit is contained in:
Rob Clark 2026-03-10 15:14:39 -07:00 committed by Marge Bot
parent fcd280f286
commit 3d4792d577

View file

@ -88,19 +88,7 @@ fdl6_tile_alignment(struct fdl_layout *layout, uint32_t *heightalign)
layout->pitchalign = 2;
}
/* Empirical evidence suggests that images with UBWC could have much
* looser alignment requirements, however the validity of alignment is
* heavily undertested and the "officially" supported alignment is 4096b.
*/
if (layout->ubwc || util_format_is_depth_or_stencil(layout->format) ||
fdl6_is_r8g8_layout(layout))
layout->base_align = 4096;
else if (layout->cpp == 1)
layout->base_align = 64;
else if (layout->cpp == 2)
layout->base_align = 128;
else
layout->base_align = 256;
layout->base_align = 4096;
}
/* NOTE: good way to test this is: (for example)