From: Alyssa Rosenzweig Date: Tue, 27 Aug 2019 22:51:13 +0000 (-0700) Subject: pan/midgard: Add OP_IS_CSEL_V helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d722b60191c2210fa4b12cffc60f4ad8be5f7758;p=mesa.git pan/midgard: Add OP_IS_CSEL_V helper ..to distinguish from scalar csel. Signed-off-by: Alyssa Rosenzweig --- 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 \ )