summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-03-19 11:30:58 +0200
committerTapani Pälli <[email protected]>2019-03-20 08:21:50 +0200
commit3e534489ecb0d4e042a14ac344d54b425a03848b (patch)
treef4d275e8254b676d8ea022774c37a99ae4c4f737 /src
parent03cbfbd913b947e250221cd09bbff6740189e1d1 (diff)
iris: mark switch case fallthrough
CID: 1444103 Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index bd5ee14a5f0..4d9f087ae28 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -2704,9 +2704,9 @@ iris_create_vertex_elements(struct pipe_context *ctx,
VFCOMP_STORE_SRC, VFCOMP_STORE_SRC };
switch (isl_format_get_num_channels(fmt.fmt)) {
- case 0: comp[0] = VFCOMP_STORE_0;
- case 1: comp[1] = VFCOMP_STORE_0;
- case 2: comp[2] = VFCOMP_STORE_0;
+ case 0: comp[0] = VFCOMP_STORE_0; /* fallthrough */
+ case 1: comp[1] = VFCOMP_STORE_0; /* fallthrough */
+ case 2: comp[2] = VFCOMP_STORE_0; /* fallthrough */
case 3:
comp[3] = isl_format_has_int_channel(fmt.fmt) ? VFCOMP_STORE_1_INT
: VFCOMP_STORE_1_FP;