Skip to content
Snippets Groups Projects
Commit 3e74bbf6 authored by Abel García Dorta's avatar Abel García Dorta Committed by Marge Bot
Browse files

i915g: fix implicit fallthrough


Closes: #4777
Fixes: 4e861ac4 ("i915g: Add more optimizations")
Fixes: f34fd58e ("i915g: implement unfenced relocs for textures using tiling bits")
Fixes: beaf039f ("i915g: cleanup static state calculation, part 1")
Reviewed-by: Emma Anholt's avatarEmma Anholt <emma@anholt.net>
Part-of: <mesa/mesa!10811>
parent 6d56c16c
No related branches found
No related tags found
No related merge requests found
......@@ -146,10 +146,13 @@ static unsigned mask_for_unswizzled(int num_components)
{
case 4:
mask |= TGSI_WRITEMASK_W;
FALLTHROUGH;
case 3:
mask |= TGSI_WRITEMASK_Z;
FALLTHROUGH;
case 2:
mask |= TGSI_WRITEMASK_Y;
FALLTHROUGH;
case 1:
mask |= TGSI_WRITEMASK_X;
}
......@@ -340,12 +343,15 @@ static void liveness_analysis(struct i915_optimize_context *ctx,
case 3:
src_reg = &current->FullInstruction.Src[2];
liveness_mark_read(ctx, src_reg, i);
FALLTHROUGH;
case 2:
src_reg = &current->FullInstruction.Src[1];
liveness_mark_read(ctx, src_reg, i);
FALLTHROUGH;
case 1:
src_reg = &current->FullInstruction.Src[0];
liveness_mark_read(ctx, src_reg, i);
FALLTHROUGH;
case 0:
break;
default:
......
......@@ -286,8 +286,10 @@ ms3_tiling_bits(enum i915_winsys_buffer_tile tiling)
switch (tiling) {
case I915_TILE_Y:
tiling_bits |= MS3_TILE_WALK_Y;
FALLTHROUGH;
case I915_TILE_X:
tiling_bits |= MS3_TILED_SURFACE;
FALLTHROUGH;
case I915_TILE_NONE:
break;
}
......
......@@ -83,8 +83,10 @@ buf_3d_tiling_bits(enum i915_winsys_buffer_tile tiling)
switch (tiling) {
case I915_TILE_Y:
tiling_bits |= BUF_3D_TILE_WALK_Y;
FALLTHROUGH;
case I915_TILE_X:
tiling_bits |= BUF_3D_TILED_SURFACE;
FALLTHROUGH;
case I915_TILE_NONE:
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment