freedreno: Fixes warning [-Wimplicit-fallthrough] in freedreno_util.h
authorYonggang Luo <luoyonggang@gmail.com>
Tue, 23 Aug 2022 04:33:25 +0000 (12:33 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Sep 2022 03:00:36 +0000 (03:00 +0000)
Warning message:
../src/gallium/drivers/freedreno/freedreno_util.h:433:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18204>

src/gallium/drivers/freedreno/freedreno_util.h

index 42d7ba1..f910337 100644 (file)
@@ -429,7 +429,7 @@ fd_msaa_samples(unsigned samples)
 {
    switch (samples) {
    default:
-      assert(0);
+      unreachable("Unsupported samples");
    case 0:
    case 1:
       return MSAA_ONE;