From d168b08d621990cd1e47c7f3c13bb6e92195b52e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 19 Jul 2019 10:51:08 -0700 Subject: [PATCH] pan/midgard: Add OP_IS_CSEL helper Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/helpers.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h index 2e59025aed4..7a0a9d845e4 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) -- 2.30.2