Module: Mesa Branch: main Commit: e58a5cca0293ab10ec327debf85175901d027478 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e58a5cca0293ab10ec327debf85175901d027478
Author: Timur Kristóf <[email protected]> Date: Wed Sep 7 18:52:13 2022 +0200 nir/gather_info: Clear cross-invocation output mask. 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 <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Marcin Ślusarz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18464> --- 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;
