aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bifrost.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-19 21:45:18 -0400
committerMarge Bot <[email protected]>2020-03-22 03:32:35 +0000
commiteb590a98d2bc29e6b3fb0792d804d76904af6603 (patch)
tree5b506fe0f72b3dc4dc780bc6a20b08e6a7314902 /src/panfrost/bifrost/bifrost.h
parent50d3f4df452d870858ed5165eb917921273f241f (diff)
pan/bi: Pack a constant quadword
The piping isn't there to make use of it yet, but this stubs out constant support at the clause level. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
Diffstat (limited to 'src/panfrost/bifrost/bifrost.h')
-rw-r--r--src/panfrost/bifrost/bifrost.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h
index 5ec8c495465..b99115796d6 100644
--- a/src/panfrost/bifrost/bifrost.h
+++ b/src/panfrost/bifrost/bifrost.h
@@ -403,6 +403,16 @@ struct bifrost_fmt1 {
#define BIFROST_FMT1_FINAL 0b01001
#define BIFROST_FMT1_CONSTANTS 0b00001
+#define BIFROST_FMTC_CONSTANTS 0b0011
+#define BIFROST_FMTC_FINAL 0b0111
+
+struct bifrost_fmt_constant {
+ unsigned pos : 4;
+ unsigned tag : 4;
+ uint64_t imm_1 : 60;
+ uint64_t imm_2 : 60;
+} __attribute__((packed));
+
enum bifrost_reg_control {
BIFROST_WRITE_FMA_P2 = 1,
BIFROST_WRITE_FMA_P2_READ_P3 = 2,