mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02: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>
(cherry picked from commit 3d4792d577)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40488>
This commit is contained in:
parent
2401bd8e0a
commit
04d09c9524
2 changed files with 2 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue