summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-07-16 08:12:27 -0700
committerEric Anholt <[email protected]>2014-08-08 18:59:47 -0700
commit4c53087c67a266d81653459baa08ece5c1b418d8 (patch)
tree105694f640c6a1b65d11dae94f06469e2b9dea4e /src/gallium/drivers/vc4/vc4_qir.c
parenteea1d36915cb97ee1a6eb6aeaf15dd5689f03148 (diff)
vc4: Add support for CMP.
This took a couple of tries, and this is the squash of those attempts. v2: Fix register file conflicts on the args in the destination-is-accumulator case. v3: Rebase on helper change and qir_inst4 change.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c
index 02342f212c3..b8a8a7ca7dc 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -48,6 +48,7 @@ static const struct qir_op_info qir_op_info[] = {
[QOP_SNE] = { "sne", 1, 2 },
[QOP_SGE] = { "sge", 1, 2 },
[QOP_SLT] = { "slt", 1, 2 },
+ [QOP_CMP] = { "cmp", 1, 3 },
[QOP_FTOI] = { "ftoi", 1, 1 },
[QOP_RCP] = { "rcp", 1, 1 },