diff options
author | Eric Anholt <[email protected]> | 2014-08-24 14:41:06 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-24 22:13:25 -0700 |
commit | 3212bafc28ca3991a89e0554d1867eaa5fde6a0b (patch) | |
tree | 87f38f7fa392086ceddc66b3cad161ed0262835e /src | |
parent | e2f66315cbf234779b195b6f7390ea9b11b288ad (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qpu_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qpu_emit.c b/src/gallium/drivers/vc4/vc4_qpu_emit.c index 415d2b0dfd5..072b0b3017b 100644 --- a/src/gallium/drivers/vc4/vc4_qpu_emit.c +++ b/src/gallium/drivers/vc4/vc4_qpu_emit.c @@ -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; |