diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-01-23 20:54:14 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-27 13:38:41 +0000 |
commit | 556964d92701a2d854f5a0636ff15ec0e0cf2fd7 (patch) | |
tree | dfb8ab113c1b4a4e3a41d068e52fc9cc39bf7a7c | |
parent | 39939694772bd20e3ea32b8e248bdde901ff5748 (diff) |
pan/midgard: Record TEXTURE_OP_BARRIER
It's 0x0B for whatever reason.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3580>
-rw-r--r-- | src/panfrost/midgard/disassemble.c | 1 | ||||
-rw-r--r-- | src/panfrost/midgard/midgard.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/panfrost/midgard/disassemble.c b/src/panfrost/midgard/disassemble.c index 080877dbfe1..bfa42b17278 100644 --- a/src/panfrost/midgard/disassemble.c +++ b/src/panfrost/midgard/disassemble.c @@ -1251,6 +1251,7 @@ print_texture_op(FILE *fp, unsigned op, bool gather) DEFINE_CASE(TEXTURE_OP_NORMAL, "texture"); DEFINE_CASE(TEXTURE_OP_LOD, "textureLod"); DEFINE_CASE(TEXTURE_OP_TEXEL_FETCH, "texelFetch"); + DEFINE_CASE(TEXTURE_OP_BARRIER, "barrier"); DEFINE_CASE(TEXTURE_OP_DFDX, "dFdx"); DEFINE_CASE(TEXTURE_OP_DFDY, "dFdy"); diff --git a/src/panfrost/midgard/midgard.h b/src/panfrost/midgard/midgard.h index efb188f5b7e..e2ca42a0e1c 100644 --- a/src/panfrost/midgard/midgard.h +++ b/src/panfrost/midgard/midgard.h @@ -612,6 +612,9 @@ midgard_tex_register_select; #define TEXTURE_OP_LOD 0x12 /* textureLod */ #define TEXTURE_OP_TEXEL_FETCH 0x14 /* texelFetch */ +/* Implements barrier() */ +#define TEXTURE_OP_BARRIER 0x0B + /* Computes horizontal and vertical derivatives respectively. Use with a float * sampler and a "2D" texture. Leave texture/sampler IDs as zero; they ought * to be ignored. Only works for fp32 on 64-bit at a time, so derivatives of a |