mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
radv/rra: Replace aliasing assert with a warning
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18530>
This commit is contained in:
parent
916621e5a5
commit
7da66f8f25
1 changed files with 7 additions and 2 deletions
|
|
@ -116,8 +116,12 @@ rra_CreateAccelerationStructureKHR(VkDevice _device,
|
|||
RADV_FROM_HANDLE(radv_acceleration_structure, structure, *pAccelerationStructure);
|
||||
simple_mtx_lock(&device->rra_trace.data_mtx);
|
||||
|
||||
assert(!_mesa_hash_table_u64_search(device->rra_trace.accel_struct_vas,
|
||||
radv_accel_struct_get_va(structure)));
|
||||
if (_mesa_hash_table_u64_search(device->rra_trace.accel_struct_vas,
|
||||
radv_accel_struct_get_va(structure)) != 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),
|
||||
|
|
@ -132,6 +136,7 @@ rra_CreateAccelerationStructureKHR(VkDevice _device,
|
|||
_mesa_hash_table_u64_insert(device->rra_trace.accel_struct_vas,
|
||||
radv_accel_struct_get_va(structure), structure);
|
||||
|
||||
end:
|
||||
simple_mtx_unlock(&device->rra_trace.data_mtx);
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue