radv: use shortcut_1d_workgroup_id
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 8 Sep 2023 10:36:00 +0000 (11:36 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 14:31:07 +0000 (14:31 +0000)
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>

src/amd/vulkan/radv_pipeline_graphics.c

index c10ebd3..472b46f 100644 (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,