pan/midgard: Add OP_IS_CSEL helper
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 19 Jul 2019 17:51:08 +0000 (10:51 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 22 Jul 2019 15:20:34 +0000 (08:20 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/helpers.h

index 2e59025aed4adaf74dec3404f2012a1c50f16578..7a0a9d845e401cb8b5bf83513ea88e99f765808c 100644 (file)
                 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)