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:
parent
e2f66315cb
commit
3212bafc28
|
@ -411,7 +411,7 @@ vc4_generate_code(struct qcompile *c)
|
||||||
case QOP_SGE:
|
case QOP_SGE:
|
||||||
case QOP_SLT:
|
case QOP_SLT:
|
||||||
fixup_raddr_conflict(c, src[0], &src[1]);
|
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]),
|
src[0], src[1]),
|
||||||
qpu_m_NOP()));
|
qpu_m_NOP()));
|
||||||
*last_inst(c) |= QPU_SF;
|
*last_inst(c) |= QPU_SF;
|
||||||
|
|
Loading…
Reference in New Issue