etnaviv: add missing fallthrough annotation
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 8 Feb 2017 12:03:19 +0000 (13:03 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 21 Feb 2017 20:14:01 +0000 (21:14 +0100)
Caught by Coverity, reported to me by imirkin.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/gallium/drivers/etnaviv/etnaviv_texture.c

index c020fb23b5134ed1dc3766f8745d9b3bbe81b6dc..1d32c12baddb03a96a4b2b34a71461d35f090a84 100644 (file)
@@ -192,6 +192,7 @@ etna_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc,
        * but set T wrap to repeat */
       sv->TE_SAMPLER_CONFIG0_MASK = ~VIVS_TE_SAMPLER_CONFIG0_VWRAP__MASK;
       sv->TE_SAMPLER_CONFIG0 |= VIVS_TE_SAMPLER_CONFIG0_VWRAP(TEXTURE_WRAPMODE_REPEAT);
+      /* fallthrough */
    case PIPE_TEXTURE_2D:
    case PIPE_TEXTURE_RECT:
       sv->TE_SAMPLER_CONFIG0 |= VIVS_TE_SAMPLER_CONFIG0_TYPE(TEXTURE_TYPE_2D);