lima: add missing fallthrough comments
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 8 Jul 2020 10:27:05 +0000 (20:27 +1000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 10 Jul 2020 00:32:51 +0000 (00:32 +0000)
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5799>

src/gallium/drivers/lima/ir/gp/codegen.c

index 80560bd5f7741e37566e0fe3c65bf38635d0bae6..ae01c4556a3f3452eb4cae9c5c234bac0f2a0bcc 100644 (file)
@@ -114,6 +114,7 @@ static void gpir_codegen_mul0_slot(gpir_codegen_instr *code, gpir_instr *instr)
 
    case gpir_op_neg:
       code->mul0_neg = true;
+      /* fallthrough */
    case gpir_op_mov:
       code->mul0_src0 = gpir_get_alu_input(node, alu->children[0]);
       code->mul0_src1 = gpir_codegen_src_ident;
@@ -173,6 +174,7 @@ static void gpir_codegen_mul1_slot(gpir_codegen_instr *code, gpir_instr *instr)
 
    case gpir_op_neg:
       code->mul1_neg = true;
+      /* fallthrough */
    case gpir_op_mov:
       code->mul1_src0 = gpir_get_alu_input(node, alu->children[0]);
       code->mul1_src1 = gpir_codegen_src_ident;
@@ -265,6 +267,7 @@ static void gpir_codegen_add0_slot(gpir_codegen_instr *code, gpir_instr *instr)
 
    case gpir_op_neg:
       code->acc0_src0_neg = true;
+      /* fallthrough */
    case gpir_op_mov:
       code->acc_op = gpir_codegen_acc_op_add;
       code->acc0_src0 = gpir_get_alu_input(node, alu->children[0]);
@@ -349,6 +352,7 @@ static void gpir_codegen_add1_slot(gpir_codegen_instr *code, gpir_instr *instr)
 
    case gpir_op_neg:
       code->acc1_src0_neg = true;
+      /* fallthrough */
    case gpir_op_mov:
       code->acc_op = gpir_codegen_acc_op_add;
       code->acc1_src0 = gpir_get_alu_input(node, alu->children[0]);