mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +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> (cherry picked from commit3b037ac073) Conflicts: src/intel/vulkan/anv_descriptor_set.c
This commit is contained in:
parent
52ddeed25e
commit
1301e56867
2 changed files with 3 additions and 1 deletions
|
|
@ -5188,7 +5188,7 @@
|
|||
"description": "anv: fix vma heap memory leak",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "a5f9e59ce357c2974a97004d943aae92ad6f5004"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -968,6 +968,8 @@ void anv_DestroyDescriptorPool(
|
|||
anv_descriptor_set_layout_unref(device, set->layout);
|
||||
}
|
||||
|
||||
util_vma_heap_finish(&pool->host_heap);
|
||||
|
||||
if (pool->bo) {
|
||||
util_vma_heap_finish(&pool->bo_heap);
|
||||
anv_device_release_bo(device, pool->bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue