summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-10-26 13:17:33 -0700
committerEric Anholt <[email protected]>2015-10-26 16:48:34 -0700
commit652a864b257650e730ecec9e5882d765840a02e1 (patch)
tree366eeb9c0dcf79055ef80938fc9e2111a137d861 /src/gallium/drivers/vc4/vc4_qir.c
parent3d7a088608b38b3a460ad7ba5c7fb575815c8a43 (diff)
vc4: Fix up the test for whether the unpack can be from r4.
We can do 16a/16b from float as well. No difference on shader-db.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c
index 59a4e62159c..ce6618fe7d0 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -190,6 +190,30 @@ qir_is_mul(struct qinst *inst)
}
bool
+qir_is_float_input(struct qinst *inst)
+{
+ switch (inst->op) {
+ case QOP_FMUL:
+ case QOP_FADD:
+ case QOP_FSUB:
+ case QOP_FMIN:
+ case QOP_FMAX:
+ case QOP_FMINABS:
+ case QOP_FMAXABS:
+ case QOP_FTOI:
+ case QOP_UNPACK_8A_F:
+ case QOP_UNPACK_8B_F:
+ case QOP_UNPACK_8C_F:
+ case QOP_UNPACK_8D_F:
+ case QOP_UNPACK_16A_F:
+ case QOP_UNPACK_16B_F:
+ return true;
+ default:
+ return false;
+ }
+}
+
+bool
qir_is_raw_mov(struct qinst *inst)
{
return (inst->op == QOP_MOV &&