From f9b341cbf40f8e5a30c39ee82b48de249f65b4e9 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 8 Sep 2023 11:36:00 +0100 Subject: [PATCH] radv: use shortcut_1d_workgroup_id MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_pipeline_graphics.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_pipeline_graphics.c b/src/amd/vulkan/radv_pipeline_graphics.c index c10ebd3..472b46f 100644 --- a/src/amd/vulkan/radv_pipeline_graphics.c +++ b/src/amd/vulkan/radv_pipeline_graphics.c @@ -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, -- 2.7.4