aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-30 13:11:52 -0400
committerMarge Bot <[email protected]>2020-05-01 18:26:36 +0000
commitba9f3d1702613e3d34eb0d36cb1f1935ef557267 (patch)
tree882f8f92988f10c0f3be36855c7b156a1f9076f1
parent23a20cfcf30d3c303b2c08ebc1e7557cb7a2e48b (diff)
pan/mdg: Drop forever todo
Not much to be done. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4852>
-rw-r--r--src/panfrost/midgard/midgard_compile.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 3fab4d6c37c..583b9c3726c 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -2073,19 +2073,9 @@ embedded_to_inline_constant(compiler_context *ctx, midgard_block *block)
int op = ins->alu.op;
- if (ins->src[0] == SSA_FIXED_REGISTER(REGISTER_CONSTANT)) {
- bool flip = alu_opcode_props[op].props & OP_COMMUTES;
-
- switch (op) {
- case midgard_alu_op_fcsel:
- case midgard_alu_op_icsel:
- DBG("Missed non-commutative flip (%s)\n", alu_opcode_props[op].name);
- default:
- break;
- }
-
- if (flip)
- mir_flip(ins);
+ if (ins->src[0] == SSA_FIXED_REGISTER(REGISTER_CONSTANT) &&
+ alu_opcode_props[op].props & OP_COMMUTES) {
+ mir_flip(ins);
}
if (ins->src[1] == SSA_FIXED_REGISTER(REGISTER_CONSTANT)) {