llvmpipe: Fixes warning [-Wimplicit-fallthrough] in lp_bld_swizzle.c
authorYonggang Luo <luoyonggang@gmail.com>
Tue, 23 Aug 2022 05:03:10 +0000 (13:03 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Sep 2022 03:00:35 +0000 (03:00 +0000)
../src/gallium/auxiliary/gallivm/lp_bld_swizzle.c:399:13: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18204>

src/gallium/auxiliary/gallivm/lp_bld_swizzle.c

index a4bfb78..b23c4cb 100644 (file)
@@ -395,7 +395,7 @@ lp_build_swizzle_aos(struct lp_build_context *bld,
             unsigned shuffle;
             switch (swizzles[i]) {
             default:
-               assert(0);
+               unreachable("Unsupported swizzle");
             case PIPE_SWIZZLE_X:
             case PIPE_SWIZZLE_Y:
             case PIPE_SWIZZLE_Z: