From d722b60191c2210fa4b12cffc60f4ad8be5f7758 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 27 Aug 2019 15:51:13 -0700 Subject: [PATCH] pan/midgard: Add OP_IS_CSEL_V helper ..to distinguish from scalar csel. Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/helpers.h | 8 ++++++-- 1 file 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 \ ) -- 2.30.2