vc4: Fix LT/GE set-0-or-1 compares.

We were using the integer sub, which worked for the common case of EQ and
NE.  Fixes fs-lessThan-ivec2-ivec2 and other tests.
This commit is contained in:
Eric Anholt 2014-08-24 14:41:06 -07:00
parent e2f66315cb
commit 3212bafc28
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ vc4_generate_code(struct qcompile *c)
case QOP_SGE:
case QOP_SLT:
fixup_raddr_conflict(c, src[0], &src[1]);
queue(c, qpu_inst(qpu_a_SUB(qpu_ra(QPU_W_NOP),
queue(c, qpu_inst(qpu_a_FSUB(qpu_ra(QPU_W_NOP),
src[0], src[1]),
qpu_m_NOP()));
*last_inst(c) |= QPU_SF;