From 3212bafc28ca3991a89e0554d1867eaa5fde6a0b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 24 Aug 2014 14:41:06 -0700 Subject: 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. --- src/gallium/drivers/vc4/vc4_qpu_emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/vc4/vc4_qpu_emit.c b/src/gallium/drivers/vc4/vc4_qpu_emit.c index 415d2b0..072b0b3 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; -- cgit v1.1