aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs2010-04-09 05:38:34 -0500
committerBen Skeggs2010-04-09 05:38:34 -0500
commit204c76c4d62c06eceacd9d603f2bc3e2f8e84270 (patch)
tree63ebdad29bcb632d86cc796473a4b006110839a3 /nouveau
parent78de69713d742645c1c4347a06afca5b38f97184 (diff)
downloadlibdrm-204c76c4d62c06eceacd9d603f2bc3e2f8e84270.tar.gz
libdrm-204c76c4d62c06eceacd9d603f2bc3e2f8e84270.tar.xz
libdrm-204c76c4d62c06eceacd9d603f2bc3e2f8e84270.zip
nouveau: stop shipping nouveau_class.h
The motivation behind this is that by shipping it here, it's essentially an API which causes issues while bisecting across changes to the header files.
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/Makefile.am1
-rw-r--r--nouveau/nouveau_class.h9019
2 files changed, 0 insertions, 9020 deletions
diff --git a/nouveau/Makefile.am b/nouveau/Makefile.am
index b6d214af..de3f4df0 100644
--- a/nouveau/Makefile.am
+++ b/nouveau/Makefile.am
@@ -30,7 +30,6 @@ libdrm_nouveaucommoninclude_HEADERS = \
30 nouveau_pushbuf.h \ 30 nouveau_pushbuf.h \
31 nouveau_bo.h \ 31 nouveau_bo.h \
32 nouveau_resource.h \ 32 nouveau_resource.h \
33 nouveau_class.h \
34 nouveau_reloc.h 33 nouveau_reloc.h
35 34
36 35
diff --git a/nouveau/nouveau_class.h b/nouveau/nouveau_class.h
deleted file mode 100644
index 0167cbc3..00000000
--- a/nouveau/nouveau_class.h
+++ /dev/null
@@ -1,9019 +0,0 @@
1/*************************************************************************
2
3 Autogenerated file, do not edit !
4
5 This file was generated by renouveau-gen from renouveau.xml, the
6 XML database of nvidia objects and methods. renouveau-gen and
7 renouveau.xml can be found in CVS module renouveau of sourceforge.net
8 project nouveau:
9
10cvs -z3 -d:pserver:anonymous@nouveau.cvs.sourceforge.net:/cvsroot/nouveau co -P renouveau
11
12**************************************************************************
13
14 Copyright (C) 2006-2008 :
15 Dmitry Baryshkov,
16 Laurent Carlier,
17 Matthieu Castet,
18 Dawid Gajownik,
19 Jeremy Kolb,
20 Stephane Loeuillet,
21 Patrice Mandin,
22 Stephane Marchesin,
23 Serge Martin,
24 Sylvain Munaut,
25 Simon Raffeiner,
26 Ben Skeggs,
27 Erik Waling,
28 koala_br,
29
30All Rights Reserved.
31
32Permission is hereby granted, free of charge, to any person obtaining
33a copy of this software and associated documentation files (the
34"Software"), to deal in the Software without restriction, including
35without limitation the rights to use, copy, modify, merge, publish,
36distribute, sublicense, and/or sell copies of the Software, and to
37permit persons to whom the Software is furnished to do so, subject to
38the following conditions:
39
40The above copyright notice and this permission notice (including the
41next paragraph) shall be included in all copies or substantial
42portions of the Software.
43
44THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
45EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
46MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
47IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
48LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
49OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
50WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
51
52*************************************************************************/
53
54
55#ifndef NOUVEAU_REG_H
56#define NOUVEAU_REG_H 1
57
58
59#define NV01_ROOT 0x00000001
60
61
62
63#define NV01_CONTEXT_DMA 0x00000002
64
65
66
67#define NV01_DEVICE 0x00000003
68
69
70
71#define NV01_TIMER 0x00000004
72
73#define NV01_TIMER_SYNCHRONIZE 0x00000100
74#define NV01_TIMER_STOP_ALARM 0x00000104
75#define NV01_TIMER_DMA_NOTIFY 0x00000180
76#define NV01_TIMER_TIME(x) (0x00000300+((x)*4))
77#define NV01_TIMER_TIME__SIZE 0x00000002
78#define NV01_TIMER_ALARM_NOTIFY 0x00000308
79
80
81#define NV01_CONTEXT_BETA1 0x00000012
82
83#define NV01_CONTEXT_BETA1_NOP 0x00000100
84#define NV01_CONTEXT_BETA1_NOTIFY 0x00000104
85#define NV01_CONTEXT_BETA1_DMA_NOTIFY 0x00000180
86#define NV01_CONTEXT_BETA1_BETA_1D31 0x00000300
87
88
89#define NV01_CONTEXT_COLOR_KEY 0x00000017
90
91#define NV01_CONTEXT_COLOR_KEY_NOP 0x00000100
92#define NV01_CONTEXT_COLOR_KEY_NOTIFY 0x00000104
93#define NV01_CONTEXT_COLOR_KEY_DMA_NOTIFY 0x00000180
94#define NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT 0x00000300
95#define NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X16A8Y8 0x00000001
96#define NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X24Y8 0x00000002
97#define NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X16A1R5G5B5 0x00000003
98#define NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X17R5G5B5 0x00000004
99#define NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_A8R8G8B8 0x00000005
100#define NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X8R8G8B8 0x00000006
101#define NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_A16Y16 0x00000007
102#define NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X16Y16 0x00000008
103#define NV01_CONTEXT_COLOR_KEY_COLOR 0x00000304
104
105
106#define NV04_CONTEXT_COLOR_KEY 0x00000057
107
108
109
110#define NV01_CONTEXT_PATTERN 0x00000018
111
112#define NV01_CONTEXT_PATTERN_NOP 0x00000100
113#define NV01_CONTEXT_PATTERN_NOTIFY 0x00000104
114#define NV01_CONTEXT_PATTERN_DMA_NOTIFY 0x00000180
115#define NV01_CONTEXT_PATTERN_COLOR_FORMAT 0x00000300
116#define NV01_CONTEXT_PATTERN_MONOCHROME_FORMAT 0x00000304
117#define NV01_CONTEXT_PATTERN_SHAPE 0x00000308
118#define NV01_CONTEXT_PATTERN_COLOR(x) (0x00000310+((x)*4))
119#define NV01_CONTEXT_PATTERN_COLOR__SIZE 0x00000002
120#define NV01_CONTEXT_PATTERN_PATTERN(x) (0x00000318+((x)*4))
121#define NV01_CONTEXT_PATTERN_PATTERN__SIZE 0x00000002
122
123
124#define NV01_CONTEXT_CLIP_RECTANGLE 0x00000019
125
126#define NV01_CONTEXT_CLIP_RECTANGLE_NOP 0x00000100
127#define NV01_CONTEXT_CLIP_RECTANGLE_NOTIFY 0x00000104
128#define NV01_CONTEXT_CLIP_RECTANGLE_DMA_NOTIFY 0x00000180
129#define NV01_CONTEXT_CLIP_RECTANGLE_POINT 0x00000300
130#define NV01_CONTEXT_CLIP_RECTANGLE_POINT_X_SHIFT 0
131#define NV01_CONTEXT_CLIP_RECTANGLE_POINT_X_MASK 0x0000ffff
132#define NV01_CONTEXT_CLIP_RECTANGLE_POINT_Y_SHIFT 16
133#define NV01_CONTEXT_CLIP_RECTANGLE_POINT_Y_MASK 0xffff0000
134#define NV01_CONTEXT_CLIP_RECTANGLE_SIZE 0x00000304
135#define NV01_CONTEXT_CLIP_RECTANGLE_SIZE_W_SHIFT 0
136#define NV01_CONTEXT_CLIP_RECTANGLE_SIZE_W_MASK 0x0000ffff
137#define NV01_CONTEXT_CLIP_RECTANGLE_SIZE_H_SHIFT 16
138#define NV01_CONTEXT_CLIP_RECTANGLE_SIZE_H_MASK 0xffff0000
139
140
141#define NV01_RENDER_SOLID_LINE 0x0000001c
142
143#define NV01_RENDER_SOLID_LINE_NOP 0x00000100
144#define NV01_RENDER_SOLID_LINE_NOTIFY 0x00000104
145#define NV01_RENDER_SOLID_LINE_PATCH 0x0000010c
146#define NV01_RENDER_SOLID_LINE_DMA_NOTIFY 0x00000180
147#define NV01_RENDER_SOLID_LINE_CLIP_RECTANGLE 0x00000184
148#define NV01_RENDER_SOLID_LINE_PATTERN 0x00000188
149#define NV01_RENDER_SOLID_LINE_ROP 0x0000018c
150#define NV01_RENDER_SOLID_LINE_BETA1 0x00000190
151#define NV01_RENDER_SOLID_LINE_SURFACE 0x00000194
152#define NV01_RENDER_SOLID_LINE_OPERATION 0x000002fc
153#define NV01_RENDER_SOLID_LINE_OPERATION_SRCCOPY_AND 0x00000000
154#define NV01_RENDER_SOLID_LINE_OPERATION_ROP_AND 0x00000001
155#define NV01_RENDER_SOLID_LINE_OPERATION_BLEND_AND 0x00000002
156#define NV01_RENDER_SOLID_LINE_OPERATION_SRCCOPY 0x00000003
157#define NV01_RENDER_SOLID_LINE_OPERATION_SRCCOPY_PREMULT 0x00000004
158#define NV01_RENDER_SOLID_LINE_OPERATION_BLEND_PREMULT 0x00000005
159#define NV01_RENDER_SOLID_LINE_COLOR_FORMAT 0x00000300
160#define NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X16A8Y8 0x00000001
161#define NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X24Y8 0x00000002
162#define NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X16A1R5G5B5 0x00000003
163#define NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X17R5G5B5 0x00000004
164#define NV01_RENDER_SOLID_LINE_COLOR_FORMAT_A8R8G8B8 0x00000005
165#define NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X8R8G8B8 0x00000006
166#define NV01_RENDER_SOLID_LINE_COLOR_FORMAT_A16Y16 0x00000007
167#define NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X16Y16 0x00000008
168#define NV01_RENDER_SOLID_LINE_COLOR 0x00000304
169#define NV01_RENDER_SOLID_LINE_LINE_POINT0(x) (0x00000400+((x)*8))
170#define NV01_RENDER_SOLID_LINE_LINE_POINT0__SIZE 0x00000010
171#define NV01_RENDER_SOLID_LINE_LINE_POINT0_X_SHIFT 0
172#define NV01_RENDER_SOLID_LINE_LINE_POINT0_X_MASK 0x0000ffff
173#define NV01_RENDER_SOLID_LINE_LINE_POINT0_Y_SHIFT 16
174#define NV01_RENDER_SOLID_LINE_LINE_POINT0_Y_MASK 0xffff0000
175#define NV01_RENDER_SOLID_LINE_LINE_POINT1(x) (0x00000404+((x)*8))
176#define NV01_RENDER_SOLID_LINE_LINE_POINT1__SIZE 0x00000010
177#define NV01_RENDER_SOLID_LINE_LINE_POINT1_X_SHIFT 0
178#define NV01_RENDER_SOLID_LINE_LINE_POINT1_X_MASK 0x0000ffff
179#define NV01_RENDER_SOLID_LINE_LINE_POINT1_Y_SHIFT 16
180#define NV01_RENDER_SOLID_LINE_LINE_POINT1_Y_MASK 0xffff0000
181#define NV01_RENDER_SOLID_LINE_LINE32_POINT0_X(x) (0x00000480+((x)*16))
182#define NV01_RENDER_SOLID_LINE_LINE32_POINT0_X__SIZE 0x00000010
183#define NV01_RENDER_SOLID_LINE_LINE32_POINT0_Y(x) (0x00000484+((x)*16))
184#define NV01_RENDER_SOLID_LINE_LINE32_POINT0_Y__SIZE 0x00000010
185#define NV01_RENDER_SOLID_LINE_LINE32_POINT1_X(x) (0x00000488+((x)*16))
186#define NV01_RENDER_SOLID_LINE_LINE32_POINT1_X__SIZE 0x00000010
187#define NV01_RENDER_SOLID_LINE_LINE32_POINT1_Y(x) (0x0000048c+((x)*16))
188#define NV01_RENDER_SOLID_LINE_LINE32_POINT1_Y__SIZE 0x00000010
189#define NV01_RENDER_SOLID_LINE_POLYLINE(x) (0x00000500+((x)*4))
190#define NV01_RENDER_SOLID_LINE_POLYLINE__SIZE 0x00000020
191#define NV01_RENDER_SOLID_LINE_POLYLINE_X_SHIFT 0
192#define NV01_RENDER_SOLID_LINE_POLYLINE_X_MASK 0x0000ffff
193#define NV01_RENDER_SOLID_LINE_POLYLINE_Y_SHIFT 16
194#define NV01_RENDER_SOLID_LINE_POLYLINE_Y_MASK 0xffff0000
195#define NV01_RENDER_SOLID_LINE_POLYLINE32_POINT_X(x) (0x00000580+((x)*8))
196#define NV01_RENDER_SOLID_LINE_POLYLINE32_POINT_X__SIZE 0x00000010
197#define NV01_RENDER_SOLID_LINE_POLYLINE32_POINT_Y(x) (0x00000584+((x)*8))
198#define NV01_RENDER_SOLID_LINE_POLYLINE32_POINT_Y__SIZE 0x00000010
199#define NV01_RENDER_SOLID_LINE_CPOLYLINE_COLOR(x) (0x00000600+((x)*8))
200#define NV01_RENDER_SOLID_LINE_CPOLYLINE_COLOR__SIZE 0x00000010
201#define NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT(x) (0x00000604+((x)*8))
202#define NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT__SIZE 0x00000010
203#define NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT_X_SHIFT 0
204#define NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT_X_MASK 0x0000ffff
205#define NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT_Y_SHIFT 16
206#define NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT_Y_MASK 0xffff0000
207
208
209#define NV04_RENDER_SOLID_LINE 0x0000005c
210
211#define NV04_RENDER_SOLID_LINE_BETA4 0x00000194
212#define NV04_RENDER_SOLID_LINE_SURFACE 0x00000198
213
214
215#define NV01_RENDER_SOLID_TRIANGLE 0x0000001d
216
217#define NV01_RENDER_SOLID_TRIANGLE_NOP 0x00000100
218#define NV01_RENDER_SOLID_TRIANGLE_NOTIFY 0x00000104
219#define NV01_RENDER_SOLID_TRIANGLE_PATCH 0x0000010c
220#define NV01_RENDER_SOLID_TRIANGLE_DMA_NOTIFY 0x00000180
221#define NV01_RENDER_SOLID_TRIANGLE_CLIP_RECTANGLE 0x00000184
222#define NV01_RENDER_SOLID_TRIANGLE_PATTERN 0x00000188
223#define NV01_RENDER_SOLID_TRIANGLE_ROP 0x0000018c
224#define NV01_RENDER_SOLID_TRIANGLE_BETA1 0x00000190
225#define NV01_RENDER_SOLID_TRIANGLE_SURFACE 0x00000194
226#define NV01_RENDER_SOLID_TRIANGLE_OPERATION 0x000002fc
227#define NV01_RENDER_SOLID_TRIANGLE_OPERATION_SRCCOPY_AND 0x00000000
228#define NV01_RENDER_SOLID_TRIANGLE_OPERATION_ROP_AND 0x00000001
229#define NV01_RENDER_SOLID_TRIANGLE_OPERATION_BLEND_AND 0x00000002
230#define NV01_RENDER_SOLID_TRIANGLE_OPERATION_SRCCOPY 0x00000003
231#define NV01_RENDER_SOLID_TRIANGLE_OPERATION_SRCCOPY_PREMULT 0x00000004
232#define NV01_RENDER_SOLID_TRIANGLE_OPERATION_BLEND_PREMULT 0x00000005
233#define NV01_RENDER_SOLID_TRIANGLE_COLOR_FORMAT 0x00000300
234#define NV01_RENDER_SOLID_TRIANGLE_COLOR 0x00000304
235#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0 0x00000310
236#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0_X_SHIFT 0
237#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0_X_MASK 0x0000ffff
238#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0_Y_SHIFT 16
239#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0_Y_MASK 0xffff0000
240#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1 0x00000314
241#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1_X_SHIFT 0
242#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1_X_MASK 0x0000ffff
243#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1_Y_SHIFT 16
244#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1_Y_MASK 0xffff0000
245#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2 0x00000318
246#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2_X_SHIFT 0
247#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2_X_MASK 0x0000ffff
248#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2_Y_SHIFT 16
249#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2_Y_MASK 0xffff0000
250#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT0_X 0x00000320
251#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT0_Y 0x00000324
252#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT1_X 0x00000328
253#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT1_Y 0x0000032c
254#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT2_X 0x00000330
255#define NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT2_Y 0x00000334
256#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH(x) (0x00000400+((x)*4))
257#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH__SIZE 0x00000020
258#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH_X_SHIFT 0
259#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH_X_MASK 0x0000ffff
260#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH_Y_SHIFT 16
261#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH_Y_MASK 0xffff0000
262#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH32_POINT_X(x) (0x00000480+((x)*8))
263#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH32_POINT_X__SIZE 0x00000010
264#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH32_POINT_Y(x) (0x00000484+((x)*8))
265#define NV01_RENDER_SOLID_TRIANGLE_TRIMESH32_POINT_Y__SIZE 0x00000010
266#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_COLOR(x) (0x00000500+((x)*16))
267#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_COLOR__SIZE 0x00000008
268#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0(x) (0x00000504+((x)*16))
269#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0__SIZE 0x00000008
270#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0_X_SHIFT 0
271#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0_X_MASK 0x0000ffff
272#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0_Y_SHIFT 16
273#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0_Y_MASK 0xffff0000
274#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1(x) (0x00000508+((x)*16))
275#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1__SIZE 0x00000008
276#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1_X_SHIFT 0
277#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1_X_MASK 0x0000ffff
278#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1_Y_SHIFT 16
279#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1_Y_MASK 0xffff0000
280#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2(x) (0x0000050c+((x)*16))
281#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2__SIZE 0x00000008
282#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2_X_SHIFT 0
283#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2_X_MASK 0x0000ffff
284#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2_Y_SHIFT 16
285#define NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2_Y_MASK 0xffff0000
286#define NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_COLOR(x) (0x00000580+((x)*8))
287#define NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_COLOR__SIZE 0x00000010
288#define NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT(x) (0x00000584+((x)*8))
289#define NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT__SIZE 0x00000010
290#define NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT_X_SHIFT 0
291#define NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT_X_MASK 0x0000ffff
292#define NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT_Y_SHIFT 16
293#define NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT_Y_MASK 0xffff0000
294
295
296#define NV04_RENDER_SOLID_TRIANGLE 0x0000005d
297
298#define NV04_RENDER_SOLID_TRIANGLE_BETA4 0x00000194
299#define NV04_RENDER_SOLID_TRIANGLE_SURFACE 0x00000198
300
301
302#define NV01_RENDER_SOLID_RECTANGLE 0x0000001e
303
304#define NV01_RENDER_SOLID_RECTANGLE_NOP 0x00000100
305#define NV01_RENDER_SOLID_RECTANGLE_NOTIFY 0x00000104
306#define NV01_RENDER_SOLID_RECTANGLE_PATCH 0x0000010c
307#define NV01_RENDER_SOLID_RECTANGLE_DMA_NOTIFY 0x00000180
308#define NV01_RENDER_SOLID_RECTANGLE_CLIP_RECTANGLE 0x00000184
309#define NV01_RENDER_SOLID_RECTANGLE_PATTERN 0x00000188
310#define NV01_RENDER_SOLID_RECTANGLE_ROP 0x0000018c
311#define NV01_RENDER_SOLID_RECTANGLE_BETA1 0x00000190
312#define NV01_RENDER_SOLID_RECTANGLE_SURFACE 0x00000194
313#define NV01_RENDER_SOLID_RECTANGLE_OPERATION 0x000002fc
314#define NV01_RENDER_SOLID_RECTANGLE_OPERATION_SRCCOPY_AND 0x00000000
315#define NV01_RENDER_SOLID_RECTANGLE_OPERATION_ROP_AND 0x00000001
316#define NV01_RENDER_SOLID_RECTANGLE_OPERATION_BLEND_AND 0x00000002
317#define NV01_RENDER_SOLID_RECTANGLE_OPERATION_SRCCOPY 0x00000003
318#define NV01_RENDER_SOLID_RECTANGLE_OPERATION_SRCCOPY_PREMULT 0x00000004
319#define NV01_RENDER_SOLID_RECTANGLE_OPERATION_BLEND_PREMULT 0x00000005
320#define NV01_RENDER_SOLID_RECTANGLE_COLOR_FORMAT 0x00000300
321#define NV01_RENDER_SOLID_RECTANGLE_COLOR 0x00000304
322#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT(x) (0x00000400+((x)*8))
323#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT__SIZE 0x00000010
324#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT_X_SHIFT 0
325#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT_X_MASK 0x0000ffff
326#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT_Y_SHIFT 16
327#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT_Y_MASK 0xffff0000
328#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE(x) (0x00000404+((x)*8))
329#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE__SIZE 0x00000010
330#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE_W_SHIFT 0
331#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE_W_MASK 0x0000ffff
332#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE_H_SHIFT 16
333#define NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE_H_MASK 0xffff0000
334
335
336#define NV04_RENDER_SOLID_RECTANGLE 0x0000005e
337
338#define NV04_RENDER_SOLID_RECTANGLE_BETA4 0x00000194
339#define NV04_RENDER_SOLID_RECTANGLE_SURFACE 0x00000198
340
341
342#define NV01_IMAGE_BLIT 0x0000001f
343
344#define NV01_IMAGE_BLIT_NOP 0x00000100
345#define NV01_IMAGE_BLIT_NOTIFY 0x00000104
346#define NV01_IMAGE_BLIT_PATCH 0x0000010c
347#define NV01_IMAGE_BLIT_DMA_NOTIFY 0x00000180
348#define NV01_IMAGE_BLIT_COLOR_KEY 0x00000184
349#define NV01_IMAGE_BLIT_CLIP_RECTANGLE 0x00000188
350#define NV01_IMAGE_BLIT_PATTERN 0x0000018c
351#define NV01_IMAGE_BLIT_ROP 0x00000190
352#define NV01_IMAGE_BLIT_BETA1 0x00000194
353#define NV01_IMAGE_BLIT_SURFACE 0x0000019c
354#define NV01_IMAGE_BLIT_OPERATION 0x000002fc
355#define NV01_IMAGE_BLIT_OPERATION_SRCCOPY_AND 0x00000000
356#define NV01_IMAGE_BLIT_OPERATION_ROP_AND 0x00000001
357#define NV01_IMAGE_BLIT_OPERATION_BLEND_AND 0x00000002
358#define NV01_IMAGE_BLIT_OPERATION_SRCCOPY 0x00000003
359#define NV01_IMAGE_BLIT_OPERATION_SRCCOPY_PREMULT 0x00000004
360#define NV01_IMAGE_BLIT_OPERATION_BLEND_PREMULT 0x00000005
361#define NV01_IMAGE_BLIT_IMAGE_INPUT 0x00000204
362#define NV01_IMAGE_BLIT_POINT_IN 0x00000300
363#define NV01_IMAGE_BLIT_POINT_IN_X_SHIFT 0
364#define NV01_IMAGE_BLIT_POINT_IN_X_MASK 0x0000ffff
365#define NV01_IMAGE_BLIT_POINT_IN_Y_SHIFT 16
366#define NV01_IMAGE_BLIT_POINT_IN_Y_MASK 0xffff0000
367#define NV01_IMAGE_BLIT_POINT_OUT 0x00000304
368#define NV01_IMAGE_BLIT_POINT_OUT_X_SHIFT 0
369#define NV01_IMAGE_BLIT_POINT_OUT_X_MASK 0x0000ffff
370#define NV01_IMAGE_BLIT_POINT_OUT_Y_SHIFT 16
371#define NV01_IMAGE_BLIT_POINT_OUT_Y_MASK 0xffff0000
372#define NV01_IMAGE_BLIT_SIZE 0x00000308
373#define NV01_IMAGE_BLIT_SIZE_W_SHIFT 0
374#define NV01_IMAGE_BLIT_SIZE_W_MASK 0x0000ffff
375#define NV01_IMAGE_BLIT_SIZE_H_SHIFT 16
376#define NV01_IMAGE_BLIT_SIZE_H_MASK 0xffff0000
377
378
379#define NV04_IMAGE_BLIT 0x0000005f
380
381#define NV04_IMAGE_BLIT_ROP 0x00000190
382#define NV04_IMAGE_BLIT_BETA4 0x00000198
383#define NV04_IMAGE_BLIT_SURFACE 0x0000019c
384
385
386#define NV12_IMAGE_BLIT 0x0000009f
387
388#define NV12_IMAGE_BLIT_WAIT_FOR_IDLE 0x00000108
389
390
391#define NV01_IMAGE_FROM_CPU 0x00000021
392
393#define NV01_IMAGE_FROM_CPU_NOP 0x00000100
394#define NV01_IMAGE_FROM_CPU_NOTIFY 0x00000104
395#define NV01_IMAGE_FROM_CPU_PATCH 0x0000010c
396#define NV01_IMAGE_FROM_CPU_DMA_NOTIFY 0x00000180
397#define NV01_IMAGE_FROM_CPU_COLOR_KEY 0x00000184
398#define NV01_IMAGE_FROM_CPU_CLIP_RECTANGLE 0x00000188
399#define NV01_IMAGE_FROM_CPU_PATTERN 0x0000018c
400#define NV01_IMAGE_FROM_CPU_ROP 0x00000190
401#define NV01_IMAGE_FROM_CPU_BETA1 0x00000194
402#define NV01_IMAGE_FROM_CPU_SURFACE 0x00000198
403#define NV01_IMAGE_FROM_CPU_OPERATION 0x000002fc
404#define NV01_IMAGE_FROM_CPU_OPERATION_SRCCOPY_AND 0x00000000
405#define NV01_IMAGE_FROM_CPU_OPERATION_ROP_AND 0x00000001
406#define NV01_IMAGE_FROM_CPU_OPERATION_BLEND_AND 0x00000002
407#define NV01_IMAGE_FROM_CPU_OPERATION_SRCCOPY 0x00000003
408#define NV01_IMAGE_FROM_CPU_OPERATION_SRCCOPY_PREMULT 0x00000004
409#define NV01_IMAGE_FROM_CPU_OPERATION_BLEND_PREMULT 0x00000005
410#define NV01_IMAGE_FROM_CPU_COLOR_FORMAT 0x00000300
411#define NV01_IMAGE_FROM_CPU_COLOR_FORMAT_Y8 0x00000001
412#define NV01_IMAGE_FROM_CPU_COLOR_FORMAT_A1R5G5B5 0x00000002
413#define NV01_IMAGE_FROM_CPU_COLOR_FORMAT_X1R5G5B5 0x00000003
414#define NV01_IMAGE_FROM_CPU_COLOR_FORMAT_A8R8G8B8 0x00000004
415#define NV01_IMAGE_FROM_CPU_COLOR_FORMAT_X8R8G8B8 0x00000005
416#define NV01_IMAGE_FROM_CPU_POINT 0x00000304
417#define NV01_IMAGE_FROM_CPU_POINT_X_SHIFT 0
418#define NV01_IMAGE_FROM_CPU_POINT_X_MASK 0x0000ffff
419#define NV01_IMAGE_FROM_CPU_POINT_Y_SHIFT 16
420#define NV01_IMAGE_FROM_CPU_POINT_Y_MASK 0xffff0000
421#define NV01_IMAGE_FROM_CPU_SIZE_OUT 0x00000308
422#define NV01_IMAGE_FROM_CPU_SIZE_OUT_W_SHIFT 0
423#define NV01_IMAGE_FROM_CPU_SIZE_OUT_W_MASK 0x0000ffff
424#define NV01_IMAGE_FROM_CPU_SIZE_OUT_H_SHIFT 16
425#define NV01_IMAGE_FROM_CPU_SIZE_OUT_H_MASK 0xffff0000
426#define NV01_IMAGE_FROM_CPU_SIZE_IN 0x0000030c
427#define NV01_IMAGE_FROM_CPU_SIZE_IN_W_SHIFT 0
428#define NV01_IMAGE_FROM_CPU_SIZE_IN_W_MASK 0x0000ffff
429#define NV01_IMAGE_FROM_CPU_SIZE_IN_H_SHIFT 16
430#define NV01_IMAGE_FROM_CPU_SIZE_IN_H_MASK 0xffff0000
431#define NV01_IMAGE_FROM_CPU_COLOR(x) (0x00000400+((x)*4))
432#define NV01_IMAGE_FROM_CPU_COLOR__SIZE 0x00000020
433
434
435#define NV04_IMAGE_FROM_CPU 0x00000061
436
437#define NV04_IMAGE_FROM_CPU_BETA4 0x00000198
438#define NV04_IMAGE_FROM_CPU_SURFACE 0x0000019c
439
440
441#define NV05_IMAGE_FROM_CPU 0x00000065
442
443#define NV05_IMAGE_FROM_CPU_COLOR_CONVERSION 0x000002f8
444
445
446#define NV10_IMAGE_FROM_CPU 0x0000008a
447
448#define NV10_IMAGE_FROM_CPU_WAIT_FOR_IDLE 0x00000108
449
450
451#define NV30_IMAGE_FROM_CPU 0x0000038a
452
453
454
455#define NV40_IMAGE_FROM_CPU 0x0000308a
456
457
458
459#define NV01_NULL 0x00000030
460
461
462
463#define NV03_STRETCHED_IMAGE_FROM_CPU 0x00000036
464
465#define NV03_STRETCHED_IMAGE_FROM_CPU_NOP 0x00000100
466#define NV03_STRETCHED_IMAGE_FROM_CPU_NOTIFY 0x00000104
467#define NV03_STRETCHED_IMAGE_FROM_CPU_PATCH 0x0000010c
468#define NV03_STRETCHED_IMAGE_FROM_CPU_DMA_NOTIFY 0x00000180
469#define NV03_STRETCHED_IMAGE_FROM_CPU_COLOR_KEY 0x00000184
470#define NV03_STRETCHED_IMAGE_FROM_CPU_PATTERN 0x00000188
471#define NV03_STRETCHED_IMAGE_FROM_CPU_ROP 0x0000018c
472#define NV03_STRETCHED_IMAGE_FROM_CPU_BETA1 0x00000190
473#define NV03_STRETCHED_IMAGE_FROM_CPU_SURFACE 0x00000194
474#define NV03_STRETCHED_IMAGE_FROM_CPU_OPERATION 0x000002fc
475#define NV03_STRETCHED_IMAGE_FROM_CPU_COLOR_FORMAT 0x00000300
476#define NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN 0x00000304
477#define NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN_W_SHIFT 0
478#define NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN_W_MASK 0x0000ffff
479#define NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN_H_SHIFT 16
480#define NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN_H_MASK 0xffff0000
481#define NV03_STRETCHED_IMAGE_FROM_CPU_DX_DU 0x00000308
482#define NV03_STRETCHED_IMAGE_FROM_CPU_DY_DV 0x0000030c
483#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT 0x00000310
484#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT_X_SHIFT 0
485#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT_X_MASK 0x0000ffff
486#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT_Y_SHIFT 16
487#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT_Y_MASK 0xffff0000
488#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE 0x00000314
489#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE_W_SHIFT 0
490#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE_W_MASK 0x0000ffff
491#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE_H_SHIFT 16
492#define NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE_H_MASK 0xffff0000
493#define NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4 0x00000318
494#define NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4_X_SHIFT 0
495#define NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4_X_MASK 0x0000ffff
496#define NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4_Y_SHIFT 16
497#define NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4_Y_MASK 0xffff0000
498#define NV03_STRETCHED_IMAGE_FROM_CPU_COLOR(x) (0x00000400+((x)*4))
499#define NV03_STRETCHED_IMAGE_FROM_CPU_COLOR__SIZE 0x00000020
500
501
502#define NV04_STRETCHED_IMAGE_FROM_CPU 0x00000076
503
504#define NV04_STRETCHED_IMAGE_FROM_CPU_BETA4 0x00000194
505#define NV04_STRETCHED_IMAGE_FROM_CPU_SURFACE 0x00000198
506
507
508#define NV05_STRETCHED_IMAGE_FROM_CPU 0x00000066
509
510#define NV05_STRETCHED_IMAGE_FROM_CPU_COLOR_CONVERSION 0x000002f8
511
512
513#define NV30_STRETCHED_IMAGE_FROM_CPU 0x00000366
514
515
516
517#define NV40_STRETCHED_IMAGE_FROM_CPU 0x00003066
518
519
520
521#define NV03_SCALED_IMAGE_FROM_MEMORY 0x00000037
522
523#define NV03_SCALED_IMAGE_FROM_MEMORY_NOP 0x00000100
524#define NV03_SCALED_IMAGE_FROM_MEMORY_NOTIFY 0x00000104
525#define NV03_SCALED_IMAGE_FROM_MEMORY_DMA_NOTIFY 0x00000180
526#define NV03_SCALED_IMAGE_FROM_MEMORY_DMA_IMAGE 0x00000184
527#define NV03_SCALED_IMAGE_FROM_MEMORY_PATTERN 0x00000188
528#define NV03_SCALED_IMAGE_FROM_MEMORY_ROP 0x0000018c
529#define NV03_SCALED_IMAGE_FROM_MEMORY_BETA1 0x00000190
530#define NV03_SCALED_IMAGE_FROM_MEMORY_SURFACE 0x00000194
531#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT 0x00000300
532#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_A1R5G5B5 0x00000001
533#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_X1R5G5B5 0x00000002
534#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_A8R8G8B8 0x00000003
535#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_X8R8G8B8 0x00000004
536#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_V8YB8U8YA8 0x00000005
537#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_YB8V8YA8U8 0x00000006
538#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_R5G6B5 0x00000007
539#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_Y8 0x00000008
540#define NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_AY8 0x00000009
541#define NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION 0x00000304
542#define NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_SRCCOPY_AND 0x00000000
543#define NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_ROP_AND 0x00000001
544#define NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_BLEND_AND 0x00000002
545#define NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_SRCCOPY 0x00000003
546#define NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_SRCCOPY_PREMULT 0x00000004
547#define NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_BLEND_PREMULT 0x00000005
548#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT 0x00000308
549#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_X_SHIFT 0
550#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_X_MASK 0x0000ffff
551#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_Y_SHIFT 16
552#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_Y_MASK 0xffff0000
553#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE 0x0000030c
554#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_W_SHIFT 0
555#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_W_MASK 0x0000ffff
556#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_H_SHIFT 16
557#define NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_H_MASK 0xffff0000
558#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_POINT 0x00000310
559#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_POINT_X_SHIFT 0
560#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_POINT_X_MASK 0x0000ffff
561#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_POINT_Y_SHIFT 16
562#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_POINT_Y_MASK 0xffff0000
563#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE 0x00000314
564#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE_W_SHIFT 0
565#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE_W_MASK 0x0000ffff
566#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE_H_SHIFT 16
567#define NV03_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE_H_MASK 0xffff0000
568#define NV03_SCALED_IMAGE_FROM_MEMORY_DU_DX 0x00000318
569#define NV03_SCALED_IMAGE_FROM_MEMORY_DV_DY 0x0000031c
570#define NV03_SCALED_IMAGE_FROM_MEMORY_SIZE 0x00000400
571#define NV03_SCALED_IMAGE_FROM_MEMORY_SIZE_W_SHIFT 0
572#define NV03_SCALED_IMAGE_FROM_MEMORY_SIZE_W_MASK 0x0000ffff
573#define NV03_SCALED_IMAGE_FROM_MEMORY_SIZE_H_SHIFT 16
574#define NV03_SCALED_IMAGE_FROM_MEMORY_SIZE_H_MASK 0xffff0000
575#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT 0x00000404
576#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_PITCH_SHIFT 0
577#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_PITCH_MASK 0x0000ffff
578#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_SHIFT 16
579#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_MASK 0x00ff0000
580#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_CENTER 0x00010000
581#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_CORNER 0x00020000
582#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_SHIFT 24
583#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_MASK 0xff000000
584#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_POINT_SAMPLE 0x00000000
585#define NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_BILINEAR 0x01000000
586#define NV03_SCALED_IMAGE_FROM_MEMORY_OFFSET 0x00000408
587#define NV03_SCALED_IMAGE_FROM_MEMORY_POINT 0x0000040c
588#define NV03_SCALED_IMAGE_FROM_MEMORY_POINT_U_SHIFT 0
589#define NV03_SCALED_IMAGE_FROM_MEMORY_POINT_U_MASK 0x0000ffff
590#define NV03_SCALED_IMAGE_FROM_MEMORY_POINT_V_SHIFT 16
591#define NV03_SCALED_IMAGE_FROM_MEMORY_POINT_V_MASK 0xffff0000
592
593
594#define NV04_SCALED_IMAGE_FROM_MEMORY 0x00000077
595
596#define NV04_SCALED_IMAGE_FROM_MEMORY_BETA4 0x00000194
597#define NV04_SCALED_IMAGE_FROM_MEMORY_SURFACE 0x00000198
598
599
600#define NV05_SCALED_IMAGE_FROM_MEMORY 0x00000063
601
602#define NV05_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION 0x000002fc
603#define NV05_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION_DITHER 0x00000000
604#define NV05_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION_TRUNCATE 0x00000001
605#define NV05_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION_SUBTR_TRUNCATE 0x00000002
606
607
608#define NV10_SCALED_IMAGE_FROM_MEMORY 0x00000089
609
610#define NV10_SCALED_IMAGE_FROM_MEMORY_WAIT_FOR_IDLE 0x00000108
611
612
613#define NV30_SCALED_IMAGE_FROM_MEMORY 0x00000389
614
615
616
617#define NV40_SCALED_IMAGE_FROM_MEMORY 0x00003089
618
619
620
621#define NV04_DVD_SUBPICTURE 0x00000038
622
623#define NV04_DVD_SUBPICTURE_NOP 0x00000100
624#define NV04_DVD_SUBPICTURE_NOTIFY 0x00000104
625#define NV04_DVD_SUBPICTURE_DMA_NOTIFY 0x00000180
626#define NV04_DVD_SUBPICTURE_DMA_OVERLAY 0x00000184
627#define NV04_DVD_SUBPICTURE_DMA_IMAGEIN 0x00000188
628#define NV04_DVD_SUBPICTURE_DMA_IMAGEOUT 0x0000018c
629#define NV04_DVD_SUBPICTURE_IMAGEOUT_POINT 0x00000300
630#define NV04_DVD_SUBPICTURE_IMAGEOUT_POINT_X_SHIFT 0
631#define NV04_DVD_SUBPICTURE_IMAGEOUT_POINT_X_MASK 0x0000ffff
632#define NV04_DVD_SUBPICTURE_IMAGEOUT_POINT_Y_SHIFT 16
633#define NV04_DVD_SUBPICTURE_IMAGEOUT_POINT_Y_MASK 0xffff0000
634#define NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE 0x00000304
635#define NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE_W_SHIFT 0
636#define NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE_W_MASK 0x0000ffff
637#define NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE_H_SHIFT 16
638#define NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE_H_MASK 0xffff0000
639#define NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT 0x00000308
640#define NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT_PITCH_SHIFT 0
641#define NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT_PITCH_MASK 0x0000ffff
642#define NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT_COLOR_SHIFT 16
643#define NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT_COLOR_MASK 0xffff0000
644#define NV04_DVD_SUBPICTURE_IMAGEOUT_OFFSET 0x0000030c
645#define NV04_DVD_SUBPICTURE_IMAGEIN_DELTA_DU_DX 0x00000310
646#define NV04_DVD_SUBPICTURE_IMAGEIN_DELTA_DV_DY 0x00000314
647#define NV04_DVD_SUBPICTURE_IMAGEIN_SIZE 0x00000318
648#define NV04_DVD_SUBPICTURE_IMAGEIN_SIZE_W_SHIFT 0
649#define NV04_DVD_SUBPICTURE_IMAGEIN_SIZE_W_MASK 0x0000ffff
650#define NV04_DVD_SUBPICTURE_IMAGEIN_SIZE_H_SHIFT 16
651#define NV04_DVD_SUBPICTURE_IMAGEIN_SIZE_H_MASK 0xffff0000
652#define NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT 0x0000031c
653#define NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT_PITCH_SHIFT 0
654#define NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT_PITCH_MASK 0x0000ffff
655#define NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT_COLOR_SHIFT 16
656#define NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT_COLOR_MASK 0xffff0000
657#define NV04_DVD_SUBPICTURE_IMAGEIN_OFFSET 0x00000320
658#define NV04_DVD_SUBPICTURE_IMAGEIN_POINT 0x00000324
659#define NV04_DVD_SUBPICTURE_IMAGEIN_POINT_U_SHIFT 0
660#define NV04_DVD_SUBPICTURE_IMAGEIN_POINT_U_MASK 0x0000ffff
661#define NV04_DVD_SUBPICTURE_IMAGEIN_POINT_V_SHIFT 16
662#define NV04_DVD_SUBPICTURE_IMAGEIN_POINT_V_MASK 0xffff0000
663#define NV04_DVD_SUBPICTURE_OVERLAY_DELTA_DU_DX 0x00000328
664#define NV04_DVD_SUBPICTURE_OVERLAY_DELTA_DV_DY 0x0000032c
665#define NV04_DVD_SUBPICTURE_OVERLAY_SIZE 0x00000330
666#define NV04_DVD_SUBPICTURE_OVERLAY_SIZE_W_SHIFT 0
667#define NV04_DVD_SUBPICTURE_OVERLAY_SIZE_W_MASK 0x0000ffff
668#define NV04_DVD_SUBPICTURE_OVERLAY_SIZE_H_SHIFT 16
669#define NV04_DVD_SUBPICTURE_OVERLAY_SIZE_H_MASK 0xffff0000
670#define NV04_DVD_SUBPICTURE_OVERLAY_FORMAT 0x00000334
671#define NV04_DVD_SUBPICTURE_OVERLAY_FORMAT_PITCH_SHIFT 0
672#define NV04_DVD_SUBPICTURE_OVERLAY_FORMAT_PITCH_MASK 0x0000ffff
673#define NV04_DVD_SUBPICTURE_OVERLAY_FORMAT_COLOR_SHIFT 16
674#define NV04_DVD_SUBPICTURE_OVERLAY_FORMAT_COLOR_MASK 0xffff0000
675#define NV04_DVD_SUBPICTURE_OVERLAY_OFFSET 0x00000338
676#define NV04_DVD_SUBPICTURE_OVERLAY_POINT 0x0000033c
677#define NV04_DVD_SUBPICTURE_OVERLAY_POINT_U_SHIFT 0
678#define NV04_DVD_SUBPICTURE_OVERLAY_POINT_U_MASK 0x0000ffff
679#define NV04_DVD_SUBPICTURE_OVERLAY_POINT_V_SHIFT 16
680#define NV04_DVD_SUBPICTURE_OVERLAY_POINT_V_MASK 0xffff0000
681
682
683#define NV10_DVD_SUBPICTURE 0x00000088
684
685#define NV10_DVD_SUBPICTURE_WAIT_FOR_IDLE 0x00000108
686
687
688#define NV04_MEMORY_TO_MEMORY_FORMAT 0x00000039
689
690#define NV04_MEMORY_TO_MEMORY_FORMAT_NOP 0x00000100
691#define NV04_MEMORY_TO_MEMORY_FORMAT_NOTIFY 0x00000104
692#define NV04_MEMORY_TO_MEMORY_FORMAT_DMA_NOTIFY 0x00000180
693#define NV04_MEMORY_TO_MEMORY_FORMAT_DMA_BUFFER_IN 0x00000184
694#define NV04_MEMORY_TO_MEMORY_FORMAT_DMA_BUFFER_OUT 0x00000188
695#define NV04_MEMORY_TO_MEMORY_FORMAT_OFFSET_IN 0x0000030c
696#define NV04_MEMORY_TO_MEMORY_FORMAT_OFFSET_OUT 0x00000310
697#define NV04_MEMORY_TO_MEMORY_FORMAT_PITCH_IN 0x00000314
698#define NV04_MEMORY_TO_MEMORY_FORMAT_PITCH_OUT 0x00000318
699#define NV04_MEMORY_TO_MEMORY_FORMAT_LINE_LENGTH_IN 0x0000031c
700#define NV04_MEMORY_TO_MEMORY_FORMAT_LINE_COUNT 0x00000320
701#define NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT 0x00000324
702#define NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT_INPUT_INC_SHIFT 0
703#define NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT_INPUT_INC_MASK 0x000000ff
704#define NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT_OUTPUT_INC_SHIFT 8
705#define NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT_OUTPUT_INC_MASK 0x0000ff00
706#define NV04_MEMORY_TO_MEMORY_FORMAT_BUF_NOTIFY 0x00000328
707
708
709#define NV50_MEMORY_TO_MEMORY_FORMAT 0x00005039
710
711#define NV50_MEMORY_TO_MEMORY_FORMAT_SERIALIZE 0x00000110
712#define NV50_MEMORY_TO_MEMORY_FORMAT_LINEAR_IN 0x00000200
713#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_MODE_IN 0x00000204
714#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_PITCH_IN 0x00000208
715#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_HEIGHT_IN 0x0000020c
716#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_DEPTH_IN 0x00000210
717#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_IN_Z 0x00000214
718#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_IN 0x00000218
719#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_IN_X_SHIFT 0
720#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_IN_X_MASK 0x0000ffff
721#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_IN_Y_SHIFT 16
722#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_IN_Y_MASK 0xffff0000
723#define NV50_MEMORY_TO_MEMORY_FORMAT_LINEAR_OUT 0x0000021c
724#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_MODE_OUT 0x00000220
725#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_PITCH_OUT 0x00000224
726#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_HEIGHT_OUT 0x00000228
727#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_DEPTH_OUT 0x0000022c
728#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_OUT_Z 0x00000230
729#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_OUT 0x00000234
730#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_OUT_X_SHIFT 0
731#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_OUT_X_MASK 0x0000ffff
732#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_OUT_Y_SHIFT 16
733#define NV50_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_OUT_Y_MASK 0xffff0000
734#define NV50_MEMORY_TO_MEMORY_FORMAT_OFFSET_IN_HIGH 0x00000238
735#define NV50_MEMORY_TO_MEMORY_FORMAT_OFFSET_OUT_HIGH 0x0000023c
736
737
738#define NV01_MEMORY_LOCAL_BANKED 0x0000003d
739
740
741
742#define NV01_MAPPING_SYSTEM 0x0000003e
743
744
745
746#define NV03_MEMORY_LOCAL_CURSOR 0x0000003f
747
748
749
750#define NV01_MEMORY_LOCAL_LINEAR 0x00000040
751
752
753
754#define NV01_MAPPING_LOCAL 0x00000041
755
756
757
758#define NV04_CONTEXT_SURFACES_2D 0x00000042
759
760#define NV04_CONTEXT_SURFACES_2D_NOP 0x00000100
761#define NV04_CONTEXT_SURFACES_2D_NOTIFY 0x00000104
762#define NV04_CONTEXT_SURFACES_2D_PM_TRIGGER 0x00000140
763#define NV04_CONTEXT_SURFACES_2D_DMA_NOTIFY 0x00000180
764#define NV04_CONTEXT_SURFACES_2D_DMA_IMAGE_SOURCE 0x00000184
765#define NV04_CONTEXT_SURFACES_2D_DMA_IMAGE_DESTIN 0x00000188
766#define NV04_CONTEXT_SURFACES_2D_FORMAT 0x00000300
767#define NV04_CONTEXT_SURFACES_2D_FORMAT_Y8 0x00000001
768#define NV04_CONTEXT_SURFACES_2D_FORMAT_X1R5G5B5_Z1R5G5B5 0x00000002
769#define NV04_CONTEXT_SURFACES_2D_FORMAT_X1R5G5B5_X1R5G5B5 0x00000003
770#define NV04_CONTEXT_SURFACES_2D_FORMAT_R5G6B5 0x00000004
771#define NV04_CONTEXT_SURFACES_2D_FORMAT_Y16 0x00000005
772#define NV04_CONTEXT_SURFACES_2D_FORMAT_X8R8G8B8_Z8R8G8B8 0x00000006
773#define NV04_CONTEXT_SURFACES_2D_FORMAT_X8R8G8B8_X8R8G8B8 0x00000007
774#define NV04_CONTEXT_SURFACES_2D_FORMAT_X1A7R8G8B8_Z1A7R8G8B8 0x00000008
775#define NV04_CONTEXT_SURFACES_2D_FORMAT_X1A7R8G8B8_X1A7R8G8B8 0x00000009
776#define NV04_CONTEXT_SURFACES_2D_FORMAT_A8R8G8B8 0x0000000a
777#define NV04_CONTEXT_SURFACES_2D_FORMAT_Y32 0x0000000b
778#define NV04_CONTEXT_SURFACES_2D_PITCH 0x00000304
779#define NV04_CONTEXT_SURFACES_2D_PITCH_SOURCE_SHIFT 0
780#define NV04_CONTEXT_SURFACES_2D_PITCH_SOURCE_MASK 0x0000ffff
781#define NV04_CONTEXT_SURFACES_2D_PITCH_DESTIN_SHIFT 16
782#define NV04_CONTEXT_SURFACES_2D_PITCH_DESTIN_MASK 0xffff0000
783#define NV04_CONTEXT_SURFACES_2D_OFFSET_SOURCE 0x00000308
784#define NV04_CONTEXT_SURFACES_2D_OFFSET_DESTIN 0x0000030c
785
786
787#define NV10_CONTEXT_SURFACES_2D 0x00000062
788
789
790
791#define NV30_CONTEXT_SURFACES_2D 0x00000362
792
793
794
795#define NV40_CONTEXT_SURFACES_2D 0x00003062
796
797
798
799#define NV03_CONTEXT_ROP 0x00000043
800
801#define NV03_CONTEXT_ROP_NOP 0x00000100
802#define NV03_CONTEXT_ROP_NOTIFY 0x00000104
803#define NV03_CONTEXT_ROP_DMA_NOTIFY 0x00000180
804#define NV03_CONTEXT_ROP_ROP 0x00000300
805#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_SHIFT 0
806#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_MASK 0x0000000f
807#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_CLEAR 0x00000000
808#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_NOR 0x00000001
809#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_AND_INVERTED 0x00000002
810#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_COPY_INVERTED 0x00000003
811#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_AND_REVERSE 0x00000004
812#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_INVERT 0x00000005
813#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_XOR 0x00000006
814#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_NAND 0x00000007
815#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_AND 0x00000008
816#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_EQUI 0x00000009
817#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_NOOP 0x0000000a
818#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR_INVERTED 0x0000000b
819#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_COPY 0x0000000c
820#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR_REVERSE 0x0000000d
821#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR 0x0000000e
822#define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_SET 0x0000000f
823#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_SHIFT 4
824#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_MASK 0x000000f0
825#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_CLEAR 0x00000000
826#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_NOR 0x00000010
827#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_AND_INVERTED 0x00000020
828#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_COPY_INVERTED 0x00000030
829#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_AND_REVERSE 0x00000040
830#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_INVERT 0x00000050
831#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_XOR 0x00000060
832#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_NAND 0x00000070
833#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_AND 0x00000080
834#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_EQUI 0x00000090
835#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_NOOP 0x000000a0
836#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR_INVERTED 0x000000b0
837#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_COPY 0x000000c0
838#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR_REVERSE 0x000000d0
839#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR 0x000000e0
840#define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_SET 0x000000f0
841
842
843#define NV04_IMAGE_PATTERN 0x00000044
844
845#define NV04_IMAGE_PATTERN_NOP 0x00000100
846#define NV04_IMAGE_PATTERN_NOTIFY 0x00000104
847#define NV04_IMAGE_PATTERN_DMA_NOTIFY 0x00000180
848#define NV04_IMAGE_PATTERN_COLOR_FORMAT 0x00000300
849#define NV04_IMAGE_PATTERN_COLOR_FORMAT_A16R5G6B5 0x00000001
850#define NV04_IMAGE_PATTERN_COLOR_FORMAT_X16A1R5G5B5 0x00000002
851#define NV04_IMAGE_PATTERN_COLOR_FORMAT_A8R8G8B8 0x00000003
852#define NV04_IMAGE_PATTERN_MONOCHROME_FORMAT 0x00000304
853#define NV04_IMAGE_PATTERN_MONOCHROME_FORMAT_CGA6 0x00000001
854#define NV04_IMAGE_PATTERN_MONOCHROME_FORMAT_LE 0x00000002
855#define NV04_IMAGE_PATTERN_MONOCHROME_SHAPE 0x00000308
856#define NV04_IMAGE_PATTERN_MONOCHROME_SHAPE_8X8 0x00000000
857#define NV04_IMAGE_PATTERN_MONOCHROME_SHAPE_64X1 0x00000001
858#define NV04_IMAGE_PATTERN_MONOCHROME_SHAPE_1X64 0x00000002
859#define NV04_IMAGE_PATTERN_PATTERN_SELECT 0x0000030c
860#define NV04_IMAGE_PATTERN_PATTERN_SELECT_MONO 0x00000001
861#define NV04_IMAGE_PATTERN_PATTERN_SELECT_COLOR 0x00000002
862#define NV04_IMAGE_PATTERN_MONOCHROME_COLOR0 0x00000310
863#define NV04_IMAGE_PATTERN_MONOCHROME_COLOR1 0x00000314
864#define NV04_IMAGE_PATTERN_MONOCHROME_PATTERN0 0x00000318
865#define NV04_IMAGE_PATTERN_MONOCHROME_PATTERN1 0x0000031c
866#define NV04_IMAGE_PATTERN_PATTERN_Y8(x) (0x00000400+((x)*4))
867#define NV04_IMAGE_PATTERN_PATTERN_Y8__SIZE 0x00000010
868#define NV04_IMAGE_PATTERN_PATTERN_Y8_Y0_SHIFT 0
869#define NV04_IMAGE_PATTERN_PATTERN_Y8_Y0_MASK 0x000000ff
870#define NV04_IMAGE_PATTERN_PATTERN_Y8_Y1_SHIFT 8
871#define NV04_IMAGE_PATTERN_PATTERN_Y8_Y1_MASK 0x0000ff00
872#define NV04_IMAGE_PATTERN_PATTERN_Y8_Y2_SHIFT 16
873#define NV04_IMAGE_PATTERN_PATTERN_Y8_Y2_MASK 0x00ff0000
874#define NV04_IMAGE_PATTERN_PATTERN_Y8_Y3_SHIFT 24
875#define NV04_IMAGE_PATTERN_PATTERN_Y8_Y3_MASK 0xff000000
876#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5(x) (0x00000500+((x)*4))
877#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5__SIZE 0x00000020
878#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B0_SHIFT 0
879#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B0_MASK 0x0000001f
880#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G0_SHIFT 5
881#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G0_MASK 0x000007e0
882#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R0_SHIFT 11
883#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R0_MASK 0x0000f800
884#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B1_SHIFT 16
885#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B1_MASK 0x001f0000
886#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G1_SHIFT 21
887#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G1_MASK 0x07e00000
888#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R1_SHIFT 27
889#define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R1_MASK 0xf8000000
890#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5(x) (0x00000600+((x)*4))
891#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5__SIZE 0x00000020
892#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B0_SHIFT 0
893#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B0_MASK 0x0000001f
894#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G0_SHIFT 5
895#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G0_MASK 0x000003e0
896#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R0_SHIFT 10
897#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R0_MASK 0x00007c00
898#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B1_SHIFT 16
899#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B1_MASK 0x001f0000
900#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G1_SHIFT 21
901#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G1_MASK 0x03e00000
902#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R1_SHIFT 26
903#define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R1_MASK 0x7c000000
904#define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8(x) (0x00000700+((x)*4))
905#define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8__SIZE 0x00000040
906#define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_B_SHIFT 0
907#define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_B_MASK 0x000000ff
908#define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_G_SHIFT 8
909#define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_G_MASK 0x0000ff00
910#define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_R_SHIFT 16
911#define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_R_MASK 0x00ff0000
912
913
914#define NV03_VIDEO_LUT_CURSOR_DAC 0x00000046
915
916#define NV03_VIDEO_LUT_CURSOR_DAC_SYNCHRONIZE 0x00000100
917#define NV03_VIDEO_LUT_CURSOR_DAC_STOP_IMAGE 0x00000104
918#define NV03_VIDEO_LUT_CURSOR_DAC_STOP_CURSOR 0x00000108
919#define NV03_VIDEO_LUT_CURSOR_DAC_STOP_DAC 0x0000010c
920#define NV03_VIDEO_LUT_CURSOR_DAC_DMA_NOTIFY 0x00000180
921#define NV03_VIDEO_LUT_CURSOR_DAC_DMA_IMAGE(x) (0x00000184+((x)*4))
922#define NV03_VIDEO_LUT_CURSOR_DAC_DMA_IMAGE__SIZE 0x00000002
923#define NV03_VIDEO_LUT_CURSOR_DAC_DMA_LUT(x) (0x0000018c+((x)*4))
924#define NV03_VIDEO_LUT_CURSOR_DAC_DMA_LUT__SIZE 0x00000002
925#define NV03_VIDEO_LUT_CURSOR_DAC_DMA_CURSOR(x) (0x00000194+((x)*4))
926#define NV03_VIDEO_LUT_CURSOR_DAC_DMA_CURSOR__SIZE 0x00000002
927#define NV03_VIDEO_LUT_CURSOR_DAC_GET 0x000002fc
928#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_OFFSET(x) (0x00000300+((x)*8))
929#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_OFFSET__SIZE 0x00000002
930#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT(x) (0x00000304+((x)*8))
931#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT__SIZE 0x00000002
932#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_PITCH_SHIFT 0
933#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_PITCH_MASK 0x0000ffff
934#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_COLOR_SHIFT 16
935#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_COLOR_MASK 0x0fff0000
936#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_NOTIFY_SHIFT 28
937#define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_NOTIFY_MASK 0xf0000000
938#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_OFFSET(x) (0x00000340+((x)*12))
939#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_OFFSET__SIZE 0x00000002
940#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT(x) (0x00000344+((x)*12))
941#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT__SIZE 0x00000002
942#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_X_SHIFT 0
943#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_X_MASK 0x0000ffff
944#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_Y_SHIFT 16
945#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_Y_MASK 0xffff0000
946#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_FORMAT(x) (0x00000348+((x)*12))
947#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_FORMAT__SIZE 0x00000002
948#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A 0x00000358
949#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_X_SHIFT 0
950#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_X_MASK 0x0000ffff
951#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_Y_SHIFT 16
952#define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_Y_MASK 0xffff0000
953#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE(x) (0x00000380+((x)*16))
954#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE__SIZE 0x00000002
955#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_W_SHIFT 0
956#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_W_MASK 0x0000ffff
957#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_H_SHIFT 16
958#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_H_MASK 0xffff0000
959#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC(x) (0x00000384+((x)*16))
960#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC__SIZE 0x00000002
961#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_START_SHIFT 0
962#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_START_MASK 0x0000ffff
963#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_WIDTH_SHIFT 16
964#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_WIDTH_MASK 0x0fff0000
965#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_POLARITY_SHIFT 28
966#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_POLARITY_MASK 0xf0000000
967#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC(x) (0x00000388+((x)*16))
968#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC__SIZE 0x00000002
969#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_START_SHIFT 0
970#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_START_MASK 0x0000ffff
971#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_WIDTH_SHIFT 16
972#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_WIDTH_MASK 0x0fff0000
973#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_POLARITY_SHIFT 28
974#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_POLARITY_MASK 0xf0000000
975#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE(x) (0x0000038c+((x)*16))
976#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE__SIZE 0x00000002
977#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_WIDTH_SHIFT 0
978#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_WIDTH_MASK 0x0000ffff
979#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_HEIGHT_SHIFT 16
980#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_HEIGHT_MASK 0x0fff0000
981#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_NOTIFY_SHIFT 28
982#define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_NOTIFY_MASK 0xf0000000
983#define NV03_VIDEO_LUT_CURSOR_DAC_SET_PIXEL_CLOCK 0x000003a0
984
985
986#define NV03_TEXTURED_TRIANGLE 0x00000048
987
988#define NV03_TEXTURED_TRIANGLE_NOP 0x00000100
989#define NV03_TEXTURED_TRIANGLE_NOTIFY 0x00000104
990#define NV03_TEXTURED_TRIANGLE_PATCH 0x0000010c
991#define NV03_TEXTURED_TRIANGLE_DMA_NOTIFY 0x00000180
992#define NV03_TEXTURED_TRIANGLE_DMA_TEXTURE 0x00000184
993#define NV03_TEXTURED_TRIANGLE_CLIP_RECTANGLE 0x00000188
994#define NV03_TEXTURED_TRIANGLE_SURFACE 0x0000018c
995#define NV03_TEXTURED_TRIANGLE_TEXTURE_OFFSET 0x00000304
996#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT 0x00000308
997#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_SHIFT 0
998#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_MASK 0x0000ffff
999#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_SHIFT 16
1000#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_MASK 0x000f0000
1001#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_SHIFT 20
1002#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_MASK 0x00f00000
1003#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_SHIFT 24
1004#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_MASK 0x0f000000
1005#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_SHIFT 28
1006#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_MASK 0xf0000000
1007#define NV03_TEXTURED_TRIANGLE_FILTER 0x0000030c
1008#define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_X_SHIFT 0
1009#define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_X_MASK 0x0000001f
1010#define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_SHIFT 8
1011#define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_MASK 0x00001f00
1012#define NV03_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_SHIFT 16
1013#define NV03_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_MASK 0x00ff0000
1014#define NV03_TEXTURED_TRIANGLE_FOG_COLOR 0x00000310
1015#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_B_SHIFT 0
1016#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_B_MASK 0x000000ff
1017#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_G_SHIFT 8
1018#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_G_MASK 0x0000ff00
1019#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_R_SHIFT 16
1020#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_R_MASK 0x00ff0000
1021#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT 0x00000314
1022#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_SHIFT 0
1023#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_MASK 0x0000000f
1024#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_SHIFT 4
1025#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_MASK 0x00000030
1026#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_SHIFT 6
1027#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_MASK 0x000000c0
1028#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_SHIFT 8
1029#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_MASK 0x00000f00
1030#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_SHIFT 12
1031#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_MASK 0x00007000
1032#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_PERSPECTIVE_ENABLE (1 << 15)
1033#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_SHIFT 16
1034#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_MASK 0x000f0000
1035#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_SHIFT 20
1036#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_MASK 0x00f00000
1037#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_SHIFT 24
1038#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_MASK 0x07000000
1039#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_SHIFT 27
1040#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_MASK 0x18000000
1041#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_BETA (1 << 29)
1042#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_DST_BLEND (1 << 30)
1043#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_SRC_BLEND (1 << 31)
1044#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL 0x00000318
1045#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_SHIFT 0
1046#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_MASK 0x000000ff
1047#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_SHIFT 8
1048#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_MASK 0xffffff00
1049#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR(x) (0x00001000+((x)*32))
1050#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR__SIZE 0x00000080
1051#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I0_SHIFT 0
1052#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I0_MASK 0x0000000f
1053#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I1_SHIFT 4
1054#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I1_MASK 0x000000f0
1055#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I2_SHIFT 8
1056#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I2_MASK 0x00000f00
1057#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I3_SHIFT 12
1058#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I3_MASK 0x0000f000
1059#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I4_SHIFT 16
1060#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I4_MASK 0x000f0000
1061#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I5_SHIFT 20
1062#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I5_MASK 0x00f00000
1063#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_SHIFT 24
1064#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_MASK 0xff000000
1065#define NV03_TEXTURED_TRIANGLE_TLVERTEX_COLOR(x) (0x00001004+((x)*32))
1066#define NV03_TEXTURED_TRIANGLE_TLVERTEX_COLOR__SIZE 0x00000080
1067#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SX(x) (0x00001008+((x)*32))
1068#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SX__SIZE 0x00000080
1069#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SY(x) (0x0000100c+((x)*32))
1070#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SY__SIZE 0x00000080
1071#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SZ(x) (0x00001010+((x)*32))
1072#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SZ__SIZE 0x00000080
1073#define NV03_TEXTURED_TRIANGLE_TLVERTEX_RHW(x) (0x00001014+((x)*32))
1074#define NV03_TEXTURED_TRIANGLE_TLVERTEX_RHW__SIZE 0x00000080
1075#define NV03_TEXTURED_TRIANGLE_TLVERTEX_TU(x) (0x00001018+((x)*32))
1076#define NV03_TEXTURED_TRIANGLE_TLVERTEX_TU__SIZE 0x00000080
1077#define NV03_TEXTURED_TRIANGLE_TLVERTEX_TV(x) (0x0000101c+((x)*32))
1078#define NV03_TEXTURED_TRIANGLE_TLVERTEX_TV__SIZE 0x00000080
1079
1080
1081#define NV04_GDI_RECTANGLE_TEXT 0x0000004a
1082
1083#define NV04_GDI_RECTANGLE_TEXT_NOP 0x00000100
1084#define NV04_GDI_RECTANGLE_TEXT_NOTIFY 0x00000104
1085#define NV04_GDI_RECTANGLE_TEXT_PATCH 0x0000010c
1086#define NV04_GDI_RECTANGLE_TEXT_PM_TRIGGER 0x00000140
1087#define NV04_GDI_RECTANGLE_TEXT_DMA_NOTIFY 0x00000180
1088#define NV04_GDI_RECTANGLE_TEXT_DMA_FONTS 0x00000184
1089#define NV04_GDI_RECTANGLE_TEXT_PATTERN 0x00000188
1090#define NV04_GDI_RECTANGLE_TEXT_ROP 0x0000018c
1091#define NV04_GDI_RECTANGLE_TEXT_BETA1 0x00000190
1092#define NV04_GDI_RECTANGLE_TEXT_BETA4 0x00000194
1093#define NV04_GDI_RECTANGLE_TEXT_SURFACE 0x00000198
1094#define NV04_GDI_RECTANGLE_TEXT_OPERATION 0x000002fc
1095#define NV04_GDI_RECTANGLE_TEXT_OPERATION_SRCCOPY_AND 0x00000000
1096#define NV04_GDI_RECTANGLE_TEXT_OPERATION_ROP_AND 0x00000001
1097#define NV04_GDI_RECTANGLE_TEXT_OPERATION_BLEND_AND 0x00000002
1098#define NV04_GDI_RECTANGLE_TEXT_OPERATION_SRCCOPY 0x00000003
1099#define NV04_GDI_RECTANGLE_TEXT_OPERATION_SRCCOPY_PREMULT 0x00000004
1100#define NV04_GDI_RECTANGLE_TEXT_OPERATION_BLEND_PREMULT 0x00000005
1101#define NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT 0x00000300
1102#define NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT_A16R5G6B5 0x00000001
1103#define NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT_X16A1R5G5B5 0x00000002
1104#define NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT_A8R8G8B8 0x00000003
1105#define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT 0x00000304
1106#define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT_CGA6 0x00000001
1107#define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT_LE 0x00000002
1108#define NV04_GDI_RECTANGLE_TEXT_COLOR1_A 0x000003fc
1109#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT(x) (0x00000400+((x)*8))
1110#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT__SIZE 0x00000020
1111#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_SHIFT 0
1112#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_MASK 0x0000ffff
1113#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_SHIFT 16
1114#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_MASK 0xffff0000
1115#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE(x) (0x00000404+((x)*8))
1116#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE__SIZE 0x00000020
1117#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_SHIFT 0
1118#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_MASK 0x0000ffff
1119#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_SHIFT 16
1120#define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_MASK 0xffff0000
1121#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0 0x000005f4
1122#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_L_SHIFT 0
1123#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_L_MASK 0x0000ffff
1124#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_T_SHIFT 16
1125#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_T_MASK 0xffff0000
1126#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1 0x000005f8
1127#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_R_SHIFT 0
1128#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_R_MASK 0x0000ffff
1129#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_B_SHIFT 16
1130#define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_B_MASK 0xffff0000
1131#define NV04_GDI_RECTANGLE_TEXT_COLOR1_B 0x000005fc
1132#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0(x) (0x00000600+((x)*8))
1133#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0__SIZE 0x00000020
1134#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_SHIFT 0
1135#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_MASK 0x0000ffff
1136#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_SHIFT 16
1137#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_MASK 0xffff0000
1138#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1(x) (0x00000604+((x)*8))
1139#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1__SIZE 0x00000020
1140#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_SHIFT 0
1141#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_MASK 0x0000ffff
1142#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_SHIFT 16
1143#define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_MASK 0xffff0000
1144#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0 0x000007ec
1145#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_SHIFT 0
1146#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_MASK 0x0000ffff
1147#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_SHIFT 16
1148#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_MASK 0xffff0000
1149#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1 0x000007f0
1150#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_SHIFT 0
1151#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_MASK 0x0000ffff
1152#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_SHIFT 16
1153#define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_MASK 0xffff0000
1154#define NV04_GDI_RECTANGLE_TEXT_COLOR1_C 0x000007f4
1155#define NV04_GDI_RECTANGLE_TEXT_SIZE_C 0x000007f8
1156#define NV04_GDI_RECTANGLE_TEXT_SIZE_C_W_SHIFT 0
1157#define NV04_GDI_RECTANGLE_TEXT_SIZE_C_W_MASK 0x0000ffff
1158#define NV04_GDI_RECTANGLE_TEXT_SIZE_C_H_SHIFT 16
1159#define NV04_GDI_RECTANGLE_TEXT_SIZE_C_H_MASK 0xffff0000
1160#define NV04_GDI_RECTANGLE_TEXT_POINT_C 0x000007fc
1161#define NV04_GDI_RECTANGLE_TEXT_POINT_C_X_SHIFT 0
1162#define NV04_GDI_RECTANGLE_TEXT_POINT_C_X_MASK 0x0000ffff
1163#define NV04_GDI_RECTANGLE_TEXT_POINT_C_Y_SHIFT 16
1164#define NV04_GDI_RECTANGLE_TEXT_POINT_C_Y_MASK 0xffff0000
1165#define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C(x) (0x00000800+((x)*4))
1166#define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C__SIZE 0x00000080
1167#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0 0x00000be4
1168#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_SHIFT 0
1169#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_MASK 0x0000ffff
1170#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_SHIFT 16
1171#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_MASK 0xffff0000
1172#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1 0x00000be8
1173#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_SHIFT 0
1174#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_MASK 0x0000ffff
1175#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_SHIFT 16
1176#define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_MASK 0xffff0000
1177#define NV04_GDI_RECTANGLE_TEXT_COLOR0_E 0x00000bec
1178#define NV04_GDI_RECTANGLE_TEXT_COLOR1_E 0x00000bf0
1179#define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E 0x00000bf4
1180#define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_SHIFT 0
1181#define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_MASK 0x0000ffff
1182#define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_SHIFT 16
1183#define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_MASK 0xffff0000
1184#define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E 0x00000bf8
1185#define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_SHIFT 0
1186#define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_MASK 0x0000ffff
1187#define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_SHIFT 16
1188#define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_MASK 0xffff0000
1189#define NV04_GDI_RECTANGLE_TEXT_POINT_E 0x00000bfc
1190#define NV04_GDI_RECTANGLE_TEXT_POINT_E_X_SHIFT 0
1191#define NV04_GDI_RECTANGLE_TEXT_POINT_E_X_MASK 0x0000ffff
1192#define NV04_GDI_RECTANGLE_TEXT_POINT_E_Y_SHIFT 16
1193#define NV04_GDI_RECTANGLE_TEXT_POINT_E_Y_MASK 0xffff0000
1194#define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E(x) (0x00000c00+((x)*4))
1195#define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E__SIZE 0x00000080
1196#define NV04_GDI_RECTANGLE_TEXT_FONT_F 0x00000ff0
1197#define NV04_GDI_RECTANGLE_TEXT_FONT_F_OFFSET_SHIFT 0
1198#define NV04_GDI_RECTANGLE_TEXT_FONT_F_OFFSET_MASK 0x0fffffff
1199#define NV04_GDI_RECTANGLE_TEXT_FONT_F_PITCH_SHIFT 28
1200#define NV04_GDI_RECTANGLE_TEXT_FONT_F_PITCH_MASK 0xf0000000
1201#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0 0x00000ff4
1202#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_L_SHIFT 0
1203#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_L_MASK 0x0000ffff
1204#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_T_SHIFT 16
1205#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_T_MASK 0xffff0000
1206#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1 0x00000ff8
1207#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_R_SHIFT 0
1208#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_R_MASK 0x0000ffff
1209#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_B_SHIFT 16
1210#define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_B_MASK 0xffff0000
1211#define NV04_GDI_RECTANGLE_TEXT_COLOR1_F 0x00000ffc
1212#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F(x) (0x00001000+((x)*4))
1213#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F__SIZE 0x00000100
1214#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_INDEX_SHIFT 0
1215#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_INDEX_MASK 0x000000ff
1216#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_X_SHIFT 8
1217#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_X_MASK 0x000fff00
1218#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_Y_SHIFT 20
1219#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_Y_MASK 0xfff00000
1220#define NV04_GDI_RECTANGLE_TEXT_FONT_G 0x000017f0
1221#define NV04_GDI_RECTANGLE_TEXT_FONT_G_OFFSET_SHIFT 0
1222#define NV04_GDI_RECTANGLE_TEXT_FONT_G_OFFSET_MASK 0x0fffffff
1223#define NV04_GDI_RECTANGLE_TEXT_FONT_G_PITCH_SHIFT 28
1224#define NV04_GDI_RECTANGLE_TEXT_FONT_G_PITCH_MASK 0xf0000000
1225#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0 0x000017f4
1226#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_L_SHIFT 0
1227#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_L_MASK 0x0000ffff
1228#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_T_SHIFT 16
1229#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_T_MASK 0xffff0000
1230#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1 0x000017f8
1231#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_R_SHIFT 0
1232#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_R_MASK 0x0000ffff
1233#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_B_SHIFT 16
1234#define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_B_MASK 0xffff0000
1235#define NV04_GDI_RECTANGLE_TEXT_COLOR1_G 0x000017fc
1236#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT(x) (0x00001800+((x)*8))
1237#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT__SIZE 0x00000100
1238#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_X_SHIFT 0
1239#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_X_MASK 0x0000ffff
1240#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_Y_SHIFT 16
1241#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_Y_MASK 0xffff0000
1242#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_INDEX(x) (0x00001804+((x)*8))
1243#define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_INDEX__SIZE 0x00000100
1244
1245
1246#define NV03_GDI_RECTANGLE_TEXT 0x0000004b
1247
1248#define NV03_GDI_RECTANGLE_TEXT_NOP 0x00000100
1249#define NV03_GDI_RECTANGLE_TEXT_NOTIFY 0x00000104
1250#define NV03_GDI_RECTANGLE_TEXT_DMA_NOTIFY 0x00000180
1251#define NV03_GDI_RECTANGLE_TEXT_PATTERN 0x00000184
1252#define NV03_GDI_RECTANGLE_TEXT_ROP 0x00000188
1253#define NV03_GDI_RECTANGLE_TEXT_BETA1 0x0000018c
1254#define NV03_GDI_RECTANGLE_TEXT_SURFACE 0x00000190
1255#define NV03_GDI_RECTANGLE_TEXT_OPERATION 0x000002fc
1256#define NV03_GDI_RECTANGLE_TEXT_COLOR_FORMAT 0x00000300
1257#define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT 0x00000304
1258#define NV03_GDI_RECTANGLE_TEXT_COLOR1_A 0x000003fc
1259#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT 0x00000400
1260#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_SHIFT 0
1261#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_MASK 0x0000ffff
1262#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_SHIFT 16
1263#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_MASK 0xffff0000
1264#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE 0x00000404
1265#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_SHIFT 0
1266#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_MASK 0x0000ffff
1267#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_SHIFT 16
1268#define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_MASK 0xffff0000
1269#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B 0x000007f4
1270#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_L_SHIFT 0
1271#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_L_MASK 0x0000ffff
1272#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_T_SHIFT 16
1273#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_T_MASK 0xffff0000
1274#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B 0x000007f8
1275#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_R_SHIFT 0
1276#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_R_MASK 0x0000ffff
1277#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_B_SHIFT 16
1278#define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_B_MASK 0xffff0000
1279#define NV03_GDI_RECTANGLE_TEXT_COLOR1_B 0x000007fc
1280#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0 0x00000800
1281#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_SHIFT 0
1282#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_MASK 0x0000ffff
1283#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_SHIFT 16
1284#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_MASK 0xffff0000
1285#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1 0x00000804
1286#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_SHIFT 0
1287#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_MASK 0x0000ffff
1288#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_SHIFT 16
1289#define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_MASK 0xffff0000
1290#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0 0x00000bec
1291#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_SHIFT 0
1292#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_MASK 0x0000ffff
1293#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_SHIFT 16
1294#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_MASK 0xffff0000
1295#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1 0x00000bf0
1296#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_SHIFT 0
1297#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_MASK 0x0000ffff
1298#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_SHIFT 16
1299#define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_MASK 0xffff0000
1300#define NV03_GDI_RECTANGLE_TEXT_COLOR1_C 0x00000bf4
1301#define NV03_GDI_RECTANGLE_TEXT_SIZE_C 0x00000bf8
1302#define NV03_GDI_RECTANGLE_TEXT_SIZE_C_W_SHIFT 0
1303#define NV03_GDI_RECTANGLE_TEXT_SIZE_C_W_MASK 0x0000ffff
1304#define NV03_GDI_RECTANGLE_TEXT_SIZE_C_H_SHIFT 16
1305#define NV03_GDI_RECTANGLE_TEXT_SIZE_C_H_MASK 0xffff0000
1306#define NV03_GDI_RECTANGLE_TEXT_POINT_C 0x00000bfc
1307#define NV03_GDI_RECTANGLE_TEXT_POINT_C_X_SHIFT 0
1308#define NV03_GDI_RECTANGLE_TEXT_POINT_C_X_MASK 0x0000ffff
1309#define NV03_GDI_RECTANGLE_TEXT_POINT_C_Y_SHIFT 16
1310#define NV03_GDI_RECTANGLE_TEXT_POINT_C_Y_MASK 0xffff0000
1311#define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C(x) (0x00000c00+((x)*4))
1312#define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C__SIZE 0x00000020
1313#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0 0x00000fe8
1314#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_L_SHIFT 0
1315#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_L_MASK 0x0000ffff
1316#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_T_SHIFT 16
1317#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_T_MASK 0xffff0000
1318#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1 0x00000fec
1319#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_R_SHIFT 0
1320#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_R_MASK 0x0000ffff
1321#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_B_SHIFT 16
1322#define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_B_MASK 0xffff0000
1323#define NV03_GDI_RECTANGLE_TEXT_COLOR1_D 0x00000ff0
1324#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D 0x00000ff4
1325#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_W_SHIFT 0
1326#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_W_MASK 0x0000ffff
1327#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_H_SHIFT 16
1328#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_H_MASK 0xffff0000
1329#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D 0x00000ff8
1330#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_W_SHIFT 0
1331#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_W_MASK 0x0000ffff
1332#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_H_SHIFT 16
1333#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_H_MASK 0xffff0000
1334#define NV03_GDI_RECTANGLE_TEXT_POINT_D 0x00000ffc
1335#define NV03_GDI_RECTANGLE_TEXT_POINT_D_X_SHIFT 0
1336#define NV03_GDI_RECTANGLE_TEXT_POINT_D_X_MASK 0x0000ffff
1337#define NV03_GDI_RECTANGLE_TEXT_POINT_D_Y_SHIFT 16
1338#define NV03_GDI_RECTANGLE_TEXT_POINT_D_Y_MASK 0xffff0000
1339#define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_D(x) (0x00001000+((x)*4))
1340#define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_D__SIZE 0x00000020
1341#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0 0x000013e4
1342#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_SHIFT 0
1343#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_MASK 0x0000ffff
1344#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_SHIFT 16
1345#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_MASK 0xffff0000
1346#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1 0x000013e8
1347#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_SHIFT 0
1348#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_MASK 0x0000ffff
1349#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_SHIFT 16
1350#define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_MASK 0xffff0000
1351#define NV03_GDI_RECTANGLE_TEXT_COLOR0_E 0x000013ec
1352#define NV03_GDI_RECTANGLE_TEXT_COLOR1_E 0x000013f0
1353#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E 0x000013f4
1354#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_SHIFT 0
1355#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_MASK 0x0000ffff
1356#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_SHIFT 16
1357#define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_MASK 0xffff0000
1358#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E 0x000013f8
1359#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_SHIFT 0
1360#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_MASK 0x0000ffff
1361#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_SHIFT 16
1362#define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_MASK 0xffff0000
1363#define NV03_GDI_RECTANGLE_TEXT_POINT_E 0x000013fc
1364#define NV03_GDI_RECTANGLE_TEXT_POINT_E_X_SHIFT 0
1365#define NV03_GDI_RECTANGLE_TEXT_POINT_E_X_MASK 0x0000ffff
1366#define NV03_GDI_RECTANGLE_TEXT_POINT_E_Y_SHIFT 16
1367#define NV03_GDI_RECTANGLE_TEXT_POINT_E_Y_MASK 0xffff0000
1368#define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E(x) (0x00001400+((x)*4))
1369#define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E__SIZE 0x00000020
1370
1371
1372#define NV04_SWIZZLED_SURFACE 0x00000052
1373
1374#define NV04_SWIZZLED_SURFACE_NOP 0x00000100
1375#define NV04_SWIZZLED_SURFACE_NOTIFY 0x00000104
1376#define NV04_SWIZZLED_SURFACE_DMA_NOTIFY 0x00000180
1377#define NV04_SWIZZLED_SURFACE_DMA_IMAGE 0x00000184
1378#define NV04_SWIZZLED_SURFACE_FORMAT 0x00000300
1379#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_SHIFT 0
1380#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_MASK 0x000000ff
1381#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_Y8 0x00000001
1382#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1R5G5B5_Z1R5G5B5 0x00000002
1383#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1R5G5B5_X1R5G5B5 0x00000003
1384#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_R5G6B5 0x00000004
1385#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_Y16 0x00000005
1386#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X8R8G8B8_Z8R8G8B8 0x00000006
1387#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X8R8G8B8_X8R8G8B8 0x00000007
1388#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1A7R8G8B8_Z1A7R8G8B8 0x00000008
1389#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1A7R8G8B8_X1A7R8G8B8 0x00000009
1390#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_A8R8G8B8 0x0000000a
1391#define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_Y32 0x0000000b
1392#define NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_U_SHIFT 16
1393#define NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_U_MASK 0x00ff0000
1394#define NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_V_SHIFT 24
1395#define NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_V_MASK 0xff000000
1396#define NV04_SWIZZLED_SURFACE_OFFSET 0x00000304
1397
1398
1399#define NV20_SWIZZLED_SURFACE 0x0000009e
1400
1401
1402
1403#define NV30_SWIZZLED_SURFACE 0x0000039e
1404
1405
1406
1407#define NV40_SWIZZLED_SURFACE 0x0000309e
1408
1409
1410
1411#define NV04_CONTEXT_SURFACES_3D 0x00000053
1412
1413#define NV04_CONTEXT_SURFACES_3D_NOP 0x00000100
1414#define NV04_CONTEXT_SURFACES_3D_NOTIFY 0x00000104
1415#define NV04_CONTEXT_SURFACES_3D_DMA_NOTIFY 0x00000180
1416#define NV04_CONTEXT_SURFACES_3D_DMA_COLOR 0x00000184
1417#define NV04_CONTEXT_SURFACES_3D_DMA_ZETA 0x00000188
1418#define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL 0x000002f8
1419#define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_X_SHIFT 0
1420#define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_X_MASK 0x0000ffff
1421#define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_W_SHIFT 16
1422#define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_W_MASK 0xffff0000
1423#define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL 0x000002fc
1424#define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_Y_SHIFT 0
1425#define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_Y_MASK 0x0000ffff
1426#define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_H_SHIFT 16
1427#define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_H_MASK 0xffff0000
1428#define NV04_CONTEXT_SURFACES_3D_FORMAT 0x00000300
1429#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_SHIFT 0
1430#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_MASK 0x000000ff
1431#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1R5G5B5_Z1R5G5B5 0x00000001
1432#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1R5G5B5_X1R5G5B5 0x00000002
1433#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_R5G6B5 0x00000003
1434#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X8R8G8B8_Z8R8G8B8 0x00000004
1435#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X8R8G8B8_X8R8G8B8 0x00000005
1436#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1A7R8G8B8_Z1A7R8G8B8 0x00000006
1437#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1A7R8G8B8_X1A7R8G8B8 0x00000007
1438#define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_A8R8G8B8 0x00000008
1439#define NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_SHIFT 8
1440#define NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_MASK 0x0000ff00
1441#define NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_PITCH 0x00000100
1442#define NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_SWIZZLE 0x00000200
1443#define NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_U_SHIFT 16
1444#define NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_U_MASK 0x00ff0000
1445#define NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_V_SHIFT 24
1446#define NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_V_MASK 0xff000000
1447#define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE 0x00000304
1448#define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_W_SHIFT 0
1449#define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_W_MASK 0x0000ffff
1450#define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_H_SHIFT 16
1451#define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_H_MASK 0xffff0000
1452#define NV04_CONTEXT_SURFACES_3D_PITCH 0x00000308
1453#define NV04_CONTEXT_SURFACES_3D_PITCH_COLOR_SHIFT 0
1454#define NV04_CONTEXT_SURFACES_3D_PITCH_COLOR_MASK 0x0000ffff
1455#define NV04_CONTEXT_SURFACES_3D_PITCH_ZETA_SHIFT 16
1456#define NV04_CONTEXT_SURFACES_3D_PITCH_ZETA_MASK 0xffff0000
1457#define NV04_CONTEXT_SURFACES_3D_OFFSET_COLOR 0x0000030c
1458#define NV04_CONTEXT_SURFACES_3D_OFFSET_ZETA 0x00000310
1459
1460
1461#define NV10_CONTEXT_SURFACES_3D 0x00000093
1462
1463
1464
1465#define NV04_TEXTURED_TRIANGLE 0x00000054
1466
1467#define NV04_TEXTURED_TRIANGLE_NOP 0x00000100
1468#define NV04_TEXTURED_TRIANGLE_NOTIFY 0x00000104
1469#define NV04_TEXTURED_TRIANGLE_DMA_NOTIFY 0x00000180
1470#define NV04_TEXTURED_TRIANGLE_DMA_A 0x00000184
1471#define NV04_TEXTURED_TRIANGLE_DMA_B 0x00000188
1472#define NV04_TEXTURED_TRIANGLE_SURFACE 0x0000018c
1473#define NV04_TEXTURED_TRIANGLE_COLORKEY 0x00000300
1474#define NV04_TEXTURED_TRIANGLE_OFFSET 0x00000304
1475#define NV04_TEXTURED_TRIANGLE_FORMAT 0x00000308
1476#define NV04_TEXTURED_TRIANGLE_FORMAT_DMA_A (1 << 0)
1477#define NV04_TEXTURED_TRIANGLE_FORMAT_DMA_B (1 << 1)
1478#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_SHIFT 2
1479#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_MASK 0x0000000c
1480#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT 4
1481#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK 0x00000030
1482#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CENTER 0x00000010
1483#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CORNER 0x00000020
1484#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT 6
1485#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_MASK 0x000000c0
1486#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CENTER 0x00000040
1487#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CORNER 0x00000080
1488#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_SHIFT 8
1489#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_MASK 0x00000f00
1490#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_Y8 0x00000100
1491#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_A1R5G5B5 0x00000200
1492#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_X1R5G5B5 0x00000300
1493#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_A4R4G4B4 0x00000400
1494#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_R5G6B5 0x00000500
1495#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_A8R8G8B8 0x00000600
1496#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_X8R8G8B8 0x00000700
1497#define NV04_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT 12
1498#define NV04_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK 0x0000f000
1499#define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT 16
1500#define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_MASK 0x000f0000
1501#define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT 20
1502#define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_MASK 0x00f00000
1503#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_SHIFT 24
1504#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MASK 0x07000000
1505#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_REPEAT 0x01000000
1506#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MIRRORED_REPEAT 0x02000000
1507#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_EDGE 0x03000000
1508#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_BORDER 0x04000000
1509#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP 0x05000000
1510#define NV04_TEXTURED_TRIANGLE_FORMAT_WRAPU (1 << 27)
1511#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_SHIFT 28
1512#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MASK 0x70000000
1513#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_REPEAT 0x10000000
1514#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MIRRORED_REPEAT 0x20000000
1515#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_EDGE 0x30000000
1516#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_BORDER 0x40000000
1517#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP 0x50000000
1518#define NV04_TEXTURED_TRIANGLE_FORMAT_WRAPV (1 << 31)
1519#define NV04_TEXTURED_TRIANGLE_FILTER 0x0000030c
1520#define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT 0
1521#define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK 0x000000ff
1522#define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT 8
1523#define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK 0x00007f00
1524#define NV04_TEXTURED_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE (1 << 15)
1525#define NV04_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT 16
1526#define NV04_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK 0x00ff0000
1527#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_SHIFT 24
1528#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_MASK 0x07000000
1529#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST 0x01000000
1530#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR 0x02000000
1531#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST 0x03000000
1532#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST 0x04000000
1533#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR 0x05000000
1534#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR 0x06000000
1535#define NV04_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE (1 << 27)
1536#define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_SHIFT 28
1537#define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_MASK 0x70000000
1538#define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_NEAREST 0x10000000
1539#define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_LINEAR 0x20000000
1540#define NV04_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE (1 << 31)
1541#define NV04_TEXTURED_TRIANGLE_BLEND 0x00000310
1542#define NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_SHIFT 0
1543#define NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_MASK 0x0000000f
1544#define NV04_TEXTURED_TRIANGLE_BLEND_MASK_BIT_SHIFT 4
1545#define NV04_TEXTURED_TRIANGLE_BLEND_MASK_BIT_MASK 0x00000030
1546#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_SHIFT 6
1547#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_MASK 0x000000c0
1548#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_FLAT 0x00000040
1549#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_GOURAUD 0x00000080
1550#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_PHONG 0x000000c0
1551#define NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE (1 << 8)
1552#define NV04_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE (1 << 12)
1553#define NV04_TEXTURED_TRIANGLE_BLEND_FOG_ENABLE (1 << 16)
1554#define NV04_TEXTURED_TRIANGLE_BLEND_BLEND_ENABLE (1 << 20)
1555#define NV04_TEXTURED_TRIANGLE_BLEND_SRC_SHIFT 24
1556#define NV04_TEXTURED_TRIANGLE_BLEND_SRC_MASK 0x0f000000
1557#define NV04_TEXTURED_TRIANGLE_BLEND_DST_SHIFT 28
1558#define NV04_TEXTURED_TRIANGLE_BLEND_DST_MASK 0xf0000000
1559#define NV04_TEXTURED_TRIANGLE_CONTROL 0x00000314
1560#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_SHIFT 0
1561#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_MASK 0x000000ff
1562#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_SHIFT 8
1563#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_MASK 0x00000f00
1564#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_ENABLE (1 << 12)
1565#define NV04_TEXTURED_TRIANGLE_CONTROL_ORIGIN (1 << 13)
1566#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_ENABLE (1 << 14)
1567#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_SHIFT 16
1568#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_MASK 0x000f0000
1569#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_SHIFT 20
1570#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_MASK 0x00300000
1571#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_BOTH 0x00000000
1572#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_NONE 0x00100000
1573#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_CW 0x00200000
1574#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_CCW 0x00300000
1575#define NV04_TEXTURED_TRIANGLE_CONTROL_DITHER_ENABLE (1 << 22)
1576#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_PERSPECTIVE_ENABLE (1 << 23)
1577#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_WRITE (1 << 24)
1578#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_SHIFT 30
1579#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_MASK 0xc0000000
1580#define NV04_TEXTURED_TRIANGLE_FOGCOLOR 0x00000318
1581#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_B_SHIFT 0
1582#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_B_MASK 0x000000ff
1583#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_G_SHIFT 8
1584#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_G_MASK 0x0000ff00
1585#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_R_SHIFT 16
1586#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_R_MASK 0x00ff0000
1587#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_A_SHIFT 24
1588#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_A_MASK 0xff000000
1589#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SX(x) (0x00000400+((x)*32))
1590#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SX__SIZE 0x00000010
1591#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SY(x) (0x00000404+((x)*32))
1592#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SY__SIZE 0x00000010
1593#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SZ(x) (0x00000408+((x)*32))
1594#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SZ__SIZE 0x00000010
1595#define NV04_TEXTURED_TRIANGLE_TLVERTEX_RHW(x) (0x0000040c+((x)*32))
1596#define NV04_TEXTURED_TRIANGLE_TLVERTEX_RHW__SIZE 0x00000010
1597#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR(x) (0x00000410+((x)*32))
1598#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR__SIZE 0x00000010
1599#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_SHIFT 0
1600#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_MASK 0x000000ff
1601#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_SHIFT 8
1602#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_MASK 0x0000ff00
1603#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_SHIFT 16
1604#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_MASK 0x00ff0000
1605#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_SHIFT 24
1606#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_MASK 0xff000000
1607#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR(x) (0x00000414+((x)*32))
1608#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR__SIZE 0x00000010
1609#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_SHIFT 0
1610#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_MASK 0x000000ff
1611#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_SHIFT 8
1612#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_MASK 0x0000ff00
1613#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_SHIFT 16
1614#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_MASK 0x00ff0000
1615#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_SHIFT 24
1616#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_MASK 0xff000000
1617#define NV04_TEXTURED_TRIANGLE_TLVERTEX_TU(x) (0x00000418+((x)*32))
1618#define NV04_TEXTURED_TRIANGLE_TLVERTEX_TU__SIZE 0x00000010
1619#define NV04_TEXTURED_TRIANGLE_TLVERTEX_TV(x) (0x0000041c+((x)*32))
1620#define NV04_TEXTURED_TRIANGLE_TLVERTEX_TV__SIZE 0x00000010
1621#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE(x) (0x00000600+((x)*4))
1622#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE__SIZE 0x00000040
1623#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I0_SHIFT 0
1624#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I0_MASK 0x0000000f
1625#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I1_SHIFT 4
1626#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I1_MASK 0x000000f0
1627#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I2_SHIFT 8
1628#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I2_MASK 0x00000f00
1629#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I3_SHIFT 12
1630#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I3_MASK 0x0000f000
1631#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I4_SHIFT 16
1632#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I4_MASK 0x000f0000
1633#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I5_SHIFT 20
1634#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I5_MASK 0x00f00000
1635
1636
1637#define NV10_TEXTURED_TRIANGLE 0x00000094
1638
1639
1640
1641#define NV04_MULTITEX_TRIANGLE 0x00000055
1642
1643#define NV04_MULTITEX_TRIANGLE_NOP 0x00000100
1644#define NV04_MULTITEX_TRIANGLE_NOTIFY 0x00000104
1645#define NV04_MULTITEX_TRIANGLE_DMA_NOTIFY 0x00000180
1646#define NV04_MULTITEX_TRIANGLE_DMA_A 0x00000184
1647#define NV04_MULTITEX_TRIANGLE_DMA_B 0x00000188
1648#define NV04_MULTITEX_TRIANGLE_SURFACE 0x0000018c
1649#define NV04_MULTITEX_TRIANGLE_OFFSET(x) (0x00000308+((x)*4))
1650#define NV04_MULTITEX_TRIANGLE_OFFSET__SIZE 0x00000002
1651#define NV04_MULTITEX_TRIANGLE_FORMAT(x) (0x00000310+((x)*4))
1652#define NV04_MULTITEX_TRIANGLE_FORMAT__SIZE 0x00000002
1653#define NV04_MULTITEX_TRIANGLE_FORMAT_DMA_A (1 << 0)
1654#define NV04_MULTITEX_TRIANGLE_FORMAT_DMA_B (1 << 1)
1655#define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT 4
1656#define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK 0x00000030
1657#define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT 6
1658#define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_MASK 0x000000c0
1659#define NV04_MULTITEX_TRIANGLE_FORMAT_COLOR_SHIFT 8
1660#define NV04_MULTITEX_TRIANGLE_FORMAT_COLOR_MASK 0x00000f00
1661#define NV04_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT 12
1662#define NV04_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK 0x0000f000
1663#define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT 16
1664#define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_MASK 0x000f0000
1665#define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT 20
1666#define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_MASK 0x00f00000
1667#define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_SHIFT 24
1668#define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_MASK 0x07000000
1669#define NV04_MULTITEX_TRIANGLE_FORMAT_WRAPU (1 << 27)
1670#define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_SHIFT 28
1671#define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_MASK 0x70000000
1672#define NV04_MULTITEX_TRIANGLE_FORMAT_WRAPV (1 << 31)
1673#define NV04_MULTITEX_TRIANGLE_FILTER(x) (0x00000318+((x)*4))
1674#define NV04_MULTITEX_TRIANGLE_FILTER__SIZE 0x00000002
1675#define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT 0
1676#define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK 0x000000ff
1677#define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT 8
1678#define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK 0x00007f00
1679#define NV04_MULTITEX_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE (1 << 15)
1680#define NV04_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT 16
1681#define NV04_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK 0x00ff0000
1682#define NV04_MULTITEX_TRIANGLE_FILTER_MINIFY_SHIFT 24
1683#define NV04_MULTITEX_TRIANGLE_FILTER_MINIFY_MASK 0x07000000
1684#define NV04_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE (1 << 27)
1685#define NV04_MULTITEX_TRIANGLE_FILTER_MAGNIFY_SHIFT 28
1686#define NV04_MULTITEX_TRIANGLE_FILTER_MAGNIFY_MASK 0x70000000
1687#define NV04_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE (1 << 31)
1688#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA(x) (0x00000320+((x)*12))
1689#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA__SIZE 0x00000002
1690#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE0 (1 << 0)
1691#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_SHIFT 2
1692#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_MASK 0x000000fc
1693#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_ZERO 0x00000004
1694#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_CONSTANT 0x00000008
1695#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_PRIMARY_COLOR 0x0000000c
1696#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_PREVIOUS 0x00000010
1697#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_TEXTURE0 0x00000014
1698#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_TEXTURE1 0x00000018
1699#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE1 (1 << 8)
1700#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_SHIFT 10
1701#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_MASK 0x0000fc00
1702#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_ZERO 0x00000400
1703#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_CONSTANT 0x00000800
1704#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_PRIMARY_COLOR 0x00000c00
1705#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_PREVIOUS 0x00001000
1706#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_TEXTURE0 0x00001400
1707#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_TEXTURE1 0x00001800
1708#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE2 (1 << 16)
1709#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_SHIFT 18
1710#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_MASK 0x00fc0000
1711#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_ZERO 0x00040000
1712#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_CONSTANT 0x00080000
1713#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_PRIMARY_COLOR 0x000c0000
1714#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_PREVIOUS 0x00100000
1715#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_TEXTURE0 0x00140000
1716#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_TEXTURE1 0x00180000
1717#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE3 (1 << 24)
1718#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_SHIFT 26
1719#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_MASK 0x1c000000
1720#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_ZERO 0x04000000
1721#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_CONSTANT 0x08000000
1722#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_PRIMARY_COLOR 0x0c000000
1723#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_PREVIOUS 0x10000000
1724#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_TEXTURE0 0x14000000
1725#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_TEXTURE1 0x18000000
1726#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_SHIFT 29
1727#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_MASK 0xe0000000
1728#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_IDENTITY 0x20000000
1729#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_SCALE2 0x40000000
1730#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_SCALE4 0x60000000
1731#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_BIAS 0x80000000
1732#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_BIAS_SCALE2 0xe0000000
1733#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR(x) (0x00000324+((x)*12))
1734#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR__SIZE 0x00000002
1735#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE0 (1 << 0)
1736#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA0 (1 << 1)
1737#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_SHIFT 2
1738#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_MASK 0x000000fc
1739#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_ZERO 0x00000004
1740#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_CONSTANT 0x00000008
1741#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_PRIMARY_COLOR 0x0000000c
1742#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_PREVIOUS 0x00000010
1743#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_TEXTURE0 0x00000014
1744#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_TEXTURE1 0x00000018
1745#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE1 (1 << 8)
1746#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA1 (1 << 9)
1747#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_SHIFT 10
1748#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_MASK 0x0000fc00
1749#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_ZERO 0x00000400
1750#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_CONSTANT 0x00000800
1751#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_PRIMARY_COLOR 0x00000c00
1752#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_PREVIOUS 0x00001000
1753#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_TEXTURE0 0x00001400
1754#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_TEXTURE1 0x00001800
1755#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE2 (1 << 16)
1756#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA2 (1 << 17)
1757#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_SHIFT 18
1758#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_MASK 0x00fc0000
1759#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_ZERO 0x00040000
1760#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_CONSTANT 0x00080000
1761#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_PRIMARY_COLOR 0x000c0000
1762#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_PREVIOUS 0x00100000
1763#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_TEXTURE0 0x00140000
1764#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_TEXTURE1 0x00180000
1765#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE3 (1 << 24)
1766#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA3 (1 << 25)
1767#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_SHIFT 26
1768#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_MASK 0x1c000000
1769#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_ZERO 0x04000000
1770#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_CONSTANT 0x08000000
1771#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_PRIMARY_COLOR 0x0c000000
1772#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_PREVIOUS 0x10000000
1773#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_TEXTURE0 0x14000000
1774#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_TEXTURE1 0x18000000
1775#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_SHIFT 29
1776#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_MASK 0xe0000000
1777#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_IDENTITY 0x20000000
1778#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_SCALE2 0x40000000
1779#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_SCALE4 0x60000000
1780#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_BIAS 0x80000000
1781#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_BIAS_SCALE2 0xe0000000
1782#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR 0x00000334
1783#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_SHIFT 0
1784#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_MASK 0x000000ff
1785#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_SHIFT 8
1786#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_MASK 0x0000ff00
1787#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_SHIFT 16
1788#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_MASK 0x00ff0000
1789#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_SHIFT 24
1790#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_MASK 0xff000000
1791#define NV04_MULTITEX_TRIANGLE_BLEND 0x00000338
1792#define NV04_MULTITEX_TRIANGLE_BLEND_MASK_BIT_SHIFT 4
1793#define NV04_MULTITEX_TRIANGLE_BLEND_MASK_BIT_MASK 0x00000030
1794#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_SHIFT 6
1795#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_MASK 0x000000c0
1796#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_FLAT 0x00000040
1797#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_GOURAUD 0x00000080
1798#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_PHONG 0x000000c0
1799#define NV04_MULTITEX_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE (1 << 8)
1800#define NV04_MULTITEX_TRIANGLE_BLEND_SPECULAR_ENABLE (1 << 12)
1801#define NV04_MULTITEX_TRIANGLE_BLEND_FOG_ENABLE (1 << 16)
1802#define NV04_MULTITEX_TRIANGLE_BLEND_BLEND_ENABLE (1 << 20)
1803#define NV04_MULTITEX_TRIANGLE_BLEND_SRC_SHIFT 24
1804#define NV04_MULTITEX_TRIANGLE_BLEND_SRC_MASK 0x0f000000
1805#define NV04_MULTITEX_TRIANGLE_BLEND_DST_SHIFT 28
1806#define NV04_MULTITEX_TRIANGLE_BLEND_DST_MASK 0xf0000000
1807#define NV04_MULTITEX_TRIANGLE_CONTROL0 0x0000033c
1808#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_SHIFT 0
1809#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_MASK 0x000000ff
1810#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_SHIFT 8
1811#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_MASK 0x00000f00
1812#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_ENABLE (1 << 12)
1813#define NV04_MULTITEX_TRIANGLE_CONTROL0_ORIGIN (1 << 13)
1814#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_ENABLE (1 << 14)
1815#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_SHIFT 16
1816#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_MASK 0x000f0000
1817#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_SHIFT 20
1818#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_MASK 0x00300000
1819#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_BOTH 0x00000000
1820#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_NONE 0x00100000
1821#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_CW 0x00200000
1822#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_CCW 0x00300000
1823#define NV04_MULTITEX_TRIANGLE_CONTROL0_DITHER_ENABLE (1 << 22)
1824#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_PERSPECTIVE_ENABLE (1 << 23)
1825#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_WRITE (1 << 24)
1826#define NV04_MULTITEX_TRIANGLE_CONTROL0_STENCIL_WRITE (1 << 25)
1827#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_WRITE (1 << 26)
1828#define NV04_MULTITEX_TRIANGLE_CONTROL0_RED_WRITE (1 << 27)
1829#define NV04_MULTITEX_TRIANGLE_CONTROL0_GREEN_WRITE (1 << 28)
1830#define NV04_MULTITEX_TRIANGLE_CONTROL0_BLUE_WRITE (1 << 29)
1831#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_SHIFT 30
1832#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_MASK 0xc0000000
1833#define NV04_MULTITEX_TRIANGLE_CONTROL1 0x00000340
1834#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_ENABLE (1 << 0)
1835#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_SHIFT 4
1836#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_MASK 0x000000f0
1837#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_SHIFT 8
1838#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_MASK 0x0000ff00
1839#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_SHIFT 16
1840#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_MASK 0x00ff0000
1841#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_SHIFT 24
1842#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_MASK 0xff000000
1843#define NV04_MULTITEX_TRIANGLE_CONTROL2 0x00000344
1844#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_SHIFT 0
1845#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_MASK 0x0000000f
1846#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_SHIFT 4
1847#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_MASK 0x000000f0
1848#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_SHIFT 8
1849#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_MASK 0x00000f00
1850#define NV04_MULTITEX_TRIANGLE_FOGCOLOR 0x00000348
1851#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_B_SHIFT 0
1852#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_B_MASK 0x000000ff
1853#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_G_SHIFT 8
1854#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_G_MASK 0x0000ff00
1855#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_R_SHIFT 16
1856#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_R_MASK 0x00ff0000
1857#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_A_SHIFT 24
1858#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_A_MASK 0xff000000
1859#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SX(x) (0x00000400+((x)*40))
1860#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SX__SIZE 0x00000008
1861#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SY(x) (0x00000404+((x)*40))
1862#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SY__SIZE 0x00000008
1863#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SZ(x) (0x00000408+((x)*40))
1864#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SZ__SIZE 0x00000008
1865#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_RHW(x) (0x0000040c+((x)*40))
1866#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_RHW__SIZE 0x00000008
1867#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR(x) (0x00000410+((x)*40))
1868#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR__SIZE 0x00000008
1869#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_SHIFT 0
1870#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_MASK 0x000000ff
1871#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_SHIFT 8
1872#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_MASK 0x0000ff00
1873#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_SHIFT 16
1874#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_MASK 0x00ff0000
1875#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_SHIFT 24
1876#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_MASK 0xff000000
1877#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR(x) (0x00000414+((x)*40))
1878#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR__SIZE 0x00000008
1879#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_SHIFT 0
1880#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_MASK 0x000000ff
1881#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_SHIFT 8
1882#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_MASK 0x0000ff00
1883#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_SHIFT 16
1884#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_MASK 0x00ff0000
1885#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_SHIFT 24
1886#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_MASK 0xff000000
1887#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU0(x) (0x00000418+((x)*40))
1888#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU0__SIZE 0x00000008
1889#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV0(x) (0x0000041c+((x)*40))
1890#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV0__SIZE 0x00000008
1891#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU1(x) (0x00000420+((x)*40))
1892#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU1__SIZE 0x00000008
1893#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV1(x) (0x00000424+((x)*40))
1894#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV1__SIZE 0x00000008
1895#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE(x) (0x00000540+((x)*4))
1896#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE__SIZE 0x00000030
1897#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I0_SHIFT 0
1898#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I0_MASK 0x0000000f
1899#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I1_SHIFT 4
1900#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I1_MASK 0x000000f0
1901#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I2_SHIFT 8
1902#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I2_MASK 0x00000f00
1903#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I3_SHIFT 12
1904#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I3_MASK 0x0000f000
1905#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I4_SHIFT 16
1906#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I4_MASK 0x000f0000
1907#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I5_SHIFT 20
1908#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I5_MASK 0x00f00000
1909
1910
1911#define NV10_MULTITEX_TRIANGLE 0x00000095
1912
1913
1914
1915#define NV10TCL 0x00000056
1916
1917#define NV10TCL_NOP 0x00000100
1918#define NV10TCL_NOTIFY 0x00000104
1919#define NV10TCL_DMA_NOTIFY 0x00000180
1920#define NV10TCL_DMA_IN_MEMORY0 0x00000184
1921#define NV10TCL_DMA_IN_MEMORY1 0x00000188
1922#define NV10TCL_DMA_VTXBUF0 0x0000018c
1923#define NV10TCL_DMA_IN_MEMORY2 0x00000194
1924#define NV10TCL_DMA_IN_MEMORY3 0x00000198
1925#define NV10TCL_RT_HORIZ 0x00000200
1926#define NV10TCL_RT_HORIZ_X_SHIFT 0
1927#define NV10TCL_RT_HORIZ_X_MASK 0x0000ffff
1928#define NV10TCL_RT_HORIZ_W_SHIFT 16
1929#define NV10TCL_RT_HORIZ_W_MASK 0xffff0000
1930#define NV10TCL_RT_VERT 0x00000204
1931#define NV10TCL_RT_VERT_Y_SHIFT 0
1932#define NV10TCL_RT_VERT_Y_MASK 0x0000ffff
1933#define NV10TCL_RT_VERT_H_SHIFT 16
1934#define NV10TCL_RT_VERT_H_MASK 0xffff0000
1935#define NV10TCL_RT_FORMAT 0x00000208
1936#define NV10TCL_RT_FORMAT_TYPE_SHIFT 8
1937#define NV10TCL_RT_FORMAT_TYPE_MASK 0x00000f00
1938#define NV10TCL_RT_FORMAT_TYPE_LINEAR 0x00000100
1939#define NV10TCL_RT_FORMAT_TYPE_SWIZZLED 0x00000200
1940#define NV10TCL_RT_FORMAT_COLOR_SHIFT 0
1941#define NV10TCL_RT_FORMAT_COLOR_MASK 0x0000001f
1942#define NV10TCL_RT_FORMAT_COLOR_R5G6B5 0x00000003
1943#define NV10TCL_RT_FORMAT_COLOR_X8R8G8B8 0x00000005
1944#define NV10TCL_RT_FORMAT_COLOR_A8R8G8B8 0x00000008
1945#define NV10TCL_RT_FORMAT_COLOR_B8 0x00000009
1946#define NV10TCL_RT_FORMAT_COLOR_UNKNOWN 0x0000000d
1947#define NV10TCL_RT_FORMAT_COLOR_X8B8G8R8 0x0000000f
1948#define NV10TCL_RT_FORMAT_COLOR_A8B8G8R8 0x00000010
1949#define NV10TCL_RT_PITCH 0x0000020c
1950#define NV10TCL_RT_PITCH_COLOR_PITCH_SHIFT 0
1951#define NV10TCL_RT_PITCH_COLOR_PITCH_MASK 0x0000ffff
1952#define NV10TCL_RT_PITCH_ZETA_PITCH_SHIFT 16
1953#define NV10TCL_RT_PITCH_ZETA_PITCH_MASK 0xffff0000
1954#define NV10TCL_COLOR_OFFSET 0x00000210
1955#define NV10TCL_ZETA_OFFSET 0x00000214
1956#define NV10TCL_TX_OFFSET(x) (0x00000218+((x)*4))
1957#define NV10TCL_TX_OFFSET__SIZE 0x00000002
1958#define NV10TCL_TX_FORMAT(x) (0x00000220+((x)*4))
1959#define NV10TCL_TX_FORMAT__SIZE 0x00000002
1960#define NV10TCL_TX_FORMAT_DMA0 (1 << 0)
1961#define NV10TCL_TX_FORMAT_DMA1 (1 << 1)
1962#define NV10TCL_TX_FORMAT_CUBE_MAP (1 << 2)
1963#define NV10TCL_TX_FORMAT_FORMAT_SHIFT 7
1964#define NV10TCL_TX_FORMAT_FORMAT_MASK 0x00000f80
1965#define NV10TCL_TX_FORMAT_FORMAT_L8 0x00000000
1966#define NV10TCL_TX_FORMAT_FORMAT_A8 0x00000080
1967#define NV10TCL_TX_FORMAT_FORMAT_A1R5G5B5 0x00000100
1968#define NV10TCL_TX_FORMAT_FORMAT_A4R4G4B4 0x00000200
1969#define NV10TCL_TX_FORMAT_FORMAT_R5G6B5 0x00000280
1970#define NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8 0x00000300
1971#define NV10TCL_TX_FORMAT_FORMAT_X8R8G8B8 0x00000380
1972#define NV10TCL_TX_FORMAT_FORMAT_INDEX8 0x00000580
1973#define NV10TCL_TX_FORMAT_FORMAT_DXT1 0x00000600
1974#define NV10TCL_TX_FORMAT_FORMAT_DXT3 0x00000700
1975#define NV10TCL_TX_FORMAT_FORMAT_DXT5 0x00000780
1976#define NV10TCL_TX_FORMAT_FORMAT_A1R5G5B5_RECT 0x00000800
1977#define NV10TCL_TX_FORMAT_FORMAT_R5G6B5_RECT 0x00000880
1978#define NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8_RECT 0x00000900
1979#define NV10TCL_TX_FORMAT_FORMAT_A8_RECT 0x00000980
1980#define NV10TCL_TX_FORMAT_MIPMAP (1 << 15)
1981#define NV10TCL_TX_FORMAT_BASE_SIZE_U_SHIFT 16
1982#define NV10TCL_TX_FORMAT_BASE_SIZE_U_MASK 0x000f0000
1983#define NV10TCL_TX_FORMAT_BASE_SIZE_V_SHIFT 20
1984#define NV10TCL_TX_FORMAT_BASE_SIZE_V_MASK 0x00f00000
1985#define NV10TCL_TX_FORMAT_WRAP_S_SHIFT 24
1986#define NV10TCL_TX_FORMAT_WRAP_S_MASK 0x0f000000
1987#define NV10TCL_TX_FORMAT_WRAP_S_REPEAT 0x01000000
1988#define NV10TCL_TX_FORMAT_WRAP_S_MIRRORED_REPEAT 0x02000000
1989#define NV10TCL_TX_FORMAT_WRAP_S_CLAMP_TO_EDGE 0x03000000
1990#define NV10TCL_TX_FORMAT_WRAP_S_CLAMP_TO_BORDER 0x04000000
1991#define NV10TCL_TX_FORMAT_WRAP_S_CLAMP 0x05000000
1992#define NV10TCL_TX_FORMAT_WRAP_T_SHIFT 28
1993#define NV10TCL_TX_FORMAT_WRAP_T_MASK 0xf0000000
1994#define NV10TCL_TX_FORMAT_WRAP_T_REPEAT 0x10000000
1995#define NV10TCL_TX_FORMAT_WRAP_T_MIRRORED_REPEAT 0x20000000
1996#define NV10TCL_TX_FORMAT_WRAP_T_CLAMP_TO_EDGE 0x30000000
1997#define NV10TCL_TX_FORMAT_WRAP_T_CLAMP_TO_BORDER 0x40000000
1998#define NV10TCL_TX_FORMAT_WRAP_T_CLAMP 0x50000000
1999#define NV10TCL_TX_ENABLE(x) (0x00000228+((x)*4))
2000#define NV10TCL_TX_ENABLE__SIZE 0x00000002
2001#define NV10TCL_TX_ENABLE_CULL_SHIFT 0
2002#define NV10TCL_TX_ENABLE_CULL_MASK 0x0000000f
2003#define NV10TCL_TX_ENABLE_CULL_DISABLED 0x00000000
2004#define NV10TCL_TX_ENABLE_CULL_TEST_ALL 0x00000003
2005#define NV10TCL_TX_ENABLE_CULL_TEST_ALPHA 0x00000004
2006#define NV10TCL_TX_ENABLE_ANISOTROPY_SHIFT 4
2007#define NV10TCL_TX_ENABLE_ANISOTROPY_MASK 0x00000030
2008#define NV10TCL_TX_ENABLE_MIPMAP_MAX_LOD_SHIFT 14
2009#define NV10TCL_TX_ENABLE_MIPMAP_MAX_LOD_MASK 0x0003c000
2010#define NV10TCL_TX_ENABLE_MIPMAP_MIN_LOD_SHIFT 26
2011#define NV10TCL_TX_ENABLE_MIPMAP_MIN_LOD_MASK 0x3c000000
2012#define NV10TCL_TX_ENABLE_ENABLE (1 << 30)
2013#define NV10TCL_TX_NPOT_PITCH(x) (0x00000230+((x)*4))
2014#define NV10TCL_TX_NPOT_PITCH__SIZE 0x00000002
2015#define NV10TCL_TX_NPOT_PITCH_PITCH_SHIFT 16
2016#define NV10TCL_TX_NPOT_PITCH_PITCH_MASK 0xffff0000
2017#define NV10TCL_TX_NPOT_SIZE(x) (0x00000240+((x)*4))
2018#define NV10TCL_TX_NPOT_SIZE__SIZE 0x00000002
2019#define NV10TCL_TX_NPOT_SIZE_H_SHIFT 0
2020#define NV10TCL_TX_NPOT_SIZE_H_MASK 0x0000ffff
2021#define NV10TCL_TX_NPOT_SIZE_W_SHIFT 16
2022#define NV10TCL_TX_NPOT_SIZE_W_MASK 0xffff0000
2023#define NV10TCL_TX_FILTER(x) (0x00000248+((x)*4))
2024#define NV10TCL_TX_FILTER__SIZE 0x00000002
2025#define NV10TCL_TX_FILTER_LOD_BIAS_SHIFT 8
2026#define NV10TCL_TX_FILTER_LOD_BIAS_MASK 0x00000f00
2027#define NV10TCL_TX_FILTER_MINIFY_SHIFT 24
2028#define NV10TCL_TX_FILTER_MINIFY_MASK 0x0f000000
2029#define NV10TCL_TX_FILTER_MINIFY_NEAREST 0x01000000
2030#define NV10TCL_TX_FILTER_MINIFY_LINEAR 0x02000000
2031#define NV10TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST 0x03000000
2032#define NV10TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST 0x04000000
2033#define NV10TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR 0x05000000
2034#define NV10TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR 0x06000000
2035#define NV10TCL_TX_FILTER_MAGNIFY_SHIFT 28
2036#define NV10TCL_TX_FILTER_MAGNIFY_MASK 0xf0000000
2037#define NV10TCL_TX_FILTER_MAGNIFY_NEAREST 0x10000000
2038#define NV10TCL_TX_FILTER_MAGNIFY_LINEAR 0x20000000
2039#define NV10TCL_TX_PALETTE_OFFSET(x) (0x00000250+((x)*4))
2040#define NV10TCL_TX_PALETTE_OFFSET__SIZE 0x00000002
2041#define NV10TCL_RC_IN_ALPHA(x) (0x00000260+((x)*4))
2042#define NV10TCL_RC_IN_ALPHA__SIZE 0x00000002
2043#define NV10TCL_RC_IN_ALPHA_D_INPUT_SHIFT 0
2044#define NV10TCL_RC_IN_ALPHA_D_INPUT_MASK 0x0000000f
2045#define NV10TCL_RC_IN_ALPHA_D_INPUT_ZERO 0x00000000
2046#define NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR0 0x00000001
2047#define NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR1 0x00000002
2048#define NV10TCL_RC_IN_ALPHA_D_INPUT_FOG 0x00000003
2049#define NV10TCL_RC_IN_ALPHA_D_INPUT_PRIMARY_COLOR 0x00000004
2050#define NV10TCL_RC_IN_ALPHA_D_INPUT_SECONDARY_COLOR 0x00000005
2051#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE0 0x00000008
2052#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE1 0x00000009
2053#define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0 0x0000000c
2054#define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE1 0x0000000d
2055#define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2056#define NV10TCL_RC_IN_ALPHA_D_INPUT_E_TIMES_F 0x0000000f
2057#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE2 0x0000000a
2058#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE3 0x0000000b
2059#define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE (1 << 4)
2060#define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_BLUE 0x00000000
2061#define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_ALPHA 0x00000010
2062#define NV10TCL_RC_IN_ALPHA_D_MAPPING_SHIFT 5
2063#define NV10TCL_RC_IN_ALPHA_D_MAPPING_MASK 0x000000e0
2064#define NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
2065#define NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_INVERT 0x00000020
2066#define NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NORMAL 0x00000040
2067#define NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NEGATE 0x00000060
2068#define NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
2069#define NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
2070#define NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_IDENTITY 0x000000c0
2071#define NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_NEGATE 0x000000e0
2072#define NV10TCL_RC_IN_ALPHA_C_INPUT_SHIFT 8
2073#define NV10TCL_RC_IN_ALPHA_C_INPUT_MASK 0x00000f00
2074#define NV10TCL_RC_IN_ALPHA_C_INPUT_ZERO 0x00000000
2075#define NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR0 0x00000100
2076#define NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR1 0x00000200
2077#define NV10TCL_RC_IN_ALPHA_C_INPUT_FOG 0x00000300
2078#define NV10TCL_RC_IN_ALPHA_C_INPUT_PRIMARY_COLOR 0x00000400
2079#define NV10TCL_RC_IN_ALPHA_C_INPUT_SECONDARY_COLOR 0x00000500
2080#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE0 0x00000800
2081#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE1 0x00000900
2082#define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0 0x00000c00
2083#define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE1 0x00000d00
2084#define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2085#define NV10TCL_RC_IN_ALPHA_C_INPUT_E_TIMES_F 0x00000f00
2086#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE2 0x00000a00
2087#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE3 0x00000b00
2088#define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE (1 << 12)
2089#define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_BLUE 0x00000000
2090#define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_ALPHA 0x00001000
2091#define NV10TCL_RC_IN_ALPHA_C_MAPPING_SHIFT 13
2092#define NV10TCL_RC_IN_ALPHA_C_MAPPING_MASK 0x0000e000
2093#define NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
2094#define NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_INVERT 0x00002000
2095#define NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NORMAL 0x00004000
2096#define NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NEGATE 0x00006000
2097#define NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
2098#define NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2099#define NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_IDENTITY 0x0000c000
2100#define NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_NEGATE 0x0000e000
2101#define NV10TCL_RC_IN_ALPHA_B_INPUT_SHIFT 16
2102#define NV10TCL_RC_IN_ALPHA_B_INPUT_MASK 0x000f0000
2103#define NV10TCL_RC_IN_ALPHA_B_INPUT_ZERO 0x00000000
2104#define NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR0 0x00010000
2105#define NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR1 0x00020000
2106#define NV10TCL_RC_IN_ALPHA_B_INPUT_FOG 0x00030000
2107#define NV10TCL_RC_IN_ALPHA_B_INPUT_PRIMARY_COLOR 0x00040000
2108#define NV10TCL_RC_IN_ALPHA_B_INPUT_SECONDARY_COLOR 0x00050000
2109#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE0 0x00080000
2110#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE1 0x00090000
2111#define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0 0x000c0000
2112#define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE1 0x000d0000
2113#define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2114#define NV10TCL_RC_IN_ALPHA_B_INPUT_E_TIMES_F 0x000f0000
2115#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE2 0x000a0000
2116#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE3 0x000b0000
2117#define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE (1 << 20)
2118#define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_BLUE 0x00000000
2119#define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_ALPHA 0x00100000
2120#define NV10TCL_RC_IN_ALPHA_B_MAPPING_SHIFT 21
2121#define NV10TCL_RC_IN_ALPHA_B_MAPPING_MASK 0x00e00000
2122#define NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
2123#define NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_INVERT 0x00200000
2124#define NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NORMAL 0x00400000
2125#define NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NEGATE 0x00600000
2126#define NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
2127#define NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2128#define NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_IDENTITY 0x00c00000
2129#define NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_NEGATE 0x00e00000
2130#define NV10TCL_RC_IN_ALPHA_A_INPUT_SHIFT 24
2131#define NV10TCL_RC_IN_ALPHA_A_INPUT_MASK 0x0f000000
2132#define NV10TCL_RC_IN_ALPHA_A_INPUT_ZERO 0x00000000
2133#define NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR0 0x01000000
2134#define NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR1 0x02000000
2135#define NV10TCL_RC_IN_ALPHA_A_INPUT_FOG 0x03000000
2136#define NV10TCL_RC_IN_ALPHA_A_INPUT_PRIMARY_COLOR 0x04000000
2137#define NV10TCL_RC_IN_ALPHA_A_INPUT_SECONDARY_COLOR 0x05000000
2138#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE0 0x08000000
2139#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE1 0x09000000
2140#define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0 0x0c000000
2141#define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE1 0x0d000000
2142#define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2143#define NV10TCL_RC_IN_ALPHA_A_INPUT_E_TIMES_F 0x0f000000
2144#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE2 0x0a000000
2145#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE3 0x0b000000
2146#define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE (1 << 28)
2147#define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_BLUE 0x00000000
2148#define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_ALPHA 0x10000000
2149#define NV10TCL_RC_IN_ALPHA_A_MAPPING_SHIFT 29
2150#define NV10TCL_RC_IN_ALPHA_A_MAPPING_MASK 0xe0000000
2151#define NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
2152#define NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_INVERT 0x20000000
2153#define NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NORMAL 0x40000000
2154#define NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NEGATE 0x60000000
2155#define NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
2156#define NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2157#define NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_IDENTITY 0xc0000000
2158#define NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_NEGATE 0xe0000000
2159#define NV10TCL_RC_IN_RGB(x) (0x00000268+((x)*4))
2160#define NV10TCL_RC_IN_RGB__SIZE 0x00000002
2161#define NV10TCL_RC_IN_RGB_D_INPUT_SHIFT 0
2162#define NV10TCL_RC_IN_RGB_D_INPUT_MASK 0x0000000f
2163#define NV10TCL_RC_IN_RGB_D_INPUT_ZERO 0x00000000
2164#define NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR0 0x00000001
2165#define NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR1 0x00000002
2166#define NV10TCL_RC_IN_RGB_D_INPUT_FOG 0x00000003
2167#define NV10TCL_RC_IN_RGB_D_INPUT_PRIMARY_COLOR 0x00000004
2168#define NV10TCL_RC_IN_RGB_D_INPUT_SECONDARY_COLOR 0x00000005
2169#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE0 0x00000008
2170#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE1 0x00000009
2171#define NV10TCL_RC_IN_RGB_D_INPUT_SPARE0 0x0000000c
2172#define NV10TCL_RC_IN_RGB_D_INPUT_SPARE1 0x0000000d
2173#define NV10TCL_RC_IN_RGB_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2174#define NV10TCL_RC_IN_RGB_D_INPUT_E_TIMES_F 0x0000000f
2175#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE2 0x0000000a
2176#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE3 0x0000000b
2177#define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE (1 << 4)
2178#define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_RGB 0x00000000
2179#define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_ALPHA 0x00000010
2180#define NV10TCL_RC_IN_RGB_D_MAPPING_SHIFT 5
2181#define NV10TCL_RC_IN_RGB_D_MAPPING_MASK 0x000000e0
2182#define NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
2183#define NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_INVERT 0x00000020
2184#define NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NORMAL 0x00000040
2185#define NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NEGATE 0x00000060
2186#define NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
2187#define NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
2188#define NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_IDENTITY 0x000000c0
2189#define NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_NEGATE 0x000000e0
2190#define NV10TCL_RC_IN_RGB_C_INPUT_SHIFT 8
2191#define NV10TCL_RC_IN_RGB_C_INPUT_MASK 0x00000f00
2192#define NV10TCL_RC_IN_RGB_C_INPUT_ZERO 0x00000000
2193#define NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR0 0x00000100
2194#define NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR1 0x00000200
2195#define NV10TCL_RC_IN_RGB_C_INPUT_FOG 0x00000300
2196#define NV10TCL_RC_IN_RGB_C_INPUT_PRIMARY_COLOR 0x00000400
2197#define NV10TCL_RC_IN_RGB_C_INPUT_SECONDARY_COLOR 0x00000500
2198#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE0 0x00000800
2199#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE1 0x00000900
2200#define NV10TCL_RC_IN_RGB_C_INPUT_SPARE0 0x00000c00
2201#define NV10TCL_RC_IN_RGB_C_INPUT_SPARE1 0x00000d00
2202#define NV10TCL_RC_IN_RGB_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2203#define NV10TCL_RC_IN_RGB_C_INPUT_E_TIMES_F 0x00000f00
2204#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE2 0x00000a00
2205#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE3 0x00000b00
2206#define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE (1 << 12)
2207#define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_RGB 0x00000000
2208#define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_ALPHA 0x00001000
2209#define NV10TCL_RC_IN_RGB_C_MAPPING_SHIFT 13
2210#define NV10TCL_RC_IN_RGB_C_MAPPING_MASK 0x0000e000
2211#define NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
2212#define NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_INVERT 0x00002000
2213#define NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NORMAL 0x00004000
2214#define NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NEGATE 0x00006000
2215#define NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
2216#define NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2217#define NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_IDENTITY 0x0000c000
2218#define NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_NEGATE 0x0000e000
2219#define NV10TCL_RC_IN_RGB_B_INPUT_SHIFT 16
2220#define NV10TCL_RC_IN_RGB_B_INPUT_MASK 0x000f0000
2221#define NV10TCL_RC_IN_RGB_B_INPUT_ZERO 0x00000000
2222#define NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR0 0x00010000
2223#define NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR1 0x00020000
2224#define NV10TCL_RC_IN_RGB_B_INPUT_FOG 0x00030000
2225#define NV10TCL_RC_IN_RGB_B_INPUT_PRIMARY_COLOR 0x00040000
2226#define NV10TCL_RC_IN_RGB_B_INPUT_SECONDARY_COLOR 0x00050000
2227#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE0 0x00080000
2228#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE1 0x00090000
2229#define NV10TCL_RC_IN_RGB_B_INPUT_SPARE0 0x000c0000
2230#define NV10TCL_RC_IN_RGB_B_INPUT_SPARE1 0x000d0000
2231#define NV10TCL_RC_IN_RGB_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2232#define NV10TCL_RC_IN_RGB_B_INPUT_E_TIMES_F 0x000f0000
2233#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE2 0x000a0000
2234#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE3 0x000b0000
2235#define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE (1 << 20)
2236#define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_RGB 0x00000000
2237#define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_ALPHA 0x00100000
2238#define NV10TCL_RC_IN_RGB_B_MAPPING_SHIFT 21
2239#define NV10TCL_RC_IN_RGB_B_MAPPING_MASK 0x00e00000
2240#define NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
2241#define NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_INVERT 0x00200000
2242#define NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NORMAL 0x00400000
2243#define NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NEGATE 0x00600000
2244#define NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
2245#define NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2246#define NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_IDENTITY 0x00c00000
2247#define NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_NEGATE 0x00e00000
2248#define NV10TCL_RC_IN_RGB_A_INPUT_SHIFT 24
2249#define NV10TCL_RC_IN_RGB_A_INPUT_MASK 0x0f000000
2250#define NV10TCL_RC_IN_RGB_A_INPUT_ZERO 0x00000000
2251#define NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR0 0x01000000
2252#define NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR1 0x02000000
2253#define NV10TCL_RC_IN_RGB_A_INPUT_FOG 0x03000000
2254#define NV10TCL_RC_IN_RGB_A_INPUT_PRIMARY_COLOR 0x04000000
2255#define NV10TCL_RC_IN_RGB_A_INPUT_SECONDARY_COLOR 0x05000000
2256#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE0 0x08000000
2257#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE1 0x09000000
2258#define NV10TCL_RC_IN_RGB_A_INPUT_SPARE0 0x0c000000
2259#define NV10TCL_RC_IN_RGB_A_INPUT_SPARE1 0x0d000000
2260#define NV10TCL_RC_IN_RGB_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2261#define NV10TCL_RC_IN_RGB_A_INPUT_E_TIMES_F 0x0f000000
2262#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE2 0x0a000000
2263#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE3 0x0b000000
2264#define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE (1 << 28)
2265#define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_RGB 0x00000000
2266#define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_ALPHA 0x10000000
2267#define NV10TCL_RC_IN_RGB_A_MAPPING_SHIFT 29
2268#define NV10TCL_RC_IN_RGB_A_MAPPING_MASK 0xe0000000
2269#define NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
2270#define NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_INVERT 0x20000000
2271#define NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NORMAL 0x40000000
2272#define NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NEGATE 0x60000000
2273#define NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
2274#define NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2275#define NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_IDENTITY 0xc0000000
2276#define NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_NEGATE 0xe0000000
2277#define NV10TCL_RC_COLOR(x) (0x00000270+((x)*4))
2278#define NV10TCL_RC_COLOR__SIZE 0x00000002
2279#define NV10TCL_RC_COLOR_B_SHIFT 0
2280#define NV10TCL_RC_COLOR_B_MASK 0x000000ff
2281#define NV10TCL_RC_COLOR_G_SHIFT 8
2282#define NV10TCL_RC_COLOR_G_MASK 0x0000ff00
2283#define NV10TCL_RC_COLOR_R_SHIFT 16
2284#define NV10TCL_RC_COLOR_R_MASK 0x00ff0000
2285#define NV10TCL_RC_COLOR_A_SHIFT 24
2286#define NV10TCL_RC_COLOR_A_MASK 0xff000000
2287#define NV10TCL_RC_OUT_ALPHA(x) (0x00000278+((x)*4))
2288#define NV10TCL_RC_OUT_ALPHA__SIZE 0x00000002
2289#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SHIFT 0
2290#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_MASK 0x0000000f
2291#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_ZERO 0x00000000
2292#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
2293#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
2294#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_FOG 0x00000003
2295#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_PRIMARY_COLOR 0x00000004
2296#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SECONDARY_COLOR 0x00000005
2297#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE0 0x00000008
2298#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE1 0x00000009
2299#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0 0x0000000c
2300#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE1 0x0000000d
2301#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2302#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_E_TIMES_F 0x0000000f
2303#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE2 0x0000000a
2304#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE3 0x0000000b
2305#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SHIFT 4
2306#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_MASK 0x000000f0
2307#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_ZERO 0x00000000
2308#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
2309#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
2310#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_FOG 0x00000030
2311#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_PRIMARY_COLOR 0x00000040
2312#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SECONDARY_COLOR 0x00000050
2313#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE0 0x00000080
2314#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE1 0x00000090
2315#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0 0x000000c0
2316#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE1 0x000000d0
2317#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
2318#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_E_TIMES_F 0x000000f0
2319#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE2 0x000000a0
2320#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE3 0x000000b0
2321#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SHIFT 8
2322#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_MASK 0x00000f00
2323#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_ZERO 0x00000000
2324#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
2325#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
2326#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_FOG 0x00000300
2327#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
2328#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
2329#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE0 0x00000800
2330#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE1 0x00000900
2331#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0 0x00000c00
2332#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE1 0x00000d00
2333#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2334#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_E_TIMES_F 0x00000f00
2335#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE2 0x00000a00
2336#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE3 0x00000b00
2337#define NV10TCL_RC_OUT_ALPHA_CD_DOT_PRODUCT (1 << 12)
2338#define NV10TCL_RC_OUT_ALPHA_AB_DOT_PRODUCT (1 << 13)
2339#define NV10TCL_RC_OUT_ALPHA_MUX_SUM (1 << 14)
2340#define NV10TCL_RC_OUT_ALPHA_BIAS (1 << 15)
2341#define NV10TCL_RC_OUT_ALPHA_BIAS_NONE 0x00000000
2342#define NV10TCL_RC_OUT_ALPHA_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
2343#define NV10TCL_RC_OUT_ALPHA_SCALE_SHIFT 17
2344#define NV10TCL_RC_OUT_ALPHA_SCALE_MASK 0x00000000
2345#define NV10TCL_RC_OUT_ALPHA_SCALE_NONE 0x00000000
2346#define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_TWO 0x00020000
2347#define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_FOUR 0x00040000
2348#define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_ONE_HALF 0x00060000
2349#define NV10TCL_RC_OUT_RGB(x) (0x00000280+((x)*4))
2350#define NV10TCL_RC_OUT_RGB__SIZE 0x00000002
2351#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SHIFT 0
2352#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_MASK 0x0000000f
2353#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_ZERO 0x00000000
2354#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
2355#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
2356#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_FOG 0x00000003
2357#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_PRIMARY_COLOR 0x00000004
2358#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SECONDARY_COLOR 0x00000005
2359#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE0 0x00000008
2360#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE1 0x00000009
2361#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0 0x0000000c
2362#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE1 0x0000000d
2363#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2364#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_E_TIMES_F 0x0000000f
2365#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE2 0x0000000a
2366#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE3 0x0000000b
2367#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SHIFT 4
2368#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_MASK 0x000000f0
2369#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_ZERO 0x00000000
2370#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
2371#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
2372#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_FOG 0x00000030
2373#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_PRIMARY_COLOR 0x00000040
2374#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SECONDARY_COLOR 0x00000050
2375#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE0 0x00000080
2376#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE1 0x00000090
2377#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0 0x000000c0
2378#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE1 0x000000d0
2379#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
2380#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_E_TIMES_F 0x000000f0
2381#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE2 0x000000a0
2382#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE3 0x000000b0
2383#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SHIFT 8
2384#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_MASK 0x00000f00
2385#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_ZERO 0x00000000
2386#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
2387#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
2388#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_FOG 0x00000300
2389#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
2390#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
2391#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE0 0x00000800
2392#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE1 0x00000900
2393#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0 0x00000c00
2394#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE1 0x00000d00
2395#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2396#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_E_TIMES_F 0x00000f00
2397#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE2 0x00000a00
2398#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE3 0x00000b00
2399#define NV10TCL_RC_OUT_RGB_CD_DOT_PRODUCT (1 << 12)
2400#define NV10TCL_RC_OUT_RGB_AB_DOT_PRODUCT (1 << 13)
2401#define NV10TCL_RC_OUT_RGB_MUX_SUM (1 << 14)
2402#define NV10TCL_RC_OUT_RGB_BIAS (1 << 15)
2403#define NV10TCL_RC_OUT_RGB_BIAS_NONE 0x00000000
2404#define NV10TCL_RC_OUT_RGB_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
2405#define NV10TCL_RC_OUT_RGB_SCALE_SHIFT 17
2406#define NV10TCL_RC_OUT_RGB_SCALE_MASK 0x00000000
2407#define NV10TCL_RC_OUT_RGB_SCALE_NONE 0x00000000
2408#define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_TWO 0x00020000
2409#define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_FOUR 0x00040000
2410#define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_ONE_HALF 0x00060000
2411#define NV10TCL_RC_OUT_RGB_OPERATION_SHIFT 27
2412#define NV10TCL_RC_OUT_RGB_OPERATION_MASK 0x38000000
2413#define NV10TCL_RC_FINAL0 0x00000288
2414#define NV10TCL_RC_FINAL0_D_INPUT_SHIFT 0
2415#define NV10TCL_RC_FINAL0_D_INPUT_MASK 0x0000000f
2416#define NV10TCL_RC_FINAL0_D_INPUT_ZERO 0x00000000
2417#define NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR0 0x00000001
2418#define NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR1 0x00000002
2419#define NV10TCL_RC_FINAL0_D_INPUT_FOG 0x00000003
2420#define NV10TCL_RC_FINAL0_D_INPUT_PRIMARY_COLOR 0x00000004
2421#define NV10TCL_RC_FINAL0_D_INPUT_SECONDARY_COLOR 0x00000005
2422#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE0 0x00000008
2423#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE1 0x00000009
2424#define NV10TCL_RC_FINAL0_D_INPUT_SPARE0 0x0000000c
2425#define NV10TCL_RC_FINAL0_D_INPUT_SPARE1 0x0000000d
2426#define NV10TCL_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2427#define NV10TCL_RC_FINAL0_D_INPUT_E_TIMES_F 0x0000000f
2428#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE2 0x0000000a
2429#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE3 0x0000000b
2430#define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE (1 << 4)
2431#define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_RGB 0x00000000
2432#define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_ALPHA 0x00000010
2433#define NV10TCL_RC_FINAL0_D_MAPPING_SHIFT 5
2434#define NV10TCL_RC_FINAL0_D_MAPPING_MASK 0x000000e0
2435#define NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
2436#define NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT 0x00000020
2437#define NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NORMAL 0x00000040
2438#define NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NEGATE 0x00000060
2439#define NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
2440#define NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
2441#define NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY 0x000000c0
2442#define NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_NEGATE 0x000000e0
2443#define NV10TCL_RC_FINAL0_C_INPUT_SHIFT 8
2444#define NV10TCL_RC_FINAL0_C_INPUT_MASK 0x00000f00
2445#define NV10TCL_RC_FINAL0_C_INPUT_ZERO 0x00000000
2446#define NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR0 0x00000100
2447#define NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR1 0x00000200
2448#define NV10TCL_RC_FINAL0_C_INPUT_FOG 0x00000300
2449#define NV10TCL_RC_FINAL0_C_INPUT_PRIMARY_COLOR 0x00000400
2450#define NV10TCL_RC_FINAL0_C_INPUT_SECONDARY_COLOR 0x00000500
2451#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE0 0x00000800
2452#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE1 0x00000900
2453#define NV10TCL_RC_FINAL0_C_INPUT_SPARE0 0x00000c00
2454#define NV10TCL_RC_FINAL0_C_INPUT_SPARE1 0x00000d00
2455#define NV10TCL_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2456#define NV10TCL_RC_FINAL0_C_INPUT_E_TIMES_F 0x00000f00
2457#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE2 0x00000a00
2458#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE3 0x00000b00
2459#define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE (1 << 12)
2460#define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_RGB 0x00000000
2461#define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_ALPHA 0x00001000
2462#define NV10TCL_RC_FINAL0_C_MAPPING_SHIFT 13
2463#define NV10TCL_RC_FINAL0_C_MAPPING_MASK 0x0000e000
2464#define NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
2465#define NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT 0x00002000
2466#define NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NORMAL 0x00004000
2467#define NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NEGATE 0x00006000
2468#define NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
2469#define NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2470#define NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY 0x0000c000
2471#define NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_NEGATE 0x0000e000
2472#define NV10TCL_RC_FINAL0_B_INPUT_SHIFT 16
2473#define NV10TCL_RC_FINAL0_B_INPUT_MASK 0x000f0000
2474#define NV10TCL_RC_FINAL0_B_INPUT_ZERO 0x00000000
2475#define NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR0 0x00010000
2476#define NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR1 0x00020000
2477#define NV10TCL_RC_FINAL0_B_INPUT_FOG 0x00030000
2478#define NV10TCL_RC_FINAL0_B_INPUT_PRIMARY_COLOR 0x00040000
2479#define NV10TCL_RC_FINAL0_B_INPUT_SECONDARY_COLOR 0x00050000
2480#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE0 0x00080000
2481#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE1 0x00090000
2482#define NV10TCL_RC_FINAL0_B_INPUT_SPARE0 0x000c0000
2483#define NV10TCL_RC_FINAL0_B_INPUT_SPARE1 0x000d0000
2484#define NV10TCL_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2485#define NV10TCL_RC_FINAL0_B_INPUT_E_TIMES_F 0x000f0000
2486#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE2 0x000a0000
2487#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE3 0x000b0000
2488#define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE (1 << 20)
2489#define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_RGB 0x00000000
2490#define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_ALPHA 0x00100000
2491#define NV10TCL_RC_FINAL0_B_MAPPING_SHIFT 21
2492#define NV10TCL_RC_FINAL0_B_MAPPING_MASK 0x00e00000
2493#define NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
2494#define NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_INVERT 0x00200000
2495#define NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NORMAL 0x00400000
2496#define NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NEGATE 0x00600000
2497#define NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
2498#define NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2499#define NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_IDENTITY 0x00c00000
2500#define NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_NEGATE 0x00e00000
2501#define NV10TCL_RC_FINAL0_A_INPUT_SHIFT 24
2502#define NV10TCL_RC_FINAL0_A_INPUT_MASK 0x0f000000
2503#define NV10TCL_RC_FINAL0_A_INPUT_ZERO 0x00000000
2504#define NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR0 0x01000000
2505#define NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR1 0x02000000
2506#define NV10TCL_RC_FINAL0_A_INPUT_FOG 0x03000000
2507#define NV10TCL_RC_FINAL0_A_INPUT_PRIMARY_COLOR 0x04000000
2508#define NV10TCL_RC_FINAL0_A_INPUT_SECONDARY_COLOR 0x05000000
2509#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE0 0x08000000
2510#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE1 0x09000000
2511#define NV10TCL_RC_FINAL0_A_INPUT_SPARE0 0x0c000000
2512#define NV10TCL_RC_FINAL0_A_INPUT_SPARE1 0x0d000000
2513#define NV10TCL_RC_FINAL0_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2514#define NV10TCL_RC_FINAL0_A_INPUT_E_TIMES_F 0x0f000000
2515#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE2 0x0a000000
2516#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE3 0x0b000000
2517#define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE (1 << 28)
2518#define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_RGB 0x00000000
2519#define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_ALPHA 0x10000000
2520#define NV10TCL_RC_FINAL0_A_MAPPING_SHIFT 29
2521#define NV10TCL_RC_FINAL0_A_MAPPING_MASK 0xe0000000
2522#define NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
2523#define NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_INVERT 0x20000000
2524#define NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NORMAL 0x40000000
2525#define NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NEGATE 0x60000000
2526#define NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
2527#define NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2528#define NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_IDENTITY 0xc0000000
2529#define NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_NEGATE 0xe0000000
2530#define NV10TCL_RC_FINAL1 0x0000028c
2531#define NV10TCL_RC_FINAL1_COLOR_SUM_CLAMP (1 << 7)
2532#define NV10TCL_RC_FINAL1_G_INPUT_SHIFT 8
2533#define NV10TCL_RC_FINAL1_G_INPUT_MASK 0x00000f00
2534#define NV10TCL_RC_FINAL1_G_INPUT_ZERO 0x00000000
2535#define NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR0 0x00000100
2536#define NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR1 0x00000200
2537#define NV10TCL_RC_FINAL1_G_INPUT_FOG 0x00000300
2538#define NV10TCL_RC_FINAL1_G_INPUT_PRIMARY_COLOR 0x00000400
2539#define NV10TCL_RC_FINAL1_G_INPUT_SECONDARY_COLOR 0x00000500
2540#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE0 0x00000800
2541#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE1 0x00000900
2542#define NV10TCL_RC_FINAL1_G_INPUT_SPARE0 0x00000c00
2543#define NV10TCL_RC_FINAL1_G_INPUT_SPARE1 0x00000d00
2544#define NV10TCL_RC_FINAL1_G_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2545#define NV10TCL_RC_FINAL1_G_INPUT_E_TIMES_F 0x00000f00
2546#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE2 0x00000a00
2547#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE3 0x00000b00
2548#define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE (1 << 12)
2549#define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_RGB 0x00000000
2550#define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_ALPHA 0x00001000
2551#define NV10TCL_RC_FINAL1_G_MAPPING_SHIFT 13
2552#define NV10TCL_RC_FINAL1_G_MAPPING_MASK 0x0000e000
2553#define NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_IDENTITY 0x00000000
2554#define NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_INVERT 0x00002000
2555#define NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NORMAL 0x00004000
2556#define NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NEGATE 0x00006000
2557#define NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NORMAL 0x00008000
2558#define NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2559#define NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_IDENTITY 0x0000c000
2560#define NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_NEGATE 0x0000e000
2561#define NV10TCL_RC_FINAL1_F_INPUT_SHIFT 16
2562#define NV10TCL_RC_FINAL1_F_INPUT_MASK 0x000f0000
2563#define NV10TCL_RC_FINAL1_F_INPUT_ZERO 0x00000000
2564#define NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR0 0x00010000
2565#define NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR1 0x00020000
2566#define NV10TCL_RC_FINAL1_F_INPUT_FOG 0x00030000
2567#define NV10TCL_RC_FINAL1_F_INPUT_PRIMARY_COLOR 0x00040000
2568#define NV10TCL_RC_FINAL1_F_INPUT_SECONDARY_COLOR 0x00050000
2569#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE0 0x00080000
2570#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE1 0x00090000
2571#define NV10TCL_RC_FINAL1_F_INPUT_SPARE0 0x000c0000
2572#define NV10TCL_RC_FINAL1_F_INPUT_SPARE1 0x000d0000
2573#define NV10TCL_RC_FINAL1_F_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2574#define NV10TCL_RC_FINAL1_F_INPUT_E_TIMES_F 0x000f0000
2575#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE2 0x000a0000
2576#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE3 0x000b0000
2577#define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE (1 << 20)
2578#define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_RGB 0x00000000
2579#define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_ALPHA 0x00100000
2580#define NV10TCL_RC_FINAL1_F_MAPPING_SHIFT 21
2581#define NV10TCL_RC_FINAL1_F_MAPPING_MASK 0x00e00000
2582#define NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_IDENTITY 0x00000000
2583#define NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_INVERT 0x00200000
2584#define NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NORMAL 0x00400000
2585#define NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NEGATE 0x00600000
2586#define NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NORMAL 0x00800000
2587#define NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2588#define NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_IDENTITY 0x00c00000
2589#define NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_NEGATE 0x00e00000
2590#define NV10TCL_RC_FINAL1_E_INPUT_SHIFT 24
2591#define NV10TCL_RC_FINAL1_E_INPUT_MASK 0x0f000000
2592#define NV10TCL_RC_FINAL1_E_INPUT_ZERO 0x00000000
2593#define NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR0 0x01000000
2594#define NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR1 0x02000000
2595#define NV10TCL_RC_FINAL1_E_INPUT_FOG 0x03000000
2596#define NV10TCL_RC_FINAL1_E_INPUT_PRIMARY_COLOR 0x04000000
2597#define NV10TCL_RC_FINAL1_E_INPUT_SECONDARY_COLOR 0x05000000
2598#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE0 0x08000000
2599#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE1 0x09000000
2600#define NV10TCL_RC_FINAL1_E_INPUT_SPARE0 0x0c000000
2601#define NV10TCL_RC_FINAL1_E_INPUT_SPARE1 0x0d000000
2602#define NV10TCL_RC_FINAL1_E_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2603#define NV10TCL_RC_FINAL1_E_INPUT_E_TIMES_F 0x0f000000
2604#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE2 0x0a000000
2605#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE3 0x0b000000
2606#define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE (1 << 28)
2607#define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_RGB 0x00000000
2608#define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_ALPHA 0x10000000
2609#define NV10TCL_RC_FINAL1_E_MAPPING_SHIFT 29
2610#define NV10TCL_RC_FINAL1_E_MAPPING_MASK 0xe0000000
2611#define NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_IDENTITY 0x00000000
2612#define NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_INVERT 0x20000000
2613#define NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NORMAL 0x40000000
2614#define NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NEGATE 0x60000000
2615#define NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NORMAL 0x80000000
2616#define NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2617#define NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_IDENTITY 0xc0000000
2618#define NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_NEGATE 0xe0000000
2619#define NV10TCL_LIGHT_MODEL 0x00000294
2620#define NV10TCL_LIGHT_MODEL_VERTEX_SPECULAR (1 << 0)
2621#define NV10TCL_LIGHT_MODEL_SEPARATE_SPECULAR (1 << 1)
2622#define NV10TCL_LIGHT_MODEL_LOCAL_VIEWER (1 << 16)
2623#define NV10TCL_COLOR_MATERIAL 0x00000298
2624#define NV10TCL_COLOR_MATERIAL_EMISSION (1 << 0)
2625#define NV10TCL_COLOR_MATERIAL_AMBIENT (1 << 1)
2626#define NV10TCL_COLOR_MATERIAL_DIFFUSE (1 << 2)
2627#define NV10TCL_COLOR_MATERIAL_SPECULAR (1 << 3)
2628#define NV10TCL_FOG_MODE 0x0000029c
2629#define NV10TCL_FOG_MODE_LINEAR 0x00002601
2630#define NV10TCL_FOG_MODE_EXP 0x00000800
2631#define NV10TCL_FOG_MODE_EXP_ABS 0x00000802
2632#define NV10TCL_FOG_MODE_EXP2 0x00000803
2633#define NV10TCL_FOG_COORD 0x000002a0
2634#define NV10TCL_FOG_COORD_FOG 0x00000000
2635#define NV10TCL_FOG_COORD_DIST_RADIAL 0x00000001
2636#define NV10TCL_FOG_COORD_DIST_ORTHOGONAL 0x00000002
2637#define NV10TCL_FOG_COORD_DIST_ORTHOGONAL_ABS 0x00000003
2638#define NV10TCL_FOG_ENABLE 0x000002a4
2639#define NV10TCL_FOG_COLOR 0x000002a8
2640#define NV10TCL_FOG_COLOR_R_SHIFT 0
2641#define NV10TCL_FOG_COLOR_R_MASK 0x000000ff
2642#define NV10TCL_FOG_COLOR_G_SHIFT 8
2643#define NV10TCL_FOG_COLOR_G_MASK 0x0000ff00
2644#define NV10TCL_FOG_COLOR_B_SHIFT 16
2645#define NV10TCL_FOG_COLOR_B_MASK 0x00ff0000
2646#define NV10TCL_FOG_COLOR_A_SHIFT 24
2647#define NV10TCL_FOG_COLOR_A_MASK 0xff000000
2648#define NV10TCL_VIEWPORT_CLIP_MODE 0x000002b4
2649#define NV10TCL_VIEWPORT_CLIP_HORIZ(x) (0x000002c0+((x)*4))
2650#define NV10TCL_VIEWPORT_CLIP_HORIZ__SIZE 0x00000008
2651#define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_L_SHIFT 0
2652#define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_L_MASK 0x000007ff
2653#define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_LEFT_ENABLE (1 << 11)
2654#define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_R_SHIFT 16
2655#define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_R_MASK 0x07ff0000
2656#define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_RIGHT_ENABLE (1 << 27)
2657#define NV10TCL_VIEWPORT_CLIP_VERT(x) (0x000002e0+((x)*4))
2658#define NV10TCL_VIEWPORT_CLIP_VERT__SIZE 0x00000008
2659#define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_T_SHIFT 0
2660#define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_T_MASK 0x000007ff
2661#define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_TOP_ENABLE (1 << 11)
2662#define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_B_SHIFT 16
2663#define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_B_MASK 0x07ff0000
2664#define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_BOTTOM_ENABLE (1 << 27)
2665#define NV10TCL_ALPHA_FUNC_ENABLE 0x00000300
2666#define NV10TCL_BLEND_FUNC_ENABLE 0x00000304
2667#define NV10TCL_CULL_FACE_ENABLE 0x00000308
2668#define NV10TCL_DEPTH_TEST_ENABLE 0x0000030c
2669#define NV10TCL_DITHER_ENABLE 0x00000310
2670#define NV10TCL_LIGHTING_ENABLE 0x00000314
2671#define NV10TCL_POINT_PARAMETERS_ENABLE 0x00000318
2672#define NV10TCL_POINT_SMOOTH_ENABLE 0x0000031c
2673#define NV10TCL_LINE_SMOOTH_ENABLE 0x00000320
2674#define NV10TCL_POLYGON_SMOOTH_ENABLE 0x00000324
2675#define NV10TCL_VERTEX_WEIGHT_ENABLE 0x00000328
2676#define NV10TCL_STENCIL_ENABLE 0x0000032c
2677#define NV10TCL_POLYGON_OFFSET_POINT_ENABLE 0x00000330
2678#define NV10TCL_POLYGON_OFFSET_LINE_ENABLE 0x00000334
2679#define NV10TCL_POLYGON_OFFSET_FILL_ENABLE 0x00000338
2680#define NV10TCL_ALPHA_FUNC_FUNC 0x0000033c
2681#define NV10TCL_ALPHA_FUNC_FUNC_NEVER 0x00000200
2682#define NV10TCL_ALPHA_FUNC_FUNC_LESS 0x00000201
2683#define NV10TCL_ALPHA_FUNC_FUNC_EQUAL 0x00000202
2684#define NV10TCL_ALPHA_FUNC_FUNC_LEQUAL 0x00000203
2685#define NV10TCL_ALPHA_FUNC_FUNC_GREATER 0x00000204
2686#define NV10TCL_ALPHA_FUNC_FUNC_NOTEQUAL 0x00000205
2687#define NV10TCL_ALPHA_FUNC_FUNC_GEQUAL 0x00000206
2688#define NV10TCL_ALPHA_FUNC_FUNC_ALWAYS 0x00000207
2689#define NV10TCL_ALPHA_FUNC_REF 0x00000340
2690#define NV10TCL_BLEND_FUNC_SRC 0x00000344
2691#define NV10TCL_BLEND_FUNC_SRC_ZERO 0x00000000
2692#define NV10TCL_BLEND_FUNC_SRC_ONE 0x00000001
2693#define NV10TCL_BLEND_FUNC_SRC_SRC_COLOR 0x00000300
2694#define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_SRC_COLOR 0x00000301
2695#define NV10TCL_BLEND_FUNC_SRC_SRC_ALPHA 0x00000302
2696#define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_SRC_ALPHA 0x00000303
2697#define NV10TCL_BLEND_FUNC_SRC_DST_ALPHA 0x00000304
2698#define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_DST_ALPHA 0x00000305
2699#define NV10TCL_BLEND_FUNC_SRC_DST_COLOR 0x00000306
2700#define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_DST_COLOR 0x00000307
2701#define NV10TCL_BLEND_FUNC_SRC_SRC_ALPHA_SATURATE 0x00000308
2702#define NV10TCL_BLEND_FUNC_SRC_CONSTANT_COLOR 0x00008001
2703#define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_CONSTANT_COLOR 0x00008002
2704#define NV10TCL_BLEND_FUNC_SRC_CONSTANT_ALPHA 0x00008003
2705#define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_CONSTANT_ALPHA 0x00008004
2706#define NV10TCL_BLEND_FUNC_DST 0x00000348
2707#define NV10TCL_BLEND_FUNC_DST_ZERO 0x00000000
2708#define NV10TCL_BLEND_FUNC_DST_ONE 0x00000001
2709#define NV10TCL_BLEND_FUNC_DST_SRC_COLOR 0x00000300
2710#define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_SRC_COLOR 0x00000301
2711#define NV10TCL_BLEND_FUNC_DST_SRC_ALPHA 0x00000302
2712#define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_SRC_ALPHA 0x00000303
2713#define NV10TCL_BLEND_FUNC_DST_DST_ALPHA 0x00000304
2714#define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_DST_ALPHA 0x00000305
2715#define NV10TCL_BLEND_FUNC_DST_DST_COLOR 0x00000306
2716#define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_DST_COLOR 0x00000307
2717#define NV10TCL_BLEND_FUNC_DST_SRC_ALPHA_SATURATE 0x00000308
2718#define NV10TCL_BLEND_FUNC_DST_CONSTANT_COLOR 0x00008001
2719#define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_CONSTANT_COLOR 0x00008002
2720#define NV10TCL_BLEND_FUNC_DST_CONSTANT_ALPHA 0x00008003
2721#define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_CONSTANT_ALPHA 0x00008004
2722#define NV10TCL_BLEND_COLOR 0x0000034c
2723#define NV10TCL_BLEND_COLOR_B_SHIFT 0
2724#define NV10TCL_BLEND_COLOR_B_MASK 0x000000ff
2725#define NV10TCL_BLEND_COLOR_G_SHIFT 8
2726#define NV10TCL_BLEND_COLOR_G_MASK 0x0000ff00
2727#define NV10TCL_BLEND_COLOR_R_SHIFT 16
2728#define NV10TCL_BLEND_COLOR_R_MASK 0x00ff0000
2729#define NV10TCL_BLEND_COLOR_A_SHIFT 24
2730#define NV10TCL_BLEND_COLOR_A_MASK 0xff000000
2731#define NV10TCL_BLEND_EQUATION 0x00000350
2732#define NV10TCL_BLEND_EQUATION_FUNC_ADD 0x00008006
2733#define NV10TCL_BLEND_EQUATION_MIN 0x00008007
2734#define NV10TCL_BLEND_EQUATION_MAX 0x00008008
2735#define NV10TCL_BLEND_EQUATION_FUNC_SUBTRACT 0x0000800a
2736#define NV10TCL_BLEND_EQUATION_FUNC_REVERSE_SUBTRACT 0x0000800b
2737#define NV10TCL_DEPTH_FUNC 0x00000354
2738#define NV10TCL_DEPTH_FUNC_NEVER 0x00000200
2739#define NV10TCL_DEPTH_FUNC_LESS 0x00000201
2740#define NV10TCL_DEPTH_FUNC_EQUAL 0x00000202
2741#define NV10TCL_DEPTH_FUNC_LEQUAL 0x00000203
2742#define NV10TCL_DEPTH_FUNC_GREATER 0x00000204
2743#define NV10TCL_DEPTH_FUNC_NOTEQUAL 0x00000205
2744#define NV10TCL_DEPTH_FUNC_GEQUAL 0x00000206
2745#define NV10TCL_DEPTH_FUNC_ALWAYS 0x00000207
2746#define NV10TCL_COLOR_MASK 0x00000358
2747#define NV10TCL_COLOR_MASK_B (1 << 0)
2748#define NV10TCL_COLOR_MASK_G (1 << 8)
2749#define NV10TCL_COLOR_MASK_R (1 << 16)
2750#define NV10TCL_COLOR_MASK_A (1 << 24)
2751#define NV10TCL_DEPTH_WRITE_ENABLE 0x0000035c
2752#define NV10TCL_STENCIL_MASK 0x00000360
2753#define NV10TCL_STENCIL_FUNC_FUNC 0x00000364
2754#define NV10TCL_STENCIL_FUNC_FUNC_NEVER 0x00000200
2755#define NV10TCL_STENCIL_FUNC_FUNC_LESS 0x00000201
2756#define NV10TCL_STENCIL_FUNC_FUNC_EQUAL 0x00000202
2757#define NV10TCL_STENCIL_FUNC_FUNC_LEQUAL 0x00000203
2758#define NV10TCL_STENCIL_FUNC_FUNC_GREATER 0x00000204
2759#define NV10TCL_STENCIL_FUNC_FUNC_NOTEQUAL 0x00000205
2760#define NV10TCL_STENCIL_FUNC_FUNC_GEQUAL 0x00000206
2761#define NV10TCL_STENCIL_FUNC_FUNC_ALWAYS 0x00000207
2762#define NV10TCL_STENCIL_FUNC_REF 0x00000368
2763#define NV10TCL_STENCIL_FUNC_MASK 0x0000036c
2764#define NV10TCL_STENCIL_OP_FAIL 0x00000370
2765#define NV10TCL_STENCIL_OP_FAIL_ZERO 0x00000000
2766#define NV10TCL_STENCIL_OP_FAIL_INVERT 0x0000150a
2767#define NV10TCL_STENCIL_OP_FAIL_KEEP 0x00001e00
2768#define NV10TCL_STENCIL_OP_FAIL_REPLACE 0x00001e01
2769#define NV10TCL_STENCIL_OP_FAIL_INCR 0x00001e02
2770#define NV10TCL_STENCIL_OP_FAIL_DECR 0x00001e03
2771#define NV10TCL_STENCIL_OP_FAIL_INCR_WRAP 0x00008507
2772#define NV10TCL_STENCIL_OP_FAIL_DECR_WRAP 0x00008508
2773#define NV10TCL_STENCIL_OP_ZFAIL 0x00000374
2774#define NV10TCL_STENCIL_OP_ZFAIL_ZERO 0x00000000
2775#define NV10TCL_STENCIL_OP_ZFAIL_INVERT 0x0000150a
2776#define NV10TCL_STENCIL_OP_ZFAIL_KEEP 0x00001e00
2777#define NV10TCL_STENCIL_OP_ZFAIL_REPLACE 0x00001e01
2778#define NV10TCL_STENCIL_OP_ZFAIL_INCR 0x00001e02
2779#define NV10TCL_STENCIL_OP_ZFAIL_DECR 0x00001e03
2780#define NV10TCL_STENCIL_OP_ZFAIL_INCR_WRAP 0x00008507
2781#define NV10TCL_STENCIL_OP_ZFAIL_DECR_WRAP 0x00008508
2782#define NV10TCL_STENCIL_OP_ZPASS 0x00000378
2783#define NV10TCL_STENCIL_OP_ZPASS_ZERO 0x00000000
2784#define NV10TCL_STENCIL_OP_ZPASS_INVERT 0x0000150a
2785#define NV10TCL_STENCIL_OP_ZPASS_KEEP 0x00001e00
2786#define NV10TCL_STENCIL_OP_ZPASS_REPLACE 0x00001e01
2787#define NV10TCL_STENCIL_OP_ZPASS_INCR 0x00001e02
2788#define NV10TCL_STENCIL_OP_ZPASS_DECR 0x00001e03
2789#define NV10TCL_STENCIL_OP_ZPASS_INCR_WRAP 0x00008507
2790#define NV10TCL_STENCIL_OP_ZPASS_DECR_WRAP 0x00008508
2791#define NV10TCL_SHADE_MODEL 0x0000037c
2792#define NV10TCL_SHADE_MODEL_FLAT 0x00001d00
2793#define NV10TCL_SHADE_MODEL_SMOOTH 0x00001d01
2794#define NV10TCL_LINE_WIDTH 0x00000380
2795#define NV10TCL_POLYGON_OFFSET_FACTOR 0x00000384
2796#define NV10TCL_POLYGON_OFFSET_UNITS 0x00000388
2797#define NV10TCL_POLYGON_MODE_FRONT 0x0000038c
2798#define NV10TCL_POLYGON_MODE_FRONT_POINT 0x00001b00
2799#define NV10TCL_POLYGON_MODE_FRONT_LINE 0x00001b01
2800#define NV10TCL_POLYGON_MODE_FRONT_FILL 0x00001b02
2801#define NV10TCL_POLYGON_MODE_BACK 0x00000390
2802#define NV10TCL_POLYGON_MODE_BACK_POINT 0x00001b00
2803#define NV10TCL_POLYGON_MODE_BACK_LINE 0x00001b01
2804#define NV10TCL_POLYGON_MODE_BACK_FILL 0x00001b02
2805#define NV10TCL_DEPTH_RANGE_NEAR 0x00000394
2806#define NV10TCL_DEPTH_RANGE_FAR 0x00000398
2807#define NV10TCL_CULL_FACE 0x0000039c
2808#define NV10TCL_CULL_FACE_FRONT 0x00000404
2809#define NV10TCL_CULL_FACE_BACK 0x00000405
2810#define NV10TCL_CULL_FACE_FRONT_AND_BACK 0x00000408
2811#define NV10TCL_FRONT_FACE 0x000003a0
2812#define NV10TCL_FRONT_FACE_CW 0x00000900
2813#define NV10TCL_FRONT_FACE_CCW 0x00000901
2814#define NV10TCL_NORMALIZE_ENABLE 0x000003a4
2815#define NV10TCL_MATERIAL_FACTOR_R 0x000003a8
2816#define NV10TCL_MATERIAL_FACTOR_G 0x000003ac
2817#define NV10TCL_MATERIAL_FACTOR_B 0x000003b0
2818#define NV10TCL_MATERIAL_FACTOR_A 0x000003b4
2819#define NV10TCL_SEPARATE_SPECULAR_ENABLE 0x000003b8
2820#define NV10TCL_ENABLED_LIGHTS 0x000003bc
2821#define NV10TCL_ENABLED_LIGHTS_0_SHIFT 0
2822#define NV10TCL_ENABLED_LIGHTS_0_MASK 0x00000003
2823#define NV10TCL_ENABLED_LIGHTS_0_DISABLED 0x00000000
2824#define NV10TCL_ENABLED_LIGHTS_0_NONPOSITIONAL 0x00000001
2825#define NV10TCL_ENABLED_LIGHTS_0_POSITIONAL 0x00000002
2826#define NV10TCL_ENABLED_LIGHTS_0_DIRECTIONAL 0x00000003
2827#define NV10TCL_ENABLED_LIGHTS_1_SHIFT 2
2828#define NV10TCL_ENABLED_LIGHTS_1_MASK 0x0000000c
2829#define NV10TCL_ENABLED_LIGHTS_1_DISABLED 0x00000000
2830#define NV10TCL_ENABLED_LIGHTS_1_NONPOSITIONAL 0x00000004
2831#define NV10TCL_ENABLED_LIGHTS_1_POSITIONAL 0x00000008
2832#define NV10TCL_ENABLED_LIGHTS_1_DIRECTIONAL 0x0000000c
2833#define NV10TCL_ENABLED_LIGHTS_2_SHIFT 4
2834#define NV10TCL_ENABLED_LIGHTS_2_MASK 0x00000030
2835#define NV10TCL_ENABLED_LIGHTS_2_DISABLED 0x00000000
2836#define NV10TCL_ENABLED_LIGHTS_2_NONPOSITIONAL 0x00000010
2837#define NV10TCL_ENABLED_LIGHTS_2_POSITIONAL 0x00000020
2838#define NV10TCL_ENABLED_LIGHTS_2_DIRECTIONAL 0x00000030
2839#define NV10TCL_ENABLED_LIGHTS_3_SHIFT 6
2840#define NV10TCL_ENABLED_LIGHTS_3_MASK 0x000000c0
2841#define NV10TCL_ENABLED_LIGHTS_3_DISABLED 0x00000000
2842#define NV10TCL_ENABLED_LIGHTS_3_NONPOSITIONAL 0x00000040
2843#define NV10TCL_ENABLED_LIGHTS_3_POSITIONAL 0x00000080
2844#define NV10TCL_ENABLED_LIGHTS_3_DIRECTIONAL 0x000000c0
2845#define NV10TCL_ENABLED_LIGHTS_4_SHIFT 8
2846#define NV10TCL_ENABLED_LIGHTS_4_MASK 0x00000300
2847#define NV10TCL_ENABLED_LIGHTS_4_DISABLED 0x00000000
2848#define NV10TCL_ENABLED_LIGHTS_4_NONPOSITIONAL 0x00000100
2849#define NV10TCL_ENABLED_LIGHTS_4_POSITIONAL 0x00000200
2850#define NV10TCL_ENABLED_LIGHTS_4_DIRECTIONAL 0x00000300
2851#define NV10TCL_ENABLED_LIGHTS_5_SHIFT 10
2852#define NV10TCL_ENABLED_LIGHTS_5_MASK 0x00000c00
2853#define NV10TCL_ENABLED_LIGHTS_5_DISABLED 0x00000000
2854#define NV10TCL_ENABLED_LIGHTS_5_NONPOSITIONAL 0x00000400
2855#define NV10TCL_ENABLED_LIGHTS_5_POSITIONAL 0x00000800
2856#define NV10TCL_ENABLED_LIGHTS_5_DIRECTIONAL 0x00000c00
2857#define NV10TCL_ENABLED_LIGHTS_6_SHIFT 12
2858#define NV10TCL_ENABLED_LIGHTS_6_MASK 0x00003000
2859#define NV10TCL_ENABLED_LIGHTS_6_DISABLED 0x00000000
2860#define NV10TCL_ENABLED_LIGHTS_6_NONPOSITIONAL 0x00001000
2861#define NV10TCL_ENABLED_LIGHTS_6_POSITIONAL 0x00002000
2862#define NV10TCL_ENABLED_LIGHTS_6_DIRECTIONAL 0x00003000
2863#define NV10TCL_ENABLED_LIGHTS_7_SHIFT 14
2864#define NV10TCL_ENABLED_LIGHTS_7_MASK 0x0000c000
2865#define NV10TCL_ENABLED_LIGHTS_7_DISABLED 0x00000000
2866#define NV10TCL_ENABLED_LIGHTS_7_NONPOSITIONAL 0x00004000
2867#define NV10TCL_ENABLED_LIGHTS_7_POSITIONAL 0x00008000
2868#define NV10TCL_ENABLED_LIGHTS_7_DIRECTIONAL 0x0000c000
2869#define NV10TCL_TX_GEN_MODE_S(x) (0x000003c0+((x)*16))
2870#define NV10TCL_TX_GEN_MODE_S__SIZE 0x00000002
2871#define NV10TCL_TX_GEN_MODE_S_FALSE 0x00000000
2872#define NV10TCL_TX_GEN_MODE_S_EYE_LINEAR 0x00002400
2873#define NV10TCL_TX_GEN_MODE_S_OBJECT_LINEAR 0x00002401
2874#define NV10TCL_TX_GEN_MODE_S_SPHERE_MAP 0x00002402
2875#define NV10TCL_TX_GEN_MODE_S_NORMAL_MAP 0x00008511
2876#define NV10TCL_TX_GEN_MODE_S_REFLECTION_MAP 0x00008512
2877#define NV10TCL_TX_GEN_MODE_T(x) (0x000003c4+((x)*16))
2878#define NV10TCL_TX_GEN_MODE_T__SIZE 0x00000002
2879#define NV10TCL_TX_GEN_MODE_T_FALSE 0x00000000
2880#define NV10TCL_TX_GEN_MODE_T_EYE_LINEAR 0x00002400
2881#define NV10TCL_TX_GEN_MODE_T_OBJECT_LINEAR 0x00002401
2882#define NV10TCL_TX_GEN_MODE_T_SPHERE_MAP 0x00002402
2883#define NV10TCL_TX_GEN_MODE_T_NORMAL_MAP 0x00008511
2884#define NV10TCL_TX_GEN_MODE_T_REFLECTION_MAP 0x00008512
2885#define NV10TCL_TX_GEN_MODE_R(x) (0x000003c8+((x)*16))
2886#define NV10TCL_TX_GEN_MODE_R__SIZE 0x00000002
2887#define NV10TCL_TX_GEN_MODE_R_FALSE 0x00000000
2888#define NV10TCL_TX_GEN_MODE_R_EYE_LINEAR 0x00002400
2889#define NV10TCL_TX_GEN_MODE_R_OBJECT_LINEAR 0x00002401
2890#define NV10TCL_TX_GEN_MODE_R_SPHERE_MAP 0x00002402
2891#define NV10TCL_TX_GEN_MODE_R_NORMAL_MAP 0x00008511
2892#define NV10TCL_TX_GEN_MODE_R_REFLECTION_MAP 0x00008512
2893#define NV10TCL_TX_GEN_MODE_Q(x) (0x000003cc+((x)*16))
2894#define NV10TCL_TX_GEN_MODE_Q__SIZE 0x00000002
2895#define NV10TCL_TX_GEN_MODE_Q_FALSE 0x00000000
2896#define NV10TCL_TX_GEN_MODE_Q_EYE_LINEAR 0x00002400
2897#define NV10TCL_TX_GEN_MODE_Q_OBJECT_LINEAR 0x00002401
2898#define NV10TCL_TX_GEN_MODE_Q_SPHERE_MAP 0x00002402
2899#define NV10TCL_TX_GEN_MODE_Q_NORMAL_MAP 0x00008511
2900#define NV10TCL_TX_GEN_MODE_Q_REFLECTION_MAP 0x00008512
2901#define NV10TCL_TX_MATRIX_ENABLE(x) (0x000003e0+((x)*4))
2902#define NV10TCL_TX_MATRIX_ENABLE__SIZE 0x00000002
2903#define NV10TCL_VIEW_MATRIX_ENABLE 0x000003e8
2904#define NV10TCL_VIEW_MATRIX_ENABLE_MODELVIEW1 (1 << 0)
2905#define NV10TCL_VIEW_MATRIX_ENABLE_MODELVIEW0 (1 << 1)
2906#define NV10TCL_VIEW_MATRIX_ENABLE_PROJECTION (1 << 2)
2907#define NV10TCL_POINT_SIZE 0x000003ec
2908#define NV10TCL_MODELVIEW0_MATRIX(x) (0x00000400+((x)*4))
2909#define NV10TCL_MODELVIEW0_MATRIX__SIZE 0x00000010
2910#define NV10TCL_MODELVIEW1_MATRIX(x) (0x00000440+((x)*4))
2911#define NV10TCL_MODELVIEW1_MATRIX__SIZE 0x00000010
2912#define NV10TCL_INVERSE_MODELVIEW0_MATRIX(x) (0x00000480+((x)*4))
2913#define NV10TCL_INVERSE_MODELVIEW0_MATRIX__SIZE 0x00000010
2914#define NV10TCL_INVERSE_MODELVIEW1_MATRIX(x) (0x000004c0+((x)*4))
2915#define NV10TCL_INVERSE_MODELVIEW1_MATRIX__SIZE 0x00000010
2916#define NV10TCL_PROJECTION_MATRIX(x) (0x00000500+((x)*4))
2917#define NV10TCL_PROJECTION_MATRIX__SIZE 0x00000010
2918#define NV10TCL_TX0_MATRIX(x) (0x00000540+((x)*4))
2919#define NV10TCL_TX0_MATRIX__SIZE 0x00000010
2920#define NV10TCL_TX1_MATRIX(x) (0x00000580+((x)*4))
2921#define NV10TCL_TX1_MATRIX__SIZE 0x00000010
2922#define NV10TCL_TX_GEN_COEFF_S_A(x) (0x00000600+((x)*64))
2923#define NV10TCL_TX_GEN_COEFF_S_A__SIZE 0x00000002
2924#define NV10TCL_TX_GEN_COEFF_S_B(x) (0x00000604+((x)*64))
2925#define NV10TCL_TX_GEN_COEFF_S_B__SIZE 0x00000002
2926#define NV10TCL_TX_GEN_COEFF_S_C(x) (0x00000608+((x)*64))
2927#define NV10TCL_TX_GEN_COEFF_S_C__SIZE 0x00000002
2928#define NV10TCL_TX_GEN_COEFF_S_D(x) (0x0000060c+((x)*64))
2929#define NV10TCL_TX_GEN_COEFF_S_D__SIZE 0x00000002
2930#define NV10TCL_TX_GEN_COEFF_T_A(x) (0x00000610+((x)*64))
2931#define NV10TCL_TX_GEN_COEFF_T_A__SIZE 0x00000002
2932#define NV10TCL_TX_GEN_COEFF_T_B(x) (0x00000614+((x)*64))
2933#define NV10TCL_TX_GEN_COEFF_T_B__SIZE 0x00000002
2934#define NV10TCL_TX_GEN_COEFF_T_C(x) (0x00000618+((x)*64))
2935#define NV10TCL_TX_GEN_COEFF_T_C__SIZE 0x00000002
2936#define NV10TCL_TX_GEN_COEFF_T_D(x) (0x0000061c+((x)*64))
2937#define NV10TCL_TX_GEN_COEFF_T_D__SIZE 0x00000002
2938#define NV10TCL_TX_GEN_COEFF_R_A(x) (0x00000620+((x)*64))
2939#define NV10TCL_TX_GEN_COEFF_R_A__SIZE 0x00000002
2940#define NV10TCL_TX_GEN_COEFF_R_B(x) (0x00000624+((x)*64))
2941#define NV10TCL_TX_GEN_COEFF_R_B__SIZE 0x00000002
2942#define NV10TCL_TX_GEN_COEFF_R_C(x) (0x00000628+((x)*64))
2943#define NV10TCL_TX_GEN_COEFF_R_C__SIZE 0x00000002
2944#define NV10TCL_TX_GEN_COEFF_R_D(x) (0x0000062c+((x)*64))
2945#define NV10TCL_TX_GEN_COEFF_R_D__SIZE 0x00000002
2946#define NV10TCL_TX_GEN_COEFF_Q_A(x) (0x00000630+((x)*64))
2947#define NV10TCL_TX_GEN_COEFF_Q_A__SIZE 0x00000002
2948#define NV10TCL_TX_GEN_COEFF_Q_B(x) (0x00000634+((x)*64))
2949#define NV10TCL_TX_GEN_COEFF_Q_B__SIZE 0x00000002
2950#define NV10TCL_TX_GEN_COEFF_Q_C(x) (0x00000638+((x)*64))
2951#define NV10TCL_TX_GEN_COEFF_Q_C__SIZE 0x00000002
2952#define NV10TCL_TX_GEN_COEFF_Q_D(x) (0x0000063c+((x)*64))
2953#define NV10TCL_TX_GEN_COEFF_Q_D__SIZE 0x00000002
2954#define NV10TCL_FOG_EQUATION_CONSTANT 0x00000680
2955#define NV10TCL_FOG_EQUATION_LINEAR 0x00000684
2956#define NV10TCL_FOG_EQUATION_QUADRATIC 0x00000688
2957#define NV10TCL_MATERIAL_SHININESS(x) (0x000006a0+((x)*4))
2958#define NV10TCL_MATERIAL_SHININESS__SIZE 0x00000006
2959#define NV10TCL_LIGHT_MODEL_AMBIENT_R 0x000006c4
2960#define NV10TCL_LIGHT_MODEL_AMBIENT_G 0x000006c8
2961#define NV10TCL_LIGHT_MODEL_AMBIENT_B 0x000006cc
2962#define NV10TCL_VIEWPORT_TRANSLATE_X 0x000006e8
2963#define NV10TCL_VIEWPORT_TRANSLATE_Y 0x000006ec
2964#define NV10TCL_VIEWPORT_TRANSLATE_Z 0x000006f0
2965#define NV10TCL_VIEWPORT_TRANSLATE_W 0x000006f4
2966#define NV10TCL_POINT_PARAMETER(x) (0x000006f8+((x)*4))
2967#define NV10TCL_POINT_PARAMETER__SIZE 0x00000008
2968#define NV10TCL_LIGHT_AMBIENT_R(x) (0x00000800+((x)*128))
2969#define NV10TCL_LIGHT_AMBIENT_R__SIZE 0x00000008
2970#define NV10TCL_LIGHT_AMBIENT_G(x) (0x00000804+((x)*128))
2971#define NV10TCL_LIGHT_AMBIENT_G__SIZE 0x00000008
2972#define NV10TCL_LIGHT_AMBIENT_B(x) (0x00000808+((x)*128))
2973#define NV10TCL_LIGHT_AMBIENT_B__SIZE 0x00000008
2974#define NV10TCL_LIGHT_DIFFUSE_R(x) (0x0000080c+((x)*128))
2975#define NV10TCL_LIGHT_DIFFUSE_R__SIZE 0x00000008
2976#define NV10TCL_LIGHT_DIFFUSE_G(x) (0x00000810+((x)*128))
2977#define NV10TCL_LIGHT_DIFFUSE_G__SIZE 0x00000008
2978#define NV10TCL_LIGHT_DIFFUSE_B(x) (0x00000814+((x)*128))
2979#define NV10TCL_LIGHT_DIFFUSE_B__SIZE 0x00000008
2980#define NV10TCL_LIGHT_SPECULAR_R(x) (0x00000818+((x)*128))
2981#define NV10TCL_LIGHT_SPECULAR_R__SIZE 0x00000008
2982#define NV10TCL_LIGHT_SPECULAR_G(x) (0x0000081c+((x)*128))
2983#define NV10TCL_LIGHT_SPECULAR_G__SIZE 0x00000008
2984#define NV10TCL_LIGHT_SPECULAR_B(x) (0x00000820+((x)*128))
2985#define NV10TCL_LIGHT_SPECULAR_B__SIZE 0x00000008
2986#define NV10TCL_LIGHT_HALF_VECTOR_X(x) (0x00000828+((x)*128))
2987#define NV10TCL_LIGHT_HALF_VECTOR_X__SIZE 0x00000008
2988#define NV10TCL_LIGHT_HALF_VECTOR_Y(x) (0x0000082c+((x)*128))
2989#define NV10TCL_LIGHT_HALF_VECTOR_Y__SIZE 0x00000008
2990#define NV10TCL_LIGHT_HALF_VECTOR_Z(x) (0x00000830+((x)*128))
2991#define NV10TCL_LIGHT_HALF_VECTOR_Z__SIZE 0x00000008
2992#define NV10TCL_LIGHT_DIRECTION_X(x) (0x00000834+((x)*128))
2993#define NV10TCL_LIGHT_DIRECTION_X__SIZE 0x00000008
2994#define NV10TCL_LIGHT_DIRECTION_Y(x) (0x00000838+((x)*128))
2995#define NV10TCL_LIGHT_DIRECTION_Y__SIZE 0x00000008
2996#define NV10TCL_LIGHT_DIRECTION_Z(x) (0x0000083c+((x)*128))
2997#define NV10TCL_LIGHT_DIRECTION_Z__SIZE 0x00000008
2998#define NV10TCL_LIGHT_SPOT_CUTOFF_A(x) (0x00000840+((x)*128))
2999#define NV10TCL_LIGHT_SPOT_CUTOFF_A__SIZE 0x00000008
3000#define NV10TCL_LIGHT_SPOT_CUTOFF_B(x) (0x00000844+((x)*128))
3001#define NV10TCL_LIGHT_SPOT_CUTOFF_B__SIZE 0x00000008
3002#define NV10TCL_LIGHT_SPOT_CUTOFF_C(x) (0x00000848+((x)*128))
3003#define NV10TCL_LIGHT_SPOT_CUTOFF_C__SIZE 0x00000008
3004#define NV10TCL_LIGHT_SPOT_DIR_X(x) (0x0000084c+((x)*128))
3005#define NV10TCL_LIGHT_SPOT_DIR_X__SIZE 0x00000008
3006#define NV10TCL_LIGHT_SPOT_DIR_Y(x) (0x00000850+((x)*128))
3007#define NV10TCL_LIGHT_SPOT_DIR_Y__SIZE 0x00000008
3008#define NV10TCL_LIGHT_SPOT_DIR_Z(x) (0x00000854+((x)*128))
3009#define NV10TCL_LIGHT_SPOT_DIR_Z__SIZE 0x00000008
3010#define NV10TCL_LIGHT_SPOT_CUTOFF_D(x) (0x00000858+((x)*128))
3011#define NV10TCL_LIGHT_SPOT_CUTOFF_D__SIZE 0x00000008
3012#define NV10TCL_LIGHT_POSITION_X(x) (0x0000085c+((x)*128))
3013#define NV10TCL_LIGHT_POSITION_X__SIZE 0x00000008
3014#define NV10TCL_LIGHT_POSITION_Y(x) (0x00000860+((x)*128))
3015#define NV10TCL_LIGHT_POSITION_Y__SIZE 0x00000008
3016#define NV10TCL_LIGHT_POSITION_Z(x) (0x00000864+((x)*128))
3017#define NV10TCL_LIGHT_POSITION_Z__SIZE 0x00000008
3018#define NV10TCL_LIGHT_ATTENUATION_CONSTANT(x) (0x00000868+((x)*128))
3019#define NV10TCL_LIGHT_ATTENUATION_CONSTANT__SIZE 0x00000008
3020#define NV10TCL_LIGHT_ATTENUATION_LINEAR(x) (0x0000086c+((x)*128))
3021#define NV10TCL_LIGHT_ATTENUATION_LINEAR__SIZE 0x00000008
3022#define NV10TCL_LIGHT_ATTENUATION_QUADRATIC(x) (0x00000870+((x)*128))
3023#define NV10TCL_LIGHT_ATTENUATION_QUADRATIC__SIZE 0x00000008
3024#define NV10TCL_VERTEX_POS_3F_X 0x00000c00
3025#define NV10TCL_VERTEX_POS_3F_Y 0x00000c04
3026#define NV10TCL_VERTEX_POS_3F_Z 0x00000c08
3027#define NV10TCL_VERTEX_POS_4F_X 0x00000c18
3028#define NV10TCL_VERTEX_POS_4F_Y 0x00000c1c
3029#define NV10TCL_VERTEX_POS_4F_Z 0x00000c20
3030#define NV10TCL_VERTEX_POS_4F_W 0x00000c24
3031#define NV10TCL_VERTEX_NOR_3F_X 0x00000c30
3032#define NV10TCL_VERTEX_NOR_3F_Y 0x00000c34
3033#define NV10TCL_VERTEX_NOR_3F_Z 0x00000c38
3034#define NV10TCL_VERTEX_NOR_3I_XY 0x00000c40
3035#define NV10TCL_VERTEX_NOR_3I_XY_X_SHIFT 0
3036#define NV10TCL_VERTEX_NOR_3I_XY_X_MASK 0x0000ffff
3037#define NV10TCL_VERTEX_NOR_3I_XY_Y_SHIFT 16
3038#define NV10TCL_VERTEX_NOR_3I_XY_Y_MASK 0xffff0000
3039#define NV10TCL_VERTEX_NOR_3I_Z 0x00000c44
3040#define NV10TCL_VERTEX_NOR_3I_Z_Z_SHIFT 0
3041#define NV10TCL_VERTEX_NOR_3I_Z_Z_MASK 0x0000ffff
3042#define NV10TCL_VERTEX_COL_4F_R 0x00000c50
3043#define NV10TCL_VERTEX_COL_4F_G 0x00000c54
3044#define NV10TCL_VERTEX_COL_4F_B 0x00000c58
3045#define NV10TCL_VERTEX_COL_4F_A 0x00000c5c
3046#define NV10TCL_VERTEX_COL_3F_R 0x00000c60
3047#define NV10TCL_VERTEX_COL_3F_G 0x00000c64
3048#define NV10TCL_VERTEX_COL_3F_B 0x00000c68
3049#define NV10TCL_VERTEX_COL_4I 0x00000c6c
3050#define NV10TCL_VERTEX_COL_4I_R_SHIFT 0
3051#define NV10TCL_VERTEX_COL_4I_R_MASK 0x000000ff
3052#define NV10TCL_VERTEX_COL_4I_G_SHIFT 8
3053#define NV10TCL_VERTEX_COL_4I_G_MASK 0x0000ff00
3054#define NV10TCL_VERTEX_COL_4I_B_SHIFT 16
3055#define NV10TCL_VERTEX_COL_4I_B_MASK 0x00ff0000
3056#define NV10TCL_VERTEX_COL_4I_A_SHIFT 24
3057#define NV10TCL_VERTEX_COL_4I_A_MASK 0xff000000
3058#define NV10TCL_VERTEX_COL2_3F_R 0x00000c80
3059#define NV10TCL_VERTEX_COL2_3F_G 0x00000c84
3060#define NV10TCL_VERTEX_COL2_3F_B 0x00000c88
3061#define NV10TCL_VERTEX_COL2_3I 0x00000c8c
3062#define NV10TCL_VERTEX_COL2_3I_R_SHIFT 0
3063#define NV10TCL_VERTEX_COL2_3I_R_MASK 0x000000ff
3064#define NV10TCL_VERTEX_COL2_3I_G_SHIFT 8
3065#define NV10TCL_VERTEX_COL2_3I_G_MASK 0x0000ff00
3066#define NV10TCL_VERTEX_COL2_3I_B_SHIFT 16
3067#define NV10TCL_VERTEX_COL2_3I_B_MASK 0x00ff0000
3068#define NV10TCL_VERTEX_TX0_2F_S 0x00000c90
3069#define NV10TCL_VERTEX_TX0_2F_T 0x00000c94
3070#define NV10TCL_VERTEX_TX0_2I 0x00000c98
3071#define NV10TCL_VERTEX_TX0_2I_S_SHIFT 0
3072#define NV10TCL_VERTEX_TX0_2I_S_MASK 0x0000ffff
3073#define NV10TCL_VERTEX_TX0_2I_T_SHIFT 16
3074#define NV10TCL_VERTEX_TX0_2I_T_MASK 0xffff0000
3075#define NV10TCL_VERTEX_TX0_4F_S 0x00000ca0
3076#define NV10TCL_VERTEX_TX0_4F_T 0x00000ca4
3077#define NV10TCL_VERTEX_TX0_4F_R 0x00000ca8
3078#define NV10TCL_VERTEX_TX0_4F_Q 0x00000cac
3079#define NV10TCL_VERTEX_TX0_4I_ST 0x00000cb0
3080#define NV10TCL_VERTEX_TX0_4I_ST_S_SHIFT 0
3081#define NV10TCL_VERTEX_TX0_4I_ST_S_MASK 0x0000ffff
3082#define NV10TCL_VERTEX_TX0_4I_ST_T_SHIFT 16
3083#define NV10TCL_VERTEX_TX0_4I_ST_T_MASK 0xffff0000
3084#define NV10TCL_VERTEX_TX0_4I_RQ 0x00000cb4
3085#define NV10TCL_VERTEX_TX0_4I_RQ_R_SHIFT 0
3086#define NV10TCL_VERTEX_TX0_4I_RQ_R_MASK 0x0000ffff
3087#define NV10TCL_VERTEX_TX0_4I_RQ_Q_SHIFT 16
3088#define NV10TCL_VERTEX_TX0_4I_RQ_Q_MASK 0xffff0000
3089#define NV10TCL_VERTEX_TX1_2F_S 0x00000cb8
3090#define NV10TCL_VERTEX_TX1_2F_T 0x00000cbc
3091#define NV10TCL_VERTEX_TX1_2I 0x00000cc0
3092#define NV10TCL_VERTEX_TX1_2I_S_SHIFT 0
3093#define NV10TCL_VERTEX_TX1_2I_S_MASK 0x0000ffff
3094#define NV10TCL_VERTEX_TX1_2I_T_SHIFT 16
3095#define NV10TCL_VERTEX_TX1_2I_T_MASK 0xffff0000
3096#define NV10TCL_VERTEX_TX1_4F_S 0x00000cc8
3097#define NV10TCL_VERTEX_TX1_4F_T 0x00000ccc
3098#define NV10TCL_VERTEX_TX1_4F_R 0x00000cd0
3099#define NV10TCL_VERTEX_TX1_4F_Q 0x00000cd4
3100#define NV10TCL_VERTEX_TX1_4I_ST 0x00000cd8
3101#define NV10TCL_VERTEX_TX1_4I_ST_S_SHIFT 0
3102#define NV10TCL_VERTEX_TX1_4I_ST_S_MASK 0x0000ffff
3103#define NV10TCL_VERTEX_TX1_4I_ST_T_SHIFT 16
3104#define NV10TCL_VERTEX_TX1_4I_ST_T_MASK 0xffff0000
3105#define NV10TCL_VERTEX_TX1_4I_RQ 0x00000cdc
3106#define NV10TCL_VERTEX_TX1_4I_RQ_R_SHIFT 0
3107#define NV10TCL_VERTEX_TX1_4I_RQ_R_MASK 0x0000ffff
3108#define NV10TCL_VERTEX_TX1_4I_RQ_Q_SHIFT 16
3109#define NV10TCL_VERTEX_TX1_4I_RQ_Q_MASK 0xffff0000
3110#define NV10TCL_VERTEX_FOG_1F 0x00000ce0
3111#define NV10TCL_VERTEX_WGH_1F 0x00000ce4
3112#define NV10TCL_EDGEFLAG_ENABLE 0x00000cec
3113#define NV10TCL_VERTEX_ARRAY_VALIDATE 0x00000cf0
3114#define NV10TCL_VTXBUF_ADDRESS(x) (0x00000d00+((x)*8))
3115#define NV10TCL_VTXBUF_ADDRESS__SIZE 0x00000008
3116#define NV10TCL_VTXFMT(x) (0x00000d04+((x)*8))
3117#define NV10TCL_VTXFMT__SIZE 0x00000008
3118#define NV10TCL_VTXFMT_TYPE_SHIFT 0
3119#define NV10TCL_VTXFMT_TYPE_MASK 0x0000000f
3120#define NV10TCL_VTXFMT_TYPE_BYTE_BGRA 0x00000000
3121#define NV10TCL_VTXFMT_TYPE_SHORT 0x00000001
3122#define NV10TCL_VTXFMT_TYPE_FLOAT 0x00000002
3123#define NV10TCL_VTXFMT_TYPE_BYTE_RGBA 0x00000004
3124#define NV10TCL_VTXFMT_FIELDS_SHIFT 4
3125#define NV10TCL_VTXFMT_FIELDS_MASK 0x000000f0
3126#define NV10TCL_VTXFMT_STRIDE_SHIFT 8
3127#define NV10TCL_VTXFMT_STRIDE_MASK 0x0000ff00
3128#define NV10TCL_VTXFMT_POS_HOMOGENEOUS (1 << 24)
3129#define NV10TCL_VERTEX_BEGIN_END 0x00000dfc
3130#define NV10TCL_VERTEX_BEGIN_END_STOP 0x00000000
3131#define NV10TCL_VERTEX_BEGIN_END_POINTS 0x00000001
3132#define NV10TCL_VERTEX_BEGIN_END_LINES 0x00000002
3133#define NV10TCL_VERTEX_BEGIN_END_LINE_LOOP 0x00000003
3134#define NV10TCL_VERTEX_BEGIN_END_LINE_STRIP 0x00000004
3135#define NV10TCL_VERTEX_BEGIN_END_TRIANGLES 0x00000005
3136#define NV10TCL_VERTEX_BEGIN_END_TRIANGLE_STRIP 0x00000006
3137#define NV10TCL_VERTEX_BEGIN_END_TRIANGLE_FAN 0x00000007
3138#define NV10TCL_VERTEX_BEGIN_END_QUADS 0x00000008
3139#define NV10TCL_VERTEX_BEGIN_END_QUAD_STRIP 0x00000009
3140#define NV10TCL_VERTEX_BEGIN_END_POLYGON 0x0000000a
3141#define NV10TCL_VB_ELEMENT_U16 0x00000e00
3142#define NV10TCL_VB_ELEMENT_U16_I0_SHIFT 0
3143#define NV10TCL_VB_ELEMENT_U16_I0_MASK 0x0000ffff
3144#define NV10TCL_VB_ELEMENT_U16_I1_SHIFT 16
3145#define NV10TCL_VB_ELEMENT_U16_I1_MASK 0xffff0000
3146#define NV10TCL_VB_ELEMENT_U32 0x00001100
3147#define NV10TCL_VERTEX_BUFFER_BEGIN_END 0x000013fc
3148#define NV10TCL_VERTEX_BUFFER_BEGIN_END_STOP 0x00000000
3149#define NV10TCL_VERTEX_BUFFER_BEGIN_END_POINTS 0x00000001
3150#define NV10TCL_VERTEX_BUFFER_BEGIN_END_LINES 0x00000002
3151#define NV10TCL_VERTEX_BUFFER_BEGIN_END_LINE_LOOP 0x00000003
3152#define NV10TCL_VERTEX_BUFFER_BEGIN_END_LINE_STRIP 0x00000004
3153#define NV10TCL_VERTEX_BUFFER_BEGIN_END_TRIANGLES 0x00000005
3154#define NV10TCL_VERTEX_BUFFER_BEGIN_END_TRIANGLE_STRIP 0x00000006
3155#define NV10TCL_VERTEX_BUFFER_BEGIN_END_TRIANGLE_FAN 0x00000007
3156#define NV10TCL_VERTEX_BUFFER_BEGIN_END_QUADS 0x00000008
3157#define NV10TCL_VERTEX_BUFFER_BEGIN_END_QUAD_STRIP 0x00000009
3158#define NV10TCL_VERTEX_BUFFER_BEGIN_END_POLYGON 0x0000000a
3159#define NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS 0x00001400
3160#define NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS_FIRST_SHIFT 0
3161#define NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS_FIRST_MASK 0x0000ffff
3162#define NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS_LAST_SHIFT 24
3163#define NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS_LAST_MASK 0xff000000
3164#define NV10TCL_VERTEX_ARRAY_DATA 0x00001800
3165
3166
3167#define NV11TCL 0x00000096
3168
3169#define NV11TCL_COLOR_LOGIC_OP_ENABLE 0x00000d40
3170#define NV11TCL_COLOR_LOGIC_OP_OP 0x00000d44
3171#define NV11TCL_COLOR_LOGIC_OP_OP_CLEAR 0x00001500
3172#define NV11TCL_COLOR_LOGIC_OP_OP_AND 0x00001501
3173#define NV11TCL_COLOR_LOGIC_OP_OP_AND_REVERSE 0x00001502
3174#define NV11TCL_COLOR_LOGIC_OP_OP_COPY 0x00001503
3175#define NV11TCL_COLOR_LOGIC_OP_OP_AND_INVERTED 0x00001504
3176#define NV11TCL_COLOR_LOGIC_OP_OP_NOOP 0x00001505
3177#define NV11TCL_COLOR_LOGIC_OP_OP_XOR 0x00001506
3178#define NV11TCL_COLOR_LOGIC_OP_OP_OR 0x00001507
3179#define NV11TCL_COLOR_LOGIC_OP_OP_NOR 0x00001508
3180#define NV11TCL_COLOR_LOGIC_OP_OP_EQUIV 0x00001509
3181#define NV11TCL_COLOR_LOGIC_OP_OP_INVERT 0x0000150a
3182#define NV11TCL_COLOR_LOGIC_OP_OP_OR_REVERSE 0x0000150b
3183#define NV11TCL_COLOR_LOGIC_OP_OP_COPY_INVERTED 0x0000150c
3184#define NV11TCL_COLOR_LOGIC_OP_OP_OR_INVERTED 0x0000150d
3185#define NV11TCL_COLOR_LOGIC_OP_OP_NAND 0x0000150e
3186#define NV11TCL_COLOR_LOGIC_OP_OP_SET 0x0000150f
3187
3188
3189#define NV17TCL 0x00000099
3190
3191#define NV17TCL_DMA_IN_MEMORY4 0x000001ac
3192#define NV17TCL_DMA_IN_MEMORY5 0x000001b0
3193#define NV17TCL_COLOR_MASK_ENABLE 0x000002bc
3194#define NV17TCL_LMA_DEPTH_BUFFER_PITCH 0x00000d5c
3195#define NV17TCL_LMA_DEPTH_BUFFER_OFFSET 0x00000d60
3196#define NV17TCL_LMA_DEPTH_FILL_VALUE 0x00000d68
3197#define NV17TCL_LMA_DEPTH_BUFFER_CLEAR 0x00000d6c
3198#define NV17TCL_LMA_DEPTH_WINDOW_X 0x00001638
3199#define NV17TCL_LMA_DEPTH_WINDOW_Y 0x0000163c
3200#define NV17TCL_LMA_DEPTH_WINDOW_Z 0x00001640
3201#define NV17TCL_LMA_DEPTH_WINDOW_W 0x00001644
3202#define NV17TCL_LMA_DEPTH_ENABLE 0x00001658
3203
3204
3205#define NV03_CONTEXT_SURFACES_2D 0x00000058
3206
3207#define NV03_CONTEXT_SURFACES_2D_SYNCHRONIZE 0x00000100
3208#define NV03_CONTEXT_SURFACES_2D_DMA_NOTIFY 0x00000180
3209#define NV03_CONTEXT_SURFACES_2D_DMA_SOURCE 0x00000184
3210#define NV03_CONTEXT_SURFACES_2D_DMA_DESTIN 0x00000188
3211#define NV03_CONTEXT_SURFACES_2D_COLOR_FORMAT 0x00000300
3212#define NV03_CONTEXT_SURFACES_2D_PITCH 0x00000304
3213#define NV03_CONTEXT_SURFACES_2D_PITCH_SOURCE_SHIFT 0
3214#define NV03_CONTEXT_SURFACES_2D_PITCH_SOURCE_MASK 0x0000ffff
3215#define NV03_CONTEXT_SURFACES_2D_PITCH_DESTIN_SHIFT 16
3216#define NV03_CONTEXT_SURFACES_2D_PITCH_DESTIN_MASK 0xffff0000
3217#define NV03_CONTEXT_SURFACES_2D_OFFSET_SOURCE 0x00000308
3218#define NV03_CONTEXT_SURFACES_2D_OFFSET_DESTIN 0x0000030c
3219
3220
3221#define NV03_CONTEXT_SURFACES_3D 0x0000005a
3222
3223#define NV03_CONTEXT_SURFACES_3D_SYNCHRONIZE 0x00000100
3224#define NV03_CONTEXT_SURFACES_3D_DMA_NOTIFY 0x00000180
3225#define NV03_CONTEXT_SURFACES_3D_DMA_SURFACE 0x00000184
3226#define NV03_CONTEXT_SURFACES_3D_PITCH 0x00000300
3227#define NV03_CONTEXT_SURFACES_3D_OFFSET_COLOR 0x00000304
3228#define NV03_CONTEXT_SURFACES_3D_OFFSET_ZETA 0x00000308
3229
3230
3231#define NV04_INDEXED_IMAGE_FROM_CPU 0x00000060
3232
3233#define NV04_INDEXED_IMAGE_FROM_CPU_NOP 0x00000100
3234#define NV04_INDEXED_IMAGE_FROM_CPU_NOTIFY 0x00000104
3235#define NV04_INDEXED_IMAGE_FROM_CPU_PATCH 0x0000010c
3236#define NV04_INDEXED_IMAGE_FROM_CPU_DMA_NOTIFY 0x00000180
3237#define NV04_INDEXED_IMAGE_FROM_CPU_DMA_LUT 0x00000184
3238#define NV04_INDEXED_IMAGE_FROM_CPU_COLOR_KEY 0x00000188
3239#define NV04_INDEXED_IMAGE_FROM_CPU_CLIP_RECTANGLE 0x0000018c
3240#define NV04_INDEXED_IMAGE_FROM_CPU_PATTERN 0x00000190
3241#define NV04_INDEXED_IMAGE_FROM_CPU_ROP 0x00000194
3242#define NV04_INDEXED_IMAGE_FROM_CPU_BETA1 0x00000198
3243#define NV04_INDEXED_IMAGE_FROM_CPU_BETA4 0x0000019c
3244#define NV04_INDEXED_IMAGE_FROM_CPU_SURFACE 0x000001a0
3245#define NV04_INDEXED_IMAGE_FROM_CPU_OPERATION 0x000003e4
3246#define NV04_INDEXED_IMAGE_FROM_CPU_COLOR_FORMAT 0x000003e8
3247#define NV04_INDEXED_IMAGE_FROM_CPU_INDEX_FORMAT 0x000003ec
3248#define NV04_INDEXED_IMAGE_FROM_CPU_LUT_OFFSET 0x000003f0
3249#define NV04_INDEXED_IMAGE_FROM_CPU_POINT 0x000003f4
3250#define NV04_INDEXED_IMAGE_FROM_CPU_SIZE_OUT 0x000003f8
3251#define NV04_INDEXED_IMAGE_FROM_CPU_SIZE_IN 0x000003fc
3252#define NV04_INDEXED_IMAGE_FROM_CPU_COLOR(x) (0x00000400+((x)*4))
3253#define NV04_INDEXED_IMAGE_FROM_CPU_COLOR__SIZE 0x00000700
3254
3255
3256#define NV05_INDEXED_IMAGE_FROM_CPU 0x00000064
3257
3258#define NV05_INDEXED_IMAGE_FROM_CPU_COLOR_CONVERSION 0x000003e0
3259
3260
3261#define NV03_CHANNEL_PIO 0x0000006a
3262
3263
3264
3265#define NV03_CHANNEL_DMA 0x0000006b
3266
3267
3268
3269#define NV04_BETA_SOLID 0x00000072<