i915g: Document fall-through switch
authorStéphane Marchesin <marcheu@chromium.org>
Fri, 6 Sep 2013 18:02:25 +0000 (11:02 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Fri, 6 Sep 2013 18:05:25 +0000 (11:05 -0700)
Fixes warning reported by Coverity.

src/gallium/drivers/i915/i915_fpc_emit.c

index 683cef04c7e96e281d3d74ea36d6b5e605d97878..f4de1f1d7be7fc90f159fd8609b570e30f1308d9 100644 (file)
@@ -200,16 +200,15 @@ uint i915_emit_texld( struct i915_fp_compile *p,
     * a swizzle for no reason below. */
    switch(num_coord) {
       case 0:
-         /* Ignore x */
          ignore |= (0xf << UREG_CHANNEL_X_SHIFT);
+         /* fall-through */
       case 1:
-         /* Ignore y */
          ignore |= (0xf << UREG_CHANNEL_Y_SHIFT);
+         /* fall-through */
       case 2:
-         /* Ignore z */
          ignore |= (0xf << UREG_CHANNEL_Z_SHIFT);
+         /* fall-through */
       case 3:
-         /* Ignore w */
          ignore |= (0xf << UREG_CHANNEL_W_SHIFT);
    }