mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
anv: fix pool allocation failure reporting
When resetting the pool, also reset the allocated size so that failure to allocation correctly reports VK_ERROR_OUT_OF_POOL_MEMORY instead of VK_ERROR_FRAGMENTED_POOL. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12690 Tested-by: David Gow <david@ingeniumdigital.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35360>
This commit is contained in:
parent
57c5419bbd
commit
426ddb4fc9
1 changed files with 1 additions and 0 deletions
|
|
@ -1352,6 +1352,7 @@ anv_descriptor_pool_heap_reset(struct anv_device *device,
|
|||
|
||||
util_vma_heap_finish(&heap->heap);
|
||||
util_vma_heap_init(&heap->heap, POOL_HEAP_OFFSET, heap->size);
|
||||
heap->alloc_size = 0;
|
||||
}
|
||||
|
||||
static VkResult
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue