mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-15 06:20:29 +01:00
anv: Report address binding events for VkDescriptorPool
Report bind/unbind events for address binding report extension during VkDescriptorPool creation/destruction. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37422>
This commit is contained in:
parent
f0d46cc91d
commit
1bb79e7e69
1 changed files with 3 additions and 0 deletions
|
|
@ -1134,6 +1134,8 @@ anv_descriptor_pool_heap_init(struct anv_device *device,
|
|||
ANV_DMR_BO_ALLOC(&pool->base, heap->bo, result);
|
||||
if (result != VK_SUCCESS)
|
||||
return vk_error(device, VK_ERROR_OUT_OF_DEVICE_MEMORY);
|
||||
|
||||
ANV_ADDR_BINDING_REPORT_BO_BIND(device, &pool->base, heap->bo);
|
||||
}
|
||||
|
||||
util_vma_heap_init(&heap->heap, POOL_HEAP_OFFSET, heap->size);
|
||||
|
|
@ -1151,6 +1153,7 @@ anv_descriptor_pool_heap_fini(struct anv_device *device, struct anv_descriptor_p
|
|||
util_vma_heap_finish(&heap->heap);
|
||||
|
||||
if (heap->bo) {
|
||||
ANV_ADDR_BINDING_REPORT_BO_UNBIND(device, &pool->base, heap->bo);
|
||||
ANV_DMR_BO_FREE(&pool->base, heap->bo);
|
||||
anv_device_release_bo(device, heap->bo);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue