mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 19:20:08 +01:00
pan/mdg: Drop forever todo
Not much to be done. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4852>
This commit is contained in:
parent
23a20cfcf3
commit
ba9f3d1702
1 changed files with 3 additions and 13 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue