summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_reg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_reg.h')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_reg.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_reg.h b/src/mesa/drivers/dri/nouveau/nouveau_reg.h
index 8b936a5cec..4f35283040 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_reg.h
+++ b/src/mesa/drivers/dri/nouveau/nouveau_reg.h
@@ -1,6 +1,6 @@
/**************************************************************************
-Copyright 2006 Stephane Marchesin
+Copyright 2006 Stephane Marchesin, Sylvain Munaut
All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
@@ -58,3 +58,14 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#define NV03_FIFO_CMD_JUMP_OFFSET_MASK 0x1ffffffc
#define NV03_FIFO_CMD_REWIND (NV03_FIFO_CMD_JUMP | (0 & NV03_FIFO_CMD_JUMP_OFFSET_MASK))
+/* Rendering commands */
+#define NV20_PRIMITIVE 0x000017fc
+#define NV30_PRIMITIVE 0x00001808
+#define NV20_BEGIN_VERTICES 0x00001818
+
+/* Vertex attributes */
+#define NV20_VERTEX_ATTRIBUTE(i) (0x00001760+i*4)
+#define NV30_VERTEX_ATTRIBUTES 0x00001740
+#define NV30_UNKNOWN_0 0x00001718
+
+