freedreno/fdl: Use 4k alignment for tiled

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

Cc: mesa-stable
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
(cherry picked from commit 3d4792d577)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40488>
This commit is contained in:
Rob Clark 2026-03-10 15:14:39 -07:00 committed by Eric Engestrom
parent 2401bd8e0a
commit 04d09c9524
2 changed files with 2 additions and 14 deletions

View file

@ -1864,7 +1864,7 @@
"description": "freedreno/fdl: Use 4k alignment for tiled",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -85,19 +85,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)