mesa/src/intel
Lionel Landwerlin e4d77530b4 anv: ensure slab allocated memory matches image requirements
The VMA of VkDeviceMemory has to accomodate all the resources that can
be bound to it. For sparse images it's 64KiB alignment, for other
tiled images it's 4KiB. But we also have a workaround that requires a
64KiB alignment for Tile4 images.

The initial version of the slab allocator missed the 4KiB alignment.
This fix adds the workaround handling too.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: dabb012423 ("anv: Implement anv_slab_bo and enable memory pool")
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
(cherry picked from commit 401b2066b0)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38803>
2025-11-19 09:23:54 -08:00
..
blorp anv/blorp/iris: rework Wa_14025112257 2025-11-13 08:10:21 -08:00
ci intel/ci: remove old comments 2025-10-15 01:10:49 +00:00
common intel/common: Consider 0 threads while setting TG 2025-11-13 08:10:28 -08:00
compiler brw: fix workaround fence rlen field 2025-11-19 09:23:52 -08:00
decoder brw: Move into a new src/intel/compiler/brw subdirectory 2025-10-09 07:01:47 +00:00
dev intel: Delete the has_illegal_ccs_values bool 2025-10-06 13:50:39 +00:00
ds anv: avoid invalid timestamp generation due to skipped commands 2025-11-07 08:14:48 -08:00
executor intel/executor: Add a matrix multiplication example 2025-10-11 01:02:45 +00:00
genxml anv: Add support for AV1 film grain sythesis on Xe2+ 2025-09-22 14:41:48 +00:00
isl Revert "intel: Always set Cube Face Enables for all surfaces." 2025-10-13 11:54:11 -07:00
mda intel/mda: Fix gnu-empty-initializer warning 2025-09-26 08:30:16 +00:00
nullhw-layer build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
perf intel/perf: fix enum type for eu stall props 2025-09-08 14:12:13 +00:00
shaders intel: use common CL args 2025-03-06 00:43:59 +00:00
tools intel/sanitize-gpu: Use util_flush_inval_range() 2025-10-16 01:19:45 +00:00
vulkan anv: ensure slab allocated memory matches image requirements 2025-11-19 09:23:54 -08:00
vulkan_hasvk hasvk: Switch to util/cache_ops.h 2025-10-16 01:19:44 +00:00
meson.build brw: Move into a new src/intel/compiler/brw subdirectory 2025-10-09 07:01:47 +00:00