summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStéphane Marchesin <marcheu@chromium.org>2013-09-06 11:02:25 -0700
committerStéphane Marchesin <marcheu@chromium.org>2013-09-06 11:05:25 -0700
commitf9b37f7183ca2df228f2b7382ac9e2d0f74cb904 (patch)
tree683c4e5b5d7f4301db5a5af3f9d42e7eeedf3810 /src
parent519a2cf9507275d4a3e9926072b07a3f98f0095a (diff)
i915g: Document fall-through switch
Fixes warning reported by Coverity.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/i915/i915_fpc_emit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/i915/i915_fpc_emit.c b/src/gallium/drivers/i915/i915_fpc_emit.c
index 683cef04c7e..f4de1f1d7be 100644
--- a/src/gallium/drivers/i915/i915_fpc_emit.c
+++ b/src/gallium/drivers/i915/i915_fpc_emit.c
@@ -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);
}