From 2786d2161ac0ded9b0304431368aaedae9010e4d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 25 Feb 2019 18:01:08 -0800 Subject: 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. --- src/broadcom/compiler/vir.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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; -- cgit v1.2.3