mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 15:00:11 +01:00
anv: Fix descriptor set clean-up on BO allocation failure
This was a bit of rebase fail when writing682c81bdfb. We stopped freeing descriptor sets back to the pool and started calling vk_object_base_finish. This commit reverts a that hunk should have never made its way into the final patch. Fixes:682c81bdfb"vulkan,anv: Add a base object struct type" Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Mark Janes <mark.a.janes@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5032>
This commit is contained in:
parent
3f74c6a881
commit
4151bddab5
1 changed files with 1 additions and 1 deletions
|
|
@ -951,7 +951,7 @@ anv_descriptor_set_create(struct anv_device *device,
|
|||
uint64_t pool_vma_offset =
|
||||
util_vma_heap_alloc(&pool->bo_heap, set_buffer_size, 32);
|
||||
if (pool_vma_offset == 0) {
|
||||
vk_object_base_finish(&set->base);
|
||||
anv_descriptor_pool_free_set(pool, set);
|
||||
return vk_error(VK_ERROR_FRAGMENTED_POOL);
|
||||
}
|
||||
assert(pool_vma_offset >= POOL_HEAP_OFFSET &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue