Module: Mesa
Branch: main
Commit: 87a1d6423c6aac06ade993f4c3b81247b91d0a5c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=87a1d6423c6aac06ade993f4c3b81247b91d0a5c

Author: Lionel Landwerlin <[email protected]>
Date:   Sat Mar 18 23:30:39 2023 +0200

anv: fix incorrect utrace bo release

Signed-off-by: Lionel Landwerlin <[email protected]>
Fixes: c67c9688c3 ("anv/utrace: use a bo pool for utrace buffers")
Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22006>

---

 src/intel/vulkan/anv_utrace.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/vulkan/anv_utrace.c b/src/intel/vulkan/anv_utrace.c
index aee2ca710b5..09c816c3d26 100644
--- a/src/intel/vulkan/anv_utrace.c
+++ b/src/intel/vulkan/anv_utrace.c
@@ -62,8 +62,8 @@ anv_utrace_delete_flush_data(struct u_trace_context *utctx,
    if (flush->trace_bo) {
       assert(flush->batch_bo);
       anv_reloc_list_finish(&flush->relocs, &device->vk.alloc);
-      anv_device_release_bo(device, flush->batch_bo);
-      anv_device_release_bo(device, flush->trace_bo);
+      anv_bo_pool_free(&device->utrace_bo_pool, flush->batch_bo);
+      anv_bo_pool_free(&device->utrace_bo_pool, flush->trace_bo);
    }
 
    vk_sync_destroy(&device->vk, flush->sync);

Reply via email to