From a5033c54e7be8cc6ad90f8070b92b0395a4ee68b Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Fri, 18 Apr 2025 00:07:59 +0200 Subject: [PATCH] anv: use the common function for detecting a mesh shader stage Signed-off-by: Rohan Garg Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_pipeline.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 62720e9fa9e..74daba16286 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -978,8 +978,7 @@ anv_pipeline_lower_nir(struct anv_pipeline *pipeline, }); } - if (nir->info.stage == MESA_SHADER_MESH || - nir->info.stage == MESA_SHADER_TASK) { + if (gl_shader_stage_is_mesh(nir->info.stage)) { nir_lower_compute_system_values_options options = { .lower_workgroup_id_to_index = true, /* nir_lower_idiv generates expensive code */