From e58a5cca0293ab10ec327debf85175901d027478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Wed, 7 Sep 2022 18:52:13 +0200 Subject: [PATCH] nir/gather_info: Clear cross-invocation output mask. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar to how other I/O info is cleared at the beginning of gather_info we should also clear the cross-invocation mesh shader output mask. Fixes: 112a856813eb2649ea7ff81768bab594033ce00a Signed-off-by: Timur Kristóf Acked-by: Alyssa Rosenzweig Reviewed-by: Marcin Ślusarz Part-of: --- src/compiler/nir/nir_gather_info.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index f332f119b7f..6b4508f8401 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -1046,6 +1046,9 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint) shader->info.tess.tcs_cross_invocation_inputs_read = 0; shader->info.tess.tcs_cross_invocation_outputs_read = 0; } + if (shader->info.stage == MESA_SHADER_MESH) { + shader->info.mesh.ms_cross_invocation_output_access = 0; + } if (shader->info.stage != MESA_SHADER_FRAGMENT) shader->info.writes_memory = shader->info.has_transform_feedback_varyings;