aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-19 17:51:08 (GMT)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-22 15:20:34 (GMT)
commitd168b08d621990cd1e47c7f3c13bb6e92195b52e (patch)
tree525760e41bba92efac035742685fc62cdb8de6d1
parent1f297471a0bec68c1410e96e64c686537cd60860 (diff)
downloadexternal_mesa3d-d168b08d621990cd1e47c7f3c13bb6e92195b52e.zip
external_mesa3d-d168b08d621990cd1e47c7f3c13bb6e92195b52e.tar.gz
external_mesa3d-d168b08d621990cd1e47c7f3c13bb6e92195b52e.tar.bz2
pan/midgard: Add OP_IS_CSEL helper
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-rw-r--r--src/panfrost/midgard/helpers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h
index 2e59025..7a0a9d8 100644
--- a/src/panfrost/midgard/helpers.h
+++ b/src/panfrost/midgard/helpers.h
@@ -57,6 +57,13 @@
op == midgard_op_ld_uniform_32i \
)
+#define OP_IS_CSEL(op) ( \
+ op == midgard_alu_op_icsel || \
+ op == midgard_alu_op_icsel_v || \
+ op == midgard_alu_op_fcsel_v || \
+ op == midgard_alu_op_fcsel \
+ )
+
/* ALU control words are single bit fields with a lot of space */
#define ALU_ENAB_VEC_MUL (1 << 17)