radv/rra: Map accel struct VAs to handles

When validating a BVH, rra_validate_node uses _mesa_hash_table_u64_search to lookup, whether a BLAS pointer is valid. Since _mesa_hash_table_u64_search returns the data field of the found entry, we need to populate it. Otherwise, the NULL-check won't work.

Fixes: 5749806 ("radv: Add Radeon Raytracing Analyzer trace dumping utilities")
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:
Konstantin Seurer 2022-09-10 14:33:02 +02:00 committed by Marge Bot
parent ba9c73f9d4
commit 97d8bb9bc6

View file

@ -130,7 +130,7 @@ 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,
radv_accel_struct_get_va(structure), NULL);
radv_accel_struct_get_va(structure), structure);
simple_mtx_unlock(&device->rra_trace.data_mtx);
return VK_SUCCESS;