[Mesa-dev] [PATCH] nir: add fall through comment to nir_gather_info
Jason Ekstrand
jason at jlekstrand.net
Thu Aug 2 00:06:15 UTC 2018
rb
On Wed, Aug 1, 2018 at 5:05 PM Timothy Arceri <tarceri at itsqueeze.com> wrote:
> This stops Coverity reporting a defect and helps make the code less
> error-prone.
>
> Cc: Neil Roberts <nroberts at igalia.com>
> ---
> src/compiler/nir/nir_gather_info.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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)
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180801/36114d73/attachment.html>
More information about the mesa-dev
mailing list