diff --git a/src/amd/vulkan/bvh/update_gfx12.comp b/src/amd/vulkan/bvh/update_gfx12.comp index 32da58fca68..e4599cd7126 100644 --- a/src/amd/vulkan/bvh/update_gfx12.comp +++ b/src/amd/vulkan/bvh/update_gfx12.comp @@ -139,6 +139,10 @@ main() uvec3 extent_exponents = floatBitsToUint(extent) >> 23; if (cluster.invocation_index == 0) { + if (!VK_BUILD_FLAG(RADV_BUILD_FLAG_UPDATE_IN_PLACE)) { + DEREF(dst_node).primitive_base_id = src_node.primitive_base_id; + DEREF(dst_node).internal_base_id = src_node.internal_base_id; + } DEREF(dst_node).origin = origin; DEREF(dst_node).child_count_exponents = extent_exponents.x | (extent_exponents.y << 8) | (extent_exponents.z << 16) | (valid_child_count_minus_one << 28);