diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-02-11 15:58:18 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-02-16 09:16:47 -0500 |
commit | 9168e7a65deefae7bb8a40c583c205c408cbecab (patch) | |
tree | d8edc3f0491044a22b739b2b635e4096a5326040 /src/panfrost/midgard/midgard.h | |
parent | d208212f80effe4e2831fa408e976099317230b0 (diff) |
pan/midgard: Improve barrier disassembly
Just move some state from unknowns to actual keywords.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>
Diffstat (limited to 'src/panfrost/midgard/midgard.h')
-rw-r--r-- | src/panfrost/midgard/midgard.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/panfrost/midgard/midgard.h b/src/panfrost/midgard/midgard.h index 0f6ec698d8a..c022d47aabe 100644 --- a/src/panfrost/midgard/midgard.h +++ b/src/panfrost/midgard/midgard.h @@ -693,9 +693,14 @@ __attribute__((__packed__)) midgard_outmod_float outmod : 2; unsigned swizzle : 8; - unsigned unknown4 : 8; - unsigned unknownA : 4; + /* For barriers, control barriers are implied regardless, but these + * bits also enable memory barriers of various types. For regular + * textures, these bits are not yet understood. */ + unsigned barrier_buffer : 1; + unsigned barrier_shared : 1; + + unsigned unknown4 : 10; /* In immediate mode, each offset field is an immediate range [0, 7]. * @@ -765,8 +770,9 @@ __attribute__((__packed__)) unsigned zero2 : 14; unsigned zero3 : 24; - unsigned unknown4 : 1; - unsigned zero4 : 7; + unsigned buffer : 1; + unsigned shared : 1; + unsigned zero4 : 6; uint64_t zero5; } midgard_texture_barrier_word; |