radv: Fix deadlock in radv_rmv_log_event_create

Fixes: 8d0e6c0 ("radv: Add RMV tracing utilities")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20636>
This commit is contained in:
Konstantin Seurer 2023-01-11 10:45:53 +01:00 committed by Marge Bot
parent af55e36d79
commit 18e91ad329

View File

@ -896,10 +896,11 @@ radv_rmv_log_event_create(struct radv_device *device, VkEvent _event, VkEventCre
vk_rmv_emit_token(&device->vk.memory_trace_data, VK_RMV_TOKEN_TYPE_RESOURCE_CREATE,
&create_token);
if (event->map)
vk_rmv_log_cpu_map(&device->vk, event->bo->va, false);
log_resource_bind_locked(device, (uint64_t)_event, event->bo, 0, 8);
simple_mtx_unlock(&device->vk.memory_trace_data.token_mtx);
if (event->map)
vk_rmv_log_cpu_map(&device->vk, event->bo->va, false);
}
void