radv/rra: Get rid of annoying memory aliasing warning

Such cursed behavior is almost non existent in practise. When capturing
a Doom Eternal, this warning spams the output for no reason.

The warning is also unnecessary since we copy acceleration structures
right after building them now.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20047>
This commit is contained in:
Konstantin Seurer 2022-11-30 16:33:42 +01:00 committed by Marge Bot
parent e2b7e478a5
commit 7fe515f6d4

View file

@ -185,10 +185,6 @@ 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)
fprintf(stderr, "radv: Memory aliasing between acceleration structures detected. RRA "
"captures might not work correctly.\n");
struct radv_rra_accel_struct_data *data = malloc(sizeof(struct radv_rra_accel_struct_data));
if (!data) {
result = VK_ERROR_OUT_OF_HOST_MEMORY;