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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user