summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <tarceri@itsqueeze.com>2020-07-02 14:24:14 +1000
committerMarge Bot <eric+marge@anholt.net>2020-07-02 23:52:53 +0000
commit26aa02b5ab99bb88a490410b55d357a004d5436b (patch)
tree2b21cd02aca35e3a95b474704c02ca657ac4514e
parent651441c16fd2fa0eede876d70997cbfd646ef289 (diff)
nv30: add missing fallthrough comment
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>
-rw-r--r--src/gallium/drivers/nouveau/nv30/nv30_texture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_texture.c b/src/gallium/drivers/nouveau/nv30/nv30_texture.c
index dfea6dea3d7..5d7505deec8 100644
--- a/src/gallium/drivers/nouveau/nv30/nv30_texture.c
+++ b/src/gallium/drivers/nouveau/nv30/nv30_texture.c
@@ -240,6 +240,7 @@ nv30_sampler_view_create(struct pipe_context *pipe, struct pipe_resource *pt,
break;
case PIPE_TEXTURE_CUBE:
so->fmt |= NV30_3D_TEX_FORMAT_CUBIC;
+ /* fallthrough */
case PIPE_TEXTURE_2D:
case PIPE_TEXTURE_RECT:
so->fmt |= NV30_3D_TEX_FORMAT_DIMS_2D;