mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
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:
parent
094f8f041f
commit
fecb9e0952
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue