mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 22:58:31 +02:00
aco: use FALLTHROUGH macro
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7844>
This commit is contained in:
parent
ce56902f85
commit
2d12991e01
4 changed files with 6 additions and 7 deletions
|
|
@ -7688,8 +7688,7 @@ void visit_intrinsic(isel_context *ctx, nir_intrinsic_instr *instr)
|
|||
bld.copy(Definition(dst), Operand(get_arg(ctx, ctx->args->ac.view_index)));
|
||||
break;
|
||||
}
|
||||
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
}
|
||||
case nir_intrinsic_load_layer_id: {
|
||||
unsigned idx = nir_intrinsic_base(instr);
|
||||
|
|
|
|||
|
|
@ -738,7 +738,7 @@ void init_context(isel_context *ctx, nir_shader *shader)
|
|||
break;
|
||||
case nir_op_bcsel:
|
||||
type = nir_dest_is_divergent(alu_instr->dest.dest) ? RegType::vgpr : RegType::sgpr;
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
default:
|
||||
for (unsigned i = 0; i < nir_op_infos[alu_instr->op].num_inputs; i++) {
|
||||
if (regclasses[alu_instr->src[i].src.ssa->index].type() == RegType::vgpr)
|
||||
|
|
|
|||
|
|
@ -1263,7 +1263,7 @@ void label_instruction(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
|
|||
ctx.info[instr->definitions[0].tempId()].set_vec(instr.get());
|
||||
break;
|
||||
}
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case aco_opcode::p_as_uniform:
|
||||
if (instr->definitions[0].isFixed()) {
|
||||
/* don't copy-propagate copies into fixed registers */
|
||||
|
|
@ -1458,7 +1458,7 @@ void label_instruction(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
|
|||
}
|
||||
}
|
||||
}
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case aco_opcode::s_or_b32:
|
||||
case aco_opcode::s_or_b64:
|
||||
case aco_opcode::s_xor_b32:
|
||||
|
|
@ -1468,7 +1468,7 @@ void label_instruction(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
|
|||
})) {
|
||||
ctx.info[instr->definitions[0].tempId()].set_uniform_bitwise();
|
||||
}
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case aco_opcode::s_lshl_b32:
|
||||
case aco_opcode::v_or_b32:
|
||||
case aco_opcode::v_lshlrev_b32:
|
||||
|
|
|
|||
|
|
@ -467,7 +467,7 @@ bool validate_ir(Program* program)
|
|||
}
|
||||
case Format::FLAT:
|
||||
check(instr->operands[1].isUndefined(), "Flat instructions don't support SADDR", instr.get());
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case Format::GLOBAL:
|
||||
case Format::SCRATCH: {
|
||||
check(instr->operands[0].isTemp() && instr->operands[0].regClass().type() == RegType::vgpr, "FLAT/GLOBAL/SCRATCH address must be vgpr", instr.get());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue