radv: use shortcut_1d_workgroup_id

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24882>
This commit is contained in:
Rhys Perry
2023-09-08 11:36:00 +01:00
committed by Marge Bot
parent 2965a9d510
commit f9b341cbf4

View File

@@ -2539,6 +2539,7 @@ radv_graphics_shaders_compile(struct radv_device *device, struct vk_pipeline_cac
*/
nir_lower_compute_system_values_options o = {
.lower_workgroup_id_to_index = true,
.shortcut_1d_workgroup_id = true,
.num_workgroups[0] = task ? task->info.mesh.ts_mesh_dispatch_dimensions[0] : 0,
.num_workgroups[1] = task ? task->info.mesh.ts_mesh_dispatch_dimensions[1] : 0,
.num_workgroups[2] = task ? task->info.mesh.ts_mesh_dispatch_dimensions[2] : 0,