radv: Use the correct pipeline layout for LBVH IR generation

Fixes: 5ba950e ("radv: Switch to new LBVH implementation.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20481>
This commit is contained in:
Konstantin Seurer 2023-01-02 17:57:17 +01:00 committed by Marge Bot
parent 50972297f4
commit ce7155b8a0

View file

@ -726,9 +726,9 @@ lbvh_build_internal(VkCommandBuffer commandBuffer, uint32_t infoCount,
.internal_node_base = bvh_states[i].internal_node_base,
};
radv_CmdPushConstants(commandBuffer,
cmd_buffer->device->meta_state.accel_struct_build.lbvh_main_p_layout,
VK_SHADER_STAGE_COMPUTE_BIT, 0, sizeof(consts), &consts);
radv_CmdPushConstants(
commandBuffer, cmd_buffer->device->meta_state.accel_struct_build.lbvh_generate_ir_p_layout,
VK_SHADER_STAGE_COMPUTE_BIT, 0, sizeof(consts), &consts);
radv_unaligned_dispatch(cmd_buffer, bvh_states[i].internal_node_count, 1, 1);
}
}