aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2020-07-08 20:27:05 +1000
committerMarge Bot <[email protected]>2020-07-10 00:32:51 +0000
commit38218ab7e20e7f73cce61b6033cce59fa81efbca (patch)
tree5abf71dff0bede4c121dfda085c72962b399b4fb /src
parent745aeba623663579d3ba1a394a02baea0689e657 (diff)
lima: add missing fallthrough comments
Reviewed-by: Erico Nunes <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5799>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/lima/ir/gp/codegen.c4
1 files changed, 4 insertions, 0 deletions
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]);