From fecb9e09528cf074b289339b82eda30f646c20fa Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 11 Dec 2025 10:59:36 +0200 Subject: [PATCH] anv: switch shader heap placement to beginning of heap by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems placing the shader at the end has a negative performance impact. Signed-off-by: Lionel Landwerlin Fixes: 8ba197c9ef ("anv: Switch shaders to dedicated VMA allocator") Reviewed-by: Tapani Pälli Part-of: --- src/intel/vulkan/anv_shader_heap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_shader_heap.c b/src/intel/vulkan/anv_shader_heap.c index c68a9f5b222..2169eed207a 100644 --- a/src/intel/vulkan/anv_shader_heap.c +++ b/src/intel/vulkan/anv_shader_heap.c @@ -124,10 +124,10 @@ anv_shader_heap_alloc(struct anv_shader_heap *heap, } } else { if (capture_replay) { - heap->vma.alloc_high = false; + heap->vma.alloc_high = true; addr = util_vma_heap_alloc(&heap->vma, size, align); } else { - heap->vma.alloc_high = true; + heap->vma.alloc_high = false; addr = util_vma_heap_alloc(&heap->vma, size, align); } }