summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_reg.h
diff options
context:
space:
mode:
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>2006-03-06 15:32:31 +0000
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>2006-03-06 15:32:31 +0000
commit5569c2dfaee4a93a835a14178a7baca865614c5c (patch)
tree26f2a0b8d8d563511ec22753d07614eb50a812b5 /src/mesa/drivers/dri/nouveau/nouveau_reg.h
parent98e1b13802fb83b504353c14df1d90646eabe111 (diff)
Cleaned up the software TCL code a bit. Renamed nv30_tris.[c,h] to
nv20_swtcl.[c,h].
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
+
+