mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 13:00:21 +01:00
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:
parent
ba9c73f9d4
commit
97d8bb9bc6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue