summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-02-25 18:01:08 -0800
committerEric Anholt <[email protected]>2019-02-25 21:26:24 -0800
commit2786d2161ac0ded9b0304431368aaedae9010e4d (patch)
tree22a62a0f0b4cbc6812ebe5aae67c2fa0f81ee2f4 /src
parent1ab21592499b4ff55d08d0c8551325924fb4ec3c (diff)
v3d: Fix vir_is_raw_mov() for input unpacks.
There are no users at the moment, but I wanted to start using this in register spilling.
Diffstat (limited to 'src')
-rw-r--r--src/broadcom/compiler/vir.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c
index 3b0274450e9..2f670fc9024 100644
--- a/src/broadcom/compiler/vir.c
+++ b/src/broadcom/compiler/vir.c
@@ -146,6 +146,13 @@ vir_is_raw_mov(struct qinst *inst)
return false;
}
+ if (inst->qpu.alu.add.a_unpack != V3D_QPU_UNPACK_NONE ||
+ inst->qpu.alu.add.b_unpack != V3D_QPU_UNPACK_NONE ||
+ inst->qpu.alu.mul.a_unpack != V3D_QPU_UNPACK_NONE ||
+ inst->qpu.alu.mul.b_unpack != V3D_QPU_UNPACK_NONE) {
+ return false;
+ }
+
if (inst->qpu.flags.ac != V3D_QPU_COND_NONE ||
inst->qpu.flags.mc != V3D_QPU_COND_NONE)
return false;