summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-06-09 16:26:51 +1000
committerBen Skeggs <[email protected]>2008-06-29 15:46:16 +1000
commit6d0f7ea95475009ee17862786469f7b9a34a797f (patch)
tree42bc63e69269ae0b5d8a795ed5fd4a35cccf8abf
parent713ef6ccd2590bd866598bb6d4f646e9ec29ba78 (diff)
nv50: note some things discovered during renouveau session
-rw-r--r--src/gallium/drivers/nv50/nv50_program.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 592435585d9..0274545131e 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -28,10 +28,29 @@
* FUCK! watch dst==src vectors, can overwrite components that are needed.
* ie. SUB R0, R0.yzxw, R0
*
+ * MOV dst, -src
+ * "delta" tmp, -src (0xa0000204,0xe4004780 - delta r0, -r0)
+ * mov dst, tmp
+ *
* Things to check with renouveau:
- * SGE/SLT with needed src0/1 swap
* FP attr/result assignment - how?
- * FP/VP constbuf usage
+ * attrib
+ * - 0x16bc maps vp output onto fp hpos
+ * - 0x16c0 maps vp output onto fp col0
+ * result
+ * - colr always 0-3
+ * - depr always 4
+ * 0x16bc->0x16e8 --> some binding between vp/fp regs
+ * 0x16b8 --> VP output count
+ *
+ * 0x1298 --> "MOV rcol.x, fcol.y" "MOV depr, fcol.y" = 0x00000005
+ * "MOV rcol.x, fcol.y" = 0x00000004
+ * 0x19a8 --> as above but 0x00000100 and 0x00000000
+ * - 0x00100000 used when KIL used
+ * 0x196c --> as above but 0x00000011 and 0x00000000
+ *
+ * 0x1988 --> 0xXXNNNNNN
+ * - XX == FP high something
*/
struct nv50_reg {
enum {