From c33e598f39f34e6f63c1eae28feed60caad1a1d7 Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Thu, 20 Mar 2025 12:19:39 +0100 Subject: [PATCH] vulkan: Add vk_ir_header::dst_leaf_node_offset Reviewed-by: Natalie Vock Part-of: --- src/vulkan/runtime/bvh/vk_bvh.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/vulkan/runtime/bvh/vk_bvh.h b/src/vulkan/runtime/bvh/vk_bvh.h index f393fa443d4..4052a7b8578 100644 --- a/src/vulkan/runtime/bvh/vk_bvh.h +++ b/src/vulkan/runtime/bvh/vk_bvh.h @@ -94,7 +94,14 @@ struct vk_ir_header { uint32_t dispatch_size_y; uint32_t dispatch_size_z; vk_global_sync_data sync_data; + /* Generic offset used by the driver during encoding + * to write HW nodes in a compact way. + */ uint32_t dst_node_offset; + /* Same as dst_node_offset but only useful if the driver + * uses a separate memory section for leaf nodes. + */ + uint32_t dst_leaf_node_offset; }; struct vk_ir_node {