From: Alyssa Rosenzweig Date: Mon, 29 Jul 2019 23:52:55 +0000 (-0700) Subject: pan/midgard: Add OP_IS_DERIVATIVE helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81e7782e30a17e206098f2ddb9d01fc974441dc8;p=mesa.git pan/midgard: Add OP_IS_DERIVATIVE helper Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h index 0cd2e71862c..9e8f964b00c 100644 --- a/src/panfrost/midgard/helpers.h +++ b/src/panfrost/midgard/helpers.h @@ -79,6 +79,11 @@ op == midgard_alu_op_fcsel \ ) +#define OP_IS_DERIVATIVE(op) ( \ + op == TEXTURE_OP_DFDX || \ + op == TEXTURE_OP_DFDY \ + ) + /* ALU control words are single bit fields with a lot of space */ #define ALU_ENAB_VEC_MUL (1 << 17)