Merge remote branch 'origin/master' into nv50-compiler
[mesa.git] / src / gallium / drivers / nouveau / nouveau_class.h
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
10 cvs -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
30 All Rights Reserved.
31
32 Permission is hereby granted, free of charge, to any person obtaining
33 a copy of this software and associated documentation files (the
34 "Software"), to deal in the Software without restriction, including
35 without limitation the rights to use, copy, modify, merge, publish,
36 distribute, sublicense, and/or sell copies of the Software, and to
37 permit persons to whom the Software is furnished to do so, subject to
38 the following conditions:
39
40 The above copyright notice and this permission notice (including the
41 next paragraph) shall be included in all copies or substantial
42 portions of the Software.
43
44 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
45 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
46 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
47 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
48 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
49 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
50 WITH 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 NVC0_MEMORY_TO_MEMORY_FORMAT 0x00009039
739
740 #define NVC0_MEMORY_TO_MEMORY_FORMAT_NOP 0x00000100
741 #define NVC0_MEMORY_TO_MEMORY_FORMAT_SERIALIZE 0x00000110
742 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_MODE_IN 0x00000204
743 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_PITCH_IN 0x00000208
744 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_HEIGHT_IN 0x0000020c
745 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_DEPTH_IN 0x00000210
746 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_IN_Z 0x00000214
747 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_MODE_OUT 0x00000220
748 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_PITCH_OUT 0x00000224
749 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_HEIGHT_OUT 0x00000228
750 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_DEPTH_OUT 0x0000022c
751 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_OUT_Z 0x00000230
752 #define NVC0_MEMORY_TO_MEMORY_FORMAT_OFFSET_OUT_HIGH 0x00000238
753 #define NVC0_MEMORY_TO_MEMORY_FORMAT_OFFSET_OUT_LOW 0x0000023c
754 #define NVC0_MEMORY_TO_MEMORY_FORMAT_EXEC 0x00000300
755 #define NVC0_MEMORY_TO_MEMORY_FORMAT_EXEC_PUSH (1 << 0)
756 #define NVC0_MEMORY_TO_MEMORY_FORMAT_EXEC_LINEAR_IN (1 << 4)
757 #define NVC0_MEMORY_TO_MEMORY_FORMAT_EXEC_LINEAR_OUT (1 << 8)
758 #define NVC0_MEMORY_TO_MEMORY_FORMAT_EXEC_NOTIFY (1 << 13)
759 #define NVC0_MEMORY_TO_MEMORY_FORMAT_EXEC_INC_SHIFT 20
760 #define NVC0_MEMORY_TO_MEMORY_FORMAT_EXEC_INC_MASK 0x00f00000
761 #define NVC0_MEMORY_TO_MEMORY_FORMAT_DATA 0x00000304
762 #define NVC0_MEMORY_TO_MEMORY_FORMAT_OFFSET_IN_HIGH 0x0000030c
763 #define NVC0_MEMORY_TO_MEMORY_FORMAT_OFFSET_IN_LOW 0x00000310
764 #define NVC0_MEMORY_TO_MEMORY_FORMAT_PITCH_IN 0x00000314
765 #define NVC0_MEMORY_TO_MEMORY_FORMAT_PITCH_OUT 0x00000318
766 #define NVC0_MEMORY_TO_MEMORY_FORMAT_LINE_LENGTH_IN 0x0000031c
767 #define NVC0_MEMORY_TO_MEMORY_FORMAT_LINE_COUNT 0x00000320
768 #define NVC0_MEMORY_TO_MEMORY_FORMAT_NOTIFY_ADDRESS_HIGH 0x0000032c
769 #define NVC0_MEMORY_TO_MEMORY_FORMAT_NOTIFY_ADDRESS_LOW 0x00000330
770 #define NVC0_MEMORY_TO_MEMORY_FORMAT_NOTIFY 0x00000334
771 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_IN_X 0x00000344
772 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_IN_Y 0x00000348
773 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_OUT_X 0x0000034c
774 #define NVC0_MEMORY_TO_MEMORY_FORMAT_TILING_POSITION_OUT_Y 0x00000350
775
776
777 #define NV01_MEMORY_LOCAL_BANKED 0x0000003d
778
779
780
781 #define NV01_MAPPING_SYSTEM 0x0000003e
782
783
784
785 #define NV03_MEMORY_LOCAL_CURSOR 0x0000003f
786
787
788
789 #define NV01_MEMORY_LOCAL_LINEAR 0x00000040
790
791
792
793 #define NV01_MAPPING_LOCAL 0x00000041
794
795
796
797 #define NV04_CONTEXT_SURFACES_2D 0x00000042
798
799 #define NV04_CONTEXT_SURFACES_2D_NOP 0x00000100
800 #define NV04_CONTEXT_SURFACES_2D_NOTIFY 0x00000104
801 #define NV04_CONTEXT_SURFACES_2D_PM_TRIGGER 0x00000140
802 #define NV04_CONTEXT_SURFACES_2D_DMA_NOTIFY 0x00000180
803 #define NV04_CONTEXT_SURFACES_2D_DMA_IMAGE_SOURCE 0x00000184
804 #define NV04_CONTEXT_SURFACES_2D_DMA_IMAGE_DESTIN 0x00000188
805 #define NV04_CONTEXT_SURFACES_2D_FORMAT 0x00000300
806 #define NV04_CONTEXT_SURFACES_2D_FORMAT_Y8 0x00000001
807 #define NV04_CONTEXT_SURFACES_2D_FORMAT_X1R5G5B5_Z1R5G5B5 0x00000002
808 #define NV04_CONTEXT_SURFACES_2D_FORMAT_X1R5G5B5_X1R5G5B5 0x00000003
809 #define NV04_CONTEXT_SURFACES_2D_FORMAT_R5G6B5 0x00000004
810 #define NV04_CONTEXT_SURFACES_2D_FORMAT_Y16 0x00000005
811 #define NV04_CONTEXT_SURFACES_2D_FORMAT_X8R8G8B8_Z8R8G8B8 0x00000006
812 #define NV04_CONTEXT_SURFACES_2D_FORMAT_X8R8G8B8_X8R8G8B8 0x00000007
813 #define NV04_CONTEXT_SURFACES_2D_FORMAT_X1A7R8G8B8_Z1A7R8G8B8 0x00000008
814 #define NV04_CONTEXT_SURFACES_2D_FORMAT_X1A7R8G8B8_X1A7R8G8B8 0x00000009
815 #define NV04_CONTEXT_SURFACES_2D_FORMAT_A8R8G8B8 0x0000000a
816 #define NV04_CONTEXT_SURFACES_2D_FORMAT_Y32 0x0000000b
817 #define NV04_CONTEXT_SURFACES_2D_PITCH 0x00000304
818 #define NV04_CONTEXT_SURFACES_2D_PITCH_SOURCE_SHIFT 0
819 #define NV04_CONTEXT_SURFACES_2D_PITCH_SOURCE_MASK 0x0000ffff
820 #define NV04_CONTEXT_SURFACES_2D_PITCH_DESTIN_SHIFT 16
821 #define NV04_CONTEXT_SURFACES_2D_PITCH_DESTIN_MASK 0xffff0000
822 #define NV04_CONTEXT_SURFACES_2D_OFFSET_SOURCE 0x00000308
823 #define NV04_CONTEXT_SURFACES_2D_OFFSET_DESTIN 0x0000030c
824
825
826 #define NV10_CONTEXT_SURFACES_2D 0x00000062
827
828
829
830 #define NV30_CONTEXT_SURFACES_2D 0x00000362
831
832
833
834 #define NV40_CONTEXT_SURFACES_2D 0x00003062
835
836
837
838 #define NV03_CONTEXT_ROP 0x00000043
839
840 #define NV03_CONTEXT_ROP_NOP 0x00000100
841 #define NV03_CONTEXT_ROP_NOTIFY 0x00000104
842 #define NV03_CONTEXT_ROP_DMA_NOTIFY 0x00000180
843 #define NV03_CONTEXT_ROP_ROP 0x00000300
844 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_SHIFT 0
845 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_MASK 0x0000000f
846 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_CLEAR 0x00000000
847 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_NOR 0x00000001
848 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_AND_INVERTED 0x00000002
849 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_COPY_INVERTED 0x00000003
850 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_AND_REVERSE 0x00000004
851 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_INVERT 0x00000005
852 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_XOR 0x00000006
853 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_NAND 0x00000007
854 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_AND 0x00000008
855 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_EQUI 0x00000009
856 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_NOOP 0x0000000a
857 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR_INVERTED 0x0000000b
858 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_COPY 0x0000000c
859 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR_REVERSE 0x0000000d
860 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR 0x0000000e
861 #define NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_SET 0x0000000f
862 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_SHIFT 4
863 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_MASK 0x000000f0
864 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_CLEAR 0x00000000
865 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_NOR 0x00000010
866 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_AND_INVERTED 0x00000020
867 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_COPY_INVERTED 0x00000030
868 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_AND_REVERSE 0x00000040
869 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_INVERT 0x00000050
870 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_XOR 0x00000060
871 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_NAND 0x00000070
872 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_AND 0x00000080
873 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_EQUI 0x00000090
874 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_NOOP 0x000000a0
875 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR_INVERTED 0x000000b0
876 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_COPY 0x000000c0
877 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR_REVERSE 0x000000d0
878 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR 0x000000e0
879 #define NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_SET 0x000000f0
880
881
882 #define NV04_IMAGE_PATTERN 0x00000044
883
884 #define NV04_IMAGE_PATTERN_NOP 0x00000100
885 #define NV04_IMAGE_PATTERN_NOTIFY 0x00000104
886 #define NV04_IMAGE_PATTERN_DMA_NOTIFY 0x00000180
887 #define NV04_IMAGE_PATTERN_COLOR_FORMAT 0x00000300
888 #define NV04_IMAGE_PATTERN_COLOR_FORMAT_A16R5G6B5 0x00000001
889 #define NV04_IMAGE_PATTERN_COLOR_FORMAT_X16A1R5G5B5 0x00000002
890 #define NV04_IMAGE_PATTERN_COLOR_FORMAT_A8R8G8B8 0x00000003
891 #define NV04_IMAGE_PATTERN_MONOCHROME_FORMAT 0x00000304
892 #define NV04_IMAGE_PATTERN_MONOCHROME_FORMAT_CGA6 0x00000001
893 #define NV04_IMAGE_PATTERN_MONOCHROME_FORMAT_LE 0x00000002
894 #define NV04_IMAGE_PATTERN_MONOCHROME_SHAPE 0x00000308
895 #define NV04_IMAGE_PATTERN_MONOCHROME_SHAPE_8X8 0x00000000
896 #define NV04_IMAGE_PATTERN_MONOCHROME_SHAPE_64X1 0x00000001
897 #define NV04_IMAGE_PATTERN_MONOCHROME_SHAPE_1X64 0x00000002
898 #define NV04_IMAGE_PATTERN_PATTERN_SELECT 0x0000030c
899 #define NV04_IMAGE_PATTERN_PATTERN_SELECT_MONO 0x00000001
900 #define NV04_IMAGE_PATTERN_PATTERN_SELECT_COLOR 0x00000002
901 #define NV04_IMAGE_PATTERN_MONOCHROME_COLOR0 0x00000310
902 #define NV04_IMAGE_PATTERN_MONOCHROME_COLOR1 0x00000314
903 #define NV04_IMAGE_PATTERN_MONOCHROME_PATTERN0 0x00000318
904 #define NV04_IMAGE_PATTERN_MONOCHROME_PATTERN1 0x0000031c
905 #define NV04_IMAGE_PATTERN_PATTERN_Y8(x) (0x00000400+((x)*4))
906 #define NV04_IMAGE_PATTERN_PATTERN_Y8__SIZE 0x00000010
907 #define NV04_IMAGE_PATTERN_PATTERN_Y8_Y0_SHIFT 0
908 #define NV04_IMAGE_PATTERN_PATTERN_Y8_Y0_MASK 0x000000ff
909 #define NV04_IMAGE_PATTERN_PATTERN_Y8_Y1_SHIFT 8
910 #define NV04_IMAGE_PATTERN_PATTERN_Y8_Y1_MASK 0x0000ff00
911 #define NV04_IMAGE_PATTERN_PATTERN_Y8_Y2_SHIFT 16
912 #define NV04_IMAGE_PATTERN_PATTERN_Y8_Y2_MASK 0x00ff0000
913 #define NV04_IMAGE_PATTERN_PATTERN_Y8_Y3_SHIFT 24
914 #define NV04_IMAGE_PATTERN_PATTERN_Y8_Y3_MASK 0xff000000
915 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5(x) (0x00000500+((x)*4))
916 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5__SIZE 0x00000020
917 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B0_SHIFT 0
918 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B0_MASK 0x0000001f
919 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G0_SHIFT 5
920 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G0_MASK 0x000007e0
921 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R0_SHIFT 11
922 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R0_MASK 0x0000f800
923 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B1_SHIFT 16
924 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B1_MASK 0x001f0000
925 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G1_SHIFT 21
926 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G1_MASK 0x07e00000
927 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R1_SHIFT 27
928 #define NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R1_MASK 0xf8000000
929 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5(x) (0x00000600+((x)*4))
930 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5__SIZE 0x00000020
931 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B0_SHIFT 0
932 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B0_MASK 0x0000001f
933 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G0_SHIFT 5
934 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G0_MASK 0x000003e0
935 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R0_SHIFT 10
936 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R0_MASK 0x00007c00
937 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B1_SHIFT 16
938 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B1_MASK 0x001f0000
939 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G1_SHIFT 21
940 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G1_MASK 0x03e00000
941 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R1_SHIFT 26
942 #define NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R1_MASK 0x7c000000
943 #define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8(x) (0x00000700+((x)*4))
944 #define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8__SIZE 0x00000040
945 #define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_B_SHIFT 0
946 #define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_B_MASK 0x000000ff
947 #define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_G_SHIFT 8
948 #define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_G_MASK 0x0000ff00
949 #define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_R_SHIFT 16
950 #define NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_R_MASK 0x00ff0000
951
952
953 #define NV03_VIDEO_LUT_CURSOR_DAC 0x00000046
954
955 #define NV03_VIDEO_LUT_CURSOR_DAC_SYNCHRONIZE 0x00000100
956 #define NV03_VIDEO_LUT_CURSOR_DAC_STOP_IMAGE 0x00000104
957 #define NV03_VIDEO_LUT_CURSOR_DAC_STOP_CURSOR 0x00000108
958 #define NV03_VIDEO_LUT_CURSOR_DAC_STOP_DAC 0x0000010c
959 #define NV03_VIDEO_LUT_CURSOR_DAC_DMA_NOTIFY 0x00000180
960 #define NV03_VIDEO_LUT_CURSOR_DAC_DMA_IMAGE(x) (0x00000184+((x)*4))
961 #define NV03_VIDEO_LUT_CURSOR_DAC_DMA_IMAGE__SIZE 0x00000002
962 #define NV03_VIDEO_LUT_CURSOR_DAC_DMA_LUT(x) (0x0000018c+((x)*4))
963 #define NV03_VIDEO_LUT_CURSOR_DAC_DMA_LUT__SIZE 0x00000002
964 #define NV03_VIDEO_LUT_CURSOR_DAC_DMA_CURSOR(x) (0x00000194+((x)*4))
965 #define NV03_VIDEO_LUT_CURSOR_DAC_DMA_CURSOR__SIZE 0x00000002
966 #define NV03_VIDEO_LUT_CURSOR_DAC_GET 0x000002fc
967 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_OFFSET(x) (0x00000300+((x)*8))
968 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_OFFSET__SIZE 0x00000002
969 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT(x) (0x00000304+((x)*8))
970 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT__SIZE 0x00000002
971 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_PITCH_SHIFT 0
972 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_PITCH_MASK 0x0000ffff
973 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_COLOR_SHIFT 16
974 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_COLOR_MASK 0x0fff0000
975 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_NOTIFY_SHIFT 28
976 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_NOTIFY_MASK 0xf0000000
977 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_OFFSET(x) (0x00000340+((x)*12))
978 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_OFFSET__SIZE 0x00000002
979 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT(x) (0x00000344+((x)*12))
980 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT__SIZE 0x00000002
981 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_X_SHIFT 0
982 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_X_MASK 0x0000ffff
983 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_Y_SHIFT 16
984 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_Y_MASK 0xffff0000
985 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_FORMAT(x) (0x00000348+((x)*12))
986 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_FORMAT__SIZE 0x00000002
987 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A 0x00000358
988 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_X_SHIFT 0
989 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_X_MASK 0x0000ffff
990 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_Y_SHIFT 16
991 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_Y_MASK 0xffff0000
992 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE(x) (0x00000380+((x)*16))
993 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE__SIZE 0x00000002
994 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_W_SHIFT 0
995 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_W_MASK 0x0000ffff
996 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_H_SHIFT 16
997 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_H_MASK 0xffff0000
998 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC(x) (0x00000384+((x)*16))
999 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC__SIZE 0x00000002
1000 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_START_SHIFT 0
1001 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_START_MASK 0x0000ffff
1002 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_WIDTH_SHIFT 16
1003 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_WIDTH_MASK 0x0fff0000
1004 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_POLARITY_SHIFT 28
1005 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_POLARITY_MASK 0xf0000000
1006 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC(x) (0x00000388+((x)*16))
1007 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC__SIZE 0x00000002
1008 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_START_SHIFT 0
1009 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_START_MASK 0x0000ffff
1010 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_WIDTH_SHIFT 16
1011 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_WIDTH_MASK 0x0fff0000
1012 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_POLARITY_SHIFT 28
1013 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_POLARITY_MASK 0xf0000000
1014 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE(x) (0x0000038c+((x)*16))
1015 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE__SIZE 0x00000002
1016 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_WIDTH_SHIFT 0
1017 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_WIDTH_MASK 0x0000ffff
1018 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_HEIGHT_SHIFT 16
1019 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_HEIGHT_MASK 0x0fff0000
1020 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_NOTIFY_SHIFT 28
1021 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_NOTIFY_MASK 0xf0000000
1022 #define NV03_VIDEO_LUT_CURSOR_DAC_SET_PIXEL_CLOCK 0x000003a0
1023
1024
1025 #define NV03_TEXTURED_TRIANGLE 0x00000048
1026
1027 #define NV03_TEXTURED_TRIANGLE_NOP 0x00000100
1028 #define NV03_TEXTURED_TRIANGLE_NOTIFY 0x00000104
1029 #define NV03_TEXTURED_TRIANGLE_PATCH 0x0000010c
1030 #define NV03_TEXTURED_TRIANGLE_DMA_NOTIFY 0x00000180
1031 #define NV03_TEXTURED_TRIANGLE_DMA_TEXTURE 0x00000184
1032 #define NV03_TEXTURED_TRIANGLE_CLIP_RECTANGLE 0x00000188
1033 #define NV03_TEXTURED_TRIANGLE_SURFACE 0x0000018c
1034 #define NV03_TEXTURED_TRIANGLE_TEXTURE_OFFSET 0x00000304
1035 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT 0x00000308
1036 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_SHIFT 0
1037 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_MASK 0x0000ffff
1038 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_SHIFT 16
1039 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_MASK 0x000f0000
1040 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_SHIFT 20
1041 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_MASK 0x00f00000
1042 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_SHIFT 24
1043 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_MASK 0x0f000000
1044 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_SHIFT 28
1045 #define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_MASK 0xf0000000
1046 #define NV03_TEXTURED_TRIANGLE_FILTER 0x0000030c
1047 #define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_X_SHIFT 0
1048 #define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_X_MASK 0x0000001f
1049 #define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_SHIFT 8
1050 #define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_MASK 0x00001f00
1051 #define NV03_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_SHIFT 16
1052 #define NV03_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_MASK 0x00ff0000
1053 #define NV03_TEXTURED_TRIANGLE_FOG_COLOR 0x00000310
1054 #define NV03_TEXTURED_TRIANGLE_FOG_COLOR_B_SHIFT 0
1055 #define NV03_TEXTURED_TRIANGLE_FOG_COLOR_B_MASK 0x000000ff
1056 #define NV03_TEXTURED_TRIANGLE_FOG_COLOR_G_SHIFT 8
1057 #define NV03_TEXTURED_TRIANGLE_FOG_COLOR_G_MASK 0x0000ff00
1058 #define NV03_TEXTURED_TRIANGLE_FOG_COLOR_R_SHIFT 16
1059 #define NV03_TEXTURED_TRIANGLE_FOG_COLOR_R_MASK 0x00ff0000
1060 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT 0x00000314
1061 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_SHIFT 0
1062 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_MASK 0x0000000f
1063 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_SHIFT 4
1064 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_MASK 0x00000030
1065 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_SHIFT 6
1066 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_MASK 0x000000c0
1067 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_SHIFT 8
1068 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_MASK 0x00000f00
1069 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_SHIFT 12
1070 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_MASK 0x00007000
1071 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_PERSPECTIVE_ENABLE (1 << 15)
1072 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_SHIFT 16
1073 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_MASK 0x000f0000
1074 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_SHIFT 20
1075 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_MASK 0x00f00000
1076 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_SHIFT 24
1077 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_MASK 0x07000000
1078 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_SHIFT 27
1079 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_MASK 0x18000000
1080 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_BETA (1 << 29)
1081 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_DST_BLEND (1 << 30)
1082 #define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_SRC_BLEND (1 << 31)
1083 #define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL 0x00000318
1084 #define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_SHIFT 0
1085 #define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_MASK 0x000000ff
1086 #define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_SHIFT 8
1087 #define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_MASK 0xffffff00
1088 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR(x) (0x00001000+((x)*32))
1089 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR__SIZE 0x00000080
1090 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I0_SHIFT 0
1091 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I0_MASK 0x0000000f
1092 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I1_SHIFT 4
1093 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I1_MASK 0x000000f0
1094 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I2_SHIFT 8
1095 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I2_MASK 0x00000f00
1096 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I3_SHIFT 12
1097 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I3_MASK 0x0000f000
1098 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I4_SHIFT 16
1099 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I4_MASK 0x000f0000
1100 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I5_SHIFT 20
1101 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I5_MASK 0x00f00000
1102 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_SHIFT 24
1103 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_MASK 0xff000000
1104 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_COLOR(x) (0x00001004+((x)*32))
1105 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_COLOR__SIZE 0x00000080
1106 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SX(x) (0x00001008+((x)*32))
1107 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SX__SIZE 0x00000080
1108 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SY(x) (0x0000100c+((x)*32))
1109 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SY__SIZE 0x00000080
1110 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SZ(x) (0x00001010+((x)*32))
1111 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_SZ__SIZE 0x00000080
1112 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_RHW(x) (0x00001014+((x)*32))
1113 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_RHW__SIZE 0x00000080
1114 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_TU(x) (0x00001018+((x)*32))
1115 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_TU__SIZE 0x00000080
1116 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_TV(x) (0x0000101c+((x)*32))
1117 #define NV03_TEXTURED_TRIANGLE_TLVERTEX_TV__SIZE 0x00000080
1118
1119
1120 #define NV04_GDI_RECTANGLE_TEXT 0x0000004a
1121
1122 #define NV04_GDI_RECTANGLE_TEXT_NOP 0x00000100
1123 #define NV04_GDI_RECTANGLE_TEXT_NOTIFY 0x00000104
1124 #define NV04_GDI_RECTANGLE_TEXT_PATCH 0x0000010c
1125 #define NV04_GDI_RECTANGLE_TEXT_PM_TRIGGER 0x00000140
1126 #define NV04_GDI_RECTANGLE_TEXT_DMA_NOTIFY 0x00000180
1127 #define NV04_GDI_RECTANGLE_TEXT_DMA_FONTS 0x00000184
1128 #define NV04_GDI_RECTANGLE_TEXT_PATTERN 0x00000188
1129 #define NV04_GDI_RECTANGLE_TEXT_ROP 0x0000018c
1130 #define NV04_GDI_RECTANGLE_TEXT_BETA1 0x00000190
1131 #define NV04_GDI_RECTANGLE_TEXT_BETA4 0x00000194
1132 #define NV04_GDI_RECTANGLE_TEXT_SURFACE 0x00000198
1133 #define NV04_GDI_RECTANGLE_TEXT_OPERATION 0x000002fc
1134 #define NV04_GDI_RECTANGLE_TEXT_OPERATION_SRCCOPY_AND 0x00000000
1135 #define NV04_GDI_RECTANGLE_TEXT_OPERATION_ROP_AND 0x00000001
1136 #define NV04_GDI_RECTANGLE_TEXT_OPERATION_BLEND_AND 0x00000002
1137 #define NV04_GDI_RECTANGLE_TEXT_OPERATION_SRCCOPY 0x00000003
1138 #define NV04_GDI_RECTANGLE_TEXT_OPERATION_SRCCOPY_PREMULT 0x00000004
1139 #define NV04_GDI_RECTANGLE_TEXT_OPERATION_BLEND_PREMULT 0x00000005
1140 #define NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT 0x00000300
1141 #define NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT_A16R5G6B5 0x00000001
1142 #define NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT_X16A1R5G5B5 0x00000002
1143 #define NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT_A8R8G8B8 0x00000003
1144 #define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT 0x00000304
1145 #define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT_CGA6 0x00000001
1146 #define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT_LE 0x00000002
1147 #define NV04_GDI_RECTANGLE_TEXT_COLOR1_A 0x000003fc
1148 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT(x) (0x00000400+((x)*8))
1149 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT__SIZE 0x00000020
1150 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_SHIFT 0
1151 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_MASK 0x0000ffff
1152 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_SHIFT 16
1153 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_MASK 0xffff0000
1154 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE(x) (0x00000404+((x)*8))
1155 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE__SIZE 0x00000020
1156 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_SHIFT 0
1157 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_MASK 0x0000ffff
1158 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_SHIFT 16
1159 #define NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_MASK 0xffff0000
1160 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0 0x000005f4
1161 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_L_SHIFT 0
1162 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_L_MASK 0x0000ffff
1163 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_T_SHIFT 16
1164 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_T_MASK 0xffff0000
1165 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1 0x000005f8
1166 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_R_SHIFT 0
1167 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_R_MASK 0x0000ffff
1168 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_B_SHIFT 16
1169 #define NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_B_MASK 0xffff0000
1170 #define NV04_GDI_RECTANGLE_TEXT_COLOR1_B 0x000005fc
1171 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0(x) (0x00000600+((x)*8))
1172 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0__SIZE 0x00000020
1173 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_SHIFT 0
1174 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_MASK 0x0000ffff
1175 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_SHIFT 16
1176 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_MASK 0xffff0000
1177 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1(x) (0x00000604+((x)*8))
1178 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1__SIZE 0x00000020
1179 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_SHIFT 0
1180 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_MASK 0x0000ffff
1181 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_SHIFT 16
1182 #define NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_MASK 0xffff0000
1183 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0 0x000007ec
1184 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_SHIFT 0
1185 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_MASK 0x0000ffff
1186 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_SHIFT 16
1187 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_MASK 0xffff0000
1188 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1 0x000007f0
1189 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_SHIFT 0
1190 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_MASK 0x0000ffff
1191 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_SHIFT 16
1192 #define NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_MASK 0xffff0000
1193 #define NV04_GDI_RECTANGLE_TEXT_COLOR1_C 0x000007f4
1194 #define NV04_GDI_RECTANGLE_TEXT_SIZE_C 0x000007f8
1195 #define NV04_GDI_RECTANGLE_TEXT_SIZE_C_W_SHIFT 0
1196 #define NV04_GDI_RECTANGLE_TEXT_SIZE_C_W_MASK 0x0000ffff
1197 #define NV04_GDI_RECTANGLE_TEXT_SIZE_C_H_SHIFT 16
1198 #define NV04_GDI_RECTANGLE_TEXT_SIZE_C_H_MASK 0xffff0000
1199 #define NV04_GDI_RECTANGLE_TEXT_POINT_C 0x000007fc
1200 #define NV04_GDI_RECTANGLE_TEXT_POINT_C_X_SHIFT 0
1201 #define NV04_GDI_RECTANGLE_TEXT_POINT_C_X_MASK 0x0000ffff
1202 #define NV04_GDI_RECTANGLE_TEXT_POINT_C_Y_SHIFT 16
1203 #define NV04_GDI_RECTANGLE_TEXT_POINT_C_Y_MASK 0xffff0000
1204 #define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C(x) (0x00000800+((x)*4))
1205 #define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C__SIZE 0x00000080
1206 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0 0x00000be4
1207 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_SHIFT 0
1208 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_MASK 0x0000ffff
1209 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_SHIFT 16
1210 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_MASK 0xffff0000
1211 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1 0x00000be8
1212 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_SHIFT 0
1213 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_MASK 0x0000ffff
1214 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_SHIFT 16
1215 #define NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_MASK 0xffff0000
1216 #define NV04_GDI_RECTANGLE_TEXT_COLOR0_E 0x00000bec
1217 #define NV04_GDI_RECTANGLE_TEXT_COLOR1_E 0x00000bf0
1218 #define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E 0x00000bf4
1219 #define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_SHIFT 0
1220 #define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_MASK 0x0000ffff
1221 #define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_SHIFT 16
1222 #define NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_MASK 0xffff0000
1223 #define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E 0x00000bf8
1224 #define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_SHIFT 0
1225 #define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_MASK 0x0000ffff
1226 #define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_SHIFT 16
1227 #define NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_MASK 0xffff0000
1228 #define NV04_GDI_RECTANGLE_TEXT_POINT_E 0x00000bfc
1229 #define NV04_GDI_RECTANGLE_TEXT_POINT_E_X_SHIFT 0
1230 #define NV04_GDI_RECTANGLE_TEXT_POINT_E_X_MASK 0x0000ffff
1231 #define NV04_GDI_RECTANGLE_TEXT_POINT_E_Y_SHIFT 16
1232 #define NV04_GDI_RECTANGLE_TEXT_POINT_E_Y_MASK 0xffff0000
1233 #define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E(x) (0x00000c00+((x)*4))
1234 #define NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E__SIZE 0x00000080
1235 #define NV04_GDI_RECTANGLE_TEXT_FONT_F 0x00000ff0
1236 #define NV04_GDI_RECTANGLE_TEXT_FONT_F_OFFSET_SHIFT 0
1237 #define NV04_GDI_RECTANGLE_TEXT_FONT_F_OFFSET_MASK 0x0fffffff
1238 #define NV04_GDI_RECTANGLE_TEXT_FONT_F_PITCH_SHIFT 28
1239 #define NV04_GDI_RECTANGLE_TEXT_FONT_F_PITCH_MASK 0xf0000000
1240 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0 0x00000ff4
1241 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_L_SHIFT 0
1242 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_L_MASK 0x0000ffff
1243 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_T_SHIFT 16
1244 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_T_MASK 0xffff0000
1245 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1 0x00000ff8
1246 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_R_SHIFT 0
1247 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_R_MASK 0x0000ffff
1248 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_B_SHIFT 16
1249 #define NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_B_MASK 0xffff0000
1250 #define NV04_GDI_RECTANGLE_TEXT_COLOR1_F 0x00000ffc
1251 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F(x) (0x00001000+((x)*4))
1252 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F__SIZE 0x00000100
1253 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_INDEX_SHIFT 0
1254 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_INDEX_MASK 0x000000ff
1255 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_X_SHIFT 8
1256 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_X_MASK 0x000fff00
1257 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_Y_SHIFT 20
1258 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_Y_MASK 0xfff00000
1259 #define NV04_GDI_RECTANGLE_TEXT_FONT_G 0x000017f0
1260 #define NV04_GDI_RECTANGLE_TEXT_FONT_G_OFFSET_SHIFT 0
1261 #define NV04_GDI_RECTANGLE_TEXT_FONT_G_OFFSET_MASK 0x0fffffff
1262 #define NV04_GDI_RECTANGLE_TEXT_FONT_G_PITCH_SHIFT 28
1263 #define NV04_GDI_RECTANGLE_TEXT_FONT_G_PITCH_MASK 0xf0000000
1264 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0 0x000017f4
1265 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_L_SHIFT 0
1266 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_L_MASK 0x0000ffff
1267 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_T_SHIFT 16
1268 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_T_MASK 0xffff0000
1269 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1 0x000017f8
1270 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_R_SHIFT 0
1271 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_R_MASK 0x0000ffff
1272 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_B_SHIFT 16
1273 #define NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_B_MASK 0xffff0000
1274 #define NV04_GDI_RECTANGLE_TEXT_COLOR1_G 0x000017fc
1275 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT(x) (0x00001800+((x)*8))
1276 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT__SIZE 0x00000100
1277 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_X_SHIFT 0
1278 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_X_MASK 0x0000ffff
1279 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_Y_SHIFT 16
1280 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_Y_MASK 0xffff0000
1281 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_INDEX(x) (0x00001804+((x)*8))
1282 #define NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_INDEX__SIZE 0x00000100
1283
1284
1285 #define NV03_GDI_RECTANGLE_TEXT 0x0000004b
1286
1287 #define NV03_GDI_RECTANGLE_TEXT_NOP 0x00000100
1288 #define NV03_GDI_RECTANGLE_TEXT_NOTIFY 0x00000104
1289 #define NV03_GDI_RECTANGLE_TEXT_DMA_NOTIFY 0x00000180
1290 #define NV03_GDI_RECTANGLE_TEXT_PATTERN 0x00000184
1291 #define NV03_GDI_RECTANGLE_TEXT_ROP 0x00000188
1292 #define NV03_GDI_RECTANGLE_TEXT_BETA1 0x0000018c
1293 #define NV03_GDI_RECTANGLE_TEXT_SURFACE 0x00000190
1294 #define NV03_GDI_RECTANGLE_TEXT_OPERATION 0x000002fc
1295 #define NV03_GDI_RECTANGLE_TEXT_COLOR_FORMAT 0x00000300
1296 #define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT 0x00000304
1297 #define NV03_GDI_RECTANGLE_TEXT_COLOR1_A 0x000003fc
1298 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT 0x00000400
1299 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_SHIFT 0
1300 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_MASK 0x0000ffff
1301 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_SHIFT 16
1302 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_MASK 0xffff0000
1303 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE 0x00000404
1304 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_SHIFT 0
1305 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_MASK 0x0000ffff
1306 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_SHIFT 16
1307 #define NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_MASK 0xffff0000
1308 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B 0x000007f4
1309 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_L_SHIFT 0
1310 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_L_MASK 0x0000ffff
1311 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_T_SHIFT 16
1312 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_T_MASK 0xffff0000
1313 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B 0x000007f8
1314 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_R_SHIFT 0
1315 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_R_MASK 0x0000ffff
1316 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_B_SHIFT 16
1317 #define NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_B_MASK 0xffff0000
1318 #define NV03_GDI_RECTANGLE_TEXT_COLOR1_B 0x000007fc
1319 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0 0x00000800
1320 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_SHIFT 0
1321 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_MASK 0x0000ffff
1322 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_SHIFT 16
1323 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_MASK 0xffff0000
1324 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1 0x00000804
1325 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_SHIFT 0
1326 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_MASK 0x0000ffff
1327 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_SHIFT 16
1328 #define NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_MASK 0xffff0000
1329 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0 0x00000bec
1330 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_SHIFT 0
1331 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_MASK 0x0000ffff
1332 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_SHIFT 16
1333 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_MASK 0xffff0000
1334 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1 0x00000bf0
1335 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_SHIFT 0
1336 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_MASK 0x0000ffff
1337 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_SHIFT 16
1338 #define NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_MASK 0xffff0000
1339 #define NV03_GDI_RECTANGLE_TEXT_COLOR1_C 0x00000bf4
1340 #define NV03_GDI_RECTANGLE_TEXT_SIZE_C 0x00000bf8
1341 #define NV03_GDI_RECTANGLE_TEXT_SIZE_C_W_SHIFT 0
1342 #define NV03_GDI_RECTANGLE_TEXT_SIZE_C_W_MASK 0x0000ffff
1343 #define NV03_GDI_RECTANGLE_TEXT_SIZE_C_H_SHIFT 16
1344 #define NV03_GDI_RECTANGLE_TEXT_SIZE_C_H_MASK 0xffff0000
1345 #define NV03_GDI_RECTANGLE_TEXT_POINT_C 0x00000bfc
1346 #define NV03_GDI_RECTANGLE_TEXT_POINT_C_X_SHIFT 0
1347 #define NV03_GDI_RECTANGLE_TEXT_POINT_C_X_MASK 0x0000ffff
1348 #define NV03_GDI_RECTANGLE_TEXT_POINT_C_Y_SHIFT 16
1349 #define NV03_GDI_RECTANGLE_TEXT_POINT_C_Y_MASK 0xffff0000
1350 #define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C(x) (0x00000c00+((x)*4))
1351 #define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C__SIZE 0x00000020
1352 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0 0x00000fe8
1353 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_L_SHIFT 0
1354 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_L_MASK 0x0000ffff
1355 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_T_SHIFT 16
1356 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_T_MASK 0xffff0000
1357 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1 0x00000fec
1358 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_R_SHIFT 0
1359 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_R_MASK 0x0000ffff
1360 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_B_SHIFT 16
1361 #define NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_B_MASK 0xffff0000
1362 #define NV03_GDI_RECTANGLE_TEXT_COLOR1_D 0x00000ff0
1363 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D 0x00000ff4
1364 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_W_SHIFT 0
1365 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_W_MASK 0x0000ffff
1366 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_H_SHIFT 16
1367 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_H_MASK 0xffff0000
1368 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D 0x00000ff8
1369 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_W_SHIFT 0
1370 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_W_MASK 0x0000ffff
1371 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_H_SHIFT 16
1372 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_H_MASK 0xffff0000
1373 #define NV03_GDI_RECTANGLE_TEXT_POINT_D 0x00000ffc
1374 #define NV03_GDI_RECTANGLE_TEXT_POINT_D_X_SHIFT 0
1375 #define NV03_GDI_RECTANGLE_TEXT_POINT_D_X_MASK 0x0000ffff
1376 #define NV03_GDI_RECTANGLE_TEXT_POINT_D_Y_SHIFT 16
1377 #define NV03_GDI_RECTANGLE_TEXT_POINT_D_Y_MASK 0xffff0000
1378 #define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_D(x) (0x00001000+((x)*4))
1379 #define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_D__SIZE 0x00000020
1380 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0 0x000013e4
1381 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_SHIFT 0
1382 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_MASK 0x0000ffff
1383 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_SHIFT 16
1384 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_MASK 0xffff0000
1385 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1 0x000013e8
1386 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_SHIFT 0
1387 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_MASK 0x0000ffff
1388 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_SHIFT 16
1389 #define NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_MASK 0xffff0000
1390 #define NV03_GDI_RECTANGLE_TEXT_COLOR0_E 0x000013ec
1391 #define NV03_GDI_RECTANGLE_TEXT_COLOR1_E 0x000013f0
1392 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E 0x000013f4
1393 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_SHIFT 0
1394 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_MASK 0x0000ffff
1395 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_SHIFT 16
1396 #define NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_MASK 0xffff0000
1397 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E 0x000013f8
1398 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_SHIFT 0
1399 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_MASK 0x0000ffff
1400 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_SHIFT 16
1401 #define NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_MASK 0xffff0000
1402 #define NV03_GDI_RECTANGLE_TEXT_POINT_E 0x000013fc
1403 #define NV03_GDI_RECTANGLE_TEXT_POINT_E_X_SHIFT 0
1404 #define NV03_GDI_RECTANGLE_TEXT_POINT_E_X_MASK 0x0000ffff
1405 #define NV03_GDI_RECTANGLE_TEXT_POINT_E_Y_SHIFT 16
1406 #define NV03_GDI_RECTANGLE_TEXT_POINT_E_Y_MASK 0xffff0000
1407 #define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E(x) (0x00001400+((x)*4))
1408 #define NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E__SIZE 0x00000020
1409
1410
1411 #define NV04_SWIZZLED_SURFACE 0x00000052
1412
1413 #define NV04_SWIZZLED_SURFACE_NOP 0x00000100
1414 #define NV04_SWIZZLED_SURFACE_NOTIFY 0x00000104
1415 #define NV04_SWIZZLED_SURFACE_DMA_NOTIFY 0x00000180
1416 #define NV04_SWIZZLED_SURFACE_DMA_IMAGE 0x00000184
1417 #define NV04_SWIZZLED_SURFACE_FORMAT 0x00000300
1418 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_SHIFT 0
1419 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_MASK 0x000000ff
1420 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_Y8 0x00000001
1421 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1R5G5B5_Z1R5G5B5 0x00000002
1422 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1R5G5B5_X1R5G5B5 0x00000003
1423 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_R5G6B5 0x00000004
1424 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_Y16 0x00000005
1425 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X8R8G8B8_Z8R8G8B8 0x00000006
1426 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X8R8G8B8_X8R8G8B8 0x00000007
1427 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1A7R8G8B8_Z1A7R8G8B8 0x00000008
1428 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1A7R8G8B8_X1A7R8G8B8 0x00000009
1429 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_A8R8G8B8 0x0000000a
1430 #define NV04_SWIZZLED_SURFACE_FORMAT_COLOR_Y32 0x0000000b
1431 #define NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_U_SHIFT 16
1432 #define NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_U_MASK 0x00ff0000
1433 #define NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_V_SHIFT 24
1434 #define NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_V_MASK 0xff000000
1435 #define NV04_SWIZZLED_SURFACE_OFFSET 0x00000304
1436
1437
1438 #define NV20_SWIZZLED_SURFACE 0x0000009e
1439
1440
1441
1442 #define NV30_SWIZZLED_SURFACE 0x0000039e
1443
1444
1445
1446 #define NV40_SWIZZLED_SURFACE 0x0000309e
1447
1448
1449
1450 #define NV04_CONTEXT_SURFACES_3D 0x00000053
1451
1452 #define NV04_CONTEXT_SURFACES_3D_NOP 0x00000100
1453 #define NV04_CONTEXT_SURFACES_3D_NOTIFY 0x00000104
1454 #define NV04_CONTEXT_SURFACES_3D_DMA_NOTIFY 0x00000180
1455 #define NV04_CONTEXT_SURFACES_3D_DMA_COLOR 0x00000184
1456 #define NV04_CONTEXT_SURFACES_3D_DMA_ZETA 0x00000188
1457 #define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL 0x000002f8
1458 #define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_X_SHIFT 0
1459 #define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_X_MASK 0x0000ffff
1460 #define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_W_SHIFT 16
1461 #define NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_W_MASK 0xffff0000
1462 #define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL 0x000002fc
1463 #define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_Y_SHIFT 0
1464 #define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_Y_MASK 0x0000ffff
1465 #define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_H_SHIFT 16
1466 #define NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_H_MASK 0xffff0000
1467 #define NV04_CONTEXT_SURFACES_3D_FORMAT 0x00000300
1468 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_SHIFT 0
1469 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_MASK 0x000000ff
1470 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1R5G5B5_Z1R5G5B5 0x00000001
1471 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1R5G5B5_X1R5G5B5 0x00000002
1472 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_R5G6B5 0x00000003
1473 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X8R8G8B8_Z8R8G8B8 0x00000004
1474 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X8R8G8B8_X8R8G8B8 0x00000005
1475 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1A7R8G8B8_Z1A7R8G8B8 0x00000006
1476 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1A7R8G8B8_X1A7R8G8B8 0x00000007
1477 #define NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_A8R8G8B8 0x00000008
1478 #define NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_SHIFT 8
1479 #define NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_MASK 0x0000ff00
1480 #define NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_PITCH 0x00000100
1481 #define NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_SWIZZLE 0x00000200
1482 #define NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_U_SHIFT 16
1483 #define NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_U_MASK 0x00ff0000
1484 #define NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_V_SHIFT 24
1485 #define NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_V_MASK 0xff000000
1486 #define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE 0x00000304
1487 #define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_W_SHIFT 0
1488 #define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_W_MASK 0x0000ffff
1489 #define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_H_SHIFT 16
1490 #define NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_H_MASK 0xffff0000
1491 #define NV04_CONTEXT_SURFACES_3D_PITCH 0x00000308
1492 #define NV04_CONTEXT_SURFACES_3D_PITCH_COLOR_SHIFT 0
1493 #define NV04_CONTEXT_SURFACES_3D_PITCH_COLOR_MASK 0x0000ffff
1494 #define NV04_CONTEXT_SURFACES_3D_PITCH_ZETA_SHIFT 16
1495 #define NV04_CONTEXT_SURFACES_3D_PITCH_ZETA_MASK 0xffff0000
1496 #define NV04_CONTEXT_SURFACES_3D_OFFSET_COLOR 0x0000030c
1497 #define NV04_CONTEXT_SURFACES_3D_OFFSET_ZETA 0x00000310
1498
1499
1500 #define NV10_CONTEXT_SURFACES_3D 0x00000093
1501
1502
1503
1504 #define NV04_TEXTURED_TRIANGLE 0x00000054
1505
1506 #define NV04_TEXTURED_TRIANGLE_NOP 0x00000100
1507 #define NV04_TEXTURED_TRIANGLE_NOTIFY 0x00000104
1508 #define NV04_TEXTURED_TRIANGLE_DMA_NOTIFY 0x00000180
1509 #define NV04_TEXTURED_TRIANGLE_DMA_A 0x00000184
1510 #define NV04_TEXTURED_TRIANGLE_DMA_B 0x00000188
1511 #define NV04_TEXTURED_TRIANGLE_SURFACE 0x0000018c
1512 #define NV04_TEXTURED_TRIANGLE_COLORKEY 0x00000300
1513 #define NV04_TEXTURED_TRIANGLE_OFFSET 0x00000304
1514 #define NV04_TEXTURED_TRIANGLE_FORMAT 0x00000308
1515 #define NV04_TEXTURED_TRIANGLE_FORMAT_DMA_A (1 << 0)
1516 #define NV04_TEXTURED_TRIANGLE_FORMAT_DMA_B (1 << 1)
1517 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_SHIFT 2
1518 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_MASK 0x0000000c
1519 #define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT 4
1520 #define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK 0x00000030
1521 #define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CENTER 0x00000010
1522 #define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CORNER 0x00000020
1523 #define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT 6
1524 #define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_MASK 0x000000c0
1525 #define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CENTER 0x00000040
1526 #define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CORNER 0x00000080
1527 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_SHIFT 8
1528 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_MASK 0x00000f00
1529 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_Y8 0x00000100
1530 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_A1R5G5B5 0x00000200
1531 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_X1R5G5B5 0x00000300
1532 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_A4R4G4B4 0x00000400
1533 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_R5G6B5 0x00000500
1534 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_A8R8G8B8 0x00000600
1535 #define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_X8R8G8B8 0x00000700
1536 #define NV04_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT 12
1537 #define NV04_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK 0x0000f000
1538 #define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT 16
1539 #define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_MASK 0x000f0000
1540 #define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT 20
1541 #define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_MASK 0x00f00000
1542 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_SHIFT 24
1543 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MASK 0x07000000
1544 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_REPEAT 0x01000000
1545 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MIRRORED_REPEAT 0x02000000
1546 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_EDGE 0x03000000
1547 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_BORDER 0x04000000
1548 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP 0x05000000
1549 #define NV04_TEXTURED_TRIANGLE_FORMAT_WRAPU (1 << 27)
1550 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_SHIFT 28
1551 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MASK 0x70000000
1552 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_REPEAT 0x10000000
1553 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MIRRORED_REPEAT 0x20000000
1554 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_EDGE 0x30000000
1555 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_BORDER 0x40000000
1556 #define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP 0x50000000
1557 #define NV04_TEXTURED_TRIANGLE_FORMAT_WRAPV (1 << 31)
1558 #define NV04_TEXTURED_TRIANGLE_FILTER 0x0000030c
1559 #define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT 0
1560 #define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK 0x000000ff
1561 #define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT 8
1562 #define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK 0x00007f00
1563 #define NV04_TEXTURED_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE (1 << 15)
1564 #define NV04_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT 16
1565 #define NV04_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK 0x00ff0000
1566 #define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_SHIFT 24
1567 #define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_MASK 0x07000000
1568 #define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST 0x01000000
1569 #define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR 0x02000000
1570 #define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST 0x03000000
1571 #define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST 0x04000000
1572 #define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR 0x05000000
1573 #define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR 0x06000000
1574 #define NV04_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE (1 << 27)
1575 #define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_SHIFT 28
1576 #define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_MASK 0x70000000
1577 #define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_NEAREST 0x10000000
1578 #define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_LINEAR 0x20000000
1579 #define NV04_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE (1 << 31)
1580 #define NV04_TEXTURED_TRIANGLE_BLEND 0x00000310
1581 #define NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_SHIFT 0
1582 #define NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_MASK 0x0000000f
1583 #define NV04_TEXTURED_TRIANGLE_BLEND_MASK_BIT_SHIFT 4
1584 #define NV04_TEXTURED_TRIANGLE_BLEND_MASK_BIT_MASK 0x00000030
1585 #define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_SHIFT 6
1586 #define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_MASK 0x000000c0
1587 #define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_FLAT 0x00000040
1588 #define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_GOURAUD 0x00000080
1589 #define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_PHONG 0x000000c0
1590 #define NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE (1 << 8)
1591 #define NV04_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE (1 << 12)
1592 #define NV04_TEXTURED_TRIANGLE_BLEND_FOG_ENABLE (1 << 16)
1593 #define NV04_TEXTURED_TRIANGLE_BLEND_BLEND_ENABLE (1 << 20)
1594 #define NV04_TEXTURED_TRIANGLE_BLEND_SRC_SHIFT 24
1595 #define NV04_TEXTURED_TRIANGLE_BLEND_SRC_MASK 0x0f000000
1596 #define NV04_TEXTURED_TRIANGLE_BLEND_DST_SHIFT 28
1597 #define NV04_TEXTURED_TRIANGLE_BLEND_DST_MASK 0xf0000000
1598 #define NV04_TEXTURED_TRIANGLE_CONTROL 0x00000314
1599 #define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_SHIFT 0
1600 #define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_MASK 0x000000ff
1601 #define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_SHIFT 8
1602 #define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_MASK 0x00000f00
1603 #define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_ENABLE (1 << 12)
1604 #define NV04_TEXTURED_TRIANGLE_CONTROL_ORIGIN (1 << 13)
1605 #define NV04_TEXTURED_TRIANGLE_CONTROL_Z_ENABLE (1 << 14)
1606 #define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_SHIFT 16
1607 #define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_MASK 0x000f0000
1608 #define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_SHIFT 20
1609 #define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_MASK 0x00300000
1610 #define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_BOTH 0x00000000
1611 #define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_NONE 0x00100000
1612 #define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_CW 0x00200000
1613 #define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_CCW 0x00300000
1614 #define NV04_TEXTURED_TRIANGLE_CONTROL_DITHER_ENABLE (1 << 22)
1615 #define NV04_TEXTURED_TRIANGLE_CONTROL_Z_PERSPECTIVE_ENABLE (1 << 23)
1616 #define NV04_TEXTURED_TRIANGLE_CONTROL_Z_WRITE (1 << 24)
1617 #define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_SHIFT 30
1618 #define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_MASK 0xc0000000
1619 #define NV04_TEXTURED_TRIANGLE_FOGCOLOR 0x00000318
1620 #define NV04_TEXTURED_TRIANGLE_FOGCOLOR_B_SHIFT 0
1621 #define NV04_TEXTURED_TRIANGLE_FOGCOLOR_B_MASK 0x000000ff
1622 #define NV04_TEXTURED_TRIANGLE_FOGCOLOR_G_SHIFT 8
1623 #define NV04_TEXTURED_TRIANGLE_FOGCOLOR_G_MASK 0x0000ff00
1624 #define NV04_TEXTURED_TRIANGLE_FOGCOLOR_R_SHIFT 16
1625 #define NV04_TEXTURED_TRIANGLE_FOGCOLOR_R_MASK 0x00ff0000
1626 #define NV04_TEXTURED_TRIANGLE_FOGCOLOR_A_SHIFT 24
1627 #define NV04_TEXTURED_TRIANGLE_FOGCOLOR_A_MASK 0xff000000
1628 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SX(x) (0x00000400+((x)*32))
1629 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SX__SIZE 0x00000010
1630 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SY(x) (0x00000404+((x)*32))
1631 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SY__SIZE 0x00000010
1632 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SZ(x) (0x00000408+((x)*32))
1633 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SZ__SIZE 0x00000010
1634 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_RHW(x) (0x0000040c+((x)*32))
1635 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_RHW__SIZE 0x00000010
1636 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR(x) (0x00000410+((x)*32))
1637 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR__SIZE 0x00000010
1638 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_SHIFT 0
1639 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_MASK 0x000000ff
1640 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_SHIFT 8
1641 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_MASK 0x0000ff00
1642 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_SHIFT 16
1643 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_MASK 0x00ff0000
1644 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_SHIFT 24
1645 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_MASK 0xff000000
1646 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR(x) (0x00000414+((x)*32))
1647 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR__SIZE 0x00000010
1648 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_SHIFT 0
1649 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_MASK 0x000000ff
1650 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_SHIFT 8
1651 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_MASK 0x0000ff00
1652 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_SHIFT 16
1653 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_MASK 0x00ff0000
1654 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_SHIFT 24
1655 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_MASK 0xff000000
1656 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_TU(x) (0x00000418+((x)*32))
1657 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_TU__SIZE 0x00000010
1658 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_TV(x) (0x0000041c+((x)*32))
1659 #define NV04_TEXTURED_TRIANGLE_TLVERTEX_TV__SIZE 0x00000010
1660 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE(x) (0x00000600+((x)*4))
1661 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE__SIZE 0x00000040
1662 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I0_SHIFT 0
1663 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I0_MASK 0x0000000f
1664 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I1_SHIFT 4
1665 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I1_MASK 0x000000f0
1666 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I2_SHIFT 8
1667 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I2_MASK 0x00000f00
1668 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I3_SHIFT 12
1669 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I3_MASK 0x0000f000
1670 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I4_SHIFT 16
1671 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I4_MASK 0x000f0000
1672 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I5_SHIFT 20
1673 #define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I5_MASK 0x00f00000
1674
1675
1676 #define NV10_TEXTURED_TRIANGLE 0x00000094
1677
1678
1679
1680 #define NV04_MULTITEX_TRIANGLE 0x00000055
1681
1682 #define NV04_MULTITEX_TRIANGLE_NOP 0x00000100
1683 #define NV04_MULTITEX_TRIANGLE_NOTIFY 0x00000104
1684 #define NV04_MULTITEX_TRIANGLE_DMA_NOTIFY 0x00000180
1685 #define NV04_MULTITEX_TRIANGLE_DMA_A 0x00000184
1686 #define NV04_MULTITEX_TRIANGLE_DMA_B 0x00000188
1687 #define NV04_MULTITEX_TRIANGLE_SURFACE 0x0000018c
1688 #define NV04_MULTITEX_TRIANGLE_OFFSET(x) (0x00000308+((x)*4))
1689 #define NV04_MULTITEX_TRIANGLE_OFFSET__SIZE 0x00000002
1690 #define NV04_MULTITEX_TRIANGLE_FORMAT(x) (0x00000310+((x)*4))
1691 #define NV04_MULTITEX_TRIANGLE_FORMAT__SIZE 0x00000002
1692 #define NV04_MULTITEX_TRIANGLE_FORMAT_DMA_A (1 << 0)
1693 #define NV04_MULTITEX_TRIANGLE_FORMAT_DMA_B (1 << 1)
1694 #define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT 4
1695 #define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK 0x00000030
1696 #define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT 6
1697 #define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_MASK 0x000000c0
1698 #define NV04_MULTITEX_TRIANGLE_FORMAT_COLOR_SHIFT 8
1699 #define NV04_MULTITEX_TRIANGLE_FORMAT_COLOR_MASK 0x00000f00
1700 #define NV04_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT 12
1701 #define NV04_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK 0x0000f000
1702 #define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT 16
1703 #define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_MASK 0x000f0000
1704 #define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT 20
1705 #define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_MASK 0x00f00000
1706 #define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_SHIFT 24
1707 #define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_MASK 0x07000000
1708 #define NV04_MULTITEX_TRIANGLE_FORMAT_WRAPU (1 << 27)
1709 #define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_SHIFT 28
1710 #define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_MASK 0x70000000
1711 #define NV04_MULTITEX_TRIANGLE_FORMAT_WRAPV (1 << 31)
1712 #define NV04_MULTITEX_TRIANGLE_FILTER(x) (0x00000318+((x)*4))
1713 #define NV04_MULTITEX_TRIANGLE_FILTER__SIZE 0x00000002
1714 #define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT 0
1715 #define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK 0x000000ff
1716 #define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT 8
1717 #define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK 0x00007f00
1718 #define NV04_MULTITEX_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE (1 << 15)
1719 #define NV04_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT 16
1720 #define NV04_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK 0x00ff0000
1721 #define NV04_MULTITEX_TRIANGLE_FILTER_MINIFY_SHIFT 24
1722 #define NV04_MULTITEX_TRIANGLE_FILTER_MINIFY_MASK 0x07000000
1723 #define NV04_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE (1 << 27)
1724 #define NV04_MULTITEX_TRIANGLE_FILTER_MAGNIFY_SHIFT 28
1725 #define NV04_MULTITEX_TRIANGLE_FILTER_MAGNIFY_MASK 0x70000000
1726 #define NV04_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE (1 << 31)
1727 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA(x) (0x00000320+((x)*12))
1728 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA__SIZE 0x00000002
1729 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE0 (1 << 0)
1730 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_SHIFT 2
1731 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_MASK 0x000000fc
1732 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_ZERO 0x00000004
1733 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_CONSTANT 0x00000008
1734 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_PRIMARY_COLOR 0x0000000c
1735 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_PREVIOUS 0x00000010
1736 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_TEXTURE0 0x00000014
1737 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_TEXTURE1 0x00000018
1738 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE1 (1 << 8)
1739 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_SHIFT 10
1740 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_MASK 0x0000fc00
1741 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_ZERO 0x00000400
1742 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_CONSTANT 0x00000800
1743 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_PRIMARY_COLOR 0x00000c00
1744 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_PREVIOUS 0x00001000
1745 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_TEXTURE0 0x00001400
1746 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_TEXTURE1 0x00001800
1747 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE2 (1 << 16)
1748 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_SHIFT 18
1749 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_MASK 0x00fc0000
1750 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_ZERO 0x00040000
1751 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_CONSTANT 0x00080000
1752 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_PRIMARY_COLOR 0x000c0000
1753 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_PREVIOUS 0x00100000
1754 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_TEXTURE0 0x00140000
1755 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_TEXTURE1 0x00180000
1756 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE3 (1 << 24)
1757 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_SHIFT 26
1758 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_MASK 0x1c000000
1759 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_ZERO 0x04000000
1760 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_CONSTANT 0x08000000
1761 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_PRIMARY_COLOR 0x0c000000
1762 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_PREVIOUS 0x10000000
1763 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_TEXTURE0 0x14000000
1764 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_TEXTURE1 0x18000000
1765 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_SHIFT 29
1766 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_MASK 0xe0000000
1767 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_IDENTITY 0x20000000
1768 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_SCALE2 0x40000000
1769 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_SCALE4 0x60000000
1770 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_BIAS 0x80000000
1771 #define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_BIAS_SCALE2 0xe0000000
1772 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR(x) (0x00000324+((x)*12))
1773 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR__SIZE 0x00000002
1774 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE0 (1 << 0)
1775 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA0 (1 << 1)
1776 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_SHIFT 2
1777 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_MASK 0x000000fc
1778 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_ZERO 0x00000004
1779 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_CONSTANT 0x00000008
1780 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_PRIMARY_COLOR 0x0000000c
1781 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_PREVIOUS 0x00000010
1782 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_TEXTURE0 0x00000014
1783 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_TEXTURE1 0x00000018
1784 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE1 (1 << 8)
1785 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA1 (1 << 9)
1786 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_SHIFT 10
1787 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_MASK 0x0000fc00
1788 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_ZERO 0x00000400
1789 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_CONSTANT 0x00000800
1790 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_PRIMARY_COLOR 0x00000c00
1791 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_PREVIOUS 0x00001000
1792 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_TEXTURE0 0x00001400
1793 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_TEXTURE1 0x00001800
1794 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE2 (1 << 16)
1795 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA2 (1 << 17)
1796 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_SHIFT 18
1797 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_MASK 0x00fc0000
1798 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_ZERO 0x00040000
1799 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_CONSTANT 0x00080000
1800 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_PRIMARY_COLOR 0x000c0000
1801 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_PREVIOUS 0x00100000
1802 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_TEXTURE0 0x00140000
1803 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_TEXTURE1 0x00180000
1804 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE3 (1 << 24)
1805 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA3 (1 << 25)
1806 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_SHIFT 26
1807 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_MASK 0x1c000000
1808 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_ZERO 0x04000000
1809 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_CONSTANT 0x08000000
1810 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_PRIMARY_COLOR 0x0c000000
1811 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_PREVIOUS 0x10000000
1812 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_TEXTURE0 0x14000000
1813 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_TEXTURE1 0x18000000
1814 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_SHIFT 29
1815 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_MASK 0xe0000000
1816 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_IDENTITY 0x20000000
1817 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_SCALE2 0x40000000
1818 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_SCALE4 0x60000000
1819 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_BIAS 0x80000000
1820 #define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_BIAS_SCALE2 0xe0000000
1821 #define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR 0x00000334
1822 #define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_SHIFT 0
1823 #define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_MASK 0x000000ff
1824 #define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_SHIFT 8
1825 #define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_MASK 0x0000ff00
1826 #define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_SHIFT 16
1827 #define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_MASK 0x00ff0000
1828 #define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_SHIFT 24
1829 #define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_MASK 0xff000000
1830 #define NV04_MULTITEX_TRIANGLE_BLEND 0x00000338
1831 #define NV04_MULTITEX_TRIANGLE_BLEND_MASK_BIT_SHIFT 4
1832 #define NV04_MULTITEX_TRIANGLE_BLEND_MASK_BIT_MASK 0x00000030
1833 #define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_SHIFT 6
1834 #define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_MASK 0x000000c0
1835 #define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_FLAT 0x00000040
1836 #define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_GOURAUD 0x00000080
1837 #define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_PHONG 0x000000c0
1838 #define NV04_MULTITEX_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE (1 << 8)
1839 #define NV04_MULTITEX_TRIANGLE_BLEND_SPECULAR_ENABLE (1 << 12)
1840 #define NV04_MULTITEX_TRIANGLE_BLEND_FOG_ENABLE (1 << 16)
1841 #define NV04_MULTITEX_TRIANGLE_BLEND_BLEND_ENABLE (1 << 20)
1842 #define NV04_MULTITEX_TRIANGLE_BLEND_SRC_SHIFT 24
1843 #define NV04_MULTITEX_TRIANGLE_BLEND_SRC_MASK 0x0f000000
1844 #define NV04_MULTITEX_TRIANGLE_BLEND_DST_SHIFT 28
1845 #define NV04_MULTITEX_TRIANGLE_BLEND_DST_MASK 0xf0000000
1846 #define NV04_MULTITEX_TRIANGLE_CONTROL0 0x0000033c
1847 #define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_SHIFT 0
1848 #define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_MASK 0x000000ff
1849 #define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_SHIFT 8
1850 #define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_MASK 0x00000f00
1851 #define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_ENABLE (1 << 12)
1852 #define NV04_MULTITEX_TRIANGLE_CONTROL0_ORIGIN (1 << 13)
1853 #define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_ENABLE (1 << 14)
1854 #define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_SHIFT 16
1855 #define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_MASK 0x000f0000
1856 #define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_SHIFT 20
1857 #define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_MASK 0x00300000
1858 #define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_BOTH 0x00000000
1859 #define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_NONE 0x00100000
1860 #define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_CW 0x00200000
1861 #define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_CCW 0x00300000
1862 #define NV04_MULTITEX_TRIANGLE_CONTROL0_DITHER_ENABLE (1 << 22)
1863 #define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_PERSPECTIVE_ENABLE (1 << 23)
1864 #define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_WRITE (1 << 24)
1865 #define NV04_MULTITEX_TRIANGLE_CONTROL0_STENCIL_WRITE (1 << 25)
1866 #define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_WRITE (1 << 26)
1867 #define NV04_MULTITEX_TRIANGLE_CONTROL0_RED_WRITE (1 << 27)
1868 #define NV04_MULTITEX_TRIANGLE_CONTROL0_GREEN_WRITE (1 << 28)
1869 #define NV04_MULTITEX_TRIANGLE_CONTROL0_BLUE_WRITE (1 << 29)
1870 #define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_SHIFT 30
1871 #define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_MASK 0xc0000000
1872 #define NV04_MULTITEX_TRIANGLE_CONTROL1 0x00000340
1873 #define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_ENABLE (1 << 0)
1874 #define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_SHIFT 4
1875 #define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_MASK 0x000000f0
1876 #define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_SHIFT 8
1877 #define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_MASK 0x0000ff00
1878 #define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_SHIFT 16
1879 #define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_MASK 0x00ff0000
1880 #define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_SHIFT 24
1881 #define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_MASK 0xff000000
1882 #define NV04_MULTITEX_TRIANGLE_CONTROL2 0x00000344
1883 #define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_SHIFT 0
1884 #define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_MASK 0x0000000f
1885 #define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_SHIFT 4
1886 #define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_MASK 0x000000f0
1887 #define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_SHIFT 8
1888 #define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_MASK 0x00000f00
1889 #define NV04_MULTITEX_TRIANGLE_FOGCOLOR 0x00000348
1890 #define NV04_MULTITEX_TRIANGLE_FOGCOLOR_B_SHIFT 0
1891 #define NV04_MULTITEX_TRIANGLE_FOGCOLOR_B_MASK 0x000000ff
1892 #define NV04_MULTITEX_TRIANGLE_FOGCOLOR_G_SHIFT 8
1893 #define NV04_MULTITEX_TRIANGLE_FOGCOLOR_G_MASK 0x0000ff00
1894 #define NV04_MULTITEX_TRIANGLE_FOGCOLOR_R_SHIFT 16
1895 #define NV04_MULTITEX_TRIANGLE_FOGCOLOR_R_MASK 0x00ff0000
1896 #define NV04_MULTITEX_TRIANGLE_FOGCOLOR_A_SHIFT 24
1897 #define NV04_MULTITEX_TRIANGLE_FOGCOLOR_A_MASK 0xff000000
1898 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SX(x) (0x00000400+((x)*40))
1899 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SX__SIZE 0x00000008
1900 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SY(x) (0x00000404+((x)*40))
1901 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SY__SIZE 0x00000008
1902 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SZ(x) (0x00000408+((x)*40))
1903 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SZ__SIZE 0x00000008
1904 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_RHW(x) (0x0000040c+((x)*40))
1905 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_RHW__SIZE 0x00000008
1906 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR(x) (0x00000410+((x)*40))
1907 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR__SIZE 0x00000008
1908 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_SHIFT 0
1909 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_MASK 0x000000ff
1910 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_SHIFT 8
1911 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_MASK 0x0000ff00
1912 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_SHIFT 16
1913 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_MASK 0x00ff0000
1914 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_SHIFT 24
1915 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_MASK 0xff000000
1916 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR(x) (0x00000414+((x)*40))
1917 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR__SIZE 0x00000008
1918 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_SHIFT 0
1919 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_MASK 0x000000ff
1920 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_SHIFT 8
1921 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_MASK 0x0000ff00
1922 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_SHIFT 16
1923 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_MASK 0x00ff0000
1924 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_SHIFT 24
1925 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_MASK 0xff000000
1926 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU0(x) (0x00000418+((x)*40))
1927 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU0__SIZE 0x00000008
1928 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV0(x) (0x0000041c+((x)*40))
1929 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV0__SIZE 0x00000008
1930 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU1(x) (0x00000420+((x)*40))
1931 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU1__SIZE 0x00000008
1932 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV1(x) (0x00000424+((x)*40))
1933 #define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV1__SIZE 0x00000008
1934 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE(x) (0x00000540+((x)*4))
1935 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE__SIZE 0x00000030
1936 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I0_SHIFT 0
1937 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I0_MASK 0x0000000f
1938 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I1_SHIFT 4
1939 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I1_MASK 0x000000f0
1940 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I2_SHIFT 8
1941 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I2_MASK 0x00000f00
1942 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I3_SHIFT 12
1943 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I3_MASK 0x0000f000
1944 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I4_SHIFT 16
1945 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I4_MASK 0x000f0000
1946 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I5_SHIFT 20
1947 #define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I5_MASK 0x00f00000
1948
1949
1950 #define NV10_MULTITEX_TRIANGLE 0x00000095
1951
1952
1953
1954 #define NV10TCL 0x00000056
1955
1956 #define NV10TCL_NOP 0x00000100
1957 #define NV10TCL_NOTIFY 0x00000104
1958 #define NV10TCL_DMA_NOTIFY 0x00000180
1959 #define NV10TCL_DMA_IN_MEMORY0 0x00000184
1960 #define NV10TCL_DMA_IN_MEMORY1 0x00000188
1961 #define NV10TCL_DMA_VTXBUF0 0x0000018c
1962 #define NV10TCL_DMA_IN_MEMORY2 0x00000194
1963 #define NV10TCL_DMA_IN_MEMORY3 0x00000198
1964 #define NV10TCL_RT_HORIZ 0x00000200
1965 #define NV10TCL_RT_HORIZ_X_SHIFT 0
1966 #define NV10TCL_RT_HORIZ_X_MASK 0x0000ffff
1967 #define NV10TCL_RT_HORIZ_W_SHIFT 16
1968 #define NV10TCL_RT_HORIZ_W_MASK 0xffff0000
1969 #define NV10TCL_RT_VERT 0x00000204
1970 #define NV10TCL_RT_VERT_Y_SHIFT 0
1971 #define NV10TCL_RT_VERT_Y_MASK 0x0000ffff
1972 #define NV10TCL_RT_VERT_H_SHIFT 16
1973 #define NV10TCL_RT_VERT_H_MASK 0xffff0000
1974 #define NV10TCL_RT_FORMAT 0x00000208
1975 #define NV10TCL_RT_FORMAT_TYPE_SHIFT 8
1976 #define NV10TCL_RT_FORMAT_TYPE_MASK 0x00000f00
1977 #define NV10TCL_RT_FORMAT_TYPE_LINEAR 0x00000100
1978 #define NV10TCL_RT_FORMAT_TYPE_SWIZZLED 0x00000200
1979 #define NV10TCL_RT_FORMAT_COLOR_SHIFT 0
1980 #define NV10TCL_RT_FORMAT_COLOR_MASK 0x0000001f
1981 #define NV10TCL_RT_FORMAT_COLOR_R5G6B5 0x00000003
1982 #define NV10TCL_RT_FORMAT_COLOR_X8R8G8B8 0x00000005
1983 #define NV10TCL_RT_FORMAT_COLOR_A8R8G8B8 0x00000008
1984 #define NV10TCL_RT_FORMAT_COLOR_B8 0x00000009
1985 #define NV10TCL_RT_FORMAT_COLOR_UNKNOWN 0x0000000d
1986 #define NV10TCL_RT_FORMAT_COLOR_X8B8G8R8 0x0000000f
1987 #define NV10TCL_RT_FORMAT_COLOR_A8B8G8R8 0x00000010
1988 #define NV10TCL_RT_PITCH 0x0000020c
1989 #define NV10TCL_RT_PITCH_COLOR_PITCH_SHIFT 0
1990 #define NV10TCL_RT_PITCH_COLOR_PITCH_MASK 0x0000ffff
1991 #define NV10TCL_RT_PITCH_ZETA_PITCH_SHIFT 16
1992 #define NV10TCL_RT_PITCH_ZETA_PITCH_MASK 0xffff0000
1993 #define NV10TCL_COLOR_OFFSET 0x00000210
1994 #define NV10TCL_ZETA_OFFSET 0x00000214
1995 #define NV10TCL_TX_OFFSET(x) (0x00000218+((x)*4))
1996 #define NV10TCL_TX_OFFSET__SIZE 0x00000002
1997 #define NV10TCL_TX_FORMAT(x) (0x00000220+((x)*4))
1998 #define NV10TCL_TX_FORMAT__SIZE 0x00000002
1999 #define NV10TCL_TX_FORMAT_DMA0 (1 << 0)
2000 #define NV10TCL_TX_FORMAT_DMA1 (1 << 1)
2001 #define NV10TCL_TX_FORMAT_CUBE_MAP (1 << 2)
2002 #define NV10TCL_TX_FORMAT_FORMAT_SHIFT 7
2003 #define NV10TCL_TX_FORMAT_FORMAT_MASK 0x00000f80
2004 #define NV10TCL_TX_FORMAT_FORMAT_L8 0x00000000
2005 #define NV10TCL_TX_FORMAT_FORMAT_A8 0x00000080
2006 #define NV10TCL_TX_FORMAT_FORMAT_A1R5G5B5 0x00000100
2007 #define NV10TCL_TX_FORMAT_FORMAT_A4R4G4B4 0x00000200
2008 #define NV10TCL_TX_FORMAT_FORMAT_R5G6B5 0x00000280
2009 #define NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8 0x00000300
2010 #define NV10TCL_TX_FORMAT_FORMAT_X8R8G8B8 0x00000380
2011 #define NV10TCL_TX_FORMAT_FORMAT_INDEX8 0x00000580
2012 #define NV10TCL_TX_FORMAT_FORMAT_DXT1 0x00000600
2013 #define NV10TCL_TX_FORMAT_FORMAT_DXT3 0x00000700
2014 #define NV10TCL_TX_FORMAT_FORMAT_DXT5 0x00000780
2015 #define NV10TCL_TX_FORMAT_FORMAT_A1R5G5B5_RECT 0x00000800
2016 #define NV10TCL_TX_FORMAT_FORMAT_R5G6B5_RECT 0x00000880
2017 #define NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8_RECT 0x00000900
2018 #define NV10TCL_TX_FORMAT_FORMAT_A8_RECT 0x00000980
2019 #define NV10TCL_TX_FORMAT_MIPMAP (1 << 15)
2020 #define NV10TCL_TX_FORMAT_BASE_SIZE_U_SHIFT 16
2021 #define NV10TCL_TX_FORMAT_BASE_SIZE_U_MASK 0x000f0000
2022 #define NV10TCL_TX_FORMAT_BASE_SIZE_V_SHIFT 20
2023 #define NV10TCL_TX_FORMAT_BASE_SIZE_V_MASK 0x00f00000
2024 #define NV10TCL_TX_FORMAT_WRAP_S_SHIFT 24
2025 #define NV10TCL_TX_FORMAT_WRAP_S_MASK 0x0f000000
2026 #define NV10TCL_TX_FORMAT_WRAP_S_REPEAT 0x01000000
2027 #define NV10TCL_TX_FORMAT_WRAP_S_MIRRORED_REPEAT 0x02000000
2028 #define NV10TCL_TX_FORMAT_WRAP_S_CLAMP_TO_EDGE 0x03000000
2029 #define NV10TCL_TX_FORMAT_WRAP_S_CLAMP_TO_BORDER 0x04000000
2030 #define NV10TCL_TX_FORMAT_WRAP_S_CLAMP 0x05000000
2031 #define NV10TCL_TX_FORMAT_WRAP_T_SHIFT 28
2032 #define NV10TCL_TX_FORMAT_WRAP_T_MASK 0xf0000000
2033 #define NV10TCL_TX_FORMAT_WRAP_T_REPEAT 0x10000000
2034 #define NV10TCL_TX_FORMAT_WRAP_T_MIRRORED_REPEAT 0x20000000
2035 #define NV10TCL_TX_FORMAT_WRAP_T_CLAMP_TO_EDGE 0x30000000
2036 #define NV10TCL_TX_FORMAT_WRAP_T_CLAMP_TO_BORDER 0x40000000
2037 #define NV10TCL_TX_FORMAT_WRAP_T_CLAMP 0x50000000
2038 #define NV10TCL_TX_ENABLE(x) (0x00000228+((x)*4))
2039 #define NV10TCL_TX_ENABLE__SIZE 0x00000002
2040 #define NV10TCL_TX_ENABLE_CULL_SHIFT 0
2041 #define NV10TCL_TX_ENABLE_CULL_MASK 0x0000000f
2042 #define NV10TCL_TX_ENABLE_CULL_DISABLED 0x00000000
2043 #define NV10TCL_TX_ENABLE_CULL_TEST_ALL 0x00000003
2044 #define NV10TCL_TX_ENABLE_CULL_TEST_ALPHA 0x00000004
2045 #define NV10TCL_TX_ENABLE_ANISOTROPY_SHIFT 4
2046 #define NV10TCL_TX_ENABLE_ANISOTROPY_MASK 0x00000030
2047 #define NV10TCL_TX_ENABLE_MIPMAP_MAX_LOD_SHIFT 14
2048 #define NV10TCL_TX_ENABLE_MIPMAP_MAX_LOD_MASK 0x0003c000
2049 #define NV10TCL_TX_ENABLE_MIPMAP_MIN_LOD_SHIFT 26
2050 #define NV10TCL_TX_ENABLE_MIPMAP_MIN_LOD_MASK 0x3c000000
2051 #define NV10TCL_TX_ENABLE_ENABLE (1 << 30)
2052 #define NV10TCL_TX_NPOT_PITCH(x) (0x00000230+((x)*4))
2053 #define NV10TCL_TX_NPOT_PITCH__SIZE 0x00000002
2054 #define NV10TCL_TX_NPOT_PITCH_PITCH_SHIFT 16
2055 #define NV10TCL_TX_NPOT_PITCH_PITCH_MASK 0xffff0000
2056 #define NV10TCL_TX_NPOT_SIZE(x) (0x00000240+((x)*4))
2057 #define NV10TCL_TX_NPOT_SIZE__SIZE 0x00000002
2058 #define NV10TCL_TX_NPOT_SIZE_H_SHIFT 0
2059 #define NV10TCL_TX_NPOT_SIZE_H_MASK 0x0000ffff
2060 #define NV10TCL_TX_NPOT_SIZE_W_SHIFT 16
2061 #define NV10TCL_TX_NPOT_SIZE_W_MASK 0xffff0000
2062 #define NV10TCL_TX_FILTER(x) (0x00000248+((x)*4))
2063 #define NV10TCL_TX_FILTER__SIZE 0x00000002
2064 #define NV10TCL_TX_FILTER_LOD_BIAS_SHIFT 8
2065 #define NV10TCL_TX_FILTER_LOD_BIAS_MASK 0x00000f00
2066 #define NV10TCL_TX_FILTER_MINIFY_SHIFT 24
2067 #define NV10TCL_TX_FILTER_MINIFY_MASK 0x0f000000
2068 #define NV10TCL_TX_FILTER_MINIFY_NEAREST 0x01000000
2069 #define NV10TCL_TX_FILTER_MINIFY_LINEAR 0x02000000
2070 #define NV10TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST 0x03000000
2071 #define NV10TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST 0x04000000
2072 #define NV10TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR 0x05000000
2073 #define NV10TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR 0x06000000
2074 #define NV10TCL_TX_FILTER_MAGNIFY_SHIFT 28
2075 #define NV10TCL_TX_FILTER_MAGNIFY_MASK 0xf0000000
2076 #define NV10TCL_TX_FILTER_MAGNIFY_NEAREST 0x10000000
2077 #define NV10TCL_TX_FILTER_MAGNIFY_LINEAR 0x20000000
2078 #define NV10TCL_TX_PALETTE_OFFSET(x) (0x00000250+((x)*4))
2079 #define NV10TCL_TX_PALETTE_OFFSET__SIZE 0x00000002
2080 #define NV10TCL_RC_IN_ALPHA(x) (0x00000260+((x)*4))
2081 #define NV10TCL_RC_IN_ALPHA__SIZE 0x00000002
2082 #define NV10TCL_RC_IN_ALPHA_D_INPUT_SHIFT 0
2083 #define NV10TCL_RC_IN_ALPHA_D_INPUT_MASK 0x0000000f
2084 #define NV10TCL_RC_IN_ALPHA_D_INPUT_ZERO 0x00000000
2085 #define NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR0 0x00000001
2086 #define NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR1 0x00000002
2087 #define NV10TCL_RC_IN_ALPHA_D_INPUT_FOG 0x00000003
2088 #define NV10TCL_RC_IN_ALPHA_D_INPUT_PRIMARY_COLOR 0x00000004
2089 #define NV10TCL_RC_IN_ALPHA_D_INPUT_SECONDARY_COLOR 0x00000005
2090 #define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE0 0x00000008
2091 #define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE1 0x00000009
2092 #define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0 0x0000000c
2093 #define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE1 0x0000000d
2094 #define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2095 #define NV10TCL_RC_IN_ALPHA_D_INPUT_E_TIMES_F 0x0000000f
2096 #define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE2 0x0000000a
2097 #define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE3 0x0000000b
2098 #define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE (1 << 4)
2099 #define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_BLUE 0x00000000
2100 #define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_ALPHA 0x00000010
2101 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_SHIFT 5
2102 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_MASK 0x000000e0
2103 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
2104 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_INVERT 0x00000020
2105 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NORMAL 0x00000040
2106 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NEGATE 0x00000060
2107 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
2108 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
2109 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_IDENTITY 0x000000c0
2110 #define NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_NEGATE 0x000000e0
2111 #define NV10TCL_RC_IN_ALPHA_C_INPUT_SHIFT 8
2112 #define NV10TCL_RC_IN_ALPHA_C_INPUT_MASK 0x00000f00
2113 #define NV10TCL_RC_IN_ALPHA_C_INPUT_ZERO 0x00000000
2114 #define NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR0 0x00000100
2115 #define NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR1 0x00000200
2116 #define NV10TCL_RC_IN_ALPHA_C_INPUT_FOG 0x00000300
2117 #define NV10TCL_RC_IN_ALPHA_C_INPUT_PRIMARY_COLOR 0x00000400
2118 #define NV10TCL_RC_IN_ALPHA_C_INPUT_SECONDARY_COLOR 0x00000500
2119 #define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE0 0x00000800
2120 #define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE1 0x00000900
2121 #define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0 0x00000c00
2122 #define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE1 0x00000d00
2123 #define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2124 #define NV10TCL_RC_IN_ALPHA_C_INPUT_E_TIMES_F 0x00000f00
2125 #define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE2 0x00000a00
2126 #define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE3 0x00000b00
2127 #define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE (1 << 12)
2128 #define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_BLUE 0x00000000
2129 #define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_ALPHA 0x00001000
2130 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_SHIFT 13
2131 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_MASK 0x0000e000
2132 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
2133 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_INVERT 0x00002000
2134 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NORMAL 0x00004000
2135 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NEGATE 0x00006000
2136 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
2137 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2138 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_IDENTITY 0x0000c000
2139 #define NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_NEGATE 0x0000e000
2140 #define NV10TCL_RC_IN_ALPHA_B_INPUT_SHIFT 16
2141 #define NV10TCL_RC_IN_ALPHA_B_INPUT_MASK 0x000f0000
2142 #define NV10TCL_RC_IN_ALPHA_B_INPUT_ZERO 0x00000000
2143 #define NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR0 0x00010000
2144 #define NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR1 0x00020000
2145 #define NV10TCL_RC_IN_ALPHA_B_INPUT_FOG 0x00030000
2146 #define NV10TCL_RC_IN_ALPHA_B_INPUT_PRIMARY_COLOR 0x00040000
2147 #define NV10TCL_RC_IN_ALPHA_B_INPUT_SECONDARY_COLOR 0x00050000
2148 #define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE0 0x00080000
2149 #define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE1 0x00090000
2150 #define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0 0x000c0000
2151 #define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE1 0x000d0000
2152 #define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2153 #define NV10TCL_RC_IN_ALPHA_B_INPUT_E_TIMES_F 0x000f0000
2154 #define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE2 0x000a0000
2155 #define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE3 0x000b0000
2156 #define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE (1 << 20)
2157 #define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_BLUE 0x00000000
2158 #define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_ALPHA 0x00100000
2159 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_SHIFT 21
2160 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_MASK 0x00e00000
2161 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
2162 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_INVERT 0x00200000
2163 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NORMAL 0x00400000
2164 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NEGATE 0x00600000
2165 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
2166 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2167 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_IDENTITY 0x00c00000
2168 #define NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_NEGATE 0x00e00000
2169 #define NV10TCL_RC_IN_ALPHA_A_INPUT_SHIFT 24
2170 #define NV10TCL_RC_IN_ALPHA_A_INPUT_MASK 0x0f000000
2171 #define NV10TCL_RC_IN_ALPHA_A_INPUT_ZERO 0x00000000
2172 #define NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR0 0x01000000
2173 #define NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR1 0x02000000
2174 #define NV10TCL_RC_IN_ALPHA_A_INPUT_FOG 0x03000000
2175 #define NV10TCL_RC_IN_ALPHA_A_INPUT_PRIMARY_COLOR 0x04000000
2176 #define NV10TCL_RC_IN_ALPHA_A_INPUT_SECONDARY_COLOR 0x05000000
2177 #define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE0 0x08000000
2178 #define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE1 0x09000000
2179 #define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0 0x0c000000
2180 #define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE1 0x0d000000
2181 #define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2182 #define NV10TCL_RC_IN_ALPHA_A_INPUT_E_TIMES_F 0x0f000000
2183 #define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE2 0x0a000000
2184 #define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE3 0x0b000000
2185 #define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE (1 << 28)
2186 #define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_BLUE 0x00000000
2187 #define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_ALPHA 0x10000000
2188 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_SHIFT 29
2189 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_MASK 0xe0000000
2190 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
2191 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_INVERT 0x20000000
2192 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NORMAL 0x40000000
2193 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NEGATE 0x60000000
2194 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
2195 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2196 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_IDENTITY 0xc0000000
2197 #define NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_NEGATE 0xe0000000
2198 #define NV10TCL_RC_IN_RGB(x) (0x00000268+((x)*4))
2199 #define NV10TCL_RC_IN_RGB__SIZE 0x00000002
2200 #define NV10TCL_RC_IN_RGB_D_INPUT_SHIFT 0
2201 #define NV10TCL_RC_IN_RGB_D_INPUT_MASK 0x0000000f
2202 #define NV10TCL_RC_IN_RGB_D_INPUT_ZERO 0x00000000
2203 #define NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR0 0x00000001
2204 #define NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR1 0x00000002
2205 #define NV10TCL_RC_IN_RGB_D_INPUT_FOG 0x00000003
2206 #define NV10TCL_RC_IN_RGB_D_INPUT_PRIMARY_COLOR 0x00000004
2207 #define NV10TCL_RC_IN_RGB_D_INPUT_SECONDARY_COLOR 0x00000005
2208 #define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE0 0x00000008
2209 #define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE1 0x00000009
2210 #define NV10TCL_RC_IN_RGB_D_INPUT_SPARE0 0x0000000c
2211 #define NV10TCL_RC_IN_RGB_D_INPUT_SPARE1 0x0000000d
2212 #define NV10TCL_RC_IN_RGB_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2213 #define NV10TCL_RC_IN_RGB_D_INPUT_E_TIMES_F 0x0000000f
2214 #define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE2 0x0000000a
2215 #define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE3 0x0000000b
2216 #define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE (1 << 4)
2217 #define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_RGB 0x00000000
2218 #define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_ALPHA 0x00000010
2219 #define NV10TCL_RC_IN_RGB_D_MAPPING_SHIFT 5
2220 #define NV10TCL_RC_IN_RGB_D_MAPPING_MASK 0x000000e0
2221 #define NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
2222 #define NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_INVERT 0x00000020
2223 #define NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NORMAL 0x00000040
2224 #define NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NEGATE 0x00000060
2225 #define NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
2226 #define NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
2227 #define NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_IDENTITY 0x000000c0
2228 #define NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_NEGATE 0x000000e0
2229 #define NV10TCL_RC_IN_RGB_C_INPUT_SHIFT 8
2230 #define NV10TCL_RC_IN_RGB_C_INPUT_MASK 0x00000f00
2231 #define NV10TCL_RC_IN_RGB_C_INPUT_ZERO 0x00000000
2232 #define NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR0 0x00000100
2233 #define NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR1 0x00000200
2234 #define NV10TCL_RC_IN_RGB_C_INPUT_FOG 0x00000300
2235 #define NV10TCL_RC_IN_RGB_C_INPUT_PRIMARY_COLOR 0x00000400
2236 #define NV10TCL_RC_IN_RGB_C_INPUT_SECONDARY_COLOR 0x00000500
2237 #define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE0 0x00000800
2238 #define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE1 0x00000900
2239 #define NV10TCL_RC_IN_RGB_C_INPUT_SPARE0 0x00000c00
2240 #define NV10TCL_RC_IN_RGB_C_INPUT_SPARE1 0x00000d00
2241 #define NV10TCL_RC_IN_RGB_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2242 #define NV10TCL_RC_IN_RGB_C_INPUT_E_TIMES_F 0x00000f00
2243 #define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE2 0x00000a00
2244 #define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE3 0x00000b00
2245 #define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE (1 << 12)
2246 #define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_RGB 0x00000000
2247 #define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_ALPHA 0x00001000
2248 #define NV10TCL_RC_IN_RGB_C_MAPPING_SHIFT 13
2249 #define NV10TCL_RC_IN_RGB_C_MAPPING_MASK 0x0000e000
2250 #define NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
2251 #define NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_INVERT 0x00002000
2252 #define NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NORMAL 0x00004000
2253 #define NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NEGATE 0x00006000
2254 #define NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
2255 #define NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2256 #define NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_IDENTITY 0x0000c000
2257 #define NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_NEGATE 0x0000e000
2258 #define NV10TCL_RC_IN_RGB_B_INPUT_SHIFT 16
2259 #define NV10TCL_RC_IN_RGB_B_INPUT_MASK 0x000f0000
2260 #define NV10TCL_RC_IN_RGB_B_INPUT_ZERO 0x00000000
2261 #define NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR0 0x00010000
2262 #define NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR1 0x00020000
2263 #define NV10TCL_RC_IN_RGB_B_INPUT_FOG 0x00030000
2264 #define NV10TCL_RC_IN_RGB_B_INPUT_PRIMARY_COLOR 0x00040000
2265 #define NV10TCL_RC_IN_RGB_B_INPUT_SECONDARY_COLOR 0x00050000
2266 #define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE0 0x00080000
2267 #define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE1 0x00090000
2268 #define NV10TCL_RC_IN_RGB_B_INPUT_SPARE0 0x000c0000
2269 #define NV10TCL_RC_IN_RGB_B_INPUT_SPARE1 0x000d0000
2270 #define NV10TCL_RC_IN_RGB_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2271 #define NV10TCL_RC_IN_RGB_B_INPUT_E_TIMES_F 0x000f0000
2272 #define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE2 0x000a0000
2273 #define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE3 0x000b0000
2274 #define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE (1 << 20)
2275 #define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_RGB 0x00000000
2276 #define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_ALPHA 0x00100000
2277 #define NV10TCL_RC_IN_RGB_B_MAPPING_SHIFT 21
2278 #define NV10TCL_RC_IN_RGB_B_MAPPING_MASK 0x00e00000
2279 #define NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
2280 #define NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_INVERT 0x00200000
2281 #define NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NORMAL 0x00400000
2282 #define NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NEGATE 0x00600000
2283 #define NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
2284 #define NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2285 #define NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_IDENTITY 0x00c00000
2286 #define NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_NEGATE 0x00e00000
2287 #define NV10TCL_RC_IN_RGB_A_INPUT_SHIFT 24
2288 #define NV10TCL_RC_IN_RGB_A_INPUT_MASK 0x0f000000
2289 #define NV10TCL_RC_IN_RGB_A_INPUT_ZERO 0x00000000
2290 #define NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR0 0x01000000
2291 #define NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR1 0x02000000
2292 #define NV10TCL_RC_IN_RGB_A_INPUT_FOG 0x03000000
2293 #define NV10TCL_RC_IN_RGB_A_INPUT_PRIMARY_COLOR 0x04000000
2294 #define NV10TCL_RC_IN_RGB_A_INPUT_SECONDARY_COLOR 0x05000000
2295 #define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE0 0x08000000
2296 #define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE1 0x09000000
2297 #define NV10TCL_RC_IN_RGB_A_INPUT_SPARE0 0x0c000000
2298 #define NV10TCL_RC_IN_RGB_A_INPUT_SPARE1 0x0d000000
2299 #define NV10TCL_RC_IN_RGB_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2300 #define NV10TCL_RC_IN_RGB_A_INPUT_E_TIMES_F 0x0f000000
2301 #define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE2 0x0a000000
2302 #define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE3 0x0b000000
2303 #define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE (1 << 28)
2304 #define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_RGB 0x00000000
2305 #define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_ALPHA 0x10000000
2306 #define NV10TCL_RC_IN_RGB_A_MAPPING_SHIFT 29
2307 #define NV10TCL_RC_IN_RGB_A_MAPPING_MASK 0xe0000000
2308 #define NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
2309 #define NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_INVERT 0x20000000
2310 #define NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NORMAL 0x40000000
2311 #define NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NEGATE 0x60000000
2312 #define NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
2313 #define NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2314 #define NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_IDENTITY 0xc0000000
2315 #define NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_NEGATE 0xe0000000
2316 #define NV10TCL_RC_COLOR(x) (0x00000270+((x)*4))
2317 #define NV10TCL_RC_COLOR__SIZE 0x00000002
2318 #define NV10TCL_RC_COLOR_B_SHIFT 0
2319 #define NV10TCL_RC_COLOR_B_MASK 0x000000ff
2320 #define NV10TCL_RC_COLOR_G_SHIFT 8
2321 #define NV10TCL_RC_COLOR_G_MASK 0x0000ff00
2322 #define NV10TCL_RC_COLOR_R_SHIFT 16
2323 #define NV10TCL_RC_COLOR_R_MASK 0x00ff0000
2324 #define NV10TCL_RC_COLOR_A_SHIFT 24
2325 #define NV10TCL_RC_COLOR_A_MASK 0xff000000
2326 #define NV10TCL_RC_OUT_ALPHA(x) (0x00000278+((x)*4))
2327 #define NV10TCL_RC_OUT_ALPHA__SIZE 0x00000002
2328 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SHIFT 0
2329 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_MASK 0x0000000f
2330 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_ZERO 0x00000000
2331 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
2332 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
2333 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_FOG 0x00000003
2334 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_PRIMARY_COLOR 0x00000004
2335 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SECONDARY_COLOR 0x00000005
2336 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE0 0x00000008
2337 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE1 0x00000009
2338 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0 0x0000000c
2339 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE1 0x0000000d
2340 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2341 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_E_TIMES_F 0x0000000f
2342 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE2 0x0000000a
2343 #define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE3 0x0000000b
2344 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SHIFT 4
2345 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_MASK 0x000000f0
2346 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_ZERO 0x00000000
2347 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
2348 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
2349 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_FOG 0x00000030
2350 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_PRIMARY_COLOR 0x00000040
2351 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SECONDARY_COLOR 0x00000050
2352 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE0 0x00000080
2353 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE1 0x00000090
2354 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0 0x000000c0
2355 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE1 0x000000d0
2356 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
2357 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_E_TIMES_F 0x000000f0
2358 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE2 0x000000a0
2359 #define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE3 0x000000b0
2360 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SHIFT 8
2361 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_MASK 0x00000f00
2362 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_ZERO 0x00000000
2363 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
2364 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
2365 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_FOG 0x00000300
2366 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
2367 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
2368 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE0 0x00000800
2369 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE1 0x00000900
2370 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0 0x00000c00
2371 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE1 0x00000d00
2372 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2373 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_E_TIMES_F 0x00000f00
2374 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE2 0x00000a00
2375 #define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE3 0x00000b00
2376 #define NV10TCL_RC_OUT_ALPHA_CD_DOT_PRODUCT (1 << 12)
2377 #define NV10TCL_RC_OUT_ALPHA_AB_DOT_PRODUCT (1 << 13)
2378 #define NV10TCL_RC_OUT_ALPHA_MUX_SUM (1 << 14)
2379 #define NV10TCL_RC_OUT_ALPHA_BIAS (1 << 15)
2380 #define NV10TCL_RC_OUT_ALPHA_BIAS_NONE 0x00000000
2381 #define NV10TCL_RC_OUT_ALPHA_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
2382 #define NV10TCL_RC_OUT_ALPHA_SCALE_SHIFT 17
2383 #define NV10TCL_RC_OUT_ALPHA_SCALE_MASK 0x00000000
2384 #define NV10TCL_RC_OUT_ALPHA_SCALE_NONE 0x00000000
2385 #define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_TWO 0x00020000
2386 #define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_FOUR 0x00040000
2387 #define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_ONE_HALF 0x00060000
2388 #define NV10TCL_RC_OUT_RGB(x) (0x00000280+((x)*4))
2389 #define NV10TCL_RC_OUT_RGB__SIZE 0x00000002
2390 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SHIFT 0
2391 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_MASK 0x0000000f
2392 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_ZERO 0x00000000
2393 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
2394 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
2395 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_FOG 0x00000003
2396 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_PRIMARY_COLOR 0x00000004
2397 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SECONDARY_COLOR 0x00000005
2398 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE0 0x00000008
2399 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE1 0x00000009
2400 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0 0x0000000c
2401 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE1 0x0000000d
2402 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2403 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_E_TIMES_F 0x0000000f
2404 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE2 0x0000000a
2405 #define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE3 0x0000000b
2406 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SHIFT 4
2407 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_MASK 0x000000f0
2408 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_ZERO 0x00000000
2409 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
2410 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
2411 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_FOG 0x00000030
2412 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_PRIMARY_COLOR 0x00000040
2413 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SECONDARY_COLOR 0x00000050
2414 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE0 0x00000080
2415 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE1 0x00000090
2416 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0 0x000000c0
2417 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE1 0x000000d0
2418 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
2419 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_E_TIMES_F 0x000000f0
2420 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE2 0x000000a0
2421 #define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE3 0x000000b0
2422 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SHIFT 8
2423 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_MASK 0x00000f00
2424 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_ZERO 0x00000000
2425 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
2426 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
2427 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_FOG 0x00000300
2428 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
2429 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
2430 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE0 0x00000800
2431 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE1 0x00000900
2432 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0 0x00000c00
2433 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE1 0x00000d00
2434 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2435 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_E_TIMES_F 0x00000f00
2436 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE2 0x00000a00
2437 #define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE3 0x00000b00
2438 #define NV10TCL_RC_OUT_RGB_CD_DOT_PRODUCT (1 << 12)
2439 #define NV10TCL_RC_OUT_RGB_AB_DOT_PRODUCT (1 << 13)
2440 #define NV10TCL_RC_OUT_RGB_MUX_SUM (1 << 14)
2441 #define NV10TCL_RC_OUT_RGB_BIAS (1 << 15)
2442 #define NV10TCL_RC_OUT_RGB_BIAS_NONE 0x00000000
2443 #define NV10TCL_RC_OUT_RGB_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
2444 #define NV10TCL_RC_OUT_RGB_SCALE_SHIFT 17
2445 #define NV10TCL_RC_OUT_RGB_SCALE_MASK 0x00000000
2446 #define NV10TCL_RC_OUT_RGB_SCALE_NONE 0x00000000
2447 #define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_TWO 0x00020000
2448 #define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_FOUR 0x00040000
2449 #define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_ONE_HALF 0x00060000
2450 #define NV10TCL_RC_OUT_RGB_OPERATION_SHIFT 27
2451 #define NV10TCL_RC_OUT_RGB_OPERATION_MASK 0x38000000
2452 #define NV10TCL_RC_FINAL0 0x00000288
2453 #define NV10TCL_RC_FINAL0_D_INPUT_SHIFT 0
2454 #define NV10TCL_RC_FINAL0_D_INPUT_MASK 0x0000000f
2455 #define NV10TCL_RC_FINAL0_D_INPUT_ZERO 0x00000000
2456 #define NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR0 0x00000001
2457 #define NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR1 0x00000002
2458 #define NV10TCL_RC_FINAL0_D_INPUT_FOG 0x00000003
2459 #define NV10TCL_RC_FINAL0_D_INPUT_PRIMARY_COLOR 0x00000004
2460 #define NV10TCL_RC_FINAL0_D_INPUT_SECONDARY_COLOR 0x00000005
2461 #define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE0 0x00000008
2462 #define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE1 0x00000009
2463 #define NV10TCL_RC_FINAL0_D_INPUT_SPARE0 0x0000000c
2464 #define NV10TCL_RC_FINAL0_D_INPUT_SPARE1 0x0000000d
2465 #define NV10TCL_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2466 #define NV10TCL_RC_FINAL0_D_INPUT_E_TIMES_F 0x0000000f
2467 #define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE2 0x0000000a
2468 #define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE3 0x0000000b
2469 #define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE (1 << 4)
2470 #define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_RGB 0x00000000
2471 #define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_ALPHA 0x00000010
2472 #define NV10TCL_RC_FINAL0_D_MAPPING_SHIFT 5
2473 #define NV10TCL_RC_FINAL0_D_MAPPING_MASK 0x000000e0
2474 #define NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
2475 #define NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT 0x00000020
2476 #define NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NORMAL 0x00000040
2477 #define NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NEGATE 0x00000060
2478 #define NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
2479 #define NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
2480 #define NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY 0x000000c0
2481 #define NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_NEGATE 0x000000e0
2482 #define NV10TCL_RC_FINAL0_C_INPUT_SHIFT 8
2483 #define NV10TCL_RC_FINAL0_C_INPUT_MASK 0x00000f00
2484 #define NV10TCL_RC_FINAL0_C_INPUT_ZERO 0x00000000
2485 #define NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR0 0x00000100
2486 #define NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR1 0x00000200
2487 #define NV10TCL_RC_FINAL0_C_INPUT_FOG 0x00000300
2488 #define NV10TCL_RC_FINAL0_C_INPUT_PRIMARY_COLOR 0x00000400
2489 #define NV10TCL_RC_FINAL0_C_INPUT_SECONDARY_COLOR 0x00000500
2490 #define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE0 0x00000800
2491 #define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE1 0x00000900
2492 #define NV10TCL_RC_FINAL0_C_INPUT_SPARE0 0x00000c00
2493 #define NV10TCL_RC_FINAL0_C_INPUT_SPARE1 0x00000d00
2494 #define NV10TCL_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2495 #define NV10TCL_RC_FINAL0_C_INPUT_E_TIMES_F 0x00000f00
2496 #define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE2 0x00000a00
2497 #define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE3 0x00000b00
2498 #define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE (1 << 12)
2499 #define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_RGB 0x00000000
2500 #define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_ALPHA 0x00001000
2501 #define NV10TCL_RC_FINAL0_C_MAPPING_SHIFT 13
2502 #define NV10TCL_RC_FINAL0_C_MAPPING_MASK 0x0000e000
2503 #define NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
2504 #define NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT 0x00002000
2505 #define NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NORMAL 0x00004000
2506 #define NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NEGATE 0x00006000
2507 #define NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
2508 #define NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2509 #define NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY 0x0000c000
2510 #define NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_NEGATE 0x0000e000
2511 #define NV10TCL_RC_FINAL0_B_INPUT_SHIFT 16
2512 #define NV10TCL_RC_FINAL0_B_INPUT_MASK 0x000f0000
2513 #define NV10TCL_RC_FINAL0_B_INPUT_ZERO 0x00000000
2514 #define NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR0 0x00010000
2515 #define NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR1 0x00020000
2516 #define NV10TCL_RC_FINAL0_B_INPUT_FOG 0x00030000
2517 #define NV10TCL_RC_FINAL0_B_INPUT_PRIMARY_COLOR 0x00040000
2518 #define NV10TCL_RC_FINAL0_B_INPUT_SECONDARY_COLOR 0x00050000
2519 #define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE0 0x00080000
2520 #define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE1 0x00090000
2521 #define NV10TCL_RC_FINAL0_B_INPUT_SPARE0 0x000c0000
2522 #define NV10TCL_RC_FINAL0_B_INPUT_SPARE1 0x000d0000
2523 #define NV10TCL_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2524 #define NV10TCL_RC_FINAL0_B_INPUT_E_TIMES_F 0x000f0000
2525 #define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE2 0x000a0000
2526 #define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE3 0x000b0000
2527 #define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE (1 << 20)
2528 #define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_RGB 0x00000000
2529 #define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_ALPHA 0x00100000
2530 #define NV10TCL_RC_FINAL0_B_MAPPING_SHIFT 21
2531 #define NV10TCL_RC_FINAL0_B_MAPPING_MASK 0x00e00000
2532 #define NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
2533 #define NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_INVERT 0x00200000
2534 #define NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NORMAL 0x00400000
2535 #define NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NEGATE 0x00600000
2536 #define NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
2537 #define NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2538 #define NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_IDENTITY 0x00c00000
2539 #define NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_NEGATE 0x00e00000
2540 #define NV10TCL_RC_FINAL0_A_INPUT_SHIFT 24
2541 #define NV10TCL_RC_FINAL0_A_INPUT_MASK 0x0f000000
2542 #define NV10TCL_RC_FINAL0_A_INPUT_ZERO 0x00000000
2543 #define NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR0 0x01000000
2544 #define NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR1 0x02000000
2545 #define NV10TCL_RC_FINAL0_A_INPUT_FOG 0x03000000
2546 #define NV10TCL_RC_FINAL0_A_INPUT_PRIMARY_COLOR 0x04000000
2547 #define NV10TCL_RC_FINAL0_A_INPUT_SECONDARY_COLOR 0x05000000
2548 #define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE0 0x08000000
2549 #define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE1 0x09000000
2550 #define NV10TCL_RC_FINAL0_A_INPUT_SPARE0 0x0c000000
2551 #define NV10TCL_RC_FINAL0_A_INPUT_SPARE1 0x0d000000
2552 #define NV10TCL_RC_FINAL0_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2553 #define NV10TCL_RC_FINAL0_A_INPUT_E_TIMES_F 0x0f000000
2554 #define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE2 0x0a000000
2555 #define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE3 0x0b000000
2556 #define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE (1 << 28)
2557 #define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_RGB 0x00000000
2558 #define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_ALPHA 0x10000000
2559 #define NV10TCL_RC_FINAL0_A_MAPPING_SHIFT 29
2560 #define NV10TCL_RC_FINAL0_A_MAPPING_MASK 0xe0000000
2561 #define NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
2562 #define NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_INVERT 0x20000000
2563 #define NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NORMAL 0x40000000
2564 #define NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NEGATE 0x60000000
2565 #define NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
2566 #define NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2567 #define NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_IDENTITY 0xc0000000
2568 #define NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_NEGATE 0xe0000000
2569 #define NV10TCL_RC_FINAL1 0x0000028c
2570 #define NV10TCL_RC_FINAL1_COLOR_SUM_CLAMP (1 << 7)
2571 #define NV10TCL_RC_FINAL1_G_INPUT_SHIFT 8
2572 #define NV10TCL_RC_FINAL1_G_INPUT_MASK 0x00000f00
2573 #define NV10TCL_RC_FINAL1_G_INPUT_ZERO 0x00000000
2574 #define NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR0 0x00000100
2575 #define NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR1 0x00000200
2576 #define NV10TCL_RC_FINAL1_G_INPUT_FOG 0x00000300
2577 #define NV10TCL_RC_FINAL1_G_INPUT_PRIMARY_COLOR 0x00000400
2578 #define NV10TCL_RC_FINAL1_G_INPUT_SECONDARY_COLOR 0x00000500
2579 #define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE0 0x00000800
2580 #define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE1 0x00000900
2581 #define NV10TCL_RC_FINAL1_G_INPUT_SPARE0 0x00000c00
2582 #define NV10TCL_RC_FINAL1_G_INPUT_SPARE1 0x00000d00
2583 #define NV10TCL_RC_FINAL1_G_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2584 #define NV10TCL_RC_FINAL1_G_INPUT_E_TIMES_F 0x00000f00
2585 #define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE2 0x00000a00
2586 #define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE3 0x00000b00
2587 #define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE (1 << 12)
2588 #define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_RGB 0x00000000
2589 #define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_ALPHA 0x00001000
2590 #define NV10TCL_RC_FINAL1_G_MAPPING_SHIFT 13
2591 #define NV10TCL_RC_FINAL1_G_MAPPING_MASK 0x0000e000
2592 #define NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_IDENTITY 0x00000000
2593 #define NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_INVERT 0x00002000
2594 #define NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NORMAL 0x00004000
2595 #define NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NEGATE 0x00006000
2596 #define NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NORMAL 0x00008000
2597 #define NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2598 #define NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_IDENTITY 0x0000c000
2599 #define NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_NEGATE 0x0000e000
2600 #define NV10TCL_RC_FINAL1_F_INPUT_SHIFT 16
2601 #define NV10TCL_RC_FINAL1_F_INPUT_MASK 0x000f0000
2602 #define NV10TCL_RC_FINAL1_F_INPUT_ZERO 0x00000000
2603 #define NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR0 0x00010000
2604 #define NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR1 0x00020000
2605 #define NV10TCL_RC_FINAL1_F_INPUT_FOG 0x00030000
2606 #define NV10TCL_RC_FINAL1_F_INPUT_PRIMARY_COLOR 0x00040000
2607 #define NV10TCL_RC_FINAL1_F_INPUT_SECONDARY_COLOR 0x00050000
2608 #define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE0 0x00080000
2609 #define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE1 0x00090000
2610 #define NV10TCL_RC_FINAL1_F_INPUT_SPARE0 0x000c0000
2611 #define NV10TCL_RC_FINAL1_F_INPUT_SPARE1 0x000d0000
2612 #define NV10TCL_RC_FINAL1_F_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2613 #define NV10TCL_RC_FINAL1_F_INPUT_E_TIMES_F 0x000f0000
2614 #define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE2 0x000a0000
2615 #define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE3 0x000b0000
2616 #define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE (1 << 20)
2617 #define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_RGB 0x00000000
2618 #define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_ALPHA 0x00100000
2619 #define NV10TCL_RC_FINAL1_F_MAPPING_SHIFT 21
2620 #define NV10TCL_RC_FINAL1_F_MAPPING_MASK 0x00e00000
2621 #define NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_IDENTITY 0x00000000
2622 #define NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_INVERT 0x00200000
2623 #define NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NORMAL 0x00400000
2624 #define NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NEGATE 0x00600000
2625 #define NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NORMAL 0x00800000
2626 #define NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2627 #define NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_IDENTITY 0x00c00000
2628 #define NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_NEGATE 0x00e00000
2629 #define NV10TCL_RC_FINAL1_E_INPUT_SHIFT 24
2630 #define NV10TCL_RC_FINAL1_E_INPUT_MASK 0x0f000000
2631 #define NV10TCL_RC_FINAL1_E_INPUT_ZERO 0x00000000
2632 #define NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR0 0x01000000
2633 #define NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR1 0x02000000
2634 #define NV10TCL_RC_FINAL1_E_INPUT_FOG 0x03000000
2635 #define NV10TCL_RC_FINAL1_E_INPUT_PRIMARY_COLOR 0x04000000
2636 #define NV10TCL_RC_FINAL1_E_INPUT_SECONDARY_COLOR 0x05000000
2637 #define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE0 0x08000000
2638 #define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE1 0x09000000
2639 #define NV10TCL_RC_FINAL1_E_INPUT_SPARE0 0x0c000000
2640 #define NV10TCL_RC_FINAL1_E_INPUT_SPARE1 0x0d000000
2641 #define NV10TCL_RC_FINAL1_E_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2642 #define NV10TCL_RC_FINAL1_E_INPUT_E_TIMES_F 0x0f000000
2643 #define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE2 0x0a000000
2644 #define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE3 0x0b000000
2645 #define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE (1 << 28)
2646 #define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_RGB 0x00000000
2647 #define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_ALPHA 0x10000000
2648 #define NV10TCL_RC_FINAL1_E_MAPPING_SHIFT 29
2649 #define NV10TCL_RC_FINAL1_E_MAPPING_MASK 0xe0000000
2650 #define NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_IDENTITY 0x00000000
2651 #define NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_INVERT 0x20000000
2652 #define NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NORMAL 0x40000000
2653 #define NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NEGATE 0x60000000
2654 #define NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NORMAL 0x80000000
2655 #define NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2656 #define NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_IDENTITY 0xc0000000
2657 #define NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_NEGATE 0xe0000000
2658 #define NV10TCL_LIGHT_MODEL 0x00000294
2659 #define NV10TCL_LIGHT_MODEL_VERTEX_SPECULAR (1 << 0)
2660 #define NV10TCL_LIGHT_MODEL_SEPARATE_SPECULAR (1 << 1)
2661 #define NV10TCL_LIGHT_MODEL_LOCAL_VIEWER (1 << 16)
2662 #define NV10TCL_COLOR_MATERIAL 0x00000298
2663 #define NV10TCL_COLOR_MATERIAL_EMISSION (1 << 0)
2664 #define NV10TCL_COLOR_MATERIAL_AMBIENT (1 << 1)
2665 #define NV10TCL_COLOR_MATERIAL_DIFFUSE (1 << 2)
2666 #define NV10TCL_COLOR_MATERIAL_SPECULAR (1 << 3)
2667 #define NV10TCL_FOG_MODE 0x0000029c
2668 #define NV10TCL_FOG_MODE_LINEAR 0x00002601
2669 #define NV10TCL_FOG_MODE_EXP 0x00000800
2670 #define NV10TCL_FOG_MODE_EXP_ABS 0x00000802
2671 #define NV10TCL_FOG_MODE_EXP2 0x00000803
2672 #define NV10TCL_FOG_COORD 0x000002a0
2673 #define NV10TCL_FOG_COORD_FOG 0x00000000
2674 #define NV10TCL_FOG_COORD_DIST_RADIAL 0x00000001
2675 #define NV10TCL_FOG_COORD_DIST_ORTHOGONAL 0x00000002
2676 #define NV10TCL_FOG_COORD_DIST_ORTHOGONAL_ABS 0x00000003
2677 #define NV10TCL_FOG_ENABLE 0x000002a4
2678 #define NV10TCL_FOG_COLOR 0x000002a8
2679 #define NV10TCL_FOG_COLOR_R_SHIFT 0
2680 #define NV10TCL_FOG_COLOR_R_MASK 0x000000ff
2681 #define NV10TCL_FOG_COLOR_G_SHIFT 8
2682 #define NV10TCL_FOG_COLOR_G_MASK 0x0000ff00
2683 #define NV10TCL_FOG_COLOR_B_SHIFT 16
2684 #define NV10TCL_FOG_COLOR_B_MASK 0x00ff0000
2685 #define NV10TCL_FOG_COLOR_A_SHIFT 24
2686 #define NV10TCL_FOG_COLOR_A_MASK 0xff000000
2687 #define NV10TCL_VIEWPORT_CLIP_MODE 0x000002b4
2688 #define NV10TCL_VIEWPORT_CLIP_HORIZ(x) (0x000002c0+((x)*4))
2689 #define NV10TCL_VIEWPORT_CLIP_HORIZ__SIZE 0x00000008
2690 #define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_L_SHIFT 0
2691 #define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_L_MASK 0x000007ff
2692 #define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_LEFT_ENABLE (1 << 11)
2693 #define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_R_SHIFT 16
2694 #define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_R_MASK 0x07ff0000
2695 #define NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_RIGHT_ENABLE (1 << 27)
2696 #define NV10TCL_VIEWPORT_CLIP_VERT(x) (0x000002e0+((x)*4))
2697 #define NV10TCL_VIEWPORT_CLIP_VERT__SIZE 0x00000008
2698 #define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_T_SHIFT 0
2699 #define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_T_MASK 0x000007ff
2700 #define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_TOP_ENABLE (1 << 11)
2701 #define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_B_SHIFT 16
2702 #define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_B_MASK 0x07ff0000
2703 #define NV10TCL_VIEWPORT_CLIP_VERT_CLIP_BOTTOM_ENABLE (1 << 27)
2704 #define NV10TCL_ALPHA_FUNC_ENABLE 0x00000300
2705 #define NV10TCL_BLEND_FUNC_ENABLE 0x00000304
2706 #define NV10TCL_CULL_FACE_ENABLE 0x00000308
2707 #define NV10TCL_DEPTH_TEST_ENABLE 0x0000030c
2708 #define NV10TCL_DITHER_ENABLE 0x00000310
2709 #define NV10TCL_LIGHTING_ENABLE 0x00000314
2710 #define NV10TCL_POINT_PARAMETERS_ENABLE 0x00000318
2711 #define NV10TCL_POINT_SMOOTH_ENABLE 0x0000031c
2712 #define NV10TCL_LINE_SMOOTH_ENABLE 0x00000320
2713 #define NV10TCL_POLYGON_SMOOTH_ENABLE 0x00000324
2714 #define NV10TCL_VERTEX_WEIGHT_ENABLE 0x00000328
2715 #define NV10TCL_STENCIL_ENABLE 0x0000032c
2716 #define NV10TCL_POLYGON_OFFSET_POINT_ENABLE 0x00000330
2717 #define NV10TCL_POLYGON_OFFSET_LINE_ENABLE 0x00000334
2718 #define NV10TCL_POLYGON_OFFSET_FILL_ENABLE 0x00000338
2719 #define NV10TCL_ALPHA_FUNC_FUNC 0x0000033c
2720 #define NV10TCL_ALPHA_FUNC_FUNC_NEVER 0x00000200
2721 #define NV10TCL_ALPHA_FUNC_FUNC_LESS 0x00000201
2722 #define NV10TCL_ALPHA_FUNC_FUNC_EQUAL 0x00000202
2723 #define NV10TCL_ALPHA_FUNC_FUNC_LEQUAL 0x00000203
2724 #define NV10TCL_ALPHA_FUNC_FUNC_GREATER 0x00000204
2725 #define NV10TCL_ALPHA_FUNC_FUNC_NOTEQUAL 0x00000205
2726 #define NV10TCL_ALPHA_FUNC_FUNC_GEQUAL 0x00000206
2727 #define NV10TCL_ALPHA_FUNC_FUNC_ALWAYS 0x00000207
2728 #define NV10TCL_ALPHA_FUNC_REF 0x00000340
2729 #define NV10TCL_BLEND_FUNC_SRC 0x00000344
2730 #define NV10TCL_BLEND_FUNC_SRC_ZERO 0x00000000
2731 #define NV10TCL_BLEND_FUNC_SRC_ONE 0x00000001
2732 #define NV10TCL_BLEND_FUNC_SRC_SRC_COLOR 0x00000300
2733 #define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_SRC_COLOR 0x00000301
2734 #define NV10TCL_BLEND_FUNC_SRC_SRC_ALPHA 0x00000302
2735 #define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_SRC_ALPHA 0x00000303
2736 #define NV10TCL_BLEND_FUNC_SRC_DST_ALPHA 0x00000304
2737 #define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_DST_ALPHA 0x00000305
2738 #define NV10TCL_BLEND_FUNC_SRC_DST_COLOR 0x00000306
2739 #define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_DST_COLOR 0x00000307
2740 #define NV10TCL_BLEND_FUNC_SRC_SRC_ALPHA_SATURATE 0x00000308
2741 #define NV10TCL_BLEND_FUNC_SRC_CONSTANT_COLOR 0x00008001
2742 #define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_CONSTANT_COLOR 0x00008002
2743 #define NV10TCL_BLEND_FUNC_SRC_CONSTANT_ALPHA 0x00008003
2744 #define NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_CONSTANT_ALPHA 0x00008004
2745 #define NV10TCL_BLEND_FUNC_DST 0x00000348
2746 #define NV10TCL_BLEND_FUNC_DST_ZERO 0x00000000
2747 #define NV10TCL_BLEND_FUNC_DST_ONE 0x00000001
2748 #define NV10TCL_BLEND_FUNC_DST_SRC_COLOR 0x00000300
2749 #define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_SRC_COLOR 0x00000301
2750 #define NV10TCL_BLEND_FUNC_DST_SRC_ALPHA 0x00000302
2751 #define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_SRC_ALPHA 0x00000303
2752 #define NV10TCL_BLEND_FUNC_DST_DST_ALPHA 0x00000304
2753 #define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_DST_ALPHA 0x00000305
2754 #define NV10TCL_BLEND_FUNC_DST_DST_COLOR 0x00000306
2755 #define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_DST_COLOR 0x00000307
2756 #define NV10TCL_BLEND_FUNC_DST_SRC_ALPHA_SATURATE 0x00000308
2757 #define NV10TCL_BLEND_FUNC_DST_CONSTANT_COLOR 0x00008001
2758 #define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_CONSTANT_COLOR 0x00008002
2759 #define NV10TCL_BLEND_FUNC_DST_CONSTANT_ALPHA 0x00008003
2760 #define NV10TCL_BLEND_FUNC_DST_ONE_MINUS_CONSTANT_ALPHA 0x00008004
2761 #define NV10TCL_BLEND_COLOR 0x0000034c
2762 #define NV10TCL_BLEND_COLOR_B_SHIFT 0
2763 #define NV10TCL_BLEND_COLOR_B_MASK 0x000000ff
2764 #define NV10TCL_BLEND_COLOR_G_SHIFT 8
2765 #define NV10TCL_BLEND_COLOR_G_MASK 0x0000ff00
2766 #define NV10TCL_BLEND_COLOR_R_SHIFT 16
2767 #define NV10TCL_BLEND_COLOR_R_MASK 0x00ff0000
2768 #define NV10TCL_BLEND_COLOR_A_SHIFT 24
2769 #define NV10TCL_BLEND_COLOR_A_MASK 0xff000000
2770 #define NV10TCL_BLEND_EQUATION 0x00000350
2771 #define NV10TCL_BLEND_EQUATION_FUNC_ADD 0x00008006
2772 #define NV10TCL_BLEND_EQUATION_MIN 0x00008007
2773 #define NV10TCL_BLEND_EQUATION_MAX 0x00008008
2774 #define NV10TCL_BLEND_EQUATION_FUNC_SUBTRACT 0x0000800a
2775 #define NV10TCL_BLEND_EQUATION_FUNC_REVERSE_SUBTRACT 0x0000800b
2776 #define NV10TCL_DEPTH_FUNC 0x00000354
2777 #define NV10TCL_DEPTH_FUNC_NEVER 0x00000200
2778 #define NV10TCL_DEPTH_FUNC_LESS 0x00000201
2779 #define NV10TCL_DEPTH_FUNC_EQUAL 0x00000202
2780 #define NV10TCL_DEPTH_FUNC_LEQUAL 0x00000203
2781 #define NV10TCL_DEPTH_FUNC_GREATER 0x00000204
2782 #define NV10TCL_DEPTH_FUNC_NOTEQUAL 0x00000205
2783 #define NV10TCL_DEPTH_FUNC_GEQUAL 0x00000206
2784 #define NV10TCL_DEPTH_FUNC_ALWAYS 0x00000207
2785 #define NV10TCL_COLOR_MASK 0x00000358
2786 #define NV10TCL_COLOR_MASK_B (1 << 0)
2787 #define NV10TCL_COLOR_MASK_G (1 << 8)
2788 #define NV10TCL_COLOR_MASK_R (1 << 16)
2789 #define NV10TCL_COLOR_MASK_A (1 << 24)
2790 #define NV10TCL_DEPTH_WRITE_ENABLE 0x0000035c
2791 #define NV10TCL_STENCIL_MASK 0x00000360
2792 #define NV10TCL_STENCIL_FUNC_FUNC 0x00000364
2793 #define NV10TCL_STENCIL_FUNC_FUNC_NEVER 0x00000200
2794 #define NV10TCL_STENCIL_FUNC_FUNC_LESS 0x00000201
2795 #define NV10TCL_STENCIL_FUNC_FUNC_EQUAL 0x00000202
2796 #define NV10TCL_STENCIL_FUNC_FUNC_LEQUAL 0x00000203
2797 #define NV10TCL_STENCIL_FUNC_FUNC_GREATER 0x00000204
2798 #define NV10TCL_STENCIL_FUNC_FUNC_NOTEQUAL 0x00000205
2799 #define NV10TCL_STENCIL_FUNC_FUNC_GEQUAL 0x00000206
2800 #define NV10TCL_STENCIL_FUNC_FUNC_ALWAYS 0x00000207
2801 #define NV10TCL_STENCIL_FUNC_REF 0x00000368
2802 #define NV10TCL_STENCIL_FUNC_MASK 0x0000036c
2803 #define NV10TCL_STENCIL_OP_FAIL 0x00000370
2804 #define NV10TCL_STENCIL_OP_FAIL_ZERO 0x00000000
2805 #define NV10TCL_STENCIL_OP_FAIL_INVERT 0x0000150a
2806 #define NV10TCL_STENCIL_OP_FAIL_KEEP 0x00001e00
2807 #define NV10TCL_STENCIL_OP_FAIL_REPLACE 0x00001e01
2808 #define NV10TCL_STENCIL_OP_FAIL_INCR 0x00001e02
2809 #define NV10TCL_STENCIL_OP_FAIL_DECR 0x00001e03
2810 #define NV10TCL_STENCIL_OP_FAIL_INCR_WRAP 0x00008507
2811 #define NV10TCL_STENCIL_OP_FAIL_DECR_WRAP 0x00008508
2812 #define NV10TCL_STENCIL_OP_ZFAIL 0x00000374
2813 #define NV10TCL_STENCIL_OP_ZFAIL_ZERO 0x00000000
2814 #define NV10TCL_STENCIL_OP_ZFAIL_INVERT 0x0000150a
2815 #define NV10TCL_STENCIL_OP_ZFAIL_KEEP 0x00001e00
2816 #define NV10TCL_STENCIL_OP_ZFAIL_REPLACE 0x00001e01
2817 #define NV10TCL_STENCIL_OP_ZFAIL_INCR 0x00001e02
2818 #define NV10TCL_STENCIL_OP_ZFAIL_DECR 0x00001e03
2819 #define NV10TCL_STENCIL_OP_ZFAIL_INCR_WRAP 0x00008507
2820 #define NV10TCL_STENCIL_OP_ZFAIL_DECR_WRAP 0x00008508
2821 #define NV10TCL_STENCIL_OP_ZPASS 0x00000378
2822 #define NV10TCL_STENCIL_OP_ZPASS_ZERO 0x00000000
2823 #define NV10TCL_STENCIL_OP_ZPASS_INVERT 0x0000150a
2824 #define NV10TCL_STENCIL_OP_ZPASS_KEEP 0x00001e00
2825 #define NV10TCL_STENCIL_OP_ZPASS_REPLACE 0x00001e01
2826 #define NV10TCL_STENCIL_OP_ZPASS_INCR 0x00001e02
2827 #define NV10TCL_STENCIL_OP_ZPASS_DECR 0x00001e03
2828 #define NV10TCL_STENCIL_OP_ZPASS_INCR_WRAP 0x00008507
2829 #define NV10TCL_STENCIL_OP_ZPASS_DECR_WRAP 0x00008508
2830 #define NV10TCL_SHADE_MODEL 0x0000037c
2831 #define NV10TCL_SHADE_MODEL_FLAT 0x00001d00
2832 #define NV10TCL_SHADE_MODEL_SMOOTH 0x00001d01
2833 #define NV10TCL_LINE_WIDTH 0x00000380
2834 #define NV10TCL_POLYGON_OFFSET_FACTOR 0x00000384
2835 #define NV10TCL_POLYGON_OFFSET_UNITS 0x00000388
2836 #define NV10TCL_POLYGON_MODE_FRONT 0x0000038c
2837 #define NV10TCL_POLYGON_MODE_FRONT_POINT 0x00001b00
2838 #define NV10TCL_POLYGON_MODE_FRONT_LINE 0x00001b01
2839 #define NV10TCL_POLYGON_MODE_FRONT_FILL 0x00001b02
2840 #define NV10TCL_POLYGON_MODE_BACK 0x00000390
2841 #define NV10TCL_POLYGON_MODE_BACK_POINT 0x00001b00
2842 #define NV10TCL_POLYGON_MODE_BACK_LINE 0x00001b01
2843 #define NV10TCL_POLYGON_MODE_BACK_FILL 0x00001b02
2844 #define NV10TCL_DEPTH_RANGE_NEAR 0x00000394
2845 #define NV10TCL_DEPTH_RANGE_FAR 0x00000398
2846 #define NV10TCL_CULL_FACE 0x0000039c
2847 #define NV10TCL_CULL_FACE_FRONT 0x00000404
2848 #define NV10TCL_CULL_FACE_BACK 0x00000405
2849 #define NV10TCL_CULL_FACE_FRONT_AND_BACK 0x00000408
2850 #define NV10TCL_FRONT_FACE 0x000003a0
2851 #define NV10TCL_FRONT_FACE_CW 0x00000900
2852 #define NV10TCL_FRONT_FACE_CCW 0x00000901
2853 #define NV10TCL_NORMALIZE_ENABLE 0x000003a4
2854 #define NV10TCL_MATERIAL_FACTOR_R 0x000003a8
2855 #define NV10TCL_MATERIAL_FACTOR_G 0x000003ac
2856 #define NV10TCL_MATERIAL_FACTOR_B 0x000003b0
2857 #define NV10TCL_MATERIAL_FACTOR_A 0x000003b4
2858 #define NV10TCL_SEPARATE_SPECULAR_ENABLE 0x000003b8
2859 #define NV10TCL_ENABLED_LIGHTS 0x000003bc
2860 #define NV10TCL_ENABLED_LIGHTS_0_SHIFT 0
2861 #define NV10TCL_ENABLED_LIGHTS_0_MASK 0x00000003
2862 #define NV10TCL_ENABLED_LIGHTS_0_DISABLED 0x00000000
2863 #define NV10TCL_ENABLED_LIGHTS_0_NONPOSITIONAL 0x00000001
2864 #define NV10TCL_ENABLED_LIGHTS_0_POSITIONAL 0x00000002
2865 #define NV10TCL_ENABLED_LIGHTS_0_DIRECTIONAL 0x00000003
2866 #define NV10TCL_ENABLED_LIGHTS_1_SHIFT 2
2867 #define NV10TCL_ENABLED_LIGHTS_1_MASK 0x0000000c
2868 #define NV10TCL_ENABLED_LIGHTS_1_DISABLED 0x00000000
2869 #define NV10TCL_ENABLED_LIGHTS_1_NONPOSITIONAL 0x00000004
2870 #define NV10TCL_ENABLED_LIGHTS_1_POSITIONAL 0x00000008
2871 #define NV10TCL_ENABLED_LIGHTS_1_DIRECTIONAL 0x0000000c
2872 #define NV10TCL_ENABLED_LIGHTS_2_SHIFT 4
2873 #define NV10TCL_ENABLED_LIGHTS_2_MASK 0x00000030
2874 #define NV10TCL_ENABLED_LIGHTS_2_DISABLED 0x00000000
2875 #define NV10TCL_ENABLED_LIGHTS_2_NONPOSITIONAL 0x00000010
2876 #define NV10TCL_ENABLED_LIGHTS_2_POSITIONAL 0x00000020
2877 #define NV10TCL_ENABLED_LIGHTS_2_DIRECTIONAL 0x00000030
2878 #define NV10TCL_ENABLED_LIGHTS_3_SHIFT 6
2879 #define NV10TCL_ENABLED_LIGHTS_3_MASK 0x000000c0
2880 #define NV10TCL_ENABLED_LIGHTS_3_DISABLED 0x00000000
2881 #define NV10TCL_ENABLED_LIGHTS_3_NONPOSITIONAL 0x00000040
2882 #define NV10TCL_ENABLED_LIGHTS_3_POSITIONAL 0x00000080
2883 #define NV10TCL_ENABLED_LIGHTS_3_DIRECTIONAL 0x000000c0
2884 #define NV10TCL_ENABLED_LIGHTS_4_SHIFT 8
2885 #define NV10TCL_ENABLED_LIGHTS_4_MASK 0x00000300
2886 #define NV10TCL_ENABLED_LIGHTS_4_DISABLED 0x00000000
2887 #define NV10TCL_ENABLED_LIGHTS_4_NONPOSITIONAL 0x00000100
2888 #define NV10TCL_ENABLED_LIGHTS_4_POSITIONAL 0x00000200
2889 #define NV10TCL_ENABLED_LIGHTS_4_DIRECTIONAL 0x00000300
2890 #define NV10TCL_ENABLED_LIGHTS_5_SHIFT 10
2891 #define NV10TCL_ENABLED_LIGHTS_5_MASK 0x00000c00
2892 #define NV10TCL_ENABLED_LIGHTS_5_DISABLED 0x00000000
2893 #define NV10TCL_ENABLED_LIGHTS_5_NONPOSITIONAL 0x00000400
2894 #define NV10TCL_ENABLED_LIGHTS_5_POSITIONAL 0x00000800
2895 #define NV10TCL_ENABLED_LIGHTS_5_DIRECTIONAL 0x00000c00
2896 #define NV10TCL_ENABLED_LIGHTS_6_SHIFT 12
2897 #define NV10TCL_ENABLED_LIGHTS_6_MASK 0x00003000
2898 #define NV10TCL_ENABLED_LIGHTS_6_DISABLED 0x00000000
2899 #define NV10TCL_ENABLED_LIGHTS_6_NONPOSITIONAL 0x00001000
2900 #define NV10TCL_ENABLED_LIGHTS_6_POSITIONAL 0x00002000
2901 #define NV10TCL_ENABLED_LIGHTS_6_DIRECTIONAL 0x00003000
2902 #define NV10TCL_ENABLED_LIGHTS_7_SHIFT 14
2903 #define NV10TCL_ENABLED_LIGHTS_7_MASK 0x0000c000
2904 #define NV10TCL_ENABLED_LIGHTS_7_DISABLED 0x00000000
2905 #define NV10TCL_ENABLED_LIGHTS_7_NONPOSITIONAL 0x00004000
2906 #define NV10TCL_ENABLED_LIGHTS_7_POSITIONAL 0x00008000
2907 #define NV10TCL_ENABLED_LIGHTS_7_DIRECTIONAL 0x0000c000
2908 #define NV10TCL_TX_GEN_MODE_S(x) (0x000003c0+((x)*16))
2909 #define NV10TCL_TX_GEN_MODE_S__SIZE 0x00000002
2910 #define NV10TCL_TX_GEN_MODE_S_FALSE 0x00000000
2911 #define NV10TCL_TX_GEN_MODE_S_EYE_LINEAR 0x00002400
2912 #define NV10TCL_TX_GEN_MODE_S_OBJECT_LINEAR 0x00002401
2913 #define NV10TCL_TX_GEN_MODE_S_SPHERE_MAP 0x00002402
2914 #define NV10TCL_TX_GEN_MODE_S_NORMAL_MAP 0x00008511
2915 #define NV10TCL_TX_GEN_MODE_S_REFLECTION_MAP 0x00008512
2916 #define NV10TCL_TX_GEN_MODE_T(x) (0x000003c4+((x)*16))
2917 #define NV10TCL_TX_GEN_MODE_T__SIZE 0x00000002
2918 #define NV10TCL_TX_GEN_MODE_T_FALSE 0x00000000
2919 #define NV10TCL_TX_GEN_MODE_T_EYE_LINEAR 0x00002400
2920 #define NV10TCL_TX_GEN_MODE_T_OBJECT_LINEAR 0x00002401
2921 #define NV10TCL_TX_GEN_MODE_T_SPHERE_MAP 0x00002402
2922 #define NV10TCL_TX_GEN_MODE_T_NORMAL_MAP 0x00008511
2923 #define NV10TCL_TX_GEN_MODE_T_REFLECTION_MAP 0x00008512
2924 #define NV10TCL_TX_GEN_MODE_R(x) (0x000003c8+((x)*16))
2925 #define NV10TCL_TX_GEN_MODE_R__SIZE 0x00000002
2926 #define NV10TCL_TX_GEN_MODE_R_FALSE 0x00000000
2927 #define NV10TCL_TX_GEN_MODE_R_EYE_LINEAR 0x00002400
2928 #define NV10TCL_TX_GEN_MODE_R_OBJECT_LINEAR 0x00002401
2929 #define NV10TCL_TX_GEN_MODE_R_SPHERE_MAP 0x00002402
2930 #define NV10TCL_TX_GEN_MODE_R_NORMAL_MAP 0x00008511
2931 #define NV10TCL_TX_GEN_MODE_R_REFLECTION_MAP 0x00008512
2932 #define NV10TCL_TX_GEN_MODE_Q(x) (0x000003cc+((x)*16))
2933 #define NV10TCL_TX_GEN_MODE_Q__SIZE 0x00000002
2934 #define NV10TCL_TX_GEN_MODE_Q_FALSE 0x00000000
2935 #define NV10TCL_TX_GEN_MODE_Q_EYE_LINEAR 0x00002400
2936 #define NV10TCL_TX_GEN_MODE_Q_OBJECT_LINEAR 0x00002401
2937 #define NV10TCL_TX_GEN_MODE_Q_SPHERE_MAP 0x00002402
2938 #define NV10TCL_TX_GEN_MODE_Q_NORMAL_MAP 0x00008511
2939 #define NV10TCL_TX_GEN_MODE_Q_REFLECTION_MAP 0x00008512
2940 #define NV10TCL_TX_MATRIX_ENABLE(x) (0x000003e0+((x)*4))
2941 #define NV10TCL_TX_MATRIX_ENABLE__SIZE 0x00000002
2942 #define NV10TCL_VIEW_MATRIX_ENABLE 0x000003e8
2943 #define NV10TCL_VIEW_MATRIX_ENABLE_MODELVIEW1 (1 << 0)
2944 #define NV10TCL_VIEW_MATRIX_ENABLE_MODELVIEW0 (1 << 1)
2945 #define NV10TCL_VIEW_MATRIX_ENABLE_PROJECTION (1 << 2)
2946 #define NV10TCL_POINT_SIZE 0x000003ec
2947 #define NV10TCL_MODELVIEW0_MATRIX(x) (0x00000400+((x)*4))
2948 #define NV10TCL_MODELVIEW0_MATRIX__SIZE 0x00000010
2949 #define NV10TCL_MODELVIEW1_MATRIX(x) (0x00000440+((x)*4))
2950 #define NV10TCL_MODELVIEW1_MATRIX__SIZE 0x00000010
2951 #define NV10TCL_INVERSE_MODELVIEW0_MATRIX(x) (0x00000480+((x)*4))
2952 #define NV10TCL_INVERSE_MODELVIEW0_MATRIX__SIZE 0x00000010
2953 #define NV10TCL_INVERSE_MODELVIEW1_MATRIX(x) (0x000004c0+((x)*4))
2954 #define NV10TCL_INVERSE_MODELVIEW1_MATRIX__SIZE 0x00000010
2955 #define NV10TCL_PROJECTION_MATRIX(x) (0x00000500+((x)*4))
2956 #define NV10TCL_PROJECTION_MATRIX__SIZE 0x00000010
2957 #define NV10TCL_TX0_MATRIX(x) (0x00000540+((x)*4))
2958 #define NV10TCL_TX0_MATRIX__SIZE 0x00000010
2959 #define NV10TCL_TX1_MATRIX(x) (0x00000580+((x)*4))
2960 #define NV10TCL_TX1_MATRIX__SIZE 0x00000010
2961 #define NV10TCL_TX_GEN_COEFF_S_A(x) (0x00000600+((x)*64))
2962 #define NV10TCL_TX_GEN_COEFF_S_A__SIZE 0x00000002
2963 #define NV10TCL_TX_GEN_COEFF_S_B(x) (0x00000604+((x)*64))
2964 #define NV10TCL_TX_GEN_COEFF_S_B__SIZE 0x00000002
2965 #define NV10TCL_TX_GEN_COEFF_S_C(x) (0x00000608+((x)*64))
2966 #define NV10TCL_TX_GEN_COEFF_S_C__SIZE 0x00000002
2967 #define NV10TCL_TX_GEN_COEFF_S_D(x) (0x0000060c+((x)*64))
2968 #define NV10TCL_TX_GEN_COEFF_S_D__SIZE 0x00000002
2969 #define NV10TCL_TX_GEN_COEFF_T_A(x) (0x00000610+((x)*64))
2970 #define NV10TCL_TX_GEN_COEFF_T_A__SIZE 0x00000002
2971 #define NV10TCL_TX_GEN_COEFF_T_B(x) (0x00000614+((x)*64))
2972 #define NV10TCL_TX_GEN_COEFF_T_B__SIZE 0x00000002
2973 #define NV10TCL_TX_GEN_COEFF_T_C(x) (0x00000618+((x)*64))
2974 #define NV10TCL_TX_GEN_COEFF_T_C__SIZE 0x00000002
2975 #define NV10TCL_TX_GEN_COEFF_T_D(x) (0x0000061c+((x)*64))
2976 #define NV10TCL_TX_GEN_COEFF_T_D__SIZE 0x00000002
2977 #define NV10TCL_TX_GEN_COEFF_R_A(x) (0x00000620+((x)*64))
2978 #define NV10TCL_TX_GEN_COEFF_R_A__SIZE 0x00000002
2979 #define NV10TCL_TX_GEN_COEFF_R_B(x) (0x00000624+((x)*64))
2980 #define NV10TCL_TX_GEN_COEFF_R_B__SIZE 0x00000002
2981 #define NV10TCL_TX_GEN_COEFF_R_C(x) (0x00000628+((x)*64))
2982 #define NV10TCL_TX_GEN_COEFF_R_C__SIZE 0x00000002
2983 #define NV10TCL_TX_GEN_COEFF_R_D(x) (0x0000062c+((x)*64))
2984 #define NV10TCL_TX_GEN_COEFF_R_D__SIZE 0x00000002
2985 #define NV10TCL_TX_GEN_COEFF_Q_A(x) (0x00000630+((x)*64))
2986 #define NV10TCL_TX_GEN_COEFF_Q_A__SIZE 0x00000002
2987 #define NV10TCL_TX_GEN_COEFF_Q_B(x) (0x00000634+((x)*64))
2988 #define NV10TCL_TX_GEN_COEFF_Q_B__SIZE 0x00000002
2989 #define NV10TCL_TX_GEN_COEFF_Q_C(x) (0x00000638+((x)*64))
2990 #define NV10TCL_TX_GEN_COEFF_Q_C__SIZE 0x00000002
2991 #define NV10TCL_TX_GEN_COEFF_Q_D(x) (0x0000063c+((x)*64))
2992 #define NV10TCL_TX_GEN_COEFF_Q_D__SIZE 0x00000002
2993 #define NV10TCL_FOG_EQUATION_CONSTANT 0x00000680
2994 #define NV10TCL_FOG_EQUATION_LINEAR 0x00000684
2995 #define NV10TCL_FOG_EQUATION_QUADRATIC 0x00000688
2996 #define NV10TCL_MATERIAL_SHININESS(x) (0x000006a0+((x)*4))
2997 #define NV10TCL_MATERIAL_SHININESS__SIZE 0x00000006
2998 #define NV10TCL_LIGHT_MODEL_AMBIENT_R 0x000006c4
2999 #define NV10TCL_LIGHT_MODEL_AMBIENT_G 0x000006c8
3000 #define NV10TCL_LIGHT_MODEL_AMBIENT_B 0x000006cc
3001 #define NV10TCL_VIEWPORT_TRANSLATE_X 0x000006e8
3002 #define NV10TCL_VIEWPORT_TRANSLATE_Y 0x000006ec
3003 #define NV10TCL_VIEWPORT_TRANSLATE_Z 0x000006f0
3004 #define NV10TCL_VIEWPORT_TRANSLATE_W 0x000006f4
3005 #define NV10TCL_POINT_PARAMETER(x) (0x000006f8+((x)*4))
3006 #define NV10TCL_POINT_PARAMETER__SIZE 0x00000008
3007 #define NV10TCL_LIGHT_AMBIENT_R(x) (0x00000800+((x)*128))
3008 #define NV10TCL_LIGHT_AMBIENT_R__SIZE 0x00000008
3009 #define NV10TCL_LIGHT_AMBIENT_G(x) (0x00000804+((x)*128))
3010 #define NV10TCL_LIGHT_AMBIENT_G__SIZE 0x00000008
3011 #define NV10TCL_LIGHT_AMBIENT_B(x) (0x00000808+((x)*128))
3012 #define NV10TCL_LIGHT_AMBIENT_B__SIZE 0x00000008
3013 #define NV10TCL_LIGHT_DIFFUSE_R(x) (0x0000080c+((x)*128))
3014 #define NV10TCL_LIGHT_DIFFUSE_R__SIZE 0x00000008
3015 #define NV10TCL_LIGHT_DIFFUSE_G(x) (0x00000810+((x)*128))
3016 #define NV10TCL_LIGHT_DIFFUSE_G__SIZE 0x00000008
3017 #define NV10TCL_LIGHT_DIFFUSE_B(x) (0x00000814+((x)*128))
3018 #define NV10TCL_LIGHT_DIFFUSE_B__SIZE 0x00000008
3019 #define NV10TCL_LIGHT_SPECULAR_R(x) (0x00000818+((x)*128))
3020 #define NV10TCL_LIGHT_SPECULAR_R__SIZE 0x00000008
3021 #define NV10TCL_LIGHT_SPECULAR_G(x) (0x0000081c+((x)*128))
3022 #define NV10TCL_LIGHT_SPECULAR_G__SIZE 0x00000008
3023 #define NV10TCL_LIGHT_SPECULAR_B(x) (0x00000820+((x)*128))
3024 #define NV10TCL_LIGHT_SPECULAR_B__SIZE 0x00000008
3025 #define NV10TCL_LIGHT_HALF_VECTOR_X(x) (0x00000828+((x)*128))
3026 #define NV10TCL_LIGHT_HALF_VECTOR_X__SIZE 0x00000008
3027 #define NV10TCL_LIGHT_HALF_VECTOR_Y(x) (0x0000082c+((x)*128))
3028 #define NV10TCL_LIGHT_HALF_VECTOR_Y__SIZE 0x00000008
3029 #define NV10TCL_LIGHT_HALF_VECTOR_Z(x) (0x00000830+((x)*128))
3030 #define NV10TCL_LIGHT_HALF_VECTOR_Z__SIZE 0x00000008
3031 #define NV10TCL_LIGHT_DIRECTION_X(x) (0x00000834+((x)*128))
3032 #define NV10TCL_LIGHT_DIRECTION_X__SIZE 0x00000008
3033 #define NV10TCL_LIGHT_DIRECTION_Y(x) (0x00000838+((x)*128))
3034 #define NV10TCL_LIGHT_DIRECTION_Y__SIZE 0x00000008
3035 #define NV10TCL_LIGHT_DIRECTION_Z(x) (0x0000083c+((x)*128))
3036 #define NV10TCL_LIGHT_DIRECTION_Z__SIZE 0x00000008
3037 #define NV10TCL_LIGHT_SPOT_CUTOFF_A(x) (0x00000840+((x)*128))
3038 #define NV10TCL_LIGHT_SPOT_CUTOFF_A__SIZE 0x00000008
3039 #define NV10TCL_LIGHT_SPOT_CUTOFF_B(x) (0x00000844+((x)*128))
3040 #define NV10TCL_LIGHT_SPOT_CUTOFF_B__SIZE 0x00000008
3041 #define NV10TCL_LIGHT_SPOT_CUTOFF_C(x) (0x00000848+((x)*128))