anv: use the common function for detecting a mesh shader stage
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34604>
This commit is contained in:
Rohan Garg 2025-04-18 00:07:59 +02:00 committed by Marge Bot
parent 9b477eea19
commit a5033c54e7

View file

@ -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 */