anv: switch shader heap placement to beginning of heap by default

It seems placing the shader at the end has a negative performance
impact.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 8ba197c9ef ("anv: Switch shaders to dedicated VMA allocator")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38900>
This commit is contained in:
Lionel Landwerlin 2025-12-11 10:59:36 +02:00 committed by Marge Bot
parent 094f8f041f
commit fecb9e0952

View file

@ -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);
}
}