pan/midgard: Record TEXTURE_OP_BARRIER
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 24 Jan 2020 01:54:14 +0000 (20:54 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Jan 2020 13:38:41 +0000 (13:38 +0000)
It's 0x0B for whatever reason.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3580>

src/panfrost/midgard/disassemble.c
src/panfrost/midgard/midgard.h

index 080877dbfe17d81d1533cfbc3461097471a14562..bfa42b17278a172b85da50904df97390a88d4d69 100644 (file)
@@ -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");
 
index efb188f5b7ea92a41affeb972740a49333d81c09..e2ca42a0e1cc8d0b6657b24ce8436df68dd82125 100644 (file)
@@ -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