aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-27 15:51:13 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-30 15:50:24 -0700
commitd722b60191c2210fa4b12cffc60f4ad8be5f7758 (patch)
tree35216c162170f4f608316abc5b9011f8cad9c7e4
parent01316719cf4494c9e354fcf7a67159ba978aa5e0 (diff)
pan/midgard: Add OP_IS_CSEL_V helper
..to distinguish from scalar csel. Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r--src/panfrost/midgard/helpers.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h
index 03fcc01893d..ac58fd50327 100644
--- a/src/panfrost/midgard/helpers.h
+++ b/src/panfrost/midgard/helpers.h
@@ -73,10 +73,14 @@
op == midgard_op_ld_ubo_int4 \
)
+#define OP_IS_CSEL_V(op) ( \
+ op == midgard_alu_op_icsel_v || \
+ op == midgard_alu_op_fcsel_v \
+ )
+
#define OP_IS_CSEL(op) ( \
+ OP_IS_CSEL_V(op) || \
op == midgard_alu_op_icsel || \
- op == midgard_alu_op_icsel_v || \
- op == midgard_alu_op_fcsel_v || \
op == midgard_alu_op_fcsel \
)