From 81e7782e30a17e206098f2ddb9d01fc974441dc8 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 29 Jul 2019 16:52:55 -0700 Subject: [PATCH] pan/midgard: Add OP_IS_DERIVATIVE helper Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/helpers.h | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.30.2