nir: fix nir_is_io_compact for mesh shaders

cc: mesa-stable

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit e604a8f617)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40488>
This commit is contained in:
Mike Blumenkrantz 2026-03-10 12:04:44 -04:00 committed by Eric Engestrom
parent ac750a1e3c
commit 3dea1bd33d
2 changed files with 3 additions and 3 deletions

View file

@ -1564,7 +1564,7 @@
"description": "nir: fix nir_is_io_compact for mesh shaders",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -77,8 +77,8 @@ is_compact(nir_shader *nir, bool is_output, unsigned location)
location == VARYING_SLOT_CLIP_DIST1 ||
location == VARYING_SLOT_CULL_DIST0 ||
location == VARYING_SLOT_CULL_DIST1 ||
location == VARYING_SLOT_TESS_LEVEL_OUTER ||
location == VARYING_SLOT_TESS_LEVEL_INNER);
(nir->info.stage != MESA_SHADER_MESH && location == VARYING_SLOT_TESS_LEVEL_OUTER) ||
(nir->info.stage != MESA_SHADER_MESH && location == VARYING_SLOT_TESS_LEVEL_INNER));
}
/* Get information about the intrinsic. */