From e604a8f61725488b797981aa8630f1e5c8faa145 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 10 Mar 2026 12:04:44 -0400 Subject: [PATCH] nir: fix nir_is_io_compact for mesh shaders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cc: mesa-stable Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index cdf61ebeb0b..1b1c97d8d87 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -7068,8 +7068,8 @@ nir_is_io_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)); } #ifdef __cplusplus