Module: Mesa
Branch: main
Commit: 202ebf9969657ad7201f53a511901e8885d4332c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=202ebf9969657ad7201f53a511901e8885d4332c

Author: Thomas H.P. Andersen <[email protected]>
Date:   Fri Dec 17 17:11:51 2021 +0100

i915g: fix implicit-fallthrough warning

Fixes a warning on clang.

Uses FALLTHROUGH like the surrounding code.

Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252>

---

 src/gallium/drivers/i915/i915_fpc_optimize.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/i915/i915_fpc_optimize.c 
b/src/gallium/drivers/i915/i915_fpc_optimize.c
index 85b6cfaf822..b4ae362dfef 100644
--- a/src/gallium/drivers/i915/i915_fpc_optimize.c
+++ b/src/gallium/drivers/i915/i915_fpc_optimize.c
@@ -313,6 +313,7 @@ liveness_analysis(struct i915_optimize_context *ctx,
       case 1:
          dst_reg = &current->FullInstruction.Dst[0];
          liveness_mark_written(ctx, dst_reg, i);
+         FALLTHROUGH;
       case 0:
          break;
       default:

Reply via email to