freedreno/fdl: Make tiled r8g8 images have 4k alignment

This fixes an unrecoverable hang in the trace from #5926 without having
to disable tiling.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32619>
This commit is contained in:
Connor Abbott 2024-12-18 10:04:14 -05:00 committed by Marge Bot
parent 6615cbfeaf
commit c0404da1e5

View file

@ -98,7 +98,8 @@ 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 || util_format_is_depth_or_stencil(layout->format))
if (layout->ubwc || util_format_is_depth_or_stencil(layout->format) ||
is_r8g8(layout))
layout->base_align = 4096;
else if (layout->cpp == 1)
layout->base_align = 64;