Module: Mesa Branch: master Commit: 81e7782e30a17e206098f2ddb9d01fc974441dc8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=81e7782e30a17e206098f2ddb9d01fc974441dc8
Author: Alyssa Rosenzweig <[email protected]> Date: Mon Jul 29 16:52:55 2019 -0700 pan/midgard: Add OP_IS_DERIVATIVE helper Signed-off-by: Alyssa Rosenzweig <[email protected]> --- 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) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
