summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-04-23 21:35:30 -0500
committerJason Ekstrand <[email protected]>2019-04-24 05:40:27 +0000
commit3d33c13eca2ef2e643020d3d1b27b96ae2e770e5 (patch)
tree363ff36162fb94af624b455115a7702d639fcc12 /src/intel/vulkan
parent0bc1942c9ddce4e796322a7561f06af5dec0decd (diff)
anv/descriptor_set: Only vma_heap_finish if we have a descriptor buffer
Fixes: 7bb34ecff98 "anv: release memory allocated by bo_heap when..." Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_descriptor_set.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c
index 882c42f231e..2d4d37febb5 100644
--- a/src/intel/vulkan/anv_descriptor_set.c
+++ b/src/intel/vulkan/anv_descriptor_set.c
@@ -754,11 +754,10 @@ void anv_DestroyDescriptorPool(
anv_gem_munmap(pool->bo.map, pool->bo.size);
anv_vma_free(device, &pool->bo);
anv_gem_close(device, pool->bo.gem_handle);
+ util_vma_heap_finish(&pool->bo_heap);
}
anv_state_stream_finish(&pool->surface_state_stream);
- util_vma_heap_finish(&pool->bo_heap);
-
vk_free2(&device->alloc, pAllocator, pool);
}