mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-24 17:50:42 +01:00
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> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40333>
This commit is contained in:
parent
fcd280f286
commit
3d4792d577
1 changed files with 1 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue