diff options
author | Eric Anholt <[email protected]> | 2019-02-25 18:01:08 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-02-25 21:26:24 -0800 |
commit | 2786d2161ac0ded9b0304431368aaedae9010e4d (patch) | |
tree | 22a62a0f0b4cbc6812ebe5aae67c2fa0f81ee2f4 /src | |
parent | 1ab21592499b4ff55d08d0c8551325924fb4ec3c (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.c | 7 |
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; |