From: Alyssa Rosenzweig Date: Fri, 19 Jul 2019 17:51:08 +0000 (-0700) Subject: pan/midgard: Add OP_IS_CSEL helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d168b08d621990cd1e47c7f3c13bb6e92195b52e;p=mesa.git pan/midgard: Add OP_IS_CSEL helper Signed-off-by: Alyssa Rosenzweig --- 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)