From 3b037ac07361ec5c09e4ec3350840975ea5bf28a Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 17 Feb 2023 16:34:10 +0200 Subject: [PATCH] anv: fix vma heap memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Fixes: a5f9e59ce3 ("anv: Use vma_heap for descriptor pool host allocation") Reviewed-by: José Roberto de Souza Reviewed-by: Faith Ekstrand Part-of: --- src/intel/vulkan/anv_descriptor_set.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c index 641875a..85e1a5d 100644 --- a/src/intel/vulkan/anv_descriptor_set.c +++ b/src/intel/vulkan/anv_descriptor_set.c @@ -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); -- 2.7.4