From 243aa6b2ec0c2626b1333ba666a6d6d60ede8505 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Tue, 11 Oct 2022 12:51:05 +0200 Subject: [PATCH] radv: Consider inactive internal nodes never in the tree. Since the parent doesn't know to signal it. Fixes: e83e4fafc84 ("radv: Only emit parents from parents that actually end up in the tree.") Reviewed-By: Konstantin Seurer Part-of: --- src/amd/vulkan/bvh/lbvh_internal.comp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/bvh/lbvh_internal.comp b/src/amd/vulkan/bvh/lbvh_internal.comp index 621bb4b97d6..180c7b159cf 100644 --- a/src/amd/vulkan/bvh/lbvh_internal.comp +++ b/src/amd/vulkan/bvh/lbvh_internal.comp @@ -86,7 +86,7 @@ main(void) DEREF(dst_node).base.aabb[1][0] = total_bounds.max.x; DEREF(dst_node).base.aabb[1][1] = total_bounds.max.y; DEREF(dst_node).base.aabb[1][2] = total_bounds.max.z; - DEREF(dst_node).in_final_tree = FINAL_TREE_UNKNOWN; + DEREF(dst_node).in_final_tree = is_active ? FINAL_TREE_UNKNOWN : FINAL_TREE_NOT_PRESENT; /* An internal node is considered inactive if it has no children. Set the resulting scratch node * id to RADV_BVH_INVALID_NODE for more internal nodes to become inactive.