From: Alyssa Rosenzweig Date: Mon, 29 Jul 2019 23:52:55 +0000 (-0700) Subject: pan/midgard: Add OP_IS_DERIVATIVE helper X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81e7782e30a17e206098f2ddb9d01fc974441dc8;p=platform%2Fupstream%2Fmesa.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 0cd2e71..9e8f964 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)