radv: Initialize base IDs when doing a BVH update with src!=dst
Fixes: 2d48b2c ("radv: Use subgroup OPs for BVH updates on GFX12")
Reviewed-by: Natalie Vock <natalie.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35445>
This commit is contained in:
committed by
Marge Bot
parent
4a4251dc16
commit
33a694fe9b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user