radv/rra: Fix node type validation

Silly mistake...

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19584>
This commit is contained in:
Konstantin Seurer
2022-11-07 18:11:00 +01:00
committed by Marge Bot
parent 8ab628ab2e
commit 35d0d30a0e

View File

@@ -479,7 +479,7 @@ rra_validate_node(struct hash_table_u64 *accel_struct_vas, uint8_t *data, void *
uint32_t type = children[i] & 7;
uint32_t offset = (children[i] & (~7u)) << 3;
if (is_bottom_level == (type == radv_bvh_node_instance))
if (!is_internal_node(type) && is_bottom_level == (type == radv_bvh_node_instance))
rra_validation_fail(&ctx,
is_bottom_level ? "%s node in BLAS (child index %u)"
: "%s node in TLAS (child index %u)",