mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
anv: fix vma heap memory leak
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: a5f9e59ce3 ("anv: Use vma_heap for descriptor pool host allocation")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21385>
This commit is contained in:
parent
b772de9c78
commit
3b037ac073
1 changed files with 2 additions and 0 deletions
|
|
@ -975,6 +975,8 @@ void anv_DestroyDescriptorPool(
|
|||
anv_descriptor_set_layout_unref(device, set->layout);
|
||||
}
|
||||
|
||||
util_vma_heap_finish(&pool->host_heap);
|
||||
|
||||
if (pool->bo_mem_size) {
|
||||
if (pool->host_bo)
|
||||
vk_free(&device->vk.alloc, pool->host_bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue