From 38218ab7e20e7f73cce61b6033cce59fa81efbca Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 8 Jul 2020 20:27:05 +1000 Subject: [PATCH] lima: add missing fallthrough comments Reviewed-by: Erico Nunes Part-of: --- src/gallium/drivers/lima/ir/gp/codegen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/lima/ir/gp/codegen.c b/src/gallium/drivers/lima/ir/gp/codegen.c index 80560bd5f77..ae01c4556a3 100644 --- a/src/gallium/drivers/lima/ir/gp/codegen.c +++ b/src/gallium/drivers/lima/ir/gp/codegen.c @@ -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]); -- 2.30.2