summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hd5xxx.rdb2
-rw-r--r--rdb.c18
2 files changed, 19 insertions, 1 deletions
diff --git a/hd5xxx.rdb b/hd5xxx.rdb
index 9bebeb7..b192a12 100644
--- a/hd5xxx.rdb
+++ b/hd5xxx.rdb
@@ -3170,7 +3170,7 @@ FLD 0 0x000000ff 0x00000000 0 VTX_REUSE_DEPTH
REG 0x00028c5c 0x00000104 0x00000010 32 0 1 0 VGT_OUT_DEALLOC_CNTL
FLD 0 0x0000007f 0x00000000 0 DEALLOC_DIST
REG 0x00028c60 0x00000104 0x00000001 32 0 8 60 CB_COLOR_BASE
-REG 0x00028c60 0x00000104 0x00000001 32 8 4 28 CB_COLOR_BASE
+REG 0x00028e40 0x00000104 0x00000001 32 8 4 28 CB_COLOR_BASE
REG 0x00028c64 0x00000104 0x00000001 32 0 8 60 CB_COLOR_PITCH
FLD 0 0x000007ff 0x00000000 0 TILE_MAX
REG 0x00028c64 0x00000104 0x00000001 32 8 4 28 CB_COLOR_PITCH
diff --git a/rdb.c b/rdb.c
index fcb0086..d912144 100644
--- a/rdb.c
+++ b/rdb.c
@@ -25,6 +25,24 @@
*
* author: Jerome Glisse
*/
+/* rdb format :
+ * REG 0x00028c60 0x00000104 0x00000001 32 0 8 60 CB_COLOR_BASE
+ * F0 F1 F2 F3 F4 F5 F6 F7 F8
+ *
+ * register:
+ * F0: REG for register
+ * F1: register offset
+ * F2: domain (io domain could be mmio, pio, or any special domain)
+ * F3: block (gpu block like cp engine, or some sub 3d block)
+ * F4: register size in bits
+ * F5: base index (for reg repeating base index for instance 0 here gave
+ * CB_COLOR_BASE0 at offset 0x28c60 but 4 gave
+ * CB_COLOR_BASE4 at offset 0x28c60)
+ * F6: repeat number of time this register is repeated from base index
+ * to base index + F6
+ * F7: stride number of byte separating 2 consecutive register
+ * F8: register name
+ */
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>