pan/midgard: Add OP_IS_CSEL_V helper
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 27 Aug 2019 22:51:13 +0000 (15:51 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 30 Aug 2019 22:50:24 +0000 (15:50 -0700)
..to distinguish from scalar csel.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/helpers.h

index 03fcc01893df3ba578e92090c36b008cfc68e9ea..ac58fd503274525f7a14f6eb9ecb87645d9acf95 100644 (file)
                 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 \
         )