vc4: Add support for nir_op_uge, using the carry bit on QPU_A_SUB.
authorEric Anholt <eric@anholt.net>
Tue, 10 Nov 2015 23:37:47 +0000 (15:37 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Nov 2015 01:45:23 +0000 (17:45 -0800)
commita4bf28178f064082d3b818d2cd48abf9075cc459
tree13df51733cb8ee1dd0f0f3acd262bbb384e1e96a
parent27b1d344384ef89faf6d321bf4625d08ba6ff3bf
vc4: Add support for nir_op_uge, using the carry bit on QPU_A_SUB.

It looks like nir_lower_idiv is going to use it soon, so add support.
With Ilia's change, this fixes one case in fs-op-div-large-uint-uint (with
GL 3.0 forced on).

Cc: "11.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/vc4/vc4_opt_algebraic.c
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.c
src/gallium/drivers/vc4/vc4_qir.h
src/gallium/drivers/vc4/vc4_qpu_emit.c