summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-08-02 10:04:51 +1000
committerTimothy Arceri <[email protected]>2018-08-03 09:30:57 +1000
commitd5175d21c7e8e205a1ea80644b3cc887a586e6e1 (patch)
treed6c61fbdc2297c6a8293422d1a3c9a0c3811b659
parent12e3334f1e61bf08d981287e4f87ffcc935b5283 (diff)
nir: add fall through comment to nir_gather_info
This stops Coverity reporting a defect and helps make the code less error-prone. Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r--src/compiler/nir/nir_gather_info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c
index d0b656ea741..4a030cb6256 100644
--- a/src/compiler/nir/nir_gather_info.c
+++ b/src/compiler/nir/nir_gather_info.c
@@ -288,6 +288,7 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader,
case nir_intrinsic_end_primitive_with_counter:
assert(shader->info.stage == MESA_SHADER_GEOMETRY);
shader->info.gs.uses_end_primitive = 1;
+ /* fall through */
case nir_intrinsic_emit_vertex:
if (nir_intrinsic_stream_id(instr) > 0)