mesa/src/amd/vulkan/bvh
Konstantin Seurer cce8e60a31 radv: Proper handling for inactive instance nodes
We only skipped the `accelerationStructureReference == 0` case
which could lead to reading uninitialized memory.
This patch introduces a NULL_NODE_ID constant and uses it
to handle inactive nodes properly.
I do not think, that this case is common in practice.

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/18141>
2022-09-01 12:54:13 +00:00
..
build_helpers.h radv: Proper handling for inactive instance nodes 2022-09-01 12:54:13 +00:00
bvh.h radv: Add metadata to acceleration structures 2022-09-01 12:10:58 +00:00
internal.comp radv: Proper handling for inactive instance nodes 2022-09-01 12:54:13 +00:00
leaf.comp radv: Proper handling for inactive instance nodes 2022-09-01 12:54:13 +00:00
meson.build radv: Inline bvh build headers 2022-08-19 11:18:41 +00:00
morton.comp radv: Proper handling for inactive instance nodes 2022-09-01 12:54:13 +00:00