etnaviv: add missing fallthrough comments
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5799>
This commit is contained in:
committed by
Marge Bot
parent
44b1f9c6ff
commit
745aeba623
@@ -78,10 +78,13 @@ etna_clear_blit_pack_rgba(enum pipe_format format, const union pipe_color_union
|
||||
switch (util_format_get_blocksize(format)) {
|
||||
case 1:
|
||||
uc.ui[0] = uc.ui[0] << 8 | (uc.ui[0] & 0xff);
|
||||
/* fallthrough */
|
||||
case 2:
|
||||
uc.ui[0] = uc.ui[0] << 16 | (uc.ui[0] & 0xffff);
|
||||
/* fallthrough */
|
||||
case 4:
|
||||
uc.ui[1] = uc.ui[0];
|
||||
/* fallthrough */
|
||||
default:
|
||||
return (uint64_t) uc.ui[1] << 32 | uc.ui[0];
|
||||
}
|
||||
|
||||
@@ -852,6 +852,7 @@ lower_alu(struct etna_compile *c, nir_alu_instr *alu)
|
||||
need_mov = vec_dest_has_swizzle(alu, &nir_instr_as_intrinsic(instr)->dest.ssa);
|
||||
break;
|
||||
}
|
||||
/* fallthrough */
|
||||
default:
|
||||
need_mov = true;
|
||||
}
|
||||
|
||||
@@ -145,6 +145,7 @@ real_dest(nir_dest *dest, unsigned *swiz, unsigned *mask)
|
||||
nir_instr_as_alu(p_instr)->op == nir_op_mov) {
|
||||
break;
|
||||
}
|
||||
/* fallthrough */
|
||||
default:
|
||||
can_bypass_src = false;
|
||||
break;
|
||||
|
||||
@@ -277,6 +277,7 @@ texture_use_int_filter(const struct pipe_sampler_view *sv,
|
||||
case PIPE_TEXTURE_2D_ARRAY:
|
||||
if (tex_desc)
|
||||
break;
|
||||
/* fallthrough */
|
||||
case PIPE_TEXTURE_3D:
|
||||
return false;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user