mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
DEBUG: debug commit
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
This commit is contained in:
parent
16831bf3ca
commit
be9c89fda7
4 changed files with 21 additions and 1 deletions
|
|
@ -67,6 +67,11 @@ struct header_args {
|
|||
|
||||
uint64_t bvh_size;
|
||||
uint8_t is_compacted;
|
||||
|
||||
uint64_t parent_child_map_offset;
|
||||
uint64_t leaf_block_map_offset;
|
||||
uint32_t leaf_count;
|
||||
uint32_t total_nodes;
|
||||
};
|
||||
|
||||
#define ANV_COPY_MODE_COPY 0
|
||||
|
|
|
|||
|
|
@ -76,7 +76,12 @@ struct anv_accel_struct_header {
|
|||
|
||||
uint32_t instance_leaves_offset;
|
||||
|
||||
uint32_t padding[40];
|
||||
uint64_t parent_child_map_offset;
|
||||
uint64_t leaf_block_map_offset;
|
||||
uint32_t leaf_count;
|
||||
uint32_t total_nodes;
|
||||
|
||||
uint32_t padding[34];
|
||||
};
|
||||
|
||||
/* Mixed internal node with type per child */
|
||||
|
|
|
|||
|
|
@ -34,6 +34,11 @@ main(void)
|
|||
DEREF(args.dst).instance_count = args.instance_count;
|
||||
DEREF(args.dst).instance_leaves_offset = args.instance_leaves_offset;
|
||||
|
||||
DEREF(args.dst).parent_child_map_offset = args.parent_child_map_offset,
|
||||
DEREF(args.dst).leaf_block_map_offset = args.leaf_block_map_offset,
|
||||
DEREF(args.dst).leaf_count = args.leaf_count,
|
||||
DEREF(args.dst).total_nodes = args.total_nodes,
|
||||
|
||||
/* 128 is local_size_x in copy.comp shader, 16bytes is the amount of data
|
||||
* copied by each iteration of that shader's loop
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -542,6 +542,11 @@ anv_init_header(VkCommandBuffer commandBuffer, const struct vk_acceleration_stru
|
|||
.instance_leaves_offset = bvh_layout.instance_leaves_offset,
|
||||
.is_compacted = (state->config.encode_key[0] == 1),
|
||||
.bvh_size = bvh_layout.size,
|
||||
|
||||
.parent_child_map_offset = bvh_layout.parent_child_map_offset,
|
||||
.leaf_block_map_offset = bvh_layout.leaf_block_map_offset,
|
||||
.leaf_count = state->leaf_node_count,
|
||||
.total_nodes = state->leaf_node_count + (MAX2(state->leaf_node_count, 2) - 1),
|
||||
};
|
||||
|
||||
anv_bvh_build_set_args(commandBuffer, &args, sizeof(args));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue