diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-12 14:16:22 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-19 03:23:07 +0000 |
commit | 9269c85578bd68169681efad0fb2a3563eb280ab (patch) | |
tree | 227c5dd4364ad12ef9b31943eeecc2b2bd66d0b3 /src/panfrost/bifrost/bifrost.h | |
parent | 0c5aab626bb52670267381383c823f4fb204b3d8 (diff) |
pan/bi: Setup initial clause packing
At the moment, we just iterate the clauses in the post-RA, post-sched IR
and generate a dummy clause corresponding, passing the results to the
disassembler to verify.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4242>
Diffstat (limited to 'src/panfrost/bifrost/bifrost.h')
-rw-r--r-- | src/panfrost/bifrost/bifrost.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index d8a1cff089d..959c951e582 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -321,4 +321,18 @@ struct bifrost_branch { unsigned op : 5; }; +/* Clause packing */ + +struct bifrost_fmt1 { + unsigned ins_0 : 3; + unsigned tag : 5; + uint64_t ins_1 : 64; + unsigned ins_2 : 11; + uint64_t header : 45; +} __attribute__((packed)); + +#define BIFROST_FMT1_INSTRUCTIONS 0b00101 +#define BIFROST_FMT1_FINAL 0b01001 +#define BIFROST_FMT1_CONSTANTS 0b00001 + #endif |