v3d: Don't try to set PF flags on a LDTMU operation

We need an ALU op in order to set PF.  Fixes a recent assertion failure in
dEQP-GLES3.functional.ubo.single_basic_type.shared.bool_vertex
This commit is contained in:
Eric Anholt 2018-11-06 09:39:40 -08:00
parent 03928dd682
commit 538bca78e2

View file

@ -1006,6 +1006,12 @@ vir_can_set_flags(struct v3d_compile *c, struct qinst *inst)
return false;
}
if (inst->qpu.type != V3D_QPU_INSTR_TYPE_ALU ||
(inst->qpu.alu.add.op == V3D_QPU_A_NOP &&
inst->qpu.alu.mul.op == V3D_QPU_M_NOP)) {
return false;
}
return true;
}