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:
Lionel Landwerlin 2023-02-17 16:34:10 +02:00 committed by Marge Bot
parent b772de9c78
commit 3b037ac073

View file

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