anv: fix incorrect utrace bo release

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c67c9688c3 ("anv/utrace: use a bo pool for utrace buffers")
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22006>
This commit is contained in:
Lionel Landwerlin 2023-03-18 23:30:39 +02:00
parent 68bc4c56ff
commit 87a1d6423c

View file

@ -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);