nir/gather_info: Clear cross-invocation output mask.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 7 Sep 2022 16:52:13 +0000 (18:52 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Sep 2022 20:26:03 +0000 (20:26 +0000)
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 <timur.kristof@gmail.com>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18464>

src/compiler/nir/nir_gather_info.c

index f332f11..6b4508f 100644 (file)
@@ -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;