aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bifrost.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost/bifrost/bifrost.h')
-rw-r--r--src/panfrost/bifrost/bifrost.h14
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