radv/rra: Fix dumps in the case of aliasing

Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19089>
This commit is contained in:
Konstantin Seurer
2022-10-14 18:50:30 +02:00
committed by Marge Bot
parent aa405b789e
commit d83176d1c0
+1 -4
View File
@@ -116,11 +116,9 @@ rra_CreateAccelerationStructureKHR(VkDevice _device,
RADV_FROM_HANDLE(radv_acceleration_structure, structure, *pAccelerationStructure);
simple_mtx_lock(&device->rra_trace.data_mtx);
if (_mesa_hash_table_u64_search(device->rra_trace.accel_struct_vas, structure->va) != NULL) {
if (_mesa_hash_table_u64_search(device->rra_trace.accel_struct_vas, structure->va) != NULL)
fprintf(stderr, "radv: Memory aliasing between acceleration structures detected. RRA "
"captures might not work correctly.\n");
goto end;
}
VkEvent _build_submit_event;
radv_CreateEvent(radv_device_to_handle(device),
@@ -134,7 +132,6 @@ rra_CreateAccelerationStructureKHR(VkDevice _device,
_mesa_hash_table_insert(device->rra_trace.accel_structs, structure, build_submit_event);
_mesa_hash_table_u64_insert(device->rra_trace.accel_struct_vas, structure->va, structure);
end:
simple_mtx_unlock(&device->rra_trace.data_mtx);
return VK_SUCCESS;
}