nir: add missing break to nir_opt_access()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Jul 2020 08:56:09 +0000 (18:56 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 2 Jul 2020 02:11:30 +0000 (12:11 +1000)
Fixes: f2d0e48ddc74 ("glsl/nir: Add optimization pass for access flags")
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>

src/compiler/nir/nir_opt_access.c

index fb432a9430f925c8b1e476ba1bf52a70584ea3d4..99ecdb5400c6f585c394fc211b88a6f8180ec7c6 100644 (file)
@@ -120,6 +120,7 @@ gather_intrinsic(struct access_state *state, nir_intrinsic_instr *instr)
 
       _mesa_set_add(state->vars_written, var);
       state->buffers_written = true;
+      break;
 
    case nir_intrinsic_memory_barrier:
       state->buffer_barriers = true;