fence: ref could destroy the object it was referencing, fix that!
[nouveau] / src / nouveau_class.h
1 /*************************************************************************
2
3    Autogenerated file, do not edit !
4
5 **************************************************************************
6
7    Copyright (C) 2006-2008 :
8    Dmitry Baryshkov,
9    Laurent Carlier,
10    Matthieu Castet,
11    Dawid Gajownik,
12    Jeremy Kolb,
13    Stephane Loeuillet,
14    Patrice Mandin,
15    Stephane Marchesin,
16    Serge Martin,
17    Sylvain Munaut,
18    Simon Raffeiner,
19    Ben Skeggs,
20    Erik Waling,
21    koala_br,
22
23 All Rights Reserved.
24
25 Permission is hereby granted, free of charge, to any person obtaining
26 a copy of this software and associated documentation files (the
27 "Software"), to deal in the Software without restriction, including
28 without limitation the rights to use, copy, modify, merge, publish,
29 distribute, sublicense, and/or sell copies of the Software, and to
30 permit persons to whom the Software is furnished to do so, subject to
31 the following conditions:
32
33 The above copyright notice and this permission notice (including the
34 next paragraph) shall be included in all copies or substantial
35 portions of the Software.
36
37 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
39 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
40 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
41 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
42 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
43 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44
45 *************************************************************************/
46
47
48 #ifndef NOUVEAU_REG_H
49 #define NOUVEAU_REG_H 1
50
51
52 #define NV01_ROOT                                                                       0x00000001
53
54
55
56 #define NV01_CONTEXT_DMA                                                                0x00000002
57
58
59
60 #define NV01_DEVICE                                                                     0x00000003
61
62
63
64 #define NV01_TIMER                                                                      0x00000004
65
66 #define  NV01_TIMER_SYNCHRONIZE                                                         0x00000100
67 #define  NV01_TIMER_STOP_ALARM                                                          0x00000104
68 #define  NV01_TIMER_DMA_NOTIFY                                                          0x00000180
69 #define  NV01_TIMER_TIME(x)                                                             (0x00000300+((x)*4))
70 #define  NV01_TIMER_TIME__SIZE                                                          0x00000002
71 #define  NV01_TIMER_ALARM_NOTIFY                                                        0x00000308
72
73
74 #define NV_IMAGE_STENCIL                                                                0x00000010
75
76 #define  NV_IMAGE_STENCIL_NOTIFY                                                        0x00000104
77 #define  NV_IMAGE_STENCIL_DMA_NOTIFY                                                    0x00000180
78 #define  NV_IMAGE_STENCIL_IMAGE_OUTPUT                                                  0x00000200
79 #define  NV_IMAGE_STENCIL_IMAGE_INPUT(x)                                                (0x00000204+((x)*4))
80 #define  NV_IMAGE_STENCIL_IMAGE_INPUT__SIZE                                             0x00000002
81
82
83 #define NV_IMAGE_BLEND_AND                                                              0x00000011
84
85 #define  NV_IMAGE_BLEND_AND_NOP                                                         0x00000100
86 #define  NV_IMAGE_BLEND_AND_NOTIFY                                                      0x00000104
87 #define  NV_IMAGE_BLEND_AND_DMA_NOTIFY                                                  0x00000180
88 #define  NV_IMAGE_BLEND_AND_IMAGE_OUTPUT                                                0x00000200
89 #define  NV_IMAGE_BLEND_AND_BETA_INPUT                                                  0x00000204
90 #define  NV_IMAGE_BLEND_AND_IMAGE_INPUT                                                 0x00000208
91
92
93 #define NV01_CONTEXT_BETA1                                                              0x00000012
94
95 #define  NV01_CONTEXT_BETA1_NOP                                                         0x00000100
96 #define  NV01_CONTEXT_BETA1_NOTIFY                                                      0x00000104
97 #define  NV01_CONTEXT_BETA1_DMA_NOTIFY                                                  0x00000180
98 #define  NV01_CONTEXT_BETA1_BETA_1D31                                                   0x00000300
99
100
101 #define NV_IMAGE_ROP_AND                                                                0x00000013
102
103 #define  NV_IMAGE_ROP_AND_NOTIFY                                                        0x00000104
104 #define  NV_IMAGE_ROP_AND_DMA_NOTIFY                                                    0x00000180
105 #define  NV_IMAGE_ROP_AND_IMAGE_OUTPUT                                                  0x00000200
106 #define  NV_IMAGE_ROP_AND_ROP_INPUT                                                     0x00000204
107 #define  NV_IMAGE_ROP_AND_IMAGE_INPUT(x)                                                (0x00000208+((x)*4))
108 #define  NV_IMAGE_ROP_AND_IMAGE_INPUT__SIZE                                             0x00000002
109
110
111 #define NV_IMAGE_COLOR_KEY                                                              0x00000015
112
113
114
115 #define NV01_CONTEXT_COLOR_KEY                                                          0x00000017
116
117 #define  NV01_CONTEXT_COLOR_KEY_NOP                                                     0x00000100
118 #define  NV01_CONTEXT_COLOR_KEY_NOTIFY                                                  0x00000104
119 #define  NV01_CONTEXT_COLOR_KEY_DMA_NOTIFY                                              0x00000180
120 #define  NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT                                            0x00000300
121 #define   NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X16A8Y8                                   0x00000001
122 #define   NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X24Y8                                     0x00000002
123 #define   NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X16A1R5G5B5                               0x00000003
124 #define   NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X17R5G5B5                                 0x00000004
125 #define   NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_A8R8G8B8                                  0x00000005
126 #define   NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X8R8G8B8                                  0x00000006
127 #define   NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_A16Y16                                    0x00000007
128 #define   NV01_CONTEXT_COLOR_KEY_COLOR_FORMAT_X16Y16                                    0x00000008
129 #define  NV01_CONTEXT_COLOR_KEY_COLOR                                                   0x00000304
130
131
132 #define NV01_CONTEXT_PATTERN                                                            0x00000018
133
134 #define  NV01_CONTEXT_PATTERN_NOP                                                       0x00000100
135 #define  NV01_CONTEXT_PATTERN_NOTIFY                                                    0x00000104
136 #define  NV01_CONTEXT_PATTERN_DMA_NOTIFY                                                0x00000180
137 #define  NV01_CONTEXT_PATTERN_COLOR_FORMAT                                              0x00000300
138 #define  NV01_CONTEXT_PATTERN_MONOCHROME_FORMAT                                         0x00000304
139 #define  NV01_CONTEXT_PATTERN_SHAPE                                                     0x00000308
140 #define  NV01_CONTEXT_PATTERN_COLOR(x)                                                  (0x00000310+((x)*4))
141 #define  NV01_CONTEXT_PATTERN_COLOR__SIZE                                               0x00000002
142 #define  NV01_CONTEXT_PATTERN_PATTERN(x)                                                (0x00000318+((x)*4))
143 #define  NV01_CONTEXT_PATTERN_PATTERN__SIZE                                             0x00000002
144
145
146 #define NV01_CONTEXT_CLIP_RECTANGLE                                                     0x00000019
147
148 #define  NV01_CONTEXT_CLIP_RECTANGLE_NOP                                                0x00000100
149 #define  NV01_CONTEXT_CLIP_RECTANGLE_NOTIFY                                             0x00000104
150 #define  NV01_CONTEXT_CLIP_RECTANGLE_DMA_NOTIFY                                         0x00000180
151 #define  NV01_CONTEXT_CLIP_RECTANGLE_POINT                                              0x00000300
152 #define   NV01_CONTEXT_CLIP_RECTANGLE_POINT_X_SHIFT                                     0
153 #define   NV01_CONTEXT_CLIP_RECTANGLE_POINT_X_MASK                                      0x0000ffff
154 #define   NV01_CONTEXT_CLIP_RECTANGLE_POINT_Y_SHIFT                                     16
155 #define   NV01_CONTEXT_CLIP_RECTANGLE_POINT_Y_MASK                                      0xffff0000
156 #define  NV01_CONTEXT_CLIP_RECTANGLE_SIZE                                               0x00000304
157 #define   NV01_CONTEXT_CLIP_RECTANGLE_SIZE_W_SHIFT                                      0
158 #define   NV01_CONTEXT_CLIP_RECTANGLE_SIZE_W_MASK                                       0x0000ffff
159 #define   NV01_CONTEXT_CLIP_RECTANGLE_SIZE_H_SHIFT                                      16
160 #define   NV01_CONTEXT_CLIP_RECTANGLE_SIZE_H_MASK                                       0xffff0000
161
162
163 #define NV01_RENDER_SOLID_LINE                                                          0x0000001c
164
165 #define  NV01_RENDER_SOLID_LINE_NOP                                                     0x00000100
166 #define  NV01_RENDER_SOLID_LINE_NOTIFY                                                  0x00000104
167 #define  NV01_RENDER_SOLID_LINE_PATCH                                                   0x0000010c
168 #define  NV01_RENDER_SOLID_LINE_DMA_NOTIFY                                              0x00000180
169 #define  NV01_RENDER_SOLID_LINE_CLIP_RECTANGLE                                          0x00000184
170 #define  NV01_RENDER_SOLID_LINE_PATTERN                                                 0x00000188
171 #define  NV01_RENDER_SOLID_LINE_ROP                                                     0x0000018c
172 #define  NV01_RENDER_SOLID_LINE_BETA1                                                   0x00000190
173 #define  NV01_RENDER_SOLID_LINE_SURFACE                                                 0x00000194
174 #define  NV01_RENDER_SOLID_LINE_OPERATION                                               0x000002fc
175 #define   NV01_RENDER_SOLID_LINE_OPERATION_SRCCOPY_AND                                  0x00000000
176 #define   NV01_RENDER_SOLID_LINE_OPERATION_ROP_AND                                      0x00000001
177 #define   NV01_RENDER_SOLID_LINE_OPERATION_BLEND_AND                                    0x00000002
178 #define   NV01_RENDER_SOLID_LINE_OPERATION_SRCCOPY                                      0x00000003
179 #define   NV01_RENDER_SOLID_LINE_OPERATION_SRCCOPY_PREMULT                              0x00000004
180 #define   NV01_RENDER_SOLID_LINE_OPERATION_BLEND_PREMULT                                0x00000005
181 #define  NV01_RENDER_SOLID_LINE_COLOR_FORMAT                                            0x00000300
182 #define   NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X16A8Y8                                   0x00000001
183 #define   NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X24Y8                                     0x00000002
184 #define   NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X16A1R5G5B5                               0x00000003
185 #define   NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X17R5G5B5                                 0x00000004
186 #define   NV01_RENDER_SOLID_LINE_COLOR_FORMAT_A8R8G8B8                                  0x00000005
187 #define   NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X8R8G8B8                                  0x00000006
188 #define   NV01_RENDER_SOLID_LINE_COLOR_FORMAT_A16Y16                                    0x00000007
189 #define   NV01_RENDER_SOLID_LINE_COLOR_FORMAT_X16Y16                                    0x00000008
190 #define  NV01_RENDER_SOLID_LINE_COLOR                                                   0x00000304
191 #define  NV01_RENDER_SOLID_LINE_LINE_POINT0(x)                                          (0x00000400+((x)*8))
192 #define  NV01_RENDER_SOLID_LINE_LINE_POINT0__SIZE                                       0x00000010
193 #define   NV01_RENDER_SOLID_LINE_LINE_POINT0_X_SHIFT                                    0
194 #define   NV01_RENDER_SOLID_LINE_LINE_POINT0_X_MASK                                     0x0000ffff
195 #define   NV01_RENDER_SOLID_LINE_LINE_POINT0_Y_SHIFT                                    16
196 #define   NV01_RENDER_SOLID_LINE_LINE_POINT0_Y_MASK                                     0xffff0000
197 #define  NV01_RENDER_SOLID_LINE_LINE_POINT1(x)                                          (0x00000404+((x)*8))
198 #define  NV01_RENDER_SOLID_LINE_LINE_POINT1__SIZE                                       0x00000010
199 #define   NV01_RENDER_SOLID_LINE_LINE_POINT1_X_SHIFT                                    0
200 #define   NV01_RENDER_SOLID_LINE_LINE_POINT1_X_MASK                                     0x0000ffff
201 #define   NV01_RENDER_SOLID_LINE_LINE_POINT1_Y_SHIFT                                    16
202 #define   NV01_RENDER_SOLID_LINE_LINE_POINT1_Y_MASK                                     0xffff0000
203 #define  NV01_RENDER_SOLID_LINE_LINE32_POINT0_X(x)                                      (0x00000480+((x)*16))
204 #define  NV01_RENDER_SOLID_LINE_LINE32_POINT0_X__SIZE                                   0x00000010
205 #define  NV01_RENDER_SOLID_LINE_LINE32_POINT0_Y(x)                                      (0x00000484+((x)*16))
206 #define  NV01_RENDER_SOLID_LINE_LINE32_POINT0_Y__SIZE                                   0x00000010
207 #define  NV01_RENDER_SOLID_LINE_LINE32_POINT1_X(x)                                      (0x00000488+((x)*16))
208 #define  NV01_RENDER_SOLID_LINE_LINE32_POINT1_X__SIZE                                   0x00000010
209 #define  NV01_RENDER_SOLID_LINE_LINE32_POINT1_Y(x)                                      (0x0000048c+((x)*16))
210 #define  NV01_RENDER_SOLID_LINE_LINE32_POINT1_Y__SIZE                                   0x00000010
211 #define  NV01_RENDER_SOLID_LINE_POLYLINE(x)                                             (0x00000500+((x)*4))
212 #define  NV01_RENDER_SOLID_LINE_POLYLINE__SIZE                                          0x00000020
213 #define   NV01_RENDER_SOLID_LINE_POLYLINE_X_SHIFT                                       0
214 #define   NV01_RENDER_SOLID_LINE_POLYLINE_X_MASK                                        0x0000ffff
215 #define   NV01_RENDER_SOLID_LINE_POLYLINE_Y_SHIFT                                       16
216 #define   NV01_RENDER_SOLID_LINE_POLYLINE_Y_MASK                                        0xffff0000
217 #define  NV01_RENDER_SOLID_LINE_POLYLINE32_POINT_X(x)                                   (0x00000580+((x)*8))
218 #define  NV01_RENDER_SOLID_LINE_POLYLINE32_POINT_X__SIZE                                0x00000010
219 #define  NV01_RENDER_SOLID_LINE_POLYLINE32_POINT_Y(x)                                   (0x00000584+((x)*8))
220 #define  NV01_RENDER_SOLID_LINE_POLYLINE32_POINT_Y__SIZE                                0x00000010
221 #define  NV01_RENDER_SOLID_LINE_CPOLYLINE_COLOR(x)                                      (0x00000600+((x)*8))
222 #define  NV01_RENDER_SOLID_LINE_CPOLYLINE_COLOR__SIZE                                   0x00000010
223 #define  NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT(x)                                      (0x00000604+((x)*8))
224 #define  NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT__SIZE                                   0x00000010
225 #define   NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT_X_SHIFT                                0
226 #define   NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT_X_MASK                                 0x0000ffff
227 #define   NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT_Y_SHIFT                                16
228 #define   NV01_RENDER_SOLID_LINE_CPOLYLINE_POINT_Y_MASK                                 0xffff0000
229
230
231 #define NV01_RENDER_SOLID_TRIANGLE                                                      0x0000001d
232
233 #define  NV01_RENDER_SOLID_TRIANGLE_NOP                                                 0x00000100
234 #define  NV01_RENDER_SOLID_TRIANGLE_NOTIFY                                              0x00000104
235 #define  NV01_RENDER_SOLID_TRIANGLE_PATCH                                               0x0000010c
236 #define  NV01_RENDER_SOLID_TRIANGLE_DMA_NOTIFY                                          0x00000180
237 #define  NV01_RENDER_SOLID_TRIANGLE_CLIP_RECTANGLE                                      0x00000184
238 #define  NV01_RENDER_SOLID_TRIANGLE_PATTERN                                             0x00000188
239 #define  NV01_RENDER_SOLID_TRIANGLE_ROP                                                 0x0000018c
240 #define  NV01_RENDER_SOLID_TRIANGLE_BETA1                                               0x00000190
241 #define  NV01_RENDER_SOLID_TRIANGLE_SURFACE                                             0x00000194
242 #define  NV01_RENDER_SOLID_TRIANGLE_OPERATION                                           0x000002fc
243 #define   NV01_RENDER_SOLID_TRIANGLE_OPERATION_SRCCOPY_AND                              0x00000000
244 #define   NV01_RENDER_SOLID_TRIANGLE_OPERATION_ROP_AND                                  0x00000001
245 #define   NV01_RENDER_SOLID_TRIANGLE_OPERATION_BLEND_AND                                0x00000002
246 #define   NV01_RENDER_SOLID_TRIANGLE_OPERATION_SRCCOPY                                  0x00000003
247 #define   NV01_RENDER_SOLID_TRIANGLE_OPERATION_SRCCOPY_PREMULT                          0x00000004
248 #define   NV01_RENDER_SOLID_TRIANGLE_OPERATION_BLEND_PREMULT                            0x00000005
249 #define  NV01_RENDER_SOLID_TRIANGLE_COLOR_FORMAT                                        0x00000300
250 #define  NV01_RENDER_SOLID_TRIANGLE_COLOR                                               0x00000304
251 #define  NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0                                     0x00000310
252 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0_X_SHIFT                            0
253 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0_X_MASK                             0x0000ffff
254 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0_Y_SHIFT                            16
255 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT0_Y_MASK                             0xffff0000
256 #define  NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1                                     0x00000314
257 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1_X_SHIFT                            0
258 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1_X_MASK                             0x0000ffff
259 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1_Y_SHIFT                            16
260 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT1_Y_MASK                             0xffff0000
261 #define  NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2                                     0x00000318
262 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2_X_SHIFT                            0
263 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2_X_MASK                             0x0000ffff
264 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2_Y_SHIFT                            16
265 #define   NV01_RENDER_SOLID_TRIANGLE_TRIANGLE_POINT2_Y_MASK                             0xffff0000
266 #define  NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT0_X                                 0x00000320
267 #define  NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT0_Y                                 0x00000324
268 #define  NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT1_X                                 0x00000328
269 #define  NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT1_Y                                 0x0000032c
270 #define  NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT2_X                                 0x00000330
271 #define  NV01_RENDER_SOLID_TRIANGLE_TRIANGLE32_POINT2_Y                                 0x00000334
272 #define  NV01_RENDER_SOLID_TRIANGLE_TRIMESH(x)                                          (0x00000400+((x)*4))
273 #define  NV01_RENDER_SOLID_TRIANGLE_TRIMESH__SIZE                                       0x00000020
274 #define   NV01_RENDER_SOLID_TRIANGLE_TRIMESH_X_SHIFT                                    0
275 #define   NV01_RENDER_SOLID_TRIANGLE_TRIMESH_X_MASK                                     0x0000ffff
276 #define   NV01_RENDER_SOLID_TRIANGLE_TRIMESH_Y_SHIFT                                    16
277 #define   NV01_RENDER_SOLID_TRIANGLE_TRIMESH_Y_MASK                                     0xffff0000
278 #define  NV01_RENDER_SOLID_TRIANGLE_TRIMESH32_POINT_X(x)                                (0x00000480+((x)*8))
279 #define  NV01_RENDER_SOLID_TRIANGLE_TRIMESH32_POINT_X__SIZE                             0x00000010
280 #define  NV01_RENDER_SOLID_TRIANGLE_TRIMESH32_POINT_Y(x)                                (0x00000484+((x)*8))
281 #define  NV01_RENDER_SOLID_TRIANGLE_TRIMESH32_POINT_Y__SIZE                             0x00000010
282 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_COLOR(x)                                  (0x00000500+((x)*16))
283 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_COLOR__SIZE                               0x00000008
284 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0(x)                                 (0x00000504+((x)*16))
285 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0__SIZE                              0x00000008
286 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0_X_SHIFT                           0
287 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0_X_MASK                            0x0000ffff
288 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0_Y_SHIFT                           16
289 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT0_Y_MASK                            0xffff0000
290 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1(x)                                 (0x00000508+((x)*16))
291 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1__SIZE                              0x00000008
292 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1_X_SHIFT                           0
293 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1_X_MASK                            0x0000ffff
294 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1_Y_SHIFT                           16
295 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT1_Y_MASK                            0xffff0000
296 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2(x)                                 (0x0000050c+((x)*16))
297 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2__SIZE                              0x00000008
298 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2_X_SHIFT                           0
299 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2_X_MASK                            0x0000ffff
300 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2_Y_SHIFT                           16
301 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIANGLE_POINT2_Y_MASK                            0xffff0000
302 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_COLOR(x)                                   (0x00000580+((x)*8))
303 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_COLOR__SIZE                                0x00000010
304 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT(x)                                   (0x00000584+((x)*8))
305 #define  NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT__SIZE                                0x00000010
306 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT_X_SHIFT                             0
307 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT_X_MASK                              0x0000ffff
308 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT_Y_SHIFT                             16
309 #define   NV01_RENDER_SOLID_TRIANGLE_CTRIMESH_POINT_Y_MASK                              0xffff0000
310
311
312 #define NV01_RENDER_SOLID_RECTANGLE                                                     0x0000001e
313
314 #define  NV01_RENDER_SOLID_RECTANGLE_NOP                                                0x00000100
315 #define  NV01_RENDER_SOLID_RECTANGLE_NOTIFY                                             0x00000104
316 #define  NV01_RENDER_SOLID_RECTANGLE_PATCH                                              0x0000010c
317 #define  NV01_RENDER_SOLID_RECTANGLE_DMA_NOTIFY                                         0x00000180
318 #define  NV01_RENDER_SOLID_RECTANGLE_CLIP_RECTANGLE                                     0x00000184
319 #define  NV01_RENDER_SOLID_RECTANGLE_PATTERN                                            0x00000188
320 #define  NV01_RENDER_SOLID_RECTANGLE_ROP                                                0x0000018c
321 #define  NV01_RENDER_SOLID_RECTANGLE_BETA1                                              0x00000190
322 #define  NV01_RENDER_SOLID_RECTANGLE_SURFACE                                            0x00000194
323 #define  NV01_RENDER_SOLID_RECTANGLE_OPERATION                                          0x000002fc
324 #define   NV01_RENDER_SOLID_RECTANGLE_OPERATION_SRCCOPY_AND                             0x00000000
325 #define   NV01_RENDER_SOLID_RECTANGLE_OPERATION_ROP_AND                                 0x00000001
326 #define   NV01_RENDER_SOLID_RECTANGLE_OPERATION_BLEND_AND                               0x00000002
327 #define   NV01_RENDER_SOLID_RECTANGLE_OPERATION_SRCCOPY                                 0x00000003
328 #define   NV01_RENDER_SOLID_RECTANGLE_OPERATION_SRCCOPY_PREMULT                         0x00000004
329 #define   NV01_RENDER_SOLID_RECTANGLE_OPERATION_BLEND_PREMULT                           0x00000005
330 #define  NV01_RENDER_SOLID_RECTANGLE_COLOR_FORMAT                                       0x00000300
331 #define  NV01_RENDER_SOLID_RECTANGLE_COLOR                                              0x00000304
332 #define  NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT(x)                                 (0x00000400+((x)*8))
333 #define  NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT__SIZE                              0x00000010
334 #define   NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT_X_SHIFT                           0
335 #define   NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT_X_MASK                            0x0000ffff
336 #define   NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT_Y_SHIFT                           16
337 #define   NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_POINT_Y_MASK                            0xffff0000
338 #define  NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE(x)                                  (0x00000404+((x)*8))
339 #define  NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE__SIZE                               0x00000010
340 #define   NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE_W_SHIFT                            0
341 #define   NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE_W_MASK                             0x0000ffff
342 #define   NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE_H_SHIFT                            16
343 #define   NV01_RENDER_SOLID_RECTANGLE_RECTANGLE_SIZE_H_MASK                             0xffff0000
344
345
346 #define NV01_IMAGE_BLIT                                                                 0x0000001f
347
348 #define  NV01_IMAGE_BLIT_NOP                                                            0x00000100
349 #define  NV01_IMAGE_BLIT_NOTIFY                                                         0x00000104
350 #define  NV01_IMAGE_BLIT_PATCH                                                          0x0000010c
351 #define  NV01_IMAGE_BLIT_DMA_NOTIFY                                                     0x00000180
352 #define  NV01_IMAGE_BLIT_COLOR_KEY                                                      0x00000184
353 #define  NV01_IMAGE_BLIT_CLIP_RECTANGLE                                                 0x00000188
354 #define  NV01_IMAGE_BLIT_PATTERN                                                        0x0000018c
355 #define  NV01_IMAGE_BLIT_ROP                                                            0x00000190
356 #define  NV01_IMAGE_BLIT_BETA1                                                          0x00000194
357 #define  NV01_IMAGE_BLIT_SURFACE                                                        0x0000019c
358 #define  NV01_IMAGE_BLIT_OPERATION                                                      0x000002fc
359 #define  NV01_IMAGE_BLIT_IMAGE_INPUT                                                    0x00000204
360 #define  NV01_IMAGE_BLIT_POINT_IN                                                       0x00000300
361 #define   NV01_IMAGE_BLIT_POINT_IN_X_SHIFT                                              0
362 #define   NV01_IMAGE_BLIT_POINT_IN_X_MASK                                               0x0000ffff
363 #define   NV01_IMAGE_BLIT_POINT_IN_Y_SHIFT                                              16
364 #define   NV01_IMAGE_BLIT_POINT_IN_Y_MASK                                               0xffff0000
365 #define  NV01_IMAGE_BLIT_POINT_OUT                                                      0x00000304
366 #define   NV01_IMAGE_BLIT_POINT_OUT_X_SHIFT                                             0
367 #define   NV01_IMAGE_BLIT_POINT_OUT_X_MASK                                              0x0000ffff
368 #define   NV01_IMAGE_BLIT_POINT_OUT_Y_SHIFT                                             16
369 #define   NV01_IMAGE_BLIT_POINT_OUT_Y_MASK                                              0xffff0000
370 #define  NV01_IMAGE_BLIT_SIZE                                                           0x00000308
371 #define   NV01_IMAGE_BLIT_SIZE_W_SHIFT                                                  0
372 #define   NV01_IMAGE_BLIT_SIZE_W_MASK                                                   0x0000ffff
373 #define   NV01_IMAGE_BLIT_SIZE_H_SHIFT                                                  16
374 #define   NV01_IMAGE_BLIT_SIZE_H_MASK                                                   0xffff0000
375
376
377 #define NV01_IMAGE_FROM_CPU                                                             0x00000021
378
379 #define  NV01_IMAGE_FROM_CPU_NOP                                                        0x00000100
380 #define  NV01_IMAGE_FROM_CPU_NOTIFY                                                     0x00000104
381 #define  NV01_IMAGE_FROM_CPU_PATCH                                                      0x0000010c
382 #define  NV01_IMAGE_FROM_CPU_DMA_NOTIFY                                                 0x00000180
383 #define  NV01_IMAGE_FROM_CPU_COLOR_KEY                                                  0x00000184
384 #define  NV01_IMAGE_FROM_CPU_CLIP_RECTANGLE                                             0x00000188
385 #define  NV01_IMAGE_FROM_CPU_PATTERN                                                    0x0000018c
386 #define  NV01_IMAGE_FROM_CPU_ROP                                                        0x00000190
387 #define  NV01_IMAGE_FROM_CPU_BETA1                                                      0x00000194
388 #define  NV01_IMAGE_FROM_CPU_SURFACE                                                    0x00000198
389 #define  NV01_IMAGE_FROM_CPU_OPERATION                                                  0x000002fc
390 #define   NV01_IMAGE_FROM_CPU_OPERATION_SRCCOPY_AND                                     0x00000000
391 #define   NV01_IMAGE_FROM_CPU_OPERATION_ROP_AND                                         0x00000001
392 #define   NV01_IMAGE_FROM_CPU_OPERATION_BLEND_AND                                       0x00000002
393 #define   NV01_IMAGE_FROM_CPU_OPERATION_SRCCOPY                                         0x00000003
394 #define   NV01_IMAGE_FROM_CPU_OPERATION_SRCCOPY_PREMULT                                 0x00000004
395 #define   NV01_IMAGE_FROM_CPU_OPERATION_BLEND_PREMULT                                   0x00000005
396 #define  NV01_IMAGE_FROM_CPU_COLOR_FORMAT                                               0x00000300
397 #define   NV01_IMAGE_FROM_CPU_COLOR_FORMAT_Y8                                           0x00000001
398 #define   NV01_IMAGE_FROM_CPU_COLOR_FORMAT_A1R5G5B5                                     0x00000002
399 #define   NV01_IMAGE_FROM_CPU_COLOR_FORMAT_X1R5G5B5                                     0x00000003
400 #define   NV01_IMAGE_FROM_CPU_COLOR_FORMAT_A8R8G8B8                                     0x00000004
401 #define   NV01_IMAGE_FROM_CPU_COLOR_FORMAT_X8R8G8B8                                     0x00000005
402 #define  NV01_IMAGE_FROM_CPU_POINT                                                      0x00000304
403 #define   NV01_IMAGE_FROM_CPU_POINT_X_SHIFT                                             0
404 #define   NV01_IMAGE_FROM_CPU_POINT_X_MASK                                              0x0000ffff
405 #define   NV01_IMAGE_FROM_CPU_POINT_Y_SHIFT                                             16
406 #define   NV01_IMAGE_FROM_CPU_POINT_Y_MASK                                              0xffff0000
407 #define  NV01_IMAGE_FROM_CPU_SIZE_OUT                                                   0x00000308
408 #define   NV01_IMAGE_FROM_CPU_SIZE_OUT_W_SHIFT                                          0
409 #define   NV01_IMAGE_FROM_CPU_SIZE_OUT_W_MASK                                           0x0000ffff
410 #define   NV01_IMAGE_FROM_CPU_SIZE_OUT_H_SHIFT                                          16
411 #define   NV01_IMAGE_FROM_CPU_SIZE_OUT_H_MASK                                           0xffff0000
412 #define  NV01_IMAGE_FROM_CPU_SIZE_IN                                                    0x0000030c
413 #define   NV01_IMAGE_FROM_CPU_SIZE_IN_W_SHIFT                                           0
414 #define   NV01_IMAGE_FROM_CPU_SIZE_IN_W_MASK                                            0x0000ffff
415 #define   NV01_IMAGE_FROM_CPU_SIZE_IN_H_SHIFT                                           16
416 #define   NV01_IMAGE_FROM_CPU_SIZE_IN_H_MASK                                            0xffff0000
417 #define  NV01_IMAGE_FROM_CPU_COLOR(x)                                                   (0x00000400+((x)*4))
418 #define  NV01_IMAGE_FROM_CPU_COLOR__SIZE                                                0x00000020
419
420
421 #define NV01_NULL                                                                       0x00000030
422
423
424
425 #define NV03_STRETCHED_IMAGE_FROM_CPU                                                   0x00000036
426
427 #define  NV03_STRETCHED_IMAGE_FROM_CPU_NOP                                              0x00000100
428 #define  NV03_STRETCHED_IMAGE_FROM_CPU_NOTIFY                                           0x00000104
429 #define  NV03_STRETCHED_IMAGE_FROM_CPU_PATCH                                            0x0000010c
430 #define  NV03_STRETCHED_IMAGE_FROM_CPU_DMA_NOTIFY                                       0x00000180
431 #define  NV03_STRETCHED_IMAGE_FROM_CPU_COLOR_KEY                                        0x00000184
432 #define  NV03_STRETCHED_IMAGE_FROM_CPU_PATTERN                                          0x00000188
433 #define  NV03_STRETCHED_IMAGE_FROM_CPU_ROP                                              0x0000018c
434 #define  NV03_STRETCHED_IMAGE_FROM_CPU_BETA1                                            0x00000190
435 #define  NV03_STRETCHED_IMAGE_FROM_CPU_SURFACE                                          0x00000194
436 #define  NV03_STRETCHED_IMAGE_FROM_CPU_OPERATION                                        0x000002fc
437 #define  NV03_STRETCHED_IMAGE_FROM_CPU_COLOR_FORMAT                                     0x00000300
438 #define  NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN                                          0x00000304
439 #define   NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN_W_SHIFT                                 0
440 #define   NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN_W_MASK                                  0x0000ffff
441 #define   NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN_H_SHIFT                                 16
442 #define   NV03_STRETCHED_IMAGE_FROM_CPU_SIZE_IN_H_MASK                                  0xffff0000
443 #define  NV03_STRETCHED_IMAGE_FROM_CPU_DX_DU                                            0x00000308
444 #define  NV03_STRETCHED_IMAGE_FROM_CPU_DY_DV                                            0x0000030c
445 #define  NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT                                       0x00000310
446 #define   NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT_X_SHIFT                              0
447 #define   NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT_X_MASK                               0x0000ffff
448 #define   NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT_Y_SHIFT                              16
449 #define   NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_POINT_Y_MASK                               0xffff0000
450 #define  NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE                                        0x00000314
451 #define   NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE_W_SHIFT                               0
452 #define   NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE_W_MASK                                0x0000ffff
453 #define   NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE_H_SHIFT                               16
454 #define   NV03_STRETCHED_IMAGE_FROM_CPU_CLIP_SIZE_H_MASK                                0xffff0000
455 #define  NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4                                        0x00000318
456 #define   NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4_X_SHIFT                               0
457 #define   NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4_X_MASK                                0x0000ffff
458 #define   NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4_Y_SHIFT                               16
459 #define   NV03_STRETCHED_IMAGE_FROM_CPU_POINT12D4_Y_MASK                                0xffff0000
460 #define  NV03_STRETCHED_IMAGE_FROM_CPU_COLOR(x)                                         (0x00000400+((x)*4))
461 #define  NV03_STRETCHED_IMAGE_FROM_CPU_COLOR__SIZE                                      0x00000020
462
463
464 #define NV03_SCALED_IMAGE_FROM_MEMORY                                                   0x00000037
465
466 #define  NV03_SCALED_IMAGE_FROM_MEMORY_NOP                                              0x00000100
467 #define  NV03_SCALED_IMAGE_FROM_MEMORY_NOTIFY                                           0x00000104
468 #define  NV03_SCALED_IMAGE_FROM_MEMORY_DMA_NOTIFY                                       0x00000180
469 #define  NV03_SCALED_IMAGE_FROM_MEMORY_DMA_IMAGE                                        0x00000184
470 #define  NV03_SCALED_IMAGE_FROM_MEMORY_PATTERN                                          0x00000188
471 #define  NV03_SCALED_IMAGE_FROM_MEMORY_ROP                                              0x0000018c
472 #define  NV03_SCALED_IMAGE_FROM_MEMORY_BETA1                                            0x00000190
473 #define  NV03_SCALED_IMAGE_FROM_MEMORY_SURFACE                                          0x00000194
474 #define  NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT                                     0x00000300
475 #define   NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_A1R5G5B5                           0x00000001
476 #define   NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_X1R5G5B5                           0x00000002
477 #define   NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_A8R8G8B8                           0x00000003
478 #define   NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_X8R8G8B8                           0x00000004
479 #define   NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_V8YB8U8YA8                         0x00000005
480 #define   NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_YB8V8YA8U8                         0x00000006
481 #define   NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_R5G6B5                             0x00000007
482 #define   NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_Y8                                 0x00000008
483 #define   NV03_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_AY8                                0x00000009
484 #define  NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION                                        0x00000304
485 #define   NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_SRCCOPY_AND                           0x00000000
486 #define   NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_ROP_AND                               0x00000001
487 #define   NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_BLEND_AND                             0x00000002
488 #define   NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_SRCCOPY                               0x00000003
489 #define   NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_SRCCOPY_PREMULT                       0x00000004
490 #define   NV03_SCALED_IMAGE_FROM_MEMORY_OPERATION_BLEND_PREMULT                         0x00000005
491 #define  NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT                                       0x00000308
492 #define   NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_X_SHIFT                              0
493 #define   NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_X_MASK                               0x0000ffff
494 #define   NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_Y_SHIFT                              16
495 #define   NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_Y_MASK                               0xffff0000
496 #define  NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE                                        0x0000030c
497 #define   NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_W_SHIFT                               0
498 #define   NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_W_MASK                                0x0000ffff
499 #define   NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_H_SHIFT                               16
500 #define   NV03_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_H_MASK                                0xffff0000
501 #define  NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_POINT                                  0x00000310
502 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_POINT_X_SHIFT                         0
503 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_POINT_X_MASK                          0x0000ffff
504 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_POINT_Y_SHIFT                         16
505 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_POINT_Y_MASK                          0xffff0000
506 #define  NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_SIZE                                   0x00000314
507 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_SIZE_W_SHIFT                          0
508 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_SIZE_W_MASK                           0x0000ffff
509 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_SIZE_H_SHIFT                          16
510 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_OUT_SIZE_H_MASK                           0xffff0000
511 #define  NV03_SCALED_IMAGE_FROM_MEMORY_DELTA_DU_DX                                      0x00000318
512 #define  NV03_SCALED_IMAGE_FROM_MEMORY_DELTA_DV_DY                                      0x0000031c
513 #define  NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_SIZE                                    0x00000400
514 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_SIZE_W_SHIFT                           0
515 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_SIZE_W_MASK                            0x0000ffff
516 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_SIZE_H_SHIFT                           16
517 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_SIZE_H_MASK                            0xffff0000
518 #define  NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_FORMAT                                  0x00000404
519 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_FORMAT_PITCH_SHIFT                     0
520 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_FORMAT_PITCH_MASK                      0x0000ffff
521 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_FORMAT_ORIGIN_SHIFT                    16
522 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_FORMAT_ORIGIN_MASK                     0x00ff0000
523 #define    NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_FORMAT_ORIGIN_CENTER                  0x00010000
524 #define    NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_FORMAT_ORIGIN_CORNER                  0x00020000
525 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_FORMAT_INTERPOLATOR_SHIFT              24
526 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_FORMAT_INTERPOLATOR_MASK               0xff000000
527 #define  NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_OFFSET                                  0x00000408
528 #define  NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_POINT                                   0x0000040c
529 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_POINT_U_SHIFT                          0
530 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_POINT_U_MASK                           0x0000ffff
531 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_POINT_V_SHIFT                          16
532 #define   NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_POINT_V_MASK                           0xffff0000
533
534
535 #define NV04_DVD_SUBPICTURE                                                             0x00000038
536
537 #define  NV04_DVD_SUBPICTURE_NOP                                                        0x00000100
538 #define  NV04_DVD_SUBPICTURE_NOTIFY                                                     0x00000104
539 #define  NV04_DVD_SUBPICTURE_WAIT_FOR_IDLE                                              0x00000108
540 #define  NV04_DVD_SUBPICTURE_DMA_NOTIFY                                                 0x00000180
541 #define  NV04_DVD_SUBPICTURE_DMA_OVERLAY                                                0x00000184
542 #define  NV04_DVD_SUBPICTURE_DMA_IMAGEIN                                                0x00000188
543 #define  NV04_DVD_SUBPICTURE_DMA_IMAGEOUT                                               0x0000018c
544 #define  NV04_DVD_SUBPICTURE_IMAGEOUT_POINT                                             0x00000300
545 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_POINT_X_SHIFT                                    0
546 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_POINT_X_MASK                                     0x0000ffff
547 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_POINT_Y_SHIFT                                    16
548 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_POINT_Y_MASK                                     0xffff0000
549 #define  NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE                                              0x00000304
550 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE_W_SHIFT                                     0
551 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE_W_MASK                                      0x0000ffff
552 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE_H_SHIFT                                     16
553 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_SIZE_H_MASK                                      0xffff0000
554 #define  NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT                                            0x00000308
555 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT_PITCH_SHIFT                               0
556 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT_PITCH_MASK                                0x0000ffff
557 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT_COLOR_SHIFT                               16
558 #define   NV04_DVD_SUBPICTURE_IMAGEOUT_FORMAT_COLOR_MASK                                0xffff0000
559 #define  NV04_DVD_SUBPICTURE_IMAGEOUT_OFFSET                                            0x0000030c
560 #define  NV04_DVD_SUBPICTURE_IMAGEIN_DELTA_DU_DX                                        0x00000310
561 #define  NV04_DVD_SUBPICTURE_IMAGEIN_DELTA_DV_DY                                        0x00000314
562 #define  NV04_DVD_SUBPICTURE_IMAGEIN_SIZE                                               0x00000318
563 #define   NV04_DVD_SUBPICTURE_IMAGEIN_SIZE_W_SHIFT                                      0
564 #define   NV04_DVD_SUBPICTURE_IMAGEIN_SIZE_W_MASK                                       0x0000ffff
565 #define   NV04_DVD_SUBPICTURE_IMAGEIN_SIZE_H_SHIFT                                      16
566 #define   NV04_DVD_SUBPICTURE_IMAGEIN_SIZE_H_MASK                                       0xffff0000
567 #define  NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT                                             0x0000031c
568 #define   NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT_PITCH_SHIFT                                0
569 #define   NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT_PITCH_MASK                                 0x0000ffff
570 #define   NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT_COLOR_SHIFT                                16
571 #define   NV04_DVD_SUBPICTURE_IMAGEIN_FORMAT_COLOR_MASK                                 0xffff0000
572 #define  NV04_DVD_SUBPICTURE_IMAGEIN_OFFSET                                             0x00000320
573 #define  NV04_DVD_SUBPICTURE_IMAGEIN_POINT                                              0x00000324
574 #define   NV04_DVD_SUBPICTURE_IMAGEIN_POINT_U_SHIFT                                     0
575 #define   NV04_DVD_SUBPICTURE_IMAGEIN_POINT_U_MASK                                      0x0000ffff
576 #define   NV04_DVD_SUBPICTURE_IMAGEIN_POINT_V_SHIFT                                     16
577 #define   NV04_DVD_SUBPICTURE_IMAGEIN_POINT_V_MASK                                      0xffff0000
578 #define  NV04_DVD_SUBPICTURE_OVERLAY_DELTA_DU_DX                                        0x00000328
579 #define  NV04_DVD_SUBPICTURE_OVERLAY_DELTA_DV_DY                                        0x0000032c
580 #define  NV04_DVD_SUBPICTURE_OVERLAY_SIZE                                               0x00000330
581 #define   NV04_DVD_SUBPICTURE_OVERLAY_SIZE_W_SHIFT                                      0
582 #define   NV04_DVD_SUBPICTURE_OVERLAY_SIZE_W_MASK                                       0x0000ffff
583 #define   NV04_DVD_SUBPICTURE_OVERLAY_SIZE_H_SHIFT                                      16
584 #define   NV04_DVD_SUBPICTURE_OVERLAY_SIZE_H_MASK                                       0xffff0000
585 #define  NV04_DVD_SUBPICTURE_OVERLAY_FORMAT                                             0x00000334
586 #define   NV04_DVD_SUBPICTURE_OVERLAY_FORMAT_PITCH_SHIFT                                0
587 #define   NV04_DVD_SUBPICTURE_OVERLAY_FORMAT_PITCH_MASK                                 0x0000ffff
588 #define   NV04_DVD_SUBPICTURE_OVERLAY_FORMAT_COLOR_SHIFT                                16
589 #define   NV04_DVD_SUBPICTURE_OVERLAY_FORMAT_COLOR_MASK                                 0xffff0000
590 #define  NV04_DVD_SUBPICTURE_OVERLAY_OFFSET                                             0x00000338
591 #define  NV04_DVD_SUBPICTURE_OVERLAY_POINT                                              0x0000033c
592 #define   NV04_DVD_SUBPICTURE_OVERLAY_POINT_U_SHIFT                                     0
593 #define   NV04_DVD_SUBPICTURE_OVERLAY_POINT_U_MASK                                      0x0000ffff
594 #define   NV04_DVD_SUBPICTURE_OVERLAY_POINT_V_SHIFT                                     16
595 #define   NV04_DVD_SUBPICTURE_OVERLAY_POINT_V_MASK                                      0xffff0000
596
597
598 #define NV04_MEMORY_TO_MEMORY_FORMAT                                                    0x00000039
599
600 #define  NV04_MEMORY_TO_MEMORY_FORMAT_NOP                                               0x00000100
601 #define  NV04_MEMORY_TO_MEMORY_FORMAT_NOTIFY                                            0x00000104
602 #define  NV04_MEMORY_TO_MEMORY_FORMAT_DMA_NOTIFY                                        0x00000180
603 #define  NV04_MEMORY_TO_MEMORY_FORMAT_DMA_BUFFER_IN                                     0x00000184
604 #define  NV04_MEMORY_TO_MEMORY_FORMAT_DMA_BUFFER_OUT                                    0x00000188
605 #define  NV04_MEMORY_TO_MEMORY_FORMAT_OFFSET_IN                                         0x0000030c
606 #define  NV04_MEMORY_TO_MEMORY_FORMAT_OFFSET_OUT                                        0x00000310
607 #define  NV04_MEMORY_TO_MEMORY_FORMAT_PITCH_IN                                          0x00000314
608 #define  NV04_MEMORY_TO_MEMORY_FORMAT_PITCH_OUT                                         0x00000318
609 #define  NV04_MEMORY_TO_MEMORY_FORMAT_LINE_LENGTH_IN                                    0x0000031c
610 #define  NV04_MEMORY_TO_MEMORY_FORMAT_LINE_COUNT                                        0x00000320
611 #define  NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT                                            0x00000324
612 #define   NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT_INPUT_INC_SHIFT                           0
613 #define   NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT_INPUT_INC_MASK                            0x0000000f
614 #define   NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT_OUTPUT_INC_SHIFT                          8
615 #define   NV04_MEMORY_TO_MEMORY_FORMAT_FORMAT_OUTPUT_INC_MASK                           0x00000f00
616 #define  NV04_MEMORY_TO_MEMORY_FORMAT_BUF_NOTIFY                                        0x00000328
617
618
619 #define NV01_MEMORY_LOCAL_BANKED                                                        0x0000003d
620
621
622
623 #define NV01_MAPPING_SYSTEM                                                             0x0000003e
624
625
626
627 #define NV03_MEMORY_LOCAL_CURSOR                                                        0x0000003f
628
629
630
631 #define NV01_MEMORY_LOCAL_LINEAR                                                        0x00000040
632
633
634
635 #define NV01_MAPPING_LOCAL                                                              0x00000041
636
637
638
639 #define NV04_CONTEXT_SURFACES_2D                                                        0x00000042
640
641 #define  NV04_CONTEXT_SURFACES_2D_NOP                                                   0x00000100
642 #define  NV04_CONTEXT_SURFACES_2D_NOTIFY                                                0x00000104
643 #define  NV04_CONTEXT_SURFACES_2D_PM_TRIGGER                                            0x00000140
644 #define  NV04_CONTEXT_SURFACES_2D_DMA_NOTIFY                                            0x00000180
645 #define  NV04_CONTEXT_SURFACES_2D_DMA_IMAGE_SOURCE                                      0x00000184
646 #define  NV04_CONTEXT_SURFACES_2D_DMA_IMAGE_DESTIN                                      0x00000188
647 #define  NV04_CONTEXT_SURFACES_2D_FORMAT                                                0x00000300
648 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_Y8                                            0x00000001
649 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_X1R5G5B5_Z1R5G5B5                             0x00000002
650 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_X1R5G5B5_X1R5G5B5                             0x00000003
651 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_R5G6B5                                        0x00000004
652 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_Y16                                           0x00000005
653 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_X8R8G8B8_Z8R8G8B8                             0x00000006
654 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_X8R8G8B8_X8R8G8B8                             0x00000007
655 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_X1A7R8G8B8_Z1A7R8G8B8                         0x00000008
656 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_X1A7R8G8B8_X1A7R8G8B8                         0x00000009
657 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_A8R8G8B8                                      0x0000000a
658 #define   NV04_CONTEXT_SURFACES_2D_FORMAT_Y32                                           0x0000000b
659 #define  NV04_CONTEXT_SURFACES_2D_PITCH                                                 0x00000304
660 #define   NV04_CONTEXT_SURFACES_2D_PITCH_SOURCE_SHIFT                                   0
661 #define   NV04_CONTEXT_SURFACES_2D_PITCH_SOURCE_MASK                                    0x0000ffff
662 #define   NV04_CONTEXT_SURFACES_2D_PITCH_DESTIN_SHIFT                                   16
663 #define   NV04_CONTEXT_SURFACES_2D_PITCH_DESTIN_MASK                                    0xffff0000
664 #define  NV04_CONTEXT_SURFACES_2D_OFFSET_SOURCE                                         0x00000308
665 #define  NV04_CONTEXT_SURFACES_2D_OFFSET_DESTIN                                         0x0000030c
666
667
668 #define NV03_CONTEXT_ROP                                                                0x00000043
669
670 #define  NV03_CONTEXT_ROP_NOP                                                           0x00000100
671 #define  NV03_CONTEXT_ROP_NOTIFY                                                        0x00000104
672 #define  NV03_CONTEXT_ROP_DMA_NOTIFY                                                    0x00000180
673 #define  NV03_CONTEXT_ROP_ROP                                                           0x00000300
674 #define   NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_SHIFT                                       0
675 #define   NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_MASK                                        0x0000000f
676 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_CLEAR                                      0x00000000
677 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_NOR                                        0x00000001
678 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_AND_INVERTED                               0x00000002
679 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_COPY_INVERTED                              0x00000003
680 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_AND_REVERSE                                0x00000004
681 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_INVERT                                     0x00000005
682 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_XOR                                        0x00000006
683 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_NAND                                       0x00000007
684 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_AND                                        0x00000008
685 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_EQUI                                       0x00000009
686 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_NOOP                                       0x0000000a
687 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR_INVERTED                                0x0000000b
688 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_COPY                                       0x0000000c
689 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR_REVERSE                                 0x0000000d
690 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR                                         0x0000000e
691 #define    NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_SET                                        0x0000000f
692 #define   NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_SHIFT                                       4
693 #define   NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_MASK                                        0x000000f0
694 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_CLEAR                                      0x00000000
695 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_NOR                                        0x00000010
696 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_AND_INVERTED                               0x00000020
697 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_COPY_INVERTED                              0x00000030
698 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_AND_REVERSE                                0x00000040
699 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_INVERT                                     0x00000050
700 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_XOR                                        0x00000060
701 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_NAND                                       0x00000070
702 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_AND                                        0x00000080
703 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_EQUI                                       0x00000090
704 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_NOOP                                       0x000000a0
705 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR_INVERTED                                0x000000b0
706 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_COPY                                       0x000000c0
707 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR_REVERSE                                 0x000000d0
708 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR                                         0x000000e0
709 #define    NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_SET                                        0x000000f0
710
711
712 #define NV04_IMAGE_PATTERN                                                              0x00000044
713
714 #define  NV04_IMAGE_PATTERN_NOP                                                         0x00000100
715 #define  NV04_IMAGE_PATTERN_NOTIFY                                                      0x00000104
716 #define  NV04_IMAGE_PATTERN_DMA_NOTIFY                                                  0x00000180
717 #define  NV04_IMAGE_PATTERN_COLOR_FORMAT                                                0x00000300
718 #define   NV04_IMAGE_PATTERN_COLOR_FORMAT_A16R5G6B5                                     0x00000001
719 #define   NV04_IMAGE_PATTERN_COLOR_FORMAT_X16A1R5G5B5                                   0x00000002
720 #define   NV04_IMAGE_PATTERN_COLOR_FORMAT_A8R8G8B8                                      0x00000003
721 #define  NV04_IMAGE_PATTERN_MONOCHROME_FORMAT                                           0x00000304
722 #define   NV04_IMAGE_PATTERN_MONOCHROME_FORMAT_CGA6                                     0x00000001
723 #define   NV04_IMAGE_PATTERN_MONOCHROME_FORMAT_LE                                       0x00000002
724 #define  NV04_IMAGE_PATTERN_MONOCHROME_SHAPE                                            0x00000308
725 #define   NV04_IMAGE_PATTERN_MONOCHROME_SHAPE_8X8                                       0x00000000
726 #define   NV04_IMAGE_PATTERN_MONOCHROME_SHAPE_64X1                                      0x00000001
727 #define   NV04_IMAGE_PATTERN_MONOCHROME_SHAPE_1X64                                      0x00000002
728 #define  NV04_IMAGE_PATTERN_PATTERN_SELECT                                              0x0000030c
729 #define   NV04_IMAGE_PATTERN_PATTERN_SELECT_MONO                                        0x00000001
730 #define   NV04_IMAGE_PATTERN_PATTERN_SELECT_COLOR                                       0x00000002
731 #define  NV04_IMAGE_PATTERN_MONOCHROME_COLOR0                                           0x00000310
732 #define  NV04_IMAGE_PATTERN_MONOCHROME_COLOR1                                           0x00000314
733 #define  NV04_IMAGE_PATTERN_MONOCHROME_PATTERN0                                         0x00000318
734 #define  NV04_IMAGE_PATTERN_MONOCHROME_PATTERN1                                         0x0000031c
735 #define  NV04_IMAGE_PATTERN_PATTERN_Y8(x)                                               (0x00000400+((x)*4))
736 #define  NV04_IMAGE_PATTERN_PATTERN_Y8__SIZE                                            0x00000010
737 #define   NV04_IMAGE_PATTERN_PATTERN_Y8_Y0_SHIFT                                        0
738 #define   NV04_IMAGE_PATTERN_PATTERN_Y8_Y0_MASK                                         0x000000ff
739 #define   NV04_IMAGE_PATTERN_PATTERN_Y8_Y1_SHIFT                                        8
740 #define   NV04_IMAGE_PATTERN_PATTERN_Y8_Y1_MASK                                         0x0000ff00
741 #define   NV04_IMAGE_PATTERN_PATTERN_Y8_Y2_SHIFT                                        16
742 #define   NV04_IMAGE_PATTERN_PATTERN_Y8_Y2_MASK                                         0x00ff0000
743 #define   NV04_IMAGE_PATTERN_PATTERN_Y8_Y3_SHIFT                                        24
744 #define   NV04_IMAGE_PATTERN_PATTERN_Y8_Y3_MASK                                         0xff000000
745 #define  NV04_IMAGE_PATTERN_PATTERN_R5G6B5(x)                                           (0x00000500+((x)*4))
746 #define  NV04_IMAGE_PATTERN_PATTERN_R5G6B5__SIZE                                        0x00000020
747 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B0_SHIFT                                    0
748 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B0_MASK                                     0x0000001f
749 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G0_SHIFT                                    5
750 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G0_MASK                                     0x000007e0
751 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R0_SHIFT                                    11
752 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R0_MASK                                     0x0000f800
753 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B1_SHIFT                                    16
754 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_B1_MASK                                     0x001f0000
755 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G1_SHIFT                                    21
756 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_G1_MASK                                     0x07e00000
757 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R1_SHIFT                                    27
758 #define   NV04_IMAGE_PATTERN_PATTERN_R5G6B5_R1_MASK                                     0xf8000000
759 #define  NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5(x)                                         (0x00000600+((x)*4))
760 #define  NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5__SIZE                                      0x00000020
761 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B0_SHIFT                                  0
762 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B0_MASK                                   0x0000001f
763 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G0_SHIFT                                  5
764 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G0_MASK                                   0x000003e0
765 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R0_SHIFT                                  10
766 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R0_MASK                                   0x00007c00
767 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B1_SHIFT                                  16
768 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_B1_MASK                                   0x001f0000
769 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G1_SHIFT                                  21
770 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_G1_MASK                                   0x03e00000
771 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R1_SHIFT                                  26
772 #define   NV04_IMAGE_PATTERN_PATTERN_X1R5G5B5_R1_MASK                                   0x7c000000
773 #define  NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8(x)                                         (0x00000700+((x)*4))
774 #define  NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8__SIZE                                      0x00000040
775 #define   NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_B_SHIFT                                   0
776 #define   NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_B_MASK                                    0x000000ff
777 #define   NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_G_SHIFT                                   8
778 #define   NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_G_MASK                                    0x0000ff00
779 #define   NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_R_SHIFT                                   16
780 #define   NV04_IMAGE_PATTERN_PATTERN_X8R8G8B8_R_MASK                                    0x00ff0000
781
782
783 #define NV03_VIDEO_LUT_CURSOR_DAC                                                       0x00000046
784
785 #define  NV03_VIDEO_LUT_CURSOR_DAC_SYNCHRONIZE                                          0x00000100
786 #define  NV03_VIDEO_LUT_CURSOR_DAC_STOP_IMAGE                                           0x00000104
787 #define  NV03_VIDEO_LUT_CURSOR_DAC_STOP_CURSOR                                          0x00000108
788 #define  NV03_VIDEO_LUT_CURSOR_DAC_STOP_DAC                                             0x0000010c
789 #define  NV03_VIDEO_LUT_CURSOR_DAC_DMA_NOTIFY                                           0x00000180
790 #define  NV03_VIDEO_LUT_CURSOR_DAC_DMA_IMAGE(x)                                         (0x00000184+((x)*4))
791 #define  NV03_VIDEO_LUT_CURSOR_DAC_DMA_IMAGE__SIZE                                      0x00000002
792 #define  NV03_VIDEO_LUT_CURSOR_DAC_DMA_LUT(x)                                           (0x0000018c+((x)*4))
793 #define  NV03_VIDEO_LUT_CURSOR_DAC_DMA_LUT__SIZE                                        0x00000002
794 #define  NV03_VIDEO_LUT_CURSOR_DAC_DMA_CURSOR(x)                                        (0x00000194+((x)*4))
795 #define  NV03_VIDEO_LUT_CURSOR_DAC_DMA_CURSOR__SIZE                                     0x00000002
796 #define  NV03_VIDEO_LUT_CURSOR_DAC_GET                                                  0x000002fc
797 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_OFFSET(x)                                  (0x00000300+((x)*8))
798 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_OFFSET__SIZE                               0x00000002
799 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT(x)                                  (0x00000304+((x)*8))
800 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT__SIZE                               0x00000002
801 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_PITCH_SHIFT                        0
802 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_PITCH_MASK                         0x0000ffff
803 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_COLOR_SHIFT                        16
804 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_COLOR_MASK                         0x0fff0000
805 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_NOTIFY_SHIFT                       28
806 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_IMAGE_FORMAT_NOTIFY_MASK                        0xf0000000
807 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_OFFSET(x)                                 (0x00000340+((x)*12))
808 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_OFFSET__SIZE                              0x00000002
809 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT(x)                              (0x00000344+((x)*12))
810 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT__SIZE                           0x00000002
811 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_X_SHIFT                        0
812 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_X_MASK                         0x0000ffff
813 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_Y_SHIFT                        16
814 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_Y_MASK                         0xffff0000
815 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_FORMAT(x)                                 (0x00000348+((x)*12))
816 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_FORMAT__SIZE                              0x00000002
817 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A                               0x00000358
818 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_X_SHIFT                      0
819 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_X_MASK                       0x0000ffff
820 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_Y_SHIFT                      16
821 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_CURSOR_POINT_OUT_A_Y_MASK                       0xffff0000
822 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE(x)                                (0x00000380+((x)*16))
823 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE__SIZE                             0x00000002
824 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_W_SHIFT                          0
825 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_W_MASK                           0x0000ffff
826 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_H_SHIFT                          16
827 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_IMAGE_SIZE_H_MASK                           0xffff0000
828 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC(x)                                     (0x00000384+((x)*16))
829 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC__SIZE                                  0x00000002
830 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_START_SHIFT                           0
831 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_START_MASK                            0x0000ffff
832 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_WIDTH_SHIFT                           16
833 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_WIDTH_MASK                            0x0fff0000
834 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_POLARITY_SHIFT                        28
835 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_HSYNC_POLARITY_MASK                         0xf0000000
836 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC(x)                                     (0x00000388+((x)*16))
837 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC__SIZE                                  0x00000002
838 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_START_SHIFT                           0
839 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_START_MASK                            0x0000ffff
840 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_WIDTH_SHIFT                           16
841 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_WIDTH_MASK                            0x0fff0000
842 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_POLARITY_SHIFT                        28
843 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_VSYNC_POLARITY_MASK                         0xf0000000
844 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE(x)                                (0x0000038c+((x)*16))
845 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE__SIZE                             0x00000002
846 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_WIDTH_SHIFT                      0
847 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_WIDTH_MASK                       0x0000ffff
848 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_HEIGHT_SHIFT                     16
849 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_HEIGHT_MASK                      0x0fff0000
850 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_NOTIFY_SHIFT                     28
851 #define   NV03_VIDEO_LUT_CURSOR_DAC_SET_DAC_TOTAL_SIZE_NOTIFY_MASK                      0xf0000000
852 #define  NV03_VIDEO_LUT_CURSOR_DAC_SET_PIXEL_CLOCK                                      0x000003a0
853
854
855 #define NV03_DX3_TEXTURED_TRIANGLE                                                      0x00000048
856
857 #define  NV03_DX3_TEXTURED_TRIANGLE_NOP                                                 0x00000100
858 #define  NV03_DX3_TEXTURED_TRIANGLE_NOTIFY                                              0x00000104
859 #define  NV03_DX3_TEXTURED_TRIANGLE_PATCH                                               0x0000010c
860 #define  NV03_DX3_TEXTURED_TRIANGLE_DMA_NOTIFY                                          0x00000180
861 #define  NV03_DX3_TEXTURED_TRIANGLE_DMA_TEXTURE                                         0x00000184
862 #define  NV03_DX3_TEXTURED_TRIANGLE_CLIP_RECTANGLE                                      0x00000188
863 #define  NV03_DX3_TEXTURED_TRIANGLE_SURFACE                                             0x0000018c
864 #define  NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_OFFSET                                      0x00000304
865 #define  NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT                                      0x00000308
866 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_SHIFT                0
867 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_MASK                 0x0000ffff
868 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_SHIFT              16
869 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_MASK               0x000f0000
870 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_SHIFT                         20
871 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_MASK                          0x00f00000
872 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_SHIFT                      24
873 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_MASK                       0x0f000000
874 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_SHIFT                      28
875 #define   NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_MASK                       0xf0000000
876 #define  NV03_DX3_TEXTURED_TRIANGLE_FILTER                                              0x0000030c
877 #define   NV03_DX3_TEXTURED_TRIANGLE_FILTER_SPREAD_X_SHIFT                              0
878 #define   NV03_DX3_TEXTURED_TRIANGLE_FILTER_SPREAD_X_MASK                               0x0000001f
879 #define   NV03_DX3_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_SHIFT                              8
880 #define   NV03_DX3_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_MASK                               0x00001f00
881 #define   NV03_DX3_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_SHIFT                           16
882 #define   NV03_DX3_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_MASK                            0x00ff0000
883 #define  NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR                                           0x00000310
884 #define   NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_B_SHIFT                                  0
885 #define   NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_B_MASK                                   0x000000ff
886 #define   NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_G_SHIFT                                  8
887 #define   NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_G_MASK                                   0x0000ff00
888 #define   NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_R_SHIFT                                  16
889 #define   NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_R_MASK                                   0x00ff0000
890 #define  NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT                                         0x00000314
891 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_SHIFT                     0
892 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_MASK                      0x0000000f
893 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_SHIFT                           4
894 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_MASK                            0x00000030
895 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_SHIFT                           6
896 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_MASK                            0x000000c0
897 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_SHIFT                     8
898 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_MASK                      0x00000f00
899 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_SHIFT                          12
900 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_MASK                           0x00007000
901 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_PERSPECTIVE_ENABLE                   (1 << 15)
902 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_SHIFT                           16
903 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_MASK                            0x000f0000
904 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_SHIFT                   20
905 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_MASK                    0x00f00000
906 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_SHIFT               24
907 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_MASK                0x07000000
908 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_SHIFT                              27
909 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_MASK                               0x18000000
910 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_BETA                                   (1 << 29)
911 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_DST_BLEND                              (1 << 30)
912 #define   NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_SRC_BLEND                              (1 << 31)
913 #define  NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL                                       0x00000318
914 #define   NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_SHIFT                      0
915 #define   NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_MASK                       0x000000ff
916 #define   NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_SHIFT                     8
917 #define   NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_MASK                      0xffffff00
918 #define  NV03_DX3_TEXTURED_TRIANGLE_SPECULAR(x)                                         (0x00001000+((x)*32))
919 #define  NV03_DX3_TEXTURED_TRIANGLE_SPECULAR__SIZE                                      0x00000040
920 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I0_SHIFT                                  0
921 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I0_MASK                                   0x0000000f
922 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I1_SHIFT                                  4
923 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I1_MASK                                   0x000000f0
924 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I2_SHIFT                                  8
925 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I2_MASK                                   0x00000f00
926 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I3_SHIFT                                  12
927 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I3_MASK                                   0x0000f000
928 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I4_SHIFT                                  16
929 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I4_MASK                                   0x000f0000
930 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I5_SHIFT                                  20
931 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_I5_MASK                                   0x00f00000
932 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_FOG_SHIFT                                 24
933 #define   NV03_DX3_TEXTURED_TRIANGLE_SPECULAR_FOG_MASK                                  0xff000000
934 #define  NV03_DX3_TEXTURED_TRIANGLE_COLOR(x)                                            (0x00001004+((x)*32))
935 #define  NV03_DX3_TEXTURED_TRIANGLE_COLOR__SIZE                                         0x00000040
936 #define  NV03_DX3_TEXTURED_TRIANGLE_X(x)                                                (0x00001008+((x)*32))
937 #define  NV03_DX3_TEXTURED_TRIANGLE_X__SIZE                                             0x00000040
938 #define  NV03_DX3_TEXTURED_TRIANGLE_Y(x)                                                (0x0000100c+((x)*32))
939 #define  NV03_DX3_TEXTURED_TRIANGLE_Y__SIZE                                             0x00000040
940 #define  NV03_DX3_TEXTURED_TRIANGLE_Z(x)                                                (0x00001010+((x)*32))
941 #define  NV03_DX3_TEXTURED_TRIANGLE_Z__SIZE                                             0x00000040
942 #define  NV03_DX3_TEXTURED_TRIANGLE_M(x)                                                (0x00001014+((x)*32))
943 #define  NV03_DX3_TEXTURED_TRIANGLE_M__SIZE                                             0x00000040
944 #define  NV03_DX3_TEXTURED_TRIANGLE_U(x)                                                (0x00001018+((x)*32))
945 #define  NV03_DX3_TEXTURED_TRIANGLE_U__SIZE                                             0x00000040
946 #define  NV03_DX3_TEXTURED_TRIANGLE_V(x)                                                (0x0000101c+((x)*32))
947 #define  NV03_DX3_TEXTURED_TRIANGLE_V__SIZE                                             0x00000040
948
949
950 #define NV04_GDI_RECTANGLE_TEXT                                                         0x0000004a
951
952 #define  NV04_GDI_RECTANGLE_TEXT_NOP                                                    0x00000100
953 #define  NV04_GDI_RECTANGLE_TEXT_NOTIFY                                                 0x00000104
954 #define  NV04_GDI_RECTANGLE_TEXT_PATCH                                                  0x0000010c
955 #define  NV04_GDI_RECTANGLE_TEXT_PM_TRIGGER                                             0x00000140
956 #define  NV04_GDI_RECTANGLE_TEXT_DMA_NOTIFY                                             0x00000180
957 #define  NV04_GDI_RECTANGLE_TEXT_DMA_FONTS                                              0x00000184
958 #define  NV04_GDI_RECTANGLE_TEXT_PATTERN                                                0x00000188
959 #define  NV04_GDI_RECTANGLE_TEXT_ROP                                                    0x0000018c
960 #define  NV04_GDI_RECTANGLE_TEXT_BETA1                                                  0x00000190
961 #define  NV04_GDI_RECTANGLE_TEXT_BETA4                                                  0x00000194
962 #define  NV04_GDI_RECTANGLE_TEXT_SURFACE                                                0x00000198
963 #define  NV04_GDI_RECTANGLE_TEXT_OPERATION                                              0x000002fc
964 #define   NV04_GDI_RECTANGLE_TEXT_OPERATION_SRCCOPY_AND                                 0x00000000
965 #define   NV04_GDI_RECTANGLE_TEXT_OPERATION_ROP_AND                                     0x00000001
966 #define   NV04_GDI_RECTANGLE_TEXT_OPERATION_BLEND_AND                                   0x00000002
967 #define   NV04_GDI_RECTANGLE_TEXT_OPERATION_SRCCOPY                                     0x00000003
968 #define   NV04_GDI_RECTANGLE_TEXT_OPERATION_SRCCOPY_PREMULT                             0x00000004
969 #define   NV04_GDI_RECTANGLE_TEXT_OPERATION_BLEND_PREMULT                               0x00000005
970 #define  NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT                                           0x00000300
971 #define   NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT_A16R5G6B5                                0x00000001
972 #define   NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT_X16A1R5G5B5                              0x00000002
973 #define   NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT_A8R8G8B8                                 0x00000003
974 #define  NV04_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT                                      0x00000304
975 #define   NV04_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT_CGA6                                0x00000001
976 #define   NV04_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT_LE                                  0x00000002
977 #define  NV04_GDI_RECTANGLE_TEXT_COLOR1_A                                               0x000003fc
978 #define  NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT(x)                           (0x00000400+((x)*8))
979 #define  NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT__SIZE                        0x00000020
980 #define   NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_SHIFT                     0
981 #define   NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_MASK                      0x0000ffff
982 #define   NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_SHIFT                     16
983 #define   NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_MASK                      0xffff0000
984 #define  NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE(x)                            (0x00000404+((x)*8))
985 #define  NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE__SIZE                         0x00000020
986 #define   NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_SHIFT                      0
987 #define   NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_MASK                       0x0000ffff
988 #define   NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_SHIFT                      16
989 #define   NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_MASK                       0xffff0000
990 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0                                          0x000005f4
991 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_L_SHIFT                                 0
992 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_L_MASK                                  0x0000ffff
993 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_T_SHIFT                                 16
994 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT0_T_MASK                                  0xffff0000
995 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1                                          0x000005f8
996 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_R_SHIFT                                 0
997 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_R_MASK                                  0x0000ffff
998 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_B_SHIFT                                 16
999 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_B_POINT1_B_MASK                                  0xffff0000
1000 #define  NV04_GDI_RECTANGLE_TEXT_COLOR1_B                                               0x000005fc
1001 #define  NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0(x)                           (0x00000600+((x)*8))
1002 #define  NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0__SIZE                        0x00000020
1003 #define   NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_SHIFT                     0
1004 #define   NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_MASK                      0x0000ffff
1005 #define   NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_SHIFT                     16
1006 #define   NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_MASK                      0xffff0000
1007 #define  NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1(x)                           (0x00000604+((x)*8))
1008 #define  NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1__SIZE                        0x00000020
1009 #define   NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_SHIFT                     0
1010 #define   NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_MASK                      0x0000ffff
1011 #define   NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_SHIFT                     16
1012 #define   NV04_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_MASK                      0xffff0000
1013 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0                                          0x000007ec
1014 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_SHIFT                                 0
1015 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_MASK                                  0x0000ffff
1016 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_SHIFT                                 16
1017 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_MASK                                  0xffff0000
1018 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1                                          0x000007f0
1019 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_SHIFT                                 0
1020 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_MASK                                  0x0000ffff
1021 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_SHIFT                                 16
1022 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_MASK                                  0xffff0000
1023 #define  NV04_GDI_RECTANGLE_TEXT_COLOR1_C                                               0x000007f4
1024 #define  NV04_GDI_RECTANGLE_TEXT_SIZE_C                                                 0x000007f8
1025 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_C_W_SHIFT                                        0
1026 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_C_W_MASK                                         0x0000ffff
1027 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_C_H_SHIFT                                        16
1028 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_C_H_MASK                                         0xffff0000
1029 #define  NV04_GDI_RECTANGLE_TEXT_POINT_C                                                0x000007fc
1030 #define   NV04_GDI_RECTANGLE_TEXT_POINT_C_X_SHIFT                                       0
1031 #define   NV04_GDI_RECTANGLE_TEXT_POINT_C_X_MASK                                        0x0000ffff
1032 #define   NV04_GDI_RECTANGLE_TEXT_POINT_C_Y_SHIFT                                       16
1033 #define   NV04_GDI_RECTANGLE_TEXT_POINT_C_Y_MASK                                        0xffff0000
1034 #define  NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C(x)                                 (0x00000800+((x)*4))
1035 #define  NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C__SIZE                              0x00000080
1036 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0                                          0x00000be4
1037 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_SHIFT                                 0
1038 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_MASK                                  0x0000ffff
1039 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_SHIFT                                 16
1040 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_MASK                                  0xffff0000
1041 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1                                          0x00000be8
1042 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_SHIFT                                 0
1043 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_MASK                                  0x0000ffff
1044 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_SHIFT                                 16
1045 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_MASK                                  0xffff0000
1046 #define  NV04_GDI_RECTANGLE_TEXT_COLOR0_E                                               0x00000bec
1047 #define  NV04_GDI_RECTANGLE_TEXT_COLOR1_E                                               0x00000bf0
1048 #define  NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E                                              0x00000bf4
1049 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_SHIFT                                     0
1050 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_MASK                                      0x0000ffff
1051 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_SHIFT                                     16
1052 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_MASK                                      0xffff0000
1053 #define  NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E                                             0x00000bf8
1054 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_SHIFT                                    0
1055 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_MASK                                     0x0000ffff
1056 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_SHIFT                                    16
1057 #define   NV04_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_MASK                                     0xffff0000
1058 #define  NV04_GDI_RECTANGLE_TEXT_POINT_E                                                0x00000bfc
1059 #define   NV04_GDI_RECTANGLE_TEXT_POINT_E_X_SHIFT                                       0
1060 #define   NV04_GDI_RECTANGLE_TEXT_POINT_E_X_MASK                                        0x0000ffff
1061 #define   NV04_GDI_RECTANGLE_TEXT_POINT_E_Y_SHIFT                                       16
1062 #define   NV04_GDI_RECTANGLE_TEXT_POINT_E_Y_MASK                                        0xffff0000
1063 #define  NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E(x)                                (0x00000c00+((x)*4))
1064 #define  NV04_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E__SIZE                             0x00000080
1065 #define  NV04_GDI_RECTANGLE_TEXT_FONT_F                                                 0x00000ff0
1066 #define   NV04_GDI_RECTANGLE_TEXT_FONT_F_OFFSET_SHIFT                                   0
1067 #define   NV04_GDI_RECTANGLE_TEXT_FONT_F_OFFSET_MASK                                    0x0fffffff
1068 #define   NV04_GDI_RECTANGLE_TEXT_FONT_F_PITCH_SHIFT                                    28
1069 #define   NV04_GDI_RECTANGLE_TEXT_FONT_F_PITCH_MASK                                     0xf0000000
1070 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0                                          0x00000ff4
1071 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_L_SHIFT                                 0
1072 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_L_MASK                                  0x0000ffff
1073 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_T_SHIFT                                 16
1074 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT0_T_MASK                                  0xffff0000
1075 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1                                          0x00000ff8
1076 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_R_SHIFT                                 0
1077 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_R_MASK                                  0x0000ffff
1078 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_B_SHIFT                                 16
1079 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_F_POINT1_B_MASK                                  0xffff0000
1080 #define  NV04_GDI_RECTANGLE_TEXT_COLOR1_F                                               0x00000ffc
1081 #define  NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F(x)                                  (0x00001000+((x)*4))
1082 #define  NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F__SIZE                               0x00000100
1083 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_INDEX_SHIFT                        0
1084 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_INDEX_MASK                         0x000000ff
1085 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_X_SHIFT                            8
1086 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_X_MASK                             0x000fff00
1087 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_Y_SHIFT                            20
1088 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_F_Y_MASK                             0xfff00000
1089 #define  NV04_GDI_RECTANGLE_TEXT_FONT_G                                                 0x000017f0
1090 #define   NV04_GDI_RECTANGLE_TEXT_FONT_G_OFFSET_SHIFT                                   0
1091 #define   NV04_GDI_RECTANGLE_TEXT_FONT_G_OFFSET_MASK                                    0x0fffffff
1092 #define   NV04_GDI_RECTANGLE_TEXT_FONT_G_PITCH_SHIFT                                    28
1093 #define   NV04_GDI_RECTANGLE_TEXT_FONT_G_PITCH_MASK                                     0xf0000000
1094 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0                                          0x000017f4
1095 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_L_SHIFT                                 0
1096 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_L_MASK                                  0x0000ffff
1097 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_T_SHIFT                                 16
1098 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT0_T_MASK                                  0xffff0000
1099 #define  NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1                                          0x000017f8
1100 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_R_SHIFT                                 0
1101 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_R_MASK                                  0x0000ffff
1102 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_B_SHIFT                                 16
1103 #define   NV04_GDI_RECTANGLE_TEXT_CLIP_G_POINT1_B_MASK                                  0xffff0000
1104 #define  NV04_GDI_RECTANGLE_TEXT_COLOR1_G                                               0x000017fc
1105 #define  NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT(x)                            (0x00001800+((x)*8))
1106 #define  NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT__SIZE                         0x00000100
1107 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_X_SHIFT                      0
1108 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_X_MASK                       0x0000ffff
1109 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_Y_SHIFT                      16
1110 #define   NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_POINT_Y_MASK                       0xffff0000
1111 #define  NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_INDEX(x)                            (0x00001804+((x)*8))
1112 #define  NV04_GDI_RECTANGLE_TEXT_CHARACTER_COLOR1_G_INDEX__SIZE                         0x00000100
1113
1114
1115 #define NV03_GDI_RECTANGLE_TEXT                                                         0x0000004b
1116
1117 #define  NV03_GDI_RECTANGLE_TEXT_NOP                                                    0x00000100
1118 #define  NV03_GDI_RECTANGLE_TEXT_NOTIFY                                                 0x00000104
1119 #define  NV03_GDI_RECTANGLE_TEXT_DMA_NOTIFY                                             0x00000180
1120 #define  NV03_GDI_RECTANGLE_TEXT_PATTERN                                                0x00000184
1121 #define  NV03_GDI_RECTANGLE_TEXT_ROP                                                    0x00000188
1122 #define  NV03_GDI_RECTANGLE_TEXT_BETA1                                                  0x0000018c
1123 #define  NV03_GDI_RECTANGLE_TEXT_SURFACE                                                0x00000190
1124 #define  NV03_GDI_RECTANGLE_TEXT_OPERATION                                              0x000002fc
1125 #define  NV03_GDI_RECTANGLE_TEXT_COLOR_FORMAT                                           0x00000300
1126 #define  NV03_GDI_RECTANGLE_TEXT_MONOCHROME_FORMAT                                      0x00000304
1127 #define  NV03_GDI_RECTANGLE_TEXT_COLOR1_A                                               0x000003fc
1128 #define  NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT                              0x00000400
1129 #define   NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_SHIFT                     0
1130 #define   NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_Y_MASK                      0x0000ffff
1131 #define   NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_SHIFT                     16
1132 #define   NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT_X_MASK                      0xffff0000
1133 #define  NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE                               0x00000404
1134 #define   NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_SHIFT                      0
1135 #define   NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_H_MASK                       0x0000ffff
1136 #define   NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_SHIFT                      16
1137 #define   NV03_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_SIZE_W_MASK                       0xffff0000
1138 #define  NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B                                          0x000007f4
1139 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_L_SHIFT                                 0
1140 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_L_MASK                                  0x0000ffff
1141 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_T_SHIFT                                 16
1142 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_POINT0_B_T_MASK                                  0xffff0000
1143 #define  NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B                                          0x000007f8
1144 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_R_SHIFT                                 0
1145 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_R_MASK                                  0x0000ffff
1146 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_B_SHIFT                                 16
1147 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_POINT1_B_B_MASK                                  0xffff0000
1148 #define  NV03_GDI_RECTANGLE_TEXT_COLOR1_B                                               0x000007fc
1149 #define  NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0                              0x00000800
1150 #define   NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_SHIFT                     0
1151 #define   NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_L_MASK                      0x0000ffff
1152 #define   NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_SHIFT                     16
1153 #define   NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_0_T_MASK                      0xffff0000
1154 #define  NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1                              0x00000804
1155 #define   NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_SHIFT                     0
1156 #define   NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_R_MASK                      0x0000ffff
1157 #define   NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_SHIFT                     16
1158 #define   NV03_GDI_RECTANGLE_TEXT_CLIPPED_RECTANGLE_POINT_1_B_MASK                      0xffff0000
1159 #define  NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0                                          0x00000bec
1160 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_SHIFT                                 0
1161 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_L_MASK                                  0x0000ffff
1162 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_SHIFT                                 16
1163 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT0_T_MASK                                  0xffff0000
1164 #define  NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1                                          0x00000bf0
1165 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_SHIFT                                 0
1166 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_R_MASK                                  0x0000ffff
1167 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_SHIFT                                 16
1168 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_C_POINT1_B_MASK                                  0xffff0000
1169 #define  NV03_GDI_RECTANGLE_TEXT_COLOR1_C                                               0x00000bf4
1170 #define  NV03_GDI_RECTANGLE_TEXT_SIZE_C                                                 0x00000bf8
1171 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_C_W_SHIFT                                        0
1172 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_C_W_MASK                                         0x0000ffff
1173 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_C_H_SHIFT                                        16
1174 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_C_H_MASK                                         0xffff0000
1175 #define  NV03_GDI_RECTANGLE_TEXT_POINT_C                                                0x00000bfc
1176 #define   NV03_GDI_RECTANGLE_TEXT_POINT_C_X_SHIFT                                       0
1177 #define   NV03_GDI_RECTANGLE_TEXT_POINT_C_X_MASK                                        0x0000ffff
1178 #define   NV03_GDI_RECTANGLE_TEXT_POINT_C_Y_SHIFT                                       16
1179 #define   NV03_GDI_RECTANGLE_TEXT_POINT_C_Y_MASK                                        0xffff0000
1180 #define  NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C(x)                                 (0x00000c00+((x)*4))
1181 #define  NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_C__SIZE                              0x00000020
1182 #define  NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0                                          0x00000fe8
1183 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_L_SHIFT                                 0
1184 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_L_MASK                                  0x0000ffff
1185 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_T_SHIFT                                 16
1186 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT0_T_MASK                                  0xffff0000
1187 #define  NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1                                          0x00000fec
1188 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_R_SHIFT                                 0
1189 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_R_MASK                                  0x0000ffff
1190 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_B_SHIFT                                 16
1191 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_D_POINT1_B_MASK                                  0xffff0000
1192 #define  NV03_GDI_RECTANGLE_TEXT_COLOR1_D                                               0x00000ff0
1193 #define  NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D                                              0x00000ff4
1194 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_W_SHIFT                                     0
1195 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_W_MASK                                      0x0000ffff
1196 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_H_SHIFT                                     16
1197 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_IN_D_H_MASK                                      0xffff0000
1198 #define  NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D                                             0x00000ff8
1199 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_W_SHIFT                                    0
1200 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_W_MASK                                     0x0000ffff
1201 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_H_SHIFT                                    16
1202 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_D_H_MASK                                     0xffff0000
1203 #define  NV03_GDI_RECTANGLE_TEXT_POINT_D                                                0x00000ffc
1204 #define   NV03_GDI_RECTANGLE_TEXT_POINT_D_X_SHIFT                                       0
1205 #define   NV03_GDI_RECTANGLE_TEXT_POINT_D_X_MASK                                        0x0000ffff
1206 #define   NV03_GDI_RECTANGLE_TEXT_POINT_D_Y_SHIFT                                       16
1207 #define   NV03_GDI_RECTANGLE_TEXT_POINT_D_Y_MASK                                        0xffff0000
1208 #define  NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_D(x)                                 (0x00001000+((x)*4))
1209 #define  NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR1_D__SIZE                              0x00000020
1210 #define  NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0                                          0x000013e4
1211 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_SHIFT                                 0
1212 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_L_MASK                                  0x0000ffff
1213 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_SHIFT                                 16
1214 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT0_T_MASK                                  0xffff0000
1215 #define  NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1                                          0x000013e8
1216 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_SHIFT                                 0
1217 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_R_MASK                                  0x0000ffff
1218 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_SHIFT                                 16
1219 #define   NV03_GDI_RECTANGLE_TEXT_CLIP_E_POINT1_B_MASK                                  0xffff0000
1220 #define  NV03_GDI_RECTANGLE_TEXT_COLOR0_E                                               0x000013ec
1221 #define  NV03_GDI_RECTANGLE_TEXT_COLOR1_E                                               0x000013f0
1222 #define  NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E                                              0x000013f4
1223 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_SHIFT                                     0
1224 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_W_MASK                                      0x0000ffff
1225 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_SHIFT                                     16
1226 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_IN_E_H_MASK                                      0xffff0000
1227 #define  NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E                                             0x000013f8
1228 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_SHIFT                                    0
1229 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_W_MASK                                     0x0000ffff
1230 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_SHIFT                                    16
1231 #define   NV03_GDI_RECTANGLE_TEXT_SIZE_OUT_E_H_MASK                                     0xffff0000
1232 #define  NV03_GDI_RECTANGLE_TEXT_POINT_E                                                0x000013fc
1233 #define   NV03_GDI_RECTANGLE_TEXT_POINT_E_X_SHIFT                                       0
1234 #define   NV03_GDI_RECTANGLE_TEXT_POINT_E_X_MASK                                        0x0000ffff
1235 #define   NV03_GDI_RECTANGLE_TEXT_POINT_E_Y_SHIFT                                       16
1236 #define   NV03_GDI_RECTANGLE_TEXT_POINT_E_Y_MASK                                        0xffff0000
1237 #define  NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E(x)                                (0x00001400+((x)*4))
1238 #define  NV03_GDI_RECTANGLE_TEXT_MONOCHROME_COLOR01_E__SIZE                             0x00000020
1239
1240
1241 #define NV04_SWIZZLED_SURFACE                                                           0x00000052
1242
1243 #define  NV04_SWIZZLED_SURFACE_NOP                                                      0x00000100
1244 #define  NV04_SWIZZLED_SURFACE_NOTIFY                                                   0x00000104
1245 #define  NV04_SWIZZLED_SURFACE_DMA_NOTIFY                                               0x00000180
1246 #define  NV04_SWIZZLED_SURFACE_DMA_IMAGE                                                0x00000184
1247 #define  NV04_SWIZZLED_SURFACE_FORMAT                                                   0x00000300
1248 #define   NV04_SWIZZLED_SURFACE_FORMAT_COLOR_SHIFT                                      0
1249 #define   NV04_SWIZZLED_SURFACE_FORMAT_COLOR_MASK                                       0x000000ff
1250 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_Y8                                        0x00000001
1251 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1R5G5B5_Z1R5G5B5                         0x00000002
1252 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1R5G5B5_X1R5G5B5                         0x00000003
1253 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_R5G6B5                                    0x00000004
1254 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_Y16                                       0x00000005
1255 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X8R8G8B8_Z8R8G8B8                         0x00000006
1256 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X8R8G8B8_X8R8G8B8                         0x00000007
1257 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1A7R8G8B8_Z1A7R8G8B8                     0x00000008
1258 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_X1A7R8G8B8_X1A7R8G8B8                     0x00000009
1259 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_A8R8G8B8                                  0x0000000a
1260 #define    NV04_SWIZZLED_SURFACE_FORMAT_COLOR_Y32                                       0x0000000b
1261 #define   NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_U_SHIFT                                16
1262 #define   NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_U_MASK                                 0x00ff0000
1263 #define   NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_V_SHIFT                                24
1264 #define   NV04_SWIZZLED_SURFACE_FORMAT_BASE_SIZE_V_MASK                                 0xff000000
1265 #define  NV04_SWIZZLED_SURFACE_OFFSET                                                   0x00000304
1266
1267
1268 #define NV04_CONTEXT_SURFACES_3D                                                        0x00000053
1269
1270 #define  NV04_CONTEXT_SURFACES_3D_NOP                                                   0x00000100
1271 #define  NV04_CONTEXT_SURFACES_3D_NOTIFY                                                0x00000104
1272 #define  NV04_CONTEXT_SURFACES_3D_DMA_NOTIFY                                            0x00000180
1273 #define  NV04_CONTEXT_SURFACES_3D_DMA_COLOR                                             0x00000184
1274 #define  NV04_CONTEXT_SURFACES_3D_DMA_ZETA                                              0x00000188
1275 #define  NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL                                       0x000002f8
1276 #define   NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_X_SHIFT                              0
1277 #define   NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_X_MASK                               0x0000ffff
1278 #define   NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_W_SHIFT                              16
1279 #define   NV04_CONTEXT_SURFACES_3D_CLIP_HORIZONTAL_W_MASK                               0xffff0000
1280 #define  NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL                                         0x000002fc
1281 #define   NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_Y_SHIFT                                0
1282 #define   NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_Y_MASK                                 0x0000ffff
1283 #define   NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_H_SHIFT                                16
1284 #define   NV04_CONTEXT_SURFACES_3D_CLIP_VERTICAL_H_MASK                                 0xffff0000
1285 #define  NV04_CONTEXT_SURFACES_3D_FORMAT                                                0x00000300
1286 #define   NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_SHIFT                                   0
1287 #define   NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_MASK                                    0x000000ff
1288 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1R5G5B5_Z1R5G5B5                      0x00000001
1289 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1R5G5B5_X1R5G5B5                      0x00000002
1290 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_R5G6B5                                 0x00000003
1291 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X8R8G8B8_Z8R8G8B8                      0x00000004
1292 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X8R8G8B8_X8R8G8B8                      0x00000005
1293 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1A7R8G8B8_Z1A7R8G8B8                  0x00000006
1294 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_X1A7R8G8B8_X1A7R8G8B8                  0x00000007
1295 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_COLOR_A8R8G8B8                               0x00000008
1296 #define   NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_SHIFT                                    8
1297 #define   NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_MASK                                     0x0000ff00
1298 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_PITCH                                   0x00000100
1299 #define    NV04_CONTEXT_SURFACES_3D_FORMAT_TYPE_SWIZZLE                                 0x00000200
1300 #define   NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_U_SHIFT                             16
1301 #define   NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_U_MASK                              0x00ff0000
1302 #define   NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_V_SHIFT                             24
1303 #define   NV04_CONTEXT_SURFACES_3D_FORMAT_BASE_SIZE_V_MASK                              0xff000000
1304 #define  NV04_CONTEXT_SURFACES_3D_CLIP_SIZE                                             0x00000304
1305 #define   NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_W_SHIFT                                    0
1306 #define   NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_W_MASK                                     0x0000ffff
1307 #define   NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_H_SHIFT                                    16
1308 #define   NV04_CONTEXT_SURFACES_3D_CLIP_SIZE_H_MASK                                     0xffff0000
1309 #define  NV04_CONTEXT_SURFACES_3D_PITCH                                                 0x00000308
1310 #define   NV04_CONTEXT_SURFACES_3D_PITCH_COLOR_SHIFT                                    0
1311 #define   NV04_CONTEXT_SURFACES_3D_PITCH_COLOR_MASK                                     0x0000ffff
1312 #define   NV04_CONTEXT_SURFACES_3D_PITCH_ZETA_SHIFT                                     16
1313 #define   NV04_CONTEXT_SURFACES_3D_PITCH_ZETA_MASK                                      0xffff0000
1314 #define  NV04_CONTEXT_SURFACES_3D_OFFSET_COLOR                                          0x0000030c
1315 #define  NV04_CONTEXT_SURFACES_3D_OFFSET_ZETA                                           0x00000310
1316
1317
1318 #define NV04_DX5_TEXTURED_TRIANGLE                                                      0x00000054
1319
1320 #define  NV04_DX5_TEXTURED_TRIANGLE_NOP                                                 0x00000100
1321 #define  NV04_DX5_TEXTURED_TRIANGLE_NOTIFY                                              0x00000104
1322 #define  NV04_DX5_TEXTURED_TRIANGLE_DMA_NOTIFY                                          0x00000180
1323 #define  NV04_DX5_TEXTURED_TRIANGLE_DMA_A                                               0x00000184
1324 #define  NV04_DX5_TEXTURED_TRIANGLE_DMA_B                                               0x00000188
1325 #define  NV04_DX5_TEXTURED_TRIANGLE_SURFACE                                             0x0000018c
1326 #define  NV04_DX5_TEXTURED_TRIANGLE_COLORKEY                                            0x00000300
1327 #define  NV04_DX5_TEXTURED_TRIANGLE_OFFSET                                              0x00000304
1328 #define  NV04_DX5_TEXTURED_TRIANGLE_FORMAT                                              0x00000308
1329 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_DMA_SHIFT                                   0
1330 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_DMA_MASK                                    0x00000003
1331 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_SHIFT                       2
1332 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_MASK                        0x0000000c
1333 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT                            4
1334 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK                             0x00000030
1335 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CENTER                          0x00000010
1336 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CORNER                          0x00000020
1337 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT                            6
1338 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_MASK                             0x000000c0
1339 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CENTER                          0x00000040
1340 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CORNER                          0x00000080
1341 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_SHIFT                                 8
1342 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_MASK                                  0x00000f00
1343 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_Y8                                   0x00000100
1344 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_A1R5G5B5                             0x00000200
1345 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_X1R5G5B5                             0x00000300
1346 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_A4R4G4B4                             0x00000400
1347 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_R5G6B5                               0x00000500
1348 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_A8R8G8B8                             0x00000600
1349 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_X8R8G8B8                             0x00000700
1350 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT                         12
1351 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK                          0x0000f000
1352 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT                           16
1353 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_MASK                            0x000f0000
1354 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT                           20
1355 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_MASK                            0x00f00000
1356 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_SHIFT                              24
1357 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MASK                               0x07000000
1358 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_REPEAT                            0x01000000
1359 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MIRRORED_REPEAT                   0x02000000
1360 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_EDGE                     0x03000000
1361 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_BORDER                   0x04000000
1362 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP                             0x05000000
1363 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_WRAPU                                       (1 << 27)
1364 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_SHIFT                              28
1365 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MASK                               0x70000000
1366 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_REPEAT                            0x10000000
1367 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MIRRORED_REPEAT                   0x20000000
1368 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_EDGE                     0x30000000
1369 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_BORDER                   0x40000000
1370 #define    NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP                             0x50000000
1371 #define   NV04_DX5_TEXTURED_TRIANGLE_FORMAT_WRAPV                                       (1 << 31)
1372 #define  NV04_DX5_TEXTURED_TRIANGLE_FILTER                                              0x0000030c
1373 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT                         0
1374 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK                          0x000000ff
1375 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT                         8
1376 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK                          0x00007f00
1377 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE                        (1 << 15)
1378 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT                        16
1379 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK                         0x00ff0000
1380 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_SHIFT                                24
1381 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_MASK                                 0x07000000
1382 #define    NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST                             0x01000000
1383 #define    NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR                              0x02000000
1384 #define    NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST              0x03000000
1385 #define    NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST               0x04000000
1386 #define    NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR               0x05000000
1387 #define    NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR                0x06000000
1388 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE                   (1 << 27)
1389 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_MAGNIFY_SHIFT                               28
1390 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_MAGNIFY_MASK                                0x70000000
1391 #define    NV04_DX5_TEXTURED_TRIANGLE_FILTER_MAGNIFY_NEAREST                            0x10000000
1392 #define    NV04_DX5_TEXTURED_TRIANGLE_FILTER_MAGNIFY_LINEAR                             0x20000000
1393 #define   NV04_DX5_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE                  (1 << 31)
1394 #define  NV04_DX5_TEXTURED_TRIANGLE_BLEND                                               0x00000310
1395 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_SHIFT                            0
1396 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_MASK                             0x0000000f
1397 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_MASK_BIT_SHIFT                               4
1398 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_MASK_BIT_MASK                                0x00000030
1399 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_SHIFT                             6
1400 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_MASK                              0x000000c0
1401 #define    NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_FLAT                             0x00000040
1402 #define    NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_GOURAUD                          0x00000080
1403 #define    NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_PHONG                            0x000000c0
1404 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE_SHIFT             8
1405 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE_MASK              0x00000f00
1406 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE_SHIFT                        12
1407 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE_MASK                         0x0000f000
1408 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_FOG_ENABLE_SHIFT                             16
1409 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_FOG_ENABLE_MASK                              0x000f0000
1410 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_ALPHA_ENABLE_SHIFT                           20
1411 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_ALPHA_ENABLE_MASK                            0x00f00000
1412 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_SRC_SHIFT                                    24
1413 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_SRC_MASK                                     0x0f000000
1414 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_DST_SHIFT                                    28
1415 #define   NV04_DX5_TEXTURED_TRIANGLE_BLEND_DST_MASK                                     0xf0000000
1416 #define  NV04_DX5_TEXTURED_TRIANGLE_CONTROL                                             0x00000314
1417 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_SHIFT                            0
1418 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_MASK                             0x000000ff
1419 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_SHIFT                           8
1420 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_MASK                            0x00000f00
1421 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_TEST_ENABLE                          (1 << 12)
1422 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ORIGIN                                     (1 << 13)
1423 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_ENABLE_SHIFT                             14
1424 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_ENABLE_MASK                              0x0000c000
1425 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_SHIFT                               16
1426 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_MASK                                0x000f0000
1427 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_SHIFT                            20
1428 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_MASK                             0x00300000
1429 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_DITHER_ENABLE                              (1 << 22)
1430 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_PERSPECTIVE_ENABLE                       (1 << 23)
1431 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_WRITE_ENABLE_SHIFT                       24
1432 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_WRITE_ENABLE_MASK                        0x3f000000
1433 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_SHIFT                             30
1434 #define   NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_MASK                              0xc0000000
1435 #define  NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR                                            0x00000318
1436 #define   NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_B_SHIFT                                   0
1437 #define   NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_B_MASK                                    0x000000ff
1438 #define   NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_G_SHIFT                                   8
1439 #define   NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_G_MASK                                    0x0000ff00
1440 #define   NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_R_SHIFT                                   16
1441 #define   NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_R_MASK                                    0x00ff0000
1442 #define   NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_A_SHIFT                                   24
1443 #define   NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_A_MASK                                    0xff000000
1444 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SX(x)                                      (0x00000400+((x)*32))
1445 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SX__SIZE                                   0x00000010
1446 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SY(x)                                      (0x00000404+((x)*32))
1447 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SY__SIZE                                   0x00000010
1448 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SZ(x)                                      (0x00000408+((x)*32))
1449 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SZ__SIZE                                   0x00000010
1450 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_RHW(x)                                     (0x0000040c+((x)*32))
1451 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_RHW__SIZE                                  0x00000010
1452 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR(x)                                   (0x00000410+((x)*32))
1453 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR__SIZE                                0x00000010
1454 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_SHIFT                             0
1455 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_MASK                              0x000000ff
1456 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_SHIFT                             8
1457 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_MASK                              0x0000ff00
1458 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_SHIFT                             16
1459 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_MASK                              0x00ff0000
1460 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_SHIFT                             24
1461 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_MASK                              0xff000000
1462 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR(x)                                (0x00000414+((x)*32))
1463 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR__SIZE                             0x00000010
1464 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_SHIFT                          0
1465 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_MASK                           0x000000ff
1466 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_SHIFT                          8
1467 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_MASK                           0x0000ff00
1468 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_SHIFT                          16
1469 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_MASK                           0x00ff0000
1470 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_SHIFT                        24
1471 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_MASK                         0xff000000
1472 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_TU(x)                                      (0x00000418+((x)*32))
1473 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_TU__SIZE                                   0x00000010
1474 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_TV(x)                                      (0x0000041c+((x)*32))
1475 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_TV__SIZE                                   0x00000010
1476 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE(x)                           (0x00000600+((x)*4))
1477 #define  NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE__SIZE                        0x00000040
1478 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I0_SHIFT                    0
1479 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I0_MASK                     0x0000000f
1480 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I1_SHIFT                    4
1481 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I1_MASK                     0x000000f0
1482 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I2_SHIFT                    8
1483 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I2_MASK                     0x00000f00
1484 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I3_SHIFT                    12
1485 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I3_MASK                     0x0000f000
1486 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I4_SHIFT                    16
1487 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I4_MASK                     0x000f0000
1488 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I5_SHIFT                    20
1489 #define   NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I5_MASK                     0x00f00000
1490
1491
1492 #define NV04_DX6_MULTITEX_TRIANGLE                                                      0x00000055
1493
1494 #define  NV04_DX6_MULTITEX_TRIANGLE_NOP                                                 0x00000100
1495 #define  NV04_DX6_MULTITEX_TRIANGLE_NOTIFY                                              0x00000104
1496 #define  NV04_DX6_MULTITEX_TRIANGLE_DMA_NOTIFY                                          0x00000180
1497 #define  NV04_DX6_MULTITEX_TRIANGLE_DMA_A                                               0x00000184
1498 #define  NV04_DX6_MULTITEX_TRIANGLE_DMA_B                                               0x00000188
1499 #define  NV04_DX6_MULTITEX_TRIANGLE_SURFACE                                             0x0000018c
1500 #define  NV04_DX6_MULTITEX_TRIANGLE_OFFSET(x)                                           (0x00000308+((x)*4))
1501 #define  NV04_DX6_MULTITEX_TRIANGLE_OFFSET__SIZE                                        0x00000002
1502 #define  NV04_DX6_MULTITEX_TRIANGLE_FORMAT(x)                                           (0x00000310+((x)*4))
1503 #define  NV04_DX6_MULTITEX_TRIANGLE_FORMAT__SIZE                                        0x00000002
1504 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_DMA_SHIFT                                   0
1505 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_DMA_MASK                                    0x0000000f
1506 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT                            4
1507 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK                             0x00000030
1508 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT                            6
1509 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_MASK                             0x000000c0
1510 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_COLOR_SHIFT                                 8
1511 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_COLOR_MASK                                  0x00000f00
1512 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT                         12
1513 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK                          0x0000f000
1514 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT                           16
1515 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_MASK                            0x000f0000
1516 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT                           20
1517 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_MASK                            0x00f00000
1518 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_SHIFT                              24
1519 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_MASK                               0x07000000
1520 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_WRAPU                                       (1 << 27)
1521 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_SHIFT                              28
1522 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_MASK                               0x70000000
1523 #define   NV04_DX6_MULTITEX_TRIANGLE_FORMAT_WRAPV                                       (1 << 31)
1524 #define  NV04_DX6_MULTITEX_TRIANGLE_FILTER(x)                                           (0x00000318+((x)*4))
1525 #define  NV04_DX6_MULTITEX_TRIANGLE_FILTER__SIZE                                        0x00000002
1526 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT                         0
1527 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK                          0x000000ff
1528 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT                         8
1529 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK                          0x00007f00
1530 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE                        (1 << 15)
1531 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT                        16
1532 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK                         0x00ff0000
1533 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_MINIFY_SHIFT                                24
1534 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_MINIFY_MASK                                 0x07000000
1535 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE                   (1 << 27)
1536 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_MAGNIFY_SHIFT                               28
1537 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_MAGNIFY_MASK                                0x70000000
1538 #define   NV04_DX6_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE                  (1 << 31)
1539 #define  NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA                                     0x00000320
1540 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_INVERSE0                           (1 <<  0)
1541 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ALPHA0                             (1 <<  1)
1542 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT0_SHIFT                    2
1543 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT0_MASK                     0x000000fc
1544 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_INVERSE1                           (1 <<  8)
1545 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ALPHA1                             (1 <<  9)
1546 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT1_SHIFT                    10
1547 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT1_MASK                     0x0000fc00
1548 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_INVERSE2                           (1 << 16)
1549 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ALPHA2                             (1 << 17)
1550 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT2_SHIFT                    18
1551 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT2_MASK                     0x00fc0000
1552 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_INVERSE3                           (1 << 24)
1553 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ALPHA3                             (1 << 25)
1554 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT3_SHIFT                    26
1555 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT3_MASK                     0x1c000000
1556 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_OPERATION_SHIFT                    29
1557 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_OPERATION_MASK                     0xe0000000
1558 #define  NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR                                     0x00000324
1559 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_INVERSE0                           (1 <<  0)
1560 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ALPHA0                             (1 <<  1)
1561 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT0_SHIFT                    2
1562 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT0_MASK                     0x000000fc
1563 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_INVERSE1                           (1 <<  8)
1564 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ALPHA1                             (1 <<  9)
1565 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT1_SHIFT                    10
1566 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT1_MASK                     0x0000fc00
1567 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_INVERSE2                           (1 << 16)
1568 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ALPHA2                             (1 << 17)
1569 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT2_SHIFT                    18
1570 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT2_MASK                     0x00fc0000
1571 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_INVERSE3                           (1 << 24)
1572 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ALPHA3                             (1 << 25)
1573 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT3_SHIFT                    26
1574 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT3_MASK                     0x1c000000
1575 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_OPERATION_SHIFT                    29
1576 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_OPERATION_MASK                     0xe0000000
1577 #define  NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA                                     0x0000032c
1578 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_INVERSE0                           (1 <<  0)
1579 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ALPHA0                             (1 <<  1)
1580 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT0_SHIFT                    2
1581 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT0_MASK                     0x000000fc
1582 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_INVERSE1                           (1 <<  8)
1583 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ALPHA1                             (1 <<  9)
1584 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT1_SHIFT                    10
1585 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT1_MASK                     0x0000fc00
1586 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_INVERSE2                           (1 << 16)
1587 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ALPHA2                             (1 << 17)
1588 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT2_SHIFT                    18
1589 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT2_MASK                     0x00fc0000
1590 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_INVERSE3                           (1 << 24)
1591 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ALPHA3                             (1 << 25)
1592 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT3_SHIFT                    26
1593 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT3_MASK                     0x1c000000
1594 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_OPERATION_SHIFT                    29
1595 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_OPERATION_MASK                     0xe0000000
1596 #define  NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR                                     0x00000330
1597 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_INVERSE0                           (1 <<  0)
1598 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ALPHA0                             (1 <<  1)
1599 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT0_SHIFT                    2
1600 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT0_MASK                     0x000000fc
1601 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_INVERSE1                           (1 <<  8)
1602 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ALPHA1                             (1 <<  9)
1603 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT1_SHIFT                    10
1604 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT1_MASK                     0x0000fc00
1605 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_INVERSE2                           (1 << 16)
1606 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ALPHA2                             (1 << 17)
1607 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT2_SHIFT                    18
1608 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT2_MASK                     0x00fc0000
1609 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_INVERSE3                           (1 << 24)
1610 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ALPHA3                             (1 << 25)
1611 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT3_SHIFT                    26
1612 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT3_MASK                     0x1c000000
1613 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_OPERATION_SHIFT                    29
1614 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_OPERATION_MASK                     0xe0000000
1615 #define  NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR                                      0x00000334
1616 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_SHIFT                             0
1617 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_MASK                              0x000000ff
1618 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_SHIFT                             8
1619 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_MASK                              0x0000ff00
1620 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_SHIFT                             16
1621 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_MASK                              0x00ff0000
1622 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_SHIFT                             24
1623 #define   NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_MASK                              0xff000000
1624 #define  NV04_DX6_MULTITEX_TRIANGLE_BLEND                                               0x00000338
1625 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_MASK_BIT_SHIFT                               4
1626 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_MASK_BIT_MASK                                0x00000030
1627 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_SHIFT                             6
1628 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_MASK                              0x000000c0
1629 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE_SHIFT             8
1630 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE_MASK              0x00000f00
1631 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_SPECULAR_ENABLE_SHIFT                        12
1632 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_SPECULAR_ENABLE_MASK                         0x0000f000
1633 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_FOG_ENABLE_SHIFT                             16
1634 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_FOG_ENABLE_MASK                              0x000f0000
1635 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_ALPHA_ENABLE_SHIFT                           20
1636 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_ALPHA_ENABLE_MASK                            0x00f00000
1637 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_SRC_SHIFT                                    24
1638 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_SRC_MASK                                     0x0f000000
1639 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_DST_SHIFT                                    28
1640 #define   NV04_DX6_MULTITEX_TRIANGLE_BLEND_DST_MASK                                     0xf0000000
1641 #define  NV04_DX6_MULTITEX_TRIANGLE_CONTROL0                                            0x0000033c
1642 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_SHIFT                           0
1643 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_MASK                            0x000000ff
1644 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_SHIFT                          8
1645 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_MASK                           0x00000f00
1646 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_TEST_ENABLE                         (1 << 12)
1647 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ORIGIN                                    (1 << 13)
1648 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_ENABLE_SHIFT                            14
1649 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_ENABLE_MASK                             0x0000c000
1650 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_SHIFT                              16
1651 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_MASK                               0x000f0000
1652 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_SHIFT                           20
1653 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_MASK                            0x00300000
1654 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_DITHER_ENABLE                             (1 << 22)
1655 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_PERSPECTIVE_ENABLE                      (1 << 23)
1656 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_WRITE_ENABLE                            (1 << 24)
1657 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_STENCIL_WRITE_ENABLE                      (1 << 25)
1658 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_WRITE_ENABLE                        (1 << 26)
1659 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_RED_WRITE_ENABLE                          (1 << 27)
1660 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_GREEN_WRITE_ENABLE                        (1 << 28)
1661 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_BLUE_WRITE_ENABLE                         (1 << 29)
1662 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_SHIFT                            30
1663 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_MASK                             0xc0000000
1664 #define  NV04_DX6_MULTITEX_TRIANGLE_CONTROL1                                            0x00000340
1665 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_TEST_ENABLE_SHIFT                 0
1666 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_TEST_ENABLE_MASK                  0x0000000f
1667 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_SHIFT                        4
1668 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_MASK                         0x000000f0
1669 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_SHIFT                         8
1670 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_MASK                          0x0000ff00
1671 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_SHIFT                   16
1672 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_MASK                    0x00ff0000
1673 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_SHIFT                  24
1674 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_MASK                   0xff000000
1675 #define  NV04_DX6_MULTITEX_TRIANGLE_CONTROL2                                            0x00000344
1676 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_SHIFT                     0
1677 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_MASK                      0x0000000f
1678 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_SHIFT                    4
1679 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_MASK                     0x000000f0
1680 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_SHIFT                    8
1681 #define   NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_MASK                     0x00000f00
1682 #define  NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR                                            0x00000348
1683 #define   NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_B_SHIFT                                   0
1684 #define   NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_B_MASK                                    0x000000ff
1685 #define   NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_G_SHIFT                                   8
1686 #define   NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_G_MASK                                    0x0000ff00
1687 #define   NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_R_SHIFT                                   16
1688 #define   NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_R_MASK                                    0x00ff0000
1689 #define   NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_A_SHIFT                                   24
1690 #define   NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_A_MASK                                    0xff000000
1691 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SX(x)                                    (0x00000400+((x)*40))
1692 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SX__SIZE                                 0x00000008
1693 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SY(x)                                    (0x00000404+((x)*40))
1694 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SY__SIZE                                 0x00000008
1695 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SZ(x)                                    (0x00000408+((x)*40))
1696 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SZ__SIZE                                 0x00000008
1697 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_RHW(x)                                   (0x0000040c+((x)*40))
1698 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_RHW__SIZE                                0x00000008
1699 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR(x)                                 (0x00000410+((x)*40))
1700 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR__SIZE                              0x00000008
1701 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_SHIFT                           0
1702 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_MASK                            0x000000ff
1703 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_SHIFT                           8
1704 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_MASK                            0x0000ff00
1705 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_SHIFT                           16
1706 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_MASK                            0x00ff0000
1707 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_SHIFT                           24
1708 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_MASK                            0xff000000
1709 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR(x)                              (0x00000414+((x)*40))
1710 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR__SIZE                           0x00000008
1711 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_SHIFT                        0
1712 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_MASK                         0x000000ff
1713 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_SHIFT                        8
1714 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_MASK                         0x0000ff00
1715 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_SHIFT                        16
1716 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_MASK                         0x00ff0000
1717 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_SHIFT                      24
1718 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_MASK                       0xff000000
1719 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TU0(x)                                   (0x00000418+((x)*40))
1720 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TU0__SIZE                                0x00000008
1721 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TV0(x)                                   (0x0000041c+((x)*40))
1722 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TV0__SIZE                                0x00000008
1723 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TU1(x)                                   (0x00000420+((x)*40))
1724 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TU1__SIZE                                0x00000008
1725 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TV1(x)                                   (0x00000424+((x)*40))
1726 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TV1__SIZE                                0x00000008
1727 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE(x)                         (0x00000540+((x)*4))
1728 #define  NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE__SIZE                      0x00000030
1729 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I0_SHIFT                  0
1730 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I0_MASK                   0x0000000f
1731 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I1_SHIFT                  4
1732 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I1_MASK                   0x000000f0
1733 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I2_SHIFT                  8
1734 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I2_MASK                   0x00000f00
1735 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I3_SHIFT                  12
1736 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I3_MASK                   0x0000f000
1737 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I4_SHIFT                  16
1738 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I4_MASK                   0x000f0000
1739 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I5_SHIFT                  20
1740 #define   NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I5_MASK                   0x00f00000
1741
1742
1743 #define NV10_DX5_TEXTURED_TRIANGLE                                                      0x00000094
1744
1745
1746
1747 #define NV10TCL                                                                         0x00000056
1748
1749 #define  NV10TCL_NOP                                                                    0x00000100
1750 #define  NV10TCL_NOTIFY                                                                 0x00000104
1751 #define  NV10TCL_DMA_NOTIFY                                                             0x00000180
1752 #define  NV10TCL_DMA_IN_MEMORY0                                                         0x00000184
1753 #define  NV10TCL_DMA_IN_MEMORY1                                                         0x00000188
1754 #define  NV10TCL_DMA_VTXBUF0                                                            0x0000018c
1755 #define  NV10TCL_DMA_IN_MEMORY2                                                         0x00000194
1756 #define  NV10TCL_DMA_IN_MEMORY3                                                         0x00000198
1757 #define  NV10TCL_RT_HORIZ                                                               0x00000200
1758 #define   NV10TCL_RT_HORIZ_X_SHIFT                                                      0
1759 #define   NV10TCL_RT_HORIZ_X_MASK                                                       0x0000ffff
1760 #define   NV10TCL_RT_HORIZ_W_SHIFT                                                      16
1761 #define   NV10TCL_RT_HORIZ_W_MASK                                                       0xffff0000
1762 #define  NV10TCL_RT_VERT                                                                0x00000204
1763 #define   NV10TCL_RT_VERT_Y_SHIFT                                                       0
1764 #define   NV10TCL_RT_VERT_Y_MASK                                                        0x0000ffff
1765 #define   NV10TCL_RT_VERT_H_SHIFT                                                       16
1766 #define   NV10TCL_RT_VERT_H_MASK                                                        0xffff0000
1767 #define  NV10TCL_RT_FORMAT                                                              0x00000208
1768 #define   NV10TCL_RT_FORMAT_TYPE_SHIFT                                                  8
1769 #define   NV10TCL_RT_FORMAT_TYPE_MASK                                                   0x00000f00
1770 #define    NV10TCL_RT_FORMAT_TYPE_LINEAR                                                0x00000100
1771 #define    NV10TCL_RT_FORMAT_TYPE_SWIZZLED                                              0x00000200
1772 #define   NV10TCL_RT_FORMAT_COLOR_SHIFT                                                 0
1773 #define   NV10TCL_RT_FORMAT_COLOR_MASK                                                  0x0000001f
1774 #define    NV10TCL_RT_FORMAT_COLOR_R5G6B5                                               0x00000003
1775 #define    NV10TCL_RT_FORMAT_COLOR_X8R8G8B8                                             0x00000005
1776 #define    NV10TCL_RT_FORMAT_COLOR_A8R8G8B8                                             0x00000008
1777 #define    NV10TCL_RT_FORMAT_COLOR_B8                                                   0x00000009
1778 #define    NV10TCL_RT_FORMAT_COLOR_X8B8G8R8                                             0x0000000f
1779 #define    NV10TCL_RT_FORMAT_COLOR_A8B8G8R8                                             0x00000010
1780 #define  NV10TCL_RT_PITCH                                                               0x0000020c
1781 #define   NV10TCL_RT_PITCH_COLOR_PITCH_SHIFT                                            0
1782 #define   NV10TCL_RT_PITCH_COLOR_PITCH_MASK                                             0x0000ffff
1783 #define   NV10TCL_RT_PITCH_ZETA_PITCH_SHIFT                                             16
1784 #define   NV10TCL_RT_PITCH_ZETA_PITCH_MASK                                              0xffff0000
1785 #define  NV10TCL_COLOR_OFFSET                                                           0x00000210
1786 #define  NV10TCL_ZETA_OFFSET                                                            0x00000214
1787 #define  NV10TCL_TX_OFFSET(x)                                                           (0x00000218+((x)*4))
1788 #define  NV10TCL_TX_OFFSET__SIZE                                                        0x00000002
1789 #define  NV10TCL_TX_FORMAT(x)                                                           (0x00000220+((x)*4))
1790 #define  NV10TCL_TX_FORMAT__SIZE                                                        0x00000002
1791 #define   NV10TCL_TX_FORMAT_DMA0                                                        (1 <<  0)
1792 #define   NV10TCL_TX_FORMAT_DMA1                                                        (1 <<  1)
1793 #define   NV10TCL_TX_FORMAT_CUBE_MAP                                                    (1 <<  2)
1794 #define   NV10TCL_TX_FORMAT_FORMAT_SHIFT                                                7
1795 #define   NV10TCL_TX_FORMAT_FORMAT_MASK                                                 0x00000780
1796 #define    NV10TCL_TX_FORMAT_FORMAT_L8                                                  0x00000000
1797 #define    NV10TCL_TX_FORMAT_FORMAT_A8                                                  0x00000080
1798 #define    NV10TCL_TX_FORMAT_FORMAT_A1R5G5B5                                            0x00000100
1799 #define    NV10TCL_TX_FORMAT_FORMAT_A8_RECT                                             0x00000180
1800 #define    NV10TCL_TX_FORMAT_FORMAT_A4R4G4B4                                            0x00000200
1801 #define    NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8                                            0x00000300
1802 #define    NV10TCL_TX_FORMAT_FORMAT_X8R8G8B8                                            0x00000380
1803 #define    NV10TCL_TX_FORMAT_FORMAT_INDEX8                                              0x00000580
1804 #define    NV10TCL_TX_FORMAT_FORMAT_DXT1                                                0x00000600
1805 #define    NV10TCL_TX_FORMAT_FORMAT_DXT3                                                0x00000700
1806 #define    NV10TCL_TX_FORMAT_FORMAT_DXT5                                                0x00000780
1807 #define    NV10TCL_TX_FORMAT_FORMAT_A1R5G5B5_RECT                                       0x00000800
1808 #define    NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8_RECT                                       0x00000900
1809 #define    NV10TCL_TX_FORMAT_FORMAT_L8_RECT                                             0x00000980
1810 #define    NV10TCL_TX_FORMAT_FORMAT_A8L8                                                0x00000d00
1811 #define    NV10TCL_TX_FORMAT_FORMAT_A8_RECT2                                            0x00000d80
1812 #define    NV10TCL_TX_FORMAT_FORMAT_R8G8B8_RECT                                         0x00000f00
1813 #define    NV10TCL_TX_FORMAT_FORMAT_A4R4G4B4_RECT                                       0x00000e80
1814 #define    NV10TCL_TX_FORMAT_FORMAT_L8A8_RECT                                           0x00001000
1815 #define    NV10TCL_TX_FORMAT_FORMAT_A16                                                 0x00001900
1816 #define    NV10TCL_TX_FORMAT_FORMAT_A16_RECT                                            0x00001a80
1817 #define    NV10TCL_TX_FORMAT_FORMAT_FLOAT_RGBA16_NV                                     0x00002500
1818 #define    NV10TCL_TX_FORMAT_FORMAT_FLOAT_RGBA32_NV                                     0x00002580
1819 #define    NV10TCL_TX_FORMAT_FORMAT_FLOAT_R32_NV                                        0x00002600
1820 #define   NV10TCL_TX_FORMAT_NPOT                                                        (1 << 11)
1821 #define   NV10TCL_TX_FORMAT_MIPMAP_LEVELS_SHIFT                                         12
1822 #define   NV10TCL_TX_FORMAT_MIPMAP_LEVELS_MASK                                          0x0000f000
1823 #define   NV10TCL_TX_FORMAT_BASE_SIZE_U_SHIFT                                           16
1824 #define   NV10TCL_TX_FORMAT_BASE_SIZE_U_MASK                                            0x000f0000
1825 #define   NV10TCL_TX_FORMAT_BASE_SIZE_V_SHIFT                                           20
1826 #define   NV10TCL_TX_FORMAT_BASE_SIZE_V_MASK                                            0x00f00000
1827 #define   NV10TCL_TX_FORMAT_WRAP_S_SHIFT                                                24
1828 #define   NV10TCL_TX_FORMAT_WRAP_S_MASK                                                 0x0f000000
1829 #define    NV10TCL_TX_FORMAT_WRAP_S_REPEAT                                              0x01000000
1830 #define    NV10TCL_TX_FORMAT_WRAP_S_MIRRORED_REPEAT                                     0x02000000
1831 #define    NV10TCL_TX_FORMAT_WRAP_S_CLAMP_TO_EDGE                                       0x03000000
1832 #define    NV10TCL_TX_FORMAT_WRAP_S_CLAMP_TO_BORDER                                     0x04000000
1833 #define    NV10TCL_TX_FORMAT_WRAP_S_CLAMP                                               0x05000000
1834 #define   NV10TCL_TX_FORMAT_WRAP_T_SHIFT                                                28
1835 #define   NV10TCL_TX_FORMAT_WRAP_T_MASK                                                 0xf0000000
1836 #define    NV10TCL_TX_FORMAT_WRAP_T_REPEAT                                              0x10000000
1837 #define    NV10TCL_TX_FORMAT_WRAP_T_MIRRORED_REPEAT                                     0x20000000
1838 #define    NV10TCL_TX_FORMAT_WRAP_T_CLAMP_TO_EDGE                                       0x30000000
1839 #define    NV10TCL_TX_FORMAT_WRAP_T_CLAMP_TO_BORDER                                     0x40000000
1840 #define    NV10TCL_TX_FORMAT_WRAP_T_CLAMP                                               0x50000000
1841 #define  NV10TCL_TX_ENABLE(x)                                                           (0x00000228+((x)*4))
1842 #define  NV10TCL_TX_ENABLE__SIZE                                                        0x00000002
1843 #define   NV10TCL_TX_ENABLE_ANISOTROPY_SHIFT                                            4
1844 #define   NV10TCL_TX_ENABLE_ANISOTROPY_MASK                                             0x00000030
1845 #define   NV10TCL_TX_ENABLE_ENABLE                                                      (1 << 30)
1846 #define  NV10TCL_TX_NPOT_PITCH(x)                                                       (0x00000230+((x)*4))
1847 #define  NV10TCL_TX_NPOT_PITCH__SIZE                                                    0x00000002
1848 #define   NV10TCL_TX_NPOT_PITCH_PITCH_SHIFT                                             16
1849 #define   NV10TCL_TX_NPOT_PITCH_PITCH_MASK                                              0xffff0000
1850 #define  NV10TCL_TX_NPOT_SIZE(x)                                                        (0x00000240+((x)*4))
1851 #define  NV10TCL_TX_NPOT_SIZE__SIZE                                                     0x00000002
1852 #define   NV10TCL_TX_NPOT_SIZE_H_SHIFT                                                  0
1853 #define   NV10TCL_TX_NPOT_SIZE_H_MASK                                                   0x0000ffff
1854 #define   NV10TCL_TX_NPOT_SIZE_W_SHIFT                                                  16
1855 #define   NV10TCL_TX_NPOT_SIZE_W_MASK                                                   0xffff0000
1856 #define  NV10TCL_TX_FILTER(x)                                                           (0x00000248+((x)*4))
1857 #define  NV10TCL_TX_FILTER__SIZE                                                        0x00000002
1858 #define   NV10TCL_TX_FILTER_MINIFY_SHIFT                                                24
1859 #define   NV10TCL_TX_FILTER_MINIFY_MASK                                                 0x0f000000
1860 #define    NV10TCL_TX_FILTER_MINIFY_NEAREST                                             0x01000000
1861 #define    NV10TCL_TX_FILTER_MINIFY_LINEAR                                              0x02000000
1862 #define    NV10TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST                              0x03000000
1863 #define    NV10TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST                               0x04000000
1864 #define    NV10TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR                               0x05000000
1865 #define    NV10TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR                                0x06000000
1866 #define   NV10TCL_TX_FILTER_MAGNIFY_SHIFT                                               28
1867 #define   NV10TCL_TX_FILTER_MAGNIFY_MASK                                                0xf0000000
1868 #define    NV10TCL_TX_FILTER_MAGNIFY_NEAREST                                            0x10000000
1869 #define    NV10TCL_TX_FILTER_MAGNIFY_LINEAR                                             0x20000000
1870 #define  NV10TCL_TX_PALETTE_OFFSET(x)                                                   (0x00000250+((x)*4))
1871 #define  NV10TCL_TX_PALETTE_OFFSET__SIZE                                                0x00000002
1872 #define  NV10TCL_RC_IN_ALPHA(x)                                                         (0x00000260+((x)*4))
1873 #define  NV10TCL_RC_IN_ALPHA__SIZE                                                      0x00000002
1874 #define   NV10TCL_RC_IN_ALPHA_D_INPUT_SHIFT                                             0
1875 #define   NV10TCL_RC_IN_ALPHA_D_INPUT_MASK                                              0x0000000f
1876 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_ZERO                                             0x00000000
1877 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR0_NV                               0x00000001
1878 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR1_NV                               0x00000002
1879 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_FOG                                              0x00000003
1880 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_PRIMARY_COLOR_NV                                 0x00000004
1881 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_SECONDARY_COLOR_NV                               0x00000005
1882 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE0_ARB                                     0x00000008
1883 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE1_ARB                                     0x00000009
1884 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0_NV                                        0x0000000c
1885 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE1_NV                                        0x0000000d
1886 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                   0x0000000e
1887 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_E_TIMES_F_NV                                     0x0000000f
1888 #define   NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE                                         (1 <<  4)
1889 #define    NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_BLUE                                   0x00000000
1890 #define    NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_ALPHA                                  0x00000010
1891 #define   NV10TCL_RC_IN_ALPHA_D_MAPPING_SHIFT                                           5
1892 #define   NV10TCL_RC_IN_ALPHA_D_MAPPING_MASK                                            0x000000e0
1893 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_IDENTITY_NV                           0x00000000
1894 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_INVERT_NV                             0x00000020
1895 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NORMAL_NV                               0x00000040
1896 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NEGATE_NV                               0x00000060
1897 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NORMAL_NV                            0x00000080
1898 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NEGATE_NV                            0x000000a0
1899 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_IDENTITY_NV                             0x000000c0
1900 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_NEGATE_NV                               0x000000e0
1901 #define   NV10TCL_RC_IN_ALPHA_C_INPUT_SHIFT                                             8
1902 #define   NV10TCL_RC_IN_ALPHA_C_INPUT_MASK                                              0x00000f00
1903 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_ZERO                                             0x00000000
1904 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR0_NV                               0x00000100
1905 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR1_NV                               0x00000200
1906 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_FOG                                              0x00000300
1907 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_PRIMARY_COLOR_NV                                 0x00000400
1908 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_SECONDARY_COLOR_NV                               0x00000500
1909 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE0_ARB                                     0x00000800
1910 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE1_ARB                                     0x00000900
1911 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0_NV                                        0x00000c00
1912 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE1_NV                                        0x00000d00
1913 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                   0x00000e00
1914 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_E_TIMES_F_NV                                     0x00000f00
1915 #define   NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE                                         (1 << 12)
1916 #define    NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_BLUE                                   0x00000000
1917 #define    NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_ALPHA                                  0x00001000
1918 #define   NV10TCL_RC_IN_ALPHA_C_MAPPING_SHIFT                                           13
1919 #define   NV10TCL_RC_IN_ALPHA_C_MAPPING_MASK                                            0x0000e000
1920 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_IDENTITY_NV                           0x00000000
1921 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_INVERT_NV                             0x00002000
1922 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NORMAL_NV                               0x00004000
1923 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NEGATE_NV                               0x00006000
1924 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NORMAL_NV                            0x00008000
1925 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NEGATE_NV                            0x0000a000
1926 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_IDENTITY_NV                             0x0000c000
1927 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_NEGATE_NV                               0x0000e000
1928 #define   NV10TCL_RC_IN_ALPHA_B_INPUT_SHIFT                                             16
1929 #define   NV10TCL_RC_IN_ALPHA_B_INPUT_MASK                                              0x000f0000
1930 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_ZERO                                             0x00000000
1931 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR0_NV                               0x00010000
1932 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR1_NV                               0x00020000
1933 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_FOG                                              0x00030000
1934 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_PRIMARY_COLOR_NV                                 0x00040000
1935 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_SECONDARY_COLOR_NV                               0x00050000
1936 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE0_ARB                                     0x00080000
1937 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE1_ARB                                     0x00090000
1938 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0_NV                                        0x000c0000
1939 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE1_NV                                        0x000d0000
1940 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                   0x000e0000
1941 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_E_TIMES_F_NV                                     0x000f0000
1942 #define   NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE                                         (1 << 20)
1943 #define    NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_BLUE                                   0x00000000
1944 #define    NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_ALPHA                                  0x00100000
1945 #define   NV10TCL_RC_IN_ALPHA_B_MAPPING_SHIFT                                           21
1946 #define   NV10TCL_RC_IN_ALPHA_B_MAPPING_MASK                                            0x00e00000
1947 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_IDENTITY_NV                           0x00000000
1948 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_INVERT_NV                             0x00200000
1949 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NORMAL_NV                               0x00400000
1950 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NEGATE_NV                               0x00600000
1951 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NORMAL_NV                            0x00800000
1952 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NEGATE_NV                            0x00a00000
1953 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_IDENTITY_NV                             0x00c00000
1954 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_NEGATE_NV                               0x00e00000
1955 #define   NV10TCL_RC_IN_ALPHA_A_INPUT_SHIFT                                             24
1956 #define   NV10TCL_RC_IN_ALPHA_A_INPUT_MASK                                              0x0f000000
1957 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_ZERO                                             0x00000000
1958 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR0_NV                               0x01000000
1959 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR1_NV                               0x02000000
1960 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_FOG                                              0x03000000
1961 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_PRIMARY_COLOR_NV                                 0x04000000
1962 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_SECONDARY_COLOR_NV                               0x05000000
1963 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE0_ARB                                     0x08000000
1964 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE1_ARB                                     0x09000000
1965 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0_NV                                        0x0c000000
1966 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE1_NV                                        0x0d000000
1967 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                   0x0e000000
1968 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_E_TIMES_F_NV                                     0x0f000000
1969 #define   NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE                                         (1 << 28)
1970 #define    NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_BLUE                                   0x00000000
1971 #define    NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_ALPHA                                  0x10000000
1972 #define   NV10TCL_RC_IN_ALPHA_A_MAPPING_SHIFT                                           29
1973 #define   NV10TCL_RC_IN_ALPHA_A_MAPPING_MASK                                            0xe0000000
1974 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_IDENTITY_NV                           0x00000000
1975 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_INVERT_NV                             0x20000000
1976 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NORMAL_NV                               0x40000000
1977 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NEGATE_NV                               0x60000000
1978 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NORMAL_NV                            0x80000000
1979 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NEGATE_NV                            0xa0000000
1980 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_IDENTITY_NV                             0xc0000000
1981 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_NEGATE_NV                               0xe0000000
1982 #define  NV10TCL_RC_IN_RGB(x)                                                           (0x00000268+((x)*4))
1983 #define  NV10TCL_RC_IN_RGB__SIZE                                                        0x00000002
1984 #define   NV10TCL_RC_IN_RGB_D_INPUT_SHIFT                                               0
1985 #define   NV10TCL_RC_IN_RGB_D_INPUT_MASK                                                0x0000000f
1986 #define    NV10TCL_RC_IN_RGB_D_INPUT_ZERO                                               0x00000000
1987 #define    NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR0_NV                                 0x00000001
1988 #define    NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR1_NV                                 0x00000002
1989 #define    NV10TCL_RC_IN_RGB_D_INPUT_FOG                                                0x00000003
1990 #define    NV10TCL_RC_IN_RGB_D_INPUT_PRIMARY_COLOR_NV                                   0x00000004
1991 #define    NV10TCL_RC_IN_RGB_D_INPUT_SECONDARY_COLOR_NV                                 0x00000005
1992 #define    NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE0_ARB                                       0x00000008
1993 #define    NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE1_ARB                                       0x00000009
1994 #define    NV10TCL_RC_IN_RGB_D_INPUT_SPARE0_NV                                          0x0000000c
1995 #define    NV10TCL_RC_IN_RGB_D_INPUT_SPARE1_NV                                          0x0000000d
1996 #define    NV10TCL_RC_IN_RGB_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x0000000e
1997 #define    NV10TCL_RC_IN_RGB_D_INPUT_E_TIMES_F_NV                                       0x0000000f
1998 #define   NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE                                           (1 <<  4)
1999 #define    NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_RGB                                      0x00000000
2000 #define    NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_ALPHA                                    0x00000010
2001 #define   NV10TCL_RC_IN_RGB_D_MAPPING_SHIFT                                             5
2002 #define   NV10TCL_RC_IN_RGB_D_MAPPING_MASK                                              0x000000e0
2003 #define    NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2004 #define    NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_INVERT_NV                               0x00000020
2005 #define    NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NORMAL_NV                                 0x00000040
2006 #define    NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NEGATE_NV                                 0x00000060
2007 #define    NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NORMAL_NV                              0x00000080
2008 #define    NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NEGATE_NV                              0x000000a0
2009 #define    NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_IDENTITY_NV                               0x000000c0
2010 #define    NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_NEGATE_NV                                 0x000000e0
2011 #define   NV10TCL_RC_IN_RGB_C_INPUT_SHIFT                                               8
2012 #define   NV10TCL_RC_IN_RGB_C_INPUT_MASK                                                0x00000f00
2013 #define    NV10TCL_RC_IN_RGB_C_INPUT_ZERO                                               0x00000000
2014 #define    NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR0_NV                                 0x00000100
2015 #define    NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR1_NV                                 0x00000200
2016 #define    NV10TCL_RC_IN_RGB_C_INPUT_FOG                                                0x00000300
2017 #define    NV10TCL_RC_IN_RGB_C_INPUT_PRIMARY_COLOR_NV                                   0x00000400
2018 #define    NV10TCL_RC_IN_RGB_C_INPUT_SECONDARY_COLOR_NV                                 0x00000500
2019 #define    NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE0_ARB                                       0x00000800
2020 #define    NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE1_ARB                                       0x00000900
2021 #define    NV10TCL_RC_IN_RGB_C_INPUT_SPARE0_NV                                          0x00000c00
2022 #define    NV10TCL_RC_IN_RGB_C_INPUT_SPARE1_NV                                          0x00000d00
2023 #define    NV10TCL_RC_IN_RGB_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x00000e00
2024 #define    NV10TCL_RC_IN_RGB_C_INPUT_E_TIMES_F_NV                                       0x00000f00
2025 #define   NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE                                           (1 << 12)
2026 #define    NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_RGB                                      0x00000000
2027 #define    NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_ALPHA                                    0x00001000
2028 #define   NV10TCL_RC_IN_RGB_C_MAPPING_SHIFT                                             13
2029 #define   NV10TCL_RC_IN_RGB_C_MAPPING_MASK                                              0x0000e000
2030 #define    NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2031 #define    NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_INVERT_NV                               0x00002000
2032 #define    NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NORMAL_NV                                 0x00004000
2033 #define    NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NEGATE_NV                                 0x00006000
2034 #define    NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NORMAL_NV                              0x00008000
2035 #define    NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NEGATE_NV                              0x0000a000
2036 #define    NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_IDENTITY_NV                               0x0000c000
2037 #define    NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_NEGATE_NV                                 0x0000e000
2038 #define   NV10TCL_RC_IN_RGB_B_INPUT_SHIFT                                               16
2039 #define   NV10TCL_RC_IN_RGB_B_INPUT_MASK                                                0x000f0000
2040 #define    NV10TCL_RC_IN_RGB_B_INPUT_ZERO                                               0x00000000
2041 #define    NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR0_NV                                 0x00010000
2042 #define    NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR1_NV                                 0x00020000
2043 #define    NV10TCL_RC_IN_RGB_B_INPUT_FOG                                                0x00030000
2044 #define    NV10TCL_RC_IN_RGB_B_INPUT_PRIMARY_COLOR_NV                                   0x00040000
2045 #define    NV10TCL_RC_IN_RGB_B_INPUT_SECONDARY_COLOR_NV                                 0x00050000
2046 #define    NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE0_ARB                                       0x00080000
2047 #define    NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE1_ARB                                       0x00090000
2048 #define    NV10TCL_RC_IN_RGB_B_INPUT_SPARE0_NV                                          0x000c0000
2049 #define    NV10TCL_RC_IN_RGB_B_INPUT_SPARE1_NV                                          0x000d0000
2050 #define    NV10TCL_RC_IN_RGB_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x000e0000
2051 #define    NV10TCL_RC_IN_RGB_B_INPUT_E_TIMES_F_NV                                       0x000f0000
2052 #define   NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE                                           (1 << 20)
2053 #define    NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_RGB                                      0x00000000
2054 #define    NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_ALPHA                                    0x00100000
2055 #define   NV10TCL_RC_IN_RGB_B_MAPPING_SHIFT                                             21
2056 #define   NV10TCL_RC_IN_RGB_B_MAPPING_MASK                                              0x00e00000
2057 #define    NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2058 #define    NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_INVERT_NV                               0x00200000
2059 #define    NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NORMAL_NV                                 0x00400000
2060 #define    NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NEGATE_NV                                 0x00600000
2061 #define    NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NORMAL_NV                              0x00800000
2062 #define    NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NEGATE_NV                              0x00a00000
2063 #define    NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_IDENTITY_NV                               0x00c00000
2064 #define    NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_NEGATE_NV                                 0x00e00000
2065 #define   NV10TCL_RC_IN_RGB_A_INPUT_SHIFT                                               24
2066 #define   NV10TCL_RC_IN_RGB_A_INPUT_MASK                                                0x0f000000
2067 #define    NV10TCL_RC_IN_RGB_A_INPUT_ZERO                                               0x00000000
2068 #define    NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR0_NV                                 0x01000000
2069 #define    NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR1_NV                                 0x02000000
2070 #define    NV10TCL_RC_IN_RGB_A_INPUT_FOG                                                0x03000000
2071 #define    NV10TCL_RC_IN_RGB_A_INPUT_PRIMARY_COLOR_NV                                   0x04000000
2072 #define    NV10TCL_RC_IN_RGB_A_INPUT_SECONDARY_COLOR_NV                                 0x05000000
2073 #define    NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE0_ARB                                       0x08000000
2074 #define    NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE1_ARB                                       0x09000000
2075 #define    NV10TCL_RC_IN_RGB_A_INPUT_SPARE0_NV                                          0x0c000000
2076 #define    NV10TCL_RC_IN_RGB_A_INPUT_SPARE1_NV                                          0x0d000000
2077 #define    NV10TCL_RC_IN_RGB_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x0e000000
2078 #define    NV10TCL_RC_IN_RGB_A_INPUT_E_TIMES_F_NV                                       0x0f000000
2079 #define   NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE                                           (1 << 28)
2080 #define    NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_RGB                                      0x00000000
2081 #define    NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_ALPHA                                    0x10000000
2082 #define   NV10TCL_RC_IN_RGB_A_MAPPING_SHIFT                                             29
2083 #define   NV10TCL_RC_IN_RGB_A_MAPPING_MASK                                              0xe0000000
2084 #define    NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2085 #define    NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_INVERT_NV                               0x20000000
2086 #define    NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NORMAL_NV                                 0x40000000
2087 #define    NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NEGATE_NV                                 0x60000000
2088 #define    NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NORMAL_NV                              0x80000000
2089 #define    NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NEGATE_NV                              0xa0000000
2090 #define    NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_IDENTITY_NV                               0xc0000000
2091 #define    NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_NEGATE_NV                                 0xe0000000
2092 #define  NV10TCL_RC_COLOR(x)                                                            (0x00000270+((x)*4))
2093 #define  NV10TCL_RC_COLOR__SIZE                                                         0x00000002
2094 #define   NV10TCL_RC_COLOR_B_SHIFT                                                      0
2095 #define   NV10TCL_RC_COLOR_B_MASK                                                       0x000000ff
2096 #define   NV10TCL_RC_COLOR_G_SHIFT                                                      8
2097 #define   NV10TCL_RC_COLOR_G_MASK                                                       0x0000ff00
2098 #define   NV10TCL_RC_COLOR_R_SHIFT                                                      16
2099 #define   NV10TCL_RC_COLOR_R_MASK                                                       0x00ff0000
2100 #define   NV10TCL_RC_COLOR_A_SHIFT                                                      24
2101 #define   NV10TCL_RC_COLOR_A_MASK                                                       0xff000000
2102 #define  NV10TCL_RC_OUT_ALPHA(x)                                                        (0x00000278+((x)*4))
2103 #define  NV10TCL_RC_OUT_ALPHA__SIZE                                                     0x00000002
2104 #define   NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SHIFT                                          0
2105 #define   NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_MASK                                           0x0000000f
2106 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_ZERO                                          0x00000000
2107 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR0_NV                            0x00000001
2108 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR1_NV                            0x00000002
2109 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_FOG                                           0x00000003
2110 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_PRIMARY_COLOR_NV                              0x00000004
2111 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SECONDARY_COLOR_NV                            0x00000005
2112 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE0_ARB                                  0x00000008
2113 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE1_ARB                                  0x00000009
2114 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_NV                                     0x0000000c
2115 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE1_NV                                     0x0000000d
2116 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                0x0000000e
2117 #define    NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_E_TIMES_F_NV                                  0x0000000f
2118 #define   NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SHIFT                                          4
2119 #define   NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_MASK                                           0x000000f0
2120 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_ZERO                                          0x00000000
2121 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR0_NV                            0x00000010
2122 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR1_NV                            0x00000020
2123 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_FOG                                           0x00000030
2124 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_PRIMARY_COLOR_NV                              0x00000040
2125 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SECONDARY_COLOR_NV                            0x00000050
2126 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE0_ARB                                  0x00000080
2127 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE1_ARB                                  0x00000090
2128 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_NV                                     0x000000c0
2129 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE1_NV                                     0x000000d0
2130 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                0x000000e0
2131 #define    NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_E_TIMES_F_NV                                  0x000000f0
2132 #define   NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SHIFT                                         8
2133 #define   NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_MASK                                          0x00000f00
2134 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_ZERO                                         0x00000000
2135 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR0_NV                           0x00000100
2136 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR1_NV                           0x00000200
2137 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_FOG                                          0x00000300
2138 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_PRIMARY_COLOR_NV                             0x00000400
2139 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SECONDARY_COLOR_NV                           0x00000500
2140 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE0_ARB                                 0x00000800
2141 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE1_ARB                                 0x00000900
2142 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_NV                                    0x00000c00
2143 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE1_NV                                    0x00000d00
2144 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV               0x00000e00
2145 #define    NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_E_TIMES_F_NV                                 0x00000f00
2146 #define   NV10TCL_RC_OUT_ALPHA_CD_DOT_PRODUCT                                           (1 << 12)
2147 #define   NV10TCL_RC_OUT_ALPHA_AB_DOT_PRODUCT                                           (1 << 13)
2148 #define   NV10TCL_RC_OUT_ALPHA_MUX_SUM                                                  (1 << 14)
2149 #define   NV10TCL_RC_OUT_ALPHA_BIAS                                                     (1 << 15)
2150 #define    NV10TCL_RC_OUT_ALPHA_BIAS_NONE                                               0x00000000
2151 #define    NV10TCL_RC_OUT_ALPHA_BIAS_BIAS_BY_NEGATIVE_ONE_HALF_NV                       0x00008000
2152 #define   NV10TCL_RC_OUT_ALPHA_SCALE_SHIFT                                              17
2153 #define   NV10TCL_RC_OUT_ALPHA_SCALE_MASK                                               0x00000000
2154 #define    NV10TCL_RC_OUT_ALPHA_SCALE_NONE                                              0x00000000
2155 #define    NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_TWO_NV                                   0x00020000
2156 #define    NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_FOUR_NV                                  0x00040000
2157 #define    NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_ONE_HALF_NV                              0x00060000
2158 #define  NV10TCL_RC_OUT_RGB(x)                                                          (0x00000280+((x)*4))
2159 #define  NV10TCL_RC_OUT_RGB__SIZE                                                       0x00000002
2160 #define   NV10TCL_RC_OUT_RGB_CD_OUTPUT_SHIFT                                            0
2161 #define   NV10TCL_RC_OUT_RGB_CD_OUTPUT_MASK                                             0x0000000f
2162 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_ZERO                                            0x00000000
2163 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR0_NV                              0x00000001
2164 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR1_NV                              0x00000002
2165 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_FOG                                             0x00000003
2166 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_PRIMARY_COLOR_NV                                0x00000004
2167 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_SECONDARY_COLOR_NV                              0x00000005
2168 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE0_ARB                                    0x00000008
2169 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE1_ARB                                    0x00000009
2170 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_NV                                       0x0000000c
2171 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE1_NV                                       0x0000000d
2172 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                  0x0000000e
2173 #define    NV10TCL_RC_OUT_RGB_CD_OUTPUT_E_TIMES_F_NV                                    0x0000000f
2174 #define   NV10TCL_RC_OUT_RGB_AB_OUTPUT_SHIFT                                            4
2175 #define   NV10TCL_RC_OUT_RGB_AB_OUTPUT_MASK                                             0x000000f0
2176 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_ZERO                                            0x00000000
2177 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR0_NV                              0x00000010
2178 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR1_NV                              0x00000020
2179 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_FOG                                             0x00000030
2180 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_PRIMARY_COLOR_NV                                0x00000040
2181 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_SECONDARY_COLOR_NV                              0x00000050
2182 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE0_ARB                                    0x00000080
2183 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE1_ARB                                    0x00000090
2184 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_NV                                       0x000000c0
2185 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE1_NV                                       0x000000d0
2186 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                  0x000000e0
2187 #define    NV10TCL_RC_OUT_RGB_AB_OUTPUT_E_TIMES_F_NV                                    0x000000f0
2188 #define   NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SHIFT                                           8
2189 #define   NV10TCL_RC_OUT_RGB_SUM_OUTPUT_MASK                                            0x00000f00
2190 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_ZERO                                           0x00000000
2191 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR0_NV                             0x00000100
2192 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR1_NV                             0x00000200
2193 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_FOG                                            0x00000300
2194 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_PRIMARY_COLOR_NV                               0x00000400
2195 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SECONDARY_COLOR_NV                             0x00000500
2196 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE0_ARB                                   0x00000800
2197 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE1_ARB                                   0x00000900
2198 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_NV                                      0x00000c00
2199 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE1_NV                                      0x00000d00
2200 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                 0x00000e00
2201 #define    NV10TCL_RC_OUT_RGB_SUM_OUTPUT_E_TIMES_F_NV                                   0x00000f00
2202 #define   NV10TCL_RC_OUT_RGB_CD_DOT_PRODUCT                                             (1 << 12)
2203 #define   NV10TCL_RC_OUT_RGB_AB_DOT_PRODUCT                                             (1 << 13)
2204 #define   NV10TCL_RC_OUT_RGB_MUX_SUM                                                    (1 << 14)
2205 #define   NV10TCL_RC_OUT_RGB_BIAS                                                       (1 << 15)
2206 #define    NV10TCL_RC_OUT_RGB_BIAS_NONE                                                 0x00000000
2207 #define    NV10TCL_RC_OUT_RGB_BIAS_BIAS_BY_NEGATIVE_ONE_HALF_NV                         0x00008000
2208 #define   NV10TCL_RC_OUT_RGB_SCALE_SHIFT                                                17
2209 #define   NV10TCL_RC_OUT_RGB_SCALE_MASK                                                 0x00000000
2210 #define    NV10TCL_RC_OUT_RGB_SCALE_NONE                                                0x00000000
2211 #define    NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_TWO_NV                                     0x00020000
2212 #define    NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_FOUR_NV                                    0x00040000
2213 #define    NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_ONE_HALF_NV                                0x00060000
2214 #define   NV10TCL_RC_OUT_RGB_OPERATION_SHIFT                                            27
2215 #define   NV10TCL_RC_OUT_RGB_OPERATION_MASK                                             0x38000000
2216 #define  NV10TCL_RC_FINAL0                                                              0x00000288
2217 #define   NV10TCL_RC_FINAL0_D_INPUT_SHIFT                                               0
2218 #define   NV10TCL_RC_FINAL0_D_INPUT_MASK                                                0x0000000f
2219 #define    NV10TCL_RC_FINAL0_D_INPUT_ZERO                                               0x00000000
2220 #define    NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR0_NV                                 0x00000001
2221 #define    NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR1_NV                                 0x00000002
2222 #define    NV10TCL_RC_FINAL0_D_INPUT_FOG                                                0x00000003
2223 #define    NV10TCL_RC_FINAL0_D_INPUT_PRIMARY_COLOR_NV                                   0x00000004
2224 #define    NV10TCL_RC_FINAL0_D_INPUT_SECONDARY_COLOR_NV                                 0x00000005
2225 #define    NV10TCL_RC_FINAL0_D_INPUT_TEXTURE0_ARB                                       0x00000008
2226 #define    NV10TCL_RC_FINAL0_D_INPUT_TEXTURE1_ARB                                       0x00000009
2227 #define    NV10TCL_RC_FINAL0_D_INPUT_SPARE0_NV                                          0x0000000c
2228 #define    NV10TCL_RC_FINAL0_D_INPUT_SPARE1_NV                                          0x0000000d
2229 #define    NV10TCL_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x0000000e
2230 #define    NV10TCL_RC_FINAL0_D_INPUT_E_TIMES_F_NV                                       0x0000000f
2231 #define   NV10TCL_RC_FINAL0_D_COMPONENT_USAGE                                           (1 <<  4)
2232 #define    NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_RGB                                      0x00000000
2233 #define    NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_ALPHA                                    0x00000010
2234 #define   NV10TCL_RC_FINAL0_D_MAPPING_SHIFT                                             5
2235 #define   NV10TCL_RC_FINAL0_D_MAPPING_MASK                                              0x000000e0
2236 #define    NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2237 #define    NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT_NV                               0x00000020
2238 #define    NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NORMAL_NV                                 0x00000040
2239 #define    NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NEGATE_NV                                 0x00000060
2240 #define    NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL_NV                              0x00000080
2241 #define    NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE_NV                              0x000000a0
2242 #define    NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY_NV                               0x000000c0
2243 #define    NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_NEGATE_NV                                 0x000000e0
2244 #define   NV10TCL_RC_FINAL0_C_INPUT_SHIFT                                               8
2245 #define   NV10TCL_RC_FINAL0_C_INPUT_MASK                                                0x00000f00
2246 #define    NV10TCL_RC_FINAL0_C_INPUT_ZERO                                               0x00000000
2247 #define    NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR0_NV                                 0x00000100
2248 #define    NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR1_NV                                 0x00000200
2249 #define    NV10TCL_RC_FINAL0_C_INPUT_FOG                                                0x00000300
2250 #define    NV10TCL_RC_FINAL0_C_INPUT_PRIMARY_COLOR_NV                                   0x00000400
2251 #define    NV10TCL_RC_FINAL0_C_INPUT_SECONDARY_COLOR_NV                                 0x00000500
2252 #define    NV10TCL_RC_FINAL0_C_INPUT_TEXTURE0_ARB                                       0x00000800
2253 #define    NV10TCL_RC_FINAL0_C_INPUT_TEXTURE1_ARB                                       0x00000900
2254 #define    NV10TCL_RC_FINAL0_C_INPUT_SPARE0_NV                                          0x00000c00
2255 #define    NV10TCL_RC_FINAL0_C_INPUT_SPARE1_NV                                          0x00000d00
2256 #define    NV10TCL_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x00000e00
2257 #define    NV10TCL_RC_FINAL0_C_INPUT_E_TIMES_F_NV                                       0x00000f00
2258 #define   NV10TCL_RC_FINAL0_C_COMPONENT_USAGE                                           (1 << 12)
2259 #define    NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_RGB                                      0x00000000
2260 #define    NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_ALPHA                                    0x00001000
2261 #define   NV10TCL_RC_FINAL0_C_MAPPING_SHIFT                                             13
2262 #define   NV10TCL_RC_FINAL0_C_MAPPING_MASK                                              0x0000e000
2263 #define    NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2264 #define    NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT_NV                               0x00002000
2265 #define    NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NORMAL_NV                                 0x00004000
2266 #define    NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NEGATE_NV                                 0x00006000
2267 #define    NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL_NV                              0x00008000
2268 #define    NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE_NV                              0x0000a000
2269 #define    NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY_NV                               0x0000c000
2270 #define    NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_NEGATE_NV                                 0x0000e000
2271 #define   NV10TCL_RC_FINAL0_B_INPUT_SHIFT                                               16
2272 #define   NV10TCL_RC_FINAL0_B_INPUT_MASK                                                0x000f0000
2273 #define    NV10TCL_RC_FINAL0_B_INPUT_ZERO                                               0x00000000
2274 #define    NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR0_NV                                 0x00010000
2275 #define    NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR1_NV                                 0x00020000
2276 #define    NV10TCL_RC_FINAL0_B_INPUT_FOG                                                0x00030000
2277 #define    NV10TCL_RC_FINAL0_B_INPUT_PRIMARY_COLOR_NV                                   0x00040000
2278 #define    NV10TCL_RC_FINAL0_B_INPUT_SECONDARY_COLOR_NV                                 0x00050000
2279 #define    NV10TCL_RC_FINAL0_B_INPUT_TEXTURE0_ARB                                       0x00080000
2280 #define    NV10TCL_RC_FINAL0_B_INPUT_TEXTURE1_ARB                                       0x00090000
2281 #define    NV10TCL_RC_FINAL0_B_INPUT_SPARE0_NV                                          0x000c0000
2282 #define    NV10TCL_RC_FINAL0_B_INPUT_SPARE1_NV                                          0x000d0000
2283 #define    NV10TCL_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x000e0000
2284 #define    NV10TCL_RC_FINAL0_B_INPUT_E_TIMES_F_NV                                       0x000f0000
2285 #define   NV10TCL_RC_FINAL0_B_COMPONENT_USAGE                                           (1 << 20)
2286 #define    NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_RGB                                      0x00000000
2287 #define    NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_ALPHA                                    0x00100000
2288 #define   NV10TCL_RC_FINAL0_B_MAPPING_SHIFT                                             21
2289 #define   NV10TCL_RC_FINAL0_B_MAPPING_MASK                                              0x00e00000
2290 #define    NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2291 #define    NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_INVERT_NV                               0x00200000
2292 #define    NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NORMAL_NV                                 0x00400000
2293 #define    NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NEGATE_NV                                 0x00600000
2294 #define    NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NORMAL_NV                              0x00800000
2295 #define    NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NEGATE_NV                              0x00a00000
2296 #define    NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_IDENTITY_NV                               0x00c00000
2297 #define    NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_NEGATE_NV                                 0x00e00000
2298 #define   NV10TCL_RC_FINAL0_A_INPUT_SHIFT                                               24
2299 #define   NV10TCL_RC_FINAL0_A_INPUT_MASK                                                0x0f000000
2300 #define    NV10TCL_RC_FINAL0_A_INPUT_ZERO                                               0x00000000
2301 #define    NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR0_NV                                 0x01000000
2302 #define    NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR1_NV                                 0x02000000
2303 #define    NV10TCL_RC_FINAL0_A_INPUT_FOG                                                0x03000000
2304 #define    NV10TCL_RC_FINAL0_A_INPUT_PRIMARY_COLOR_NV                                   0x04000000
2305 #define    NV10TCL_RC_FINAL0_A_INPUT_SECONDARY_COLOR_NV                                 0x05000000
2306 #define    NV10TCL_RC_FINAL0_A_INPUT_TEXTURE0_ARB                                       0x08000000
2307 #define    NV10TCL_RC_FINAL0_A_INPUT_TEXTURE1_ARB                                       0x09000000
2308 #define    NV10TCL_RC_FINAL0_A_INPUT_SPARE0_NV                                          0x0c000000
2309 #define    NV10TCL_RC_FINAL0_A_INPUT_SPARE1_NV                                          0x0d000000
2310 #define    NV10TCL_RC_FINAL0_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x0e000000
2311 #define    NV10TCL_RC_FINAL0_A_INPUT_E_TIMES_F_NV                                       0x0f000000
2312 #define   NV10TCL_RC_FINAL0_A_COMPONENT_USAGE                                           (1 << 28)
2313 #define    NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_RGB                                      0x00000000
2314 #define    NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_ALPHA                                    0x10000000
2315 #define   NV10TCL_RC_FINAL0_A_MAPPING_SHIFT                                             29
2316 #define   NV10TCL_RC_FINAL0_A_MAPPING_MASK                                              0xe0000000
2317 #define    NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2318 #define    NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_INVERT_NV                               0x20000000
2319 #define    NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NORMAL_NV                                 0x40000000
2320 #define    NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NEGATE_NV                                 0x60000000
2321 #define    NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NORMAL_NV                              0x80000000
2322 #define    NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NEGATE_NV                              0xa0000000
2323 #define    NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_IDENTITY_NV                               0xc0000000
2324 #define    NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_NEGATE_NV                                 0xe0000000
2325 #define  NV10TCL_RC_FINAL1                                                              0x0000028c
2326 #define   NV10TCL_RC_FINAL1_COLOR_SUM_CLAMP                                             (1 <<  7)
2327 #define   NV10TCL_RC_FINAL1_G_INPUT_SHIFT                                               8
2328 #define   NV10TCL_RC_FINAL1_G_INPUT_MASK                                                0x00000f00
2329 #define    NV10TCL_RC_FINAL1_G_INPUT_ZERO                                               0x00000000
2330 #define    NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR0_NV                                 0x00000100
2331 #define    NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR1_NV                                 0x00000200
2332 #define    NV10TCL_RC_FINAL1_G_INPUT_FOG                                                0x00000300
2333 #define    NV10TCL_RC_FINAL1_G_INPUT_PRIMARY_COLOR_NV                                   0x00000400
2334 #define    NV10TCL_RC_FINAL1_G_INPUT_SECONDARY_COLOR_NV                                 0x00000500
2335 #define    NV10TCL_RC_FINAL1_G_INPUT_TEXTURE0_ARB                                       0x00000800
2336 #define    NV10TCL_RC_FINAL1_G_INPUT_TEXTURE1_ARB                                       0x00000900
2337 #define    NV10TCL_RC_FINAL1_G_INPUT_SPARE0_NV                                          0x00000c00
2338 #define    NV10TCL_RC_FINAL1_G_INPUT_SPARE1_NV                                          0x00000d00
2339 #define    NV10TCL_RC_FINAL1_G_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x00000e00
2340 #define    NV10TCL_RC_FINAL1_G_INPUT_E_TIMES_F_NV                                       0x00000f00
2341 #define   NV10TCL_RC_FINAL1_G_COMPONENT_USAGE                                           (1 << 12)
2342 #define    NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_RGB                                      0x00000000
2343 #define    NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_ALPHA                                    0x00001000
2344 #define   NV10TCL_RC_FINAL1_G_MAPPING_SHIFT                                             13
2345 #define   NV10TCL_RC_FINAL1_G_MAPPING_MASK                                              0x0000e000
2346 #define    NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2347 #define    NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_INVERT_NV                               0x00002000
2348 #define    NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NORMAL_NV                                 0x00004000
2349 #define    NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NEGATE_NV                                 0x00006000
2350 #define    NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NORMAL_NV                              0x00008000
2351 #define    NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NEGATE_NV                              0x0000a000
2352 #define    NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_IDENTITY_NV                               0x0000c000
2353 #define    NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_NEGATE_NV                                 0x0000e000
2354 #define   NV10TCL_RC_FINAL1_F_INPUT_SHIFT                                               16
2355 #define   NV10TCL_RC_FINAL1_F_INPUT_MASK                                                0x000f0000
2356 #define    NV10TCL_RC_FINAL1_F_INPUT_ZERO                                               0x00000000
2357 #define    NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR0_NV                                 0x00010000
2358 #define    NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR1_NV                                 0x00020000
2359 #define    NV10TCL_RC_FINAL1_F_INPUT_FOG                                                0x00030000
2360 #define    NV10TCL_RC_FINAL1_F_INPUT_PRIMARY_COLOR_NV                                   0x00040000
2361 #define    NV10TCL_RC_FINAL1_F_INPUT_SECONDARY_COLOR_NV                                 0x00050000
2362 #define    NV10TCL_RC_FINAL1_F_INPUT_TEXTURE0_ARB                                       0x00080000
2363 #define    NV10TCL_RC_FINAL1_F_INPUT_TEXTURE1_ARB                                       0x00090000
2364 #define    NV10TCL_RC_FINAL1_F_INPUT_SPARE0_NV                                          0x000c0000
2365 #define    NV10TCL_RC_FINAL1_F_INPUT_SPARE1_NV                                          0x000d0000
2366 #define    NV10TCL_RC_FINAL1_F_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x000e0000
2367 #define    NV10TCL_RC_FINAL1_F_INPUT_E_TIMES_F_NV                                       0x000f0000
2368 #define   NV10TCL_RC_FINAL1_F_COMPONENT_USAGE                                           (1 << 20)
2369 #define    NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_RGB                                      0x00000000
2370 #define    NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_ALPHA                                    0x00100000
2371 #define   NV10TCL_RC_FINAL1_F_MAPPING_SHIFT                                             21
2372 #define   NV10TCL_RC_FINAL1_F_MAPPING_MASK                                              0x00e00000
2373 #define    NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2374 #define    NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_INVERT_NV                               0x00200000
2375 #define    NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NORMAL_NV                                 0x00400000
2376 #define    NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NEGATE_NV                                 0x00600000
2377 #define    NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NORMAL_NV                              0x00800000
2378 #define    NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NEGATE_NV                              0x00a00000
2379 #define    NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_IDENTITY_NV                               0x00c00000
2380 #define    NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_NEGATE_NV                                 0x00e00000
2381 #define   NV10TCL_RC_FINAL1_E_INPUT_SHIFT                                               24
2382 #define   NV10TCL_RC_FINAL1_E_INPUT_MASK                                                0x0f000000
2383 #define    NV10TCL_RC_FINAL1_E_INPUT_ZERO                                               0x00000000
2384 #define    NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR0_NV                                 0x01000000
2385 #define    NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR1_NV                                 0x02000000
2386 #define    NV10TCL_RC_FINAL1_E_INPUT_FOG                                                0x03000000
2387 #define    NV10TCL_RC_FINAL1_E_INPUT_PRIMARY_COLOR_NV                                   0x04000000
2388 #define    NV10TCL_RC_FINAL1_E_INPUT_SECONDARY_COLOR_NV                                 0x05000000
2389 #define    NV10TCL_RC_FINAL1_E_INPUT_TEXTURE0_ARB                                       0x08000000
2390 #define    NV10TCL_RC_FINAL1_E_INPUT_TEXTURE1_ARB                                       0x09000000
2391 #define    NV10TCL_RC_FINAL1_E_INPUT_SPARE0_NV                                          0x0c000000
2392 #define    NV10TCL_RC_FINAL1_E_INPUT_SPARE1_NV                                          0x0d000000
2393 #define    NV10TCL_RC_FINAL1_E_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x0e000000
2394 #define    NV10TCL_RC_FINAL1_E_INPUT_E_TIMES_F_NV                                       0x0f000000
2395 #define   NV10TCL_RC_FINAL1_E_COMPONENT_USAGE                                           (1 << 28)
2396 #define    NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_RGB                                      0x00000000
2397 #define    NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_ALPHA                                    0x10000000
2398 #define   NV10TCL_RC_FINAL1_E_MAPPING_SHIFT                                             29
2399 #define   NV10TCL_RC_FINAL1_E_MAPPING_MASK                                              0xe0000000
2400 #define    NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2401 #define    NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_INVERT_NV                               0x20000000
2402 #define    NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NORMAL_NV                                 0x40000000
2403 #define    NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NEGATE_NV                                 0x60000000
2404 #define    NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NORMAL_NV                              0x80000000
2405 #define    NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NEGATE_NV                              0xa0000000
2406 #define    NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_IDENTITY_NV                               0xc0000000
2407 #define    NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_NEGATE_NV                                 0xe0000000
2408 #define  NV10TCL_LIGHT_MODEL                                                            0x00000294
2409 #define   NV10TCL_LIGHT_MODEL_COLOR_CONTROL                                             (1 <<  1)
2410 #define   NV10TCL_LIGHT_MODEL_LOCAL_VIEWER                                              (1 << 16)
2411 #define  NV10TCL_COLOR_MATERIAL_ENABLE                                                  0x00000298
2412 #define   NV10TCL_COLOR_MATERIAL_ENABLE_SPECULAR                                        (1 <<  0)
2413 #define   NV10TCL_COLOR_MATERIAL_ENABLE_DIFFUSE                                         (1 <<  1)
2414 #define   NV10TCL_COLOR_MATERIAL_ENABLE_AMBIENT                                         (1 <<  2)
2415 #define   NV10TCL_COLOR_MATERIAL_ENABLE_EMISSION                                        (1 <<  3)
2416 #define  NV10TCL_FOG_MODE                                                               0x0000029c
2417 #define   NV10TCL_FOG_MODE_EXP                                                          0x00000800
2418 #define   NV10TCL_FOG_MODE_EXP_2                                                        0x00000802
2419 #define   NV10TCL_FOG_MODE_EXP2                                                         0x00000803
2420 #define   NV10TCL_FOG_MODE_LINEAR                                                       0x00000804
2421 #define   NV10TCL_FOG_MODE_LINEAR_2                                                     0x00002601
2422 #define  NV10TCL_FOG_COORD_DIST                                                         0x000002a0
2423 #define  NV10TCL_FOG_ENABLE                                                             0x000002a4
2424 #define  NV10TCL_FOG_COLOR                                                              0x000002a8
2425 #define   NV10TCL_FOG_COLOR_R_SHIFT                                                     0
2426 #define   NV10TCL_FOG_COLOR_R_MASK                                                      0x000000ff
2427 #define   NV10TCL_FOG_COLOR_G_SHIFT                                                     8
2428 #define   NV10TCL_FOG_COLOR_G_MASK                                                      0x0000ff00
2429 #define   NV10TCL_FOG_COLOR_B_SHIFT                                                     16
2430 #define   NV10TCL_FOG_COLOR_B_MASK                                                      0x00ff0000
2431 #define   NV10TCL_FOG_COLOR_A_SHIFT                                                     24
2432 #define   NV10TCL_FOG_COLOR_A_MASK                                                      0xff000000
2433 #define  NV10TCL_VIEWPORT_CLIP_MODE                                                     0x000002b4
2434 #define  NV10TCL_VIEWPORT_CLIP_HORIZ(x)                                                 (0x000002c0+((x)*4))
2435 #define  NV10TCL_VIEWPORT_CLIP_HORIZ__SIZE                                              0x00000008
2436 #define   NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_L_SHIFT                                      0
2437 #define   NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_L_MASK                                       0x000007ff
2438 #define   NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_LEFT_ENABLE                                  (1 << 11)
2439 #define   NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_R_SHIFT                                      16
2440 #define   NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_R_MASK                                       0x07ff0000
2441 #define   NV10TCL_VIEWPORT_CLIP_HORIZ_CLIP_RIGHT_ENABLE                                 (1 << 27)
2442 #define  NV10TCL_VIEWPORT_CLIP_VERT(x)                                                  (0x000002e0+((x)*4))
2443 #define  NV10TCL_VIEWPORT_CLIP_VERT__SIZE                                               0x00000008
2444 #define   NV10TCL_VIEWPORT_CLIP_VERT_CLIP_T_SHIFT                                       0
2445 #define   NV10TCL_VIEWPORT_CLIP_VERT_CLIP_T_MASK                                        0x000007ff
2446 #define   NV10TCL_VIEWPORT_CLIP_VERT_CLIP_TOP_ENABLE                                    (1 << 11)
2447 #define   NV10TCL_VIEWPORT_CLIP_VERT_CLIP_B_SHIFT                                       16
2448 #define   NV10TCL_VIEWPORT_CLIP_VERT_CLIP_B_MASK                                        0x07ff0000
2449 #define   NV10TCL_VIEWPORT_CLIP_VERT_CLIP_BOTTOM_ENABLE                                 (1 << 27)
2450 #define  NV10TCL_ALPHA_FUNC_ENABLE                                                      0x00000300
2451 #define  NV10TCL_BLEND_FUNC_ENABLE                                                      0x00000304
2452 #define  NV10TCL_CULL_FACE_ENABLE                                                       0x00000308
2453 #define  NV10TCL_DEPTH_TEST_ENABLE                                                      0x0000030c
2454 #define  NV10TCL_DITHER_ENABLE                                                          0x00000310
2455 #define  NV10TCL_LIGHTING_ENABLE                                                        0x00000314
2456 #define  NV10TCL_POINT_PARAMETERS_ENABLE                                                0x00000318
2457 #define  NV10TCL_POINT_SMOOTH_ENABLE                                                    0x0000031c
2458 #define  NV10TCL_LINE_SMOOTH_ENABLE                                                     0x00000320
2459 #define  NV10TCL_POLYGON_SMOOTH_ENABLE                                                  0x00000324
2460 #define  NV10TCL_VERTEX_WEIGHT_ENABLE                                                   0x00000328
2461 #define  NV10TCL_STENCIL_ENABLE                                                         0x0000032c
2462 #define  NV10TCL_POLYGON_OFFSET_POINT_ENABLE                                            0x00000330
2463 #define  NV10TCL_POLYGON_OFFSET_LINE_ENABLE                                             0x00000334
2464 #define  NV10TCL_POLYGON_OFFSET_FILL_ENABLE                                             0x00000338
2465 #define  NV10TCL_ALPHA_FUNC_FUNC                                                        0x0000033c
2466 #define   NV10TCL_ALPHA_FUNC_FUNC_NEVER                                                 0x00000200
2467 #define   NV10TCL_ALPHA_FUNC_FUNC_LESS                                                  0x00000201
2468 #define   NV10TCL_ALPHA_FUNC_FUNC_EQUAL                                                 0x00000202
2469 #define   NV10TCL_ALPHA_FUNC_FUNC_LEQUAL                                                0x00000203
2470 #define   NV10TCL_ALPHA_FUNC_FUNC_GREATER                                               0x00000204
2471 #define   NV10TCL_ALPHA_FUNC_FUNC_GREATER                                               0x00000204
2472 #define   NV10TCL_ALPHA_FUNC_FUNC_NOTEQUAL                                              0x00000205
2473 #define   NV10TCL_ALPHA_FUNC_FUNC_GEQUAL                                                0x00000206
2474 #define   NV10TCL_ALPHA_FUNC_FUNC_ALWAYS                                                0x00000207
2475 #define  NV10TCL_ALPHA_FUNC_REF                                                         0x00000340
2476 #define  NV10TCL_BLEND_FUNC_SRC                                                         0x00000344
2477 #define   NV10TCL_BLEND_FUNC_SRC_ZERO                                                   0x00000000
2478 #define   NV10TCL_BLEND_FUNC_SRC_ONE                                                    0x00000001
2479 #define   NV10TCL_BLEND_FUNC_SRC_SRC_COLOR                                              0x00000300
2480 #define   NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_SRC_COLOR                                    0x00000301
2481 #define   NV10TCL_BLEND_FUNC_SRC_SRC_ALPHA                                              0x00000302
2482 #define   NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_SRC_ALPHA                                    0x00000303
2483 #define   NV10TCL_BLEND_FUNC_SRC_DST_ALPHA                                              0x00000304
2484 #define   NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_DST_ALPHA                                    0x00000305
2485 #define   NV10TCL_BLEND_FUNC_SRC_DST_COLOR                                              0x00000306
2486 #define   NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_DST_COLOR                                    0x00000307
2487 #define   NV10TCL_BLEND_FUNC_SRC_SRC_ALPHA_SATURATE                                     0x00000308
2488 #define   NV10TCL_BLEND_FUNC_SRC_CONSTANT_COLOR                                         0x00008001
2489 #define   NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_CONSTANT_COLOR                               0x00008002
2490 #define   NV10TCL_BLEND_FUNC_SRC_CONSTANT_ALPHA                                         0x00008003
2491 #define   NV10TCL_BLEND_FUNC_SRC_ONE_MINUS_CONSTANT_ALPHA                               0x00008004
2492 #define  NV10TCL_BLEND_FUNC_DST                                                         0x00000348
2493 #define   NV10TCL_BLEND_FUNC_DST_ZERO                                                   0x00000000
2494 #define   NV10TCL_BLEND_FUNC_DST_ONE                                                    0x00000001
2495 #define   NV10TCL_BLEND_FUNC_DST_SRC_COLOR                                              0x00000300
2496 #define   NV10TCL_BLEND_FUNC_DST_ONE_MINUS_SRC_COLOR                                    0x00000301
2497 #define   NV10TCL_BLEND_FUNC_DST_SRC_ALPHA                                              0x00000302
2498 #define   NV10TCL_BLEND_FUNC_DST_ONE_MINUS_SRC_ALPHA                                    0x00000303
2499 #define   NV10TCL_BLEND_FUNC_DST_DST_ALPHA                                              0x00000304
2500 #define   NV10TCL_BLEND_FUNC_DST_ONE_MINUS_DST_ALPHA                                    0x00000305
2501 #define   NV10TCL_BLEND_FUNC_DST_DST_COLOR                                              0x00000306
2502 #define   NV10TCL_BLEND_FUNC_DST_ONE_MINUS_DST_COLOR                                    0x00000307
2503 #define   NV10TCL_BLEND_FUNC_DST_SRC_ALPHA_SATURATE                                     0x00000308
2504 #define   NV10TCL_BLEND_FUNC_DST_CONSTANT_COLOR                                         0x00008001
2505 #define   NV10TCL_BLEND_FUNC_DST_ONE_MINUS_CONSTANT_COLOR                               0x00008002
2506 #define   NV10TCL_BLEND_FUNC_DST_CONSTANT_ALPHA                                         0x00008003
2507 #define   NV10TCL_BLEND_FUNC_DST_ONE_MINUS_CONSTANT_ALPHA                               0x00008004
2508 #define  NV10TCL_BLEND_COLOR                                                            0x0000034c
2509 #define   NV10TCL_BLEND_COLOR_B_SHIFT                                                   0
2510 #define   NV10TCL_BLEND_COLOR_B_MASK                                                    0x000000ff
2511 #define   NV10TCL_BLEND_COLOR_G_SHIFT                                                   8
2512 #define   NV10TCL_BLEND_COLOR_G_MASK                                                    0x0000ff00
2513 #define   NV10TCL_BLEND_COLOR_R_SHIFT                                                   16
2514 #define   NV10TCL_BLEND_COLOR_R_MASK                                                    0x00ff0000
2515 #define   NV10TCL_BLEND_COLOR_A_SHIFT                                                   24
2516 #define   NV10TCL_BLEND_COLOR_A_MASK                                                    0xff000000
2517 #define  NV10TCL_BLEND_EQUATION                                                         0x00000350
2518 #define   NV10TCL_BLEND_EQUATION_FUNC_ADD                                               0x00008006
2519 #define   NV10TCL_BLEND_EQUATION_MIN                                                    0x00008007
2520 #define   NV10TCL_BLEND_EQUATION_MAX                                                    0x00008008
2521 #define   NV10TCL_BLEND_EQUATION_FUNC_SUBTRACT                                          0x0000800a
2522 #define   NV10TCL_BLEND_EQUATION_FUNC_REVERSE_SUBTRACT                                  0x0000800b
2523 #define  NV10TCL_DEPTH_FUNC                                                             0x00000354
2524 #define   NV10TCL_DEPTH_FUNC_NEVER                                                      0x00000200
2525 #define   NV10TCL_DEPTH_FUNC_LESS                                                       0x00000201
2526 #define   NV10TCL_DEPTH_FUNC_EQUAL                                                      0x00000202
2527 #define   NV10TCL_DEPTH_FUNC_LEQUAL                                                     0x00000203
2528 #define   NV10TCL_DEPTH_FUNC_GREATER                                                    0x00000204
2529 #define   NV10TCL_DEPTH_FUNC_GREATER                                                    0x00000204
2530 #define   NV10TCL_DEPTH_FUNC_NOTEQUAL                                                   0x00000205
2531 #define   NV10TCL_DEPTH_FUNC_GEQUAL                                                     0x00000206
2532 #define   NV10TCL_DEPTH_FUNC_ALWAYS                                                     0x00000207
2533 #define  NV10TCL_COLOR_MASK                                                             0x00000358
2534 #define   NV10TCL_COLOR_MASK_B                                                          (1 <<  0)
2535 #define   NV10TCL_COLOR_MASK_G                                                          (1 <<  8)
2536 #define   NV10TCL_COLOR_MASK_R                                                          (1 << 16)
2537 #define   NV10TCL_COLOR_MASK_A                                                          (1 << 24)
2538 #define  NV10TCL_DEPTH_WRITE_ENABLE                                                     0x0000035c
2539 #define  NV10TCL_STENCIL_MASK                                                           0x00000360
2540 #define  NV10TCL_STENCIL_FUNC_FUNC                                                      0x00000364
2541 #define   NV10TCL_STENCIL_FUNC_FUNC_NEVER                                               0x00000200
2542 #define   NV10TCL_STENCIL_FUNC_FUNC_LESS                                                0x00000201
2543 #define   NV10TCL_STENCIL_FUNC_FUNC_EQUAL                                               0x00000202
2544 #define   NV10TCL_STENCIL_FUNC_FUNC_LEQUAL                                              0x00000203
2545 #define   NV10TCL_STENCIL_FUNC_FUNC_GREATER                                             0x00000204
2546 #define   NV10TCL_STENCIL_FUNC_FUNC_GREATER                                             0x00000204
2547 #define   NV10TCL_STENCIL_FUNC_FUNC_NOTEQUAL                                            0x00000205
2548 #define   NV10TCL_STENCIL_FUNC_FUNC_GEQUAL                                              0x00000206
2549 #define   NV10TCL_STENCIL_FUNC_FUNC_ALWAYS                                              0x00000207
2550 #define  NV10TCL_STENCIL_FUNC_REF                                                       0x00000368
2551 #define  NV10TCL_STENCIL_FUNC_MASK                                                      0x0000036c
2552 #define  NV10TCL_STENCIL_OP_FAIL                                                        0x00000370
2553 #define   NV10TCL_STENCIL_OP_FAIL_ZERO                                                  0x00000000
2554 #define   NV10TCL_STENCIL_OP_FAIL_INVERT                                                0x0000150a
2555 #define   NV10TCL_STENCIL_OP_FAIL_KEEP                                                  0x00001e00
2556 #define   NV10TCL_STENCIL_OP_FAIL_REPLACE                                               0x00001e01
2557 #define   NV10TCL_STENCIL_OP_FAIL_INCR                                                  0x00001e02
2558 #define   NV10TCL_STENCIL_OP_FAIL_DECR                                                  0x00001e03
2559 #define   NV10TCL_STENCIL_OP_FAIL_INCR_WRAP                                             0x00008507
2560 #define   NV10TCL_STENCIL_OP_FAIL_DECR_WRAP                                             0x00008508
2561 #define  NV10TCL_STENCIL_OP_ZFAIL                                                       0x00000374
2562 #define   NV10TCL_STENCIL_OP_ZFAIL_ZERO                                                 0x00000000
2563 #define   NV10TCL_STENCIL_OP_ZFAIL_INVERT                                               0x0000150a
2564 #define   NV10TCL_STENCIL_OP_ZFAIL_KEEP                                                 0x00001e00
2565 #define   NV10TCL_STENCIL_OP_ZFAIL_REPLACE                                              0x00001e01
2566 #define   NV10TCL_STENCIL_OP_ZFAIL_INCR                                                 0x00001e02
2567 #define   NV10TCL_STENCIL_OP_ZFAIL_DECR                                                 0x00001e03
2568 #define   NV10TCL_STENCIL_OP_ZFAIL_INCR_WRAP                                            0x00008507
2569 #define   NV10TCL_STENCIL_OP_ZFAIL_DECR_WRAP                                            0x00008508
2570 #define  NV10TCL_STENCIL_OP_ZPASS                                                       0x00000378
2571 #define   NV10TCL_STENCIL_OP_ZPASS_ZERO                                                 0x00000000
2572 #define   NV10TCL_STENCIL_OP_ZPASS_INVERT                                               0x0000150a
2573 #define   NV10TCL_STENCIL_OP_ZPASS_KEEP                                                 0x00001e00
2574 #define   NV10TCL_STENCIL_OP_ZPASS_REPLACE                                              0x00001e01
2575 #define   NV10TCL_STENCIL_OP_ZPASS_INCR                                                 0x00001e02
2576 #define   NV10TCL_STENCIL_OP_ZPASS_DECR                                                 0x00001e03
2577 #define   NV10TCL_STENCIL_OP_ZPASS_INCR_WRAP                                            0x00008507
2578 #define   NV10TCL_STENCIL_OP_ZPASS_DECR_WRAP                                            0x00008508
2579 #define  NV10TCL_SHADE_MODEL                                                            0x0000037c
2580 #define   NV10TCL_SHADE_MODEL_FLAT                                                      0x00001d00
2581 #define   NV10TCL_SHADE_MODEL_SMOOTH                                                    0x00001d01
2582 #define  NV10TCL_LINE_WIDTH                                                             0x00000380
2583 #define  NV10TCL_POLYGON_OFFSET_FACTOR                                                  0x00000384
2584 #define  NV10TCL_POLYGON_OFFSET_UNITS                                                   0x00000388
2585 #define  NV10TCL_POLYGON_MODE_FRONT                                                     0x0000038c
2586 #define   NV10TCL_POLYGON_MODE_FRONT_POINT                                              0x00001b00
2587 #define   NV10TCL_POLYGON_MODE_FRONT_LINE                                               0x00001b01
2588 #define   NV10TCL_POLYGON_MODE_FRONT_FILL                                               0x00001b02
2589 #define  NV10TCL_POLYGON_MODE_BACK                                                      0x00000390
2590 #define   NV10TCL_POLYGON_MODE_BACK_POINT                                               0x00001b00
2591 #define   NV10TCL_POLYGON_MODE_BACK_LINE                                                0x00001b01
2592 #define   NV10TCL_POLYGON_MODE_BACK_FILL                                                0x00001b02
2593 #define  NV10TCL_DEPTH_RANGE_NEAR                                                       0x00000394
2594 #define  NV10TCL_DEPTH_RANGE_FAR                                                        0x00000398
2595 #define  NV10TCL_CULL_FACE                                                              0x0000039c
2596 #define   NV10TCL_CULL_FACE_FRONT                                                       0x00000404
2597 #define   NV10TCL_CULL_FACE_BACK                                                        0x00000405
2598 #define   NV10TCL_CULL_FACE_FRONT_AND_BACK                                              0x00000408
2599 #define  NV10TCL_FRONT_FACE                                                             0x000003a0
2600 #define   NV10TCL_FRONT_FACE_CW                                                         0x00000900
2601 #define   NV10TCL_FRONT_FACE_CCW                                                        0x00000901
2602 #define  NV10TCL_NORMALIZE_ENABLE                                                       0x000003a4
2603 #define  NV10TCL_COLOR_MATERIAL_R                                                       0x000003a8
2604 #define  NV10TCL_COLOR_MATERIAL_G                                                       0x000003ac
2605 #define  NV10TCL_COLOR_MATERIAL_B                                                       0x000003b0
2606 #define  NV10TCL_COLOR_MATERIAL_A                                                       0x000003b4
2607 #define  NV10TCL_COLOR_CONTROL                                                          0x000003b8
2608 #define  NV10TCL_ENABLED_LIGHTS                                                         0x000003bc
2609 #define   NV10TCL_ENABLED_LIGHTS_LIGHT0                                                 (1 <<  0)
2610 #define   NV10TCL_ENABLED_LIGHTS_LIGHT1                                                 (1 <<  2)
2611 #define   NV10TCL_ENABLED_LIGHTS_LIGHT2                                                 (1 <<  4)
2612 #define   NV10TCL_ENABLED_LIGHTS_LIGHT3                                                 (1 <<  6)
2613 #define   NV10TCL_ENABLED_LIGHTS_LIGHT4                                                 (1 <<  8)
2614 #define   NV10TCL_ENABLED_LIGHTS_LIGHT5                                                 (1 << 10)
2615 #define   NV10TCL_ENABLED_LIGHTS_LIGHT6                                                 (1 << 12)
2616 #define   NV10TCL_ENABLED_LIGHTS_LIGHT7                                                 (1 << 14)
2617 #define  NV10TCL_CLIP_PLANE_ENABLE(x)                                                   (0x000003c0+((x)*4))
2618 #define  NV10TCL_CLIP_PLANE_ENABLE__SIZE                                                0x00000008
2619 #define   NV10TCL_CLIP_PLANE_ENABLE_FALSE                                               0x00000000
2620 #define   NV10TCL_CLIP_PLANE_ENABLE_EYE_LINEAR                                          0x00002400
2621 #define   NV10TCL_CLIP_PLANE_ENABLE_OBJECT_LINEAR                                       0x00002401
2622 #define  NV10TCL_TX_MATRIX_ENABLE(x)                                                    (0x000003e0+((x)*4))
2623 #define  NV10TCL_TX_MATRIX_ENABLE__SIZE                                                 0x00000002
2624 #define  NV10TCL_VIEW_MATRIX_ENABLE                                                     0x000003e8
2625 #define   NV10TCL_VIEW_MATRIX_ENABLE_MODELVIEW1                                         (1 <<  0)
2626 #define   NV10TCL_VIEW_MATRIX_ENABLE_MODELVIEW0                                         (1 <<  1)
2627 #define   NV10TCL_VIEW_MATRIX_ENABLE_PROJECTION                                         (1 <<  2)
2628 #define  NV10TCL_POINT_SIZE                                                             0x000003ec
2629 #define  NV10TCL_MODELVIEW0_MATRIX(x)                                                   (0x00000400+((x)*4))
2630 #define  NV10TCL_MODELVIEW0_MATRIX__SIZE                                                0x00000010
2631 #define  NV10TCL_MODELVIEW1_MATRIX(x)                                                   (0x00000440+((x)*4))
2632 #define  NV10TCL_MODELVIEW1_MATRIX__SIZE                                                0x00000010
2633 #define  NV10TCL_INVERSE_MODELVIEW0_MATRIX(x)                                           (0x00000480+((x)*4))
2634 #define  NV10TCL_INVERSE_MODELVIEW0_MATRIX__SIZE                                        0x00000010
2635 #define  NV10TCL_INVERSE_MODELVIEW1_MATRIX(x)                                           (0x000004c0+((x)*4))
2636 #define  NV10TCL_INVERSE_MODELVIEW1_MATRIX__SIZE                                        0x00000010
2637 #define  NV10TCL_PROJECTION_MATRIX(x)                                                   (0x00000500+((x)*4))
2638 #define  NV10TCL_PROJECTION_MATRIX__SIZE                                                0x00000010
2639 #define  NV10TCL_TX0_MATRIX(x)                                                          (0x00000540+((x)*4))
2640 #define  NV10TCL_TX0_MATRIX__SIZE                                                       0x00000010
2641 #define  NV10TCL_TX1_MATRIX(x)                                                          (0x00000580+((x)*4))
2642 #define  NV10TCL_TX1_MATRIX__SIZE                                                       0x00000010
2643 #define  NV10TCL_CLIP_PLANE_A(x)                                                        (0x00000600+((x)*16))
2644 #define  NV10TCL_CLIP_PLANE_A__SIZE                                                     0x00000008
2645 #define  NV10TCL_CLIP_PLANE_B(x)                                                        (0x00000604+((x)*16))
2646 #define  NV10TCL_CLIP_PLANE_B__SIZE                                                     0x00000008
2647 #define  NV10TCL_CLIP_PLANE_C(x)                                                        (0x00000608+((x)*16))
2648 #define  NV10TCL_CLIP_PLANE_C__SIZE                                                     0x00000008
2649 #define  NV10TCL_CLIP_PLANE_D(x)                                                        (0x0000060c+((x)*16))
2650 #define  NV10TCL_CLIP_PLANE_D__SIZE                                                     0x00000008
2651 #define  NV10TCL_FOG_EQUATION_CONSTANT                                                  0x00000680
2652 #define  NV10TCL_FOG_EQUATION_LINEAR                                                    0x00000684
2653 #define  NV10TCL_FOG_EQUATION_QUADRATIC                                                 0x00000688
2654 #define  NV10TCL_FRONT_MATERIAL_SHININESS(x)                                            (0x000006a0+((x)*4))
2655 #define  NV10TCL_FRONT_MATERIAL_SHININESS__SIZE                                         0x00000006
2656 #define  NV10TCL_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_R                 0x000006c4
2657 #define  NV10TCL_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_G                 0x000006c8
2658 #define  NV10TCL_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_B                 0x000006cc
2659 #define  NV10TCL_VIEWPORT_SCALE_X                                                       0x000006e8
2660 #define  NV10TCL_VIEWPORT_SCALE_Y                                                       0x000006ec
2661 #define  NV10TCL_VIEWPORT_SCALE_Z                                                       0x000006f0
2662 #define  NV10TCL_VIEWPORT_SCALE_W                                                       0x000006f4
2663 #define  NV10TCL_POINT_PARAMETER(x)                                                     (0x000006f8+((x)*4))
2664 #define  NV10TCL_POINT_PARAMETER__SIZE                                                  0x00000008
2665 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_R(x)                                  (0x00000800+((x)*128))
2666 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_R__SIZE                               0x00000008
2667 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_G(x)                                  (0x00000804+((x)*128))
2668 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_G__SIZE                               0x00000008
2669 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_B(x)                                  (0x00000808+((x)*128))
2670 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_B__SIZE                               0x00000008
2671 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_R(x)                                  (0x0000080c+((x)*128))
2672 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_R__SIZE                               0x00000008
2673 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_G(x)                                  (0x00000810+((x)*128))
2674 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_G__SIZE                               0x00000008
2675 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_B(x)                                  (0x00000814+((x)*128))
2676 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_B__SIZE                               0x00000008
2677 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_R(x)                                 (0x00000818+((x)*128))
2678 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_R__SIZE                              0x00000008
2679 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_G(x)                                 (0x0000081c+((x)*128))
2680 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_G__SIZE                              0x00000008
2681 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_B(x)                                 (0x00000820+((x)*128))
2682 #define  NV10TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_B__SIZE                              0x00000008
2683 #define  NV10TCL_LIGHT_HALF_VECTOR_X(x)                                                 (0x00000828+((x)*128))
2684 #define  NV10TCL_LIGHT_HALF_VECTOR_X__SIZE                                              0x00000008
2685 #define  NV10TCL_LIGHT_HALF_VECTOR_Y(x)                                                 (0x0000082c+((x)*128))
2686 #define  NV10TCL_LIGHT_HALF_VECTOR_Y__SIZE                                              0x00000008
2687 #define  NV10TCL_LIGHT_HALF_VECTOR_Z(x)                                                 (0x00000830+((x)*128))
2688 #define  NV10TCL_LIGHT_HALF_VECTOR_Z__SIZE                                              0x00000008
2689 #define  NV10TCL_LIGHT_DIRECTION_X(x)                                                   (0x00000834+((x)*128))
2690 #define  NV10TCL_LIGHT_DIRECTION_X__SIZE                                                0x00000008
2691 #define  NV10TCL_LIGHT_DIRECTION_Y(x)                                                   (0x00000838+((x)*128))
2692 #define  NV10TCL_LIGHT_DIRECTION_Y__SIZE                                                0x00000008
2693 #define  NV10TCL_LIGHT_DIRECTION_Z(x)                                                   (0x0000083c+((x)*128))
2694 #define  NV10TCL_LIGHT_DIRECTION_Z__SIZE                                                0x00000008
2695 #define  NV10TCL_LIGHT_SPOT_CUTOFF_A(x)                                                 (0x00000840+((x)*128))
2696 #define  NV10TCL_LIGHT_SPOT_CUTOFF_A__SIZE                                              0x00000008
2697 #define  NV10TCL_LIGHT_SPOT_CUTOFF_B(x)                                                 (0x00000844+((x)*128))
2698 #define  NV10TCL_LIGHT_SPOT_CUTOFF_B__SIZE                                              0x00000008
2699 #define  NV10TCL_LIGHT_SPOT_CUTOFF_C(x)                                                 (0x00000848+((x)*128))
2700 #define  NV10TCL_LIGHT_SPOT_CUTOFF_C__SIZE                                              0x00000008
2701 #define  NV10TCL_LIGHT_SPOT_DIR_X(x)                                                    (0x0000084c+((x)*128))
2702 #define  NV10TCL_LIGHT_SPOT_DIR_X__SIZE                                                 0x00000008
2703 #define  NV10TCL_LIGHT_SPOT_DIR_Y(x)                                                    (0x00000850+((x)*128))
2704 #define  NV10TCL_LIGHT_SPOT_DIR_Y__SIZE                                                 0x00000008
2705 #define  NV10TCL_LIGHT_SPOT_DIR_Z(x)                                                    (0x00000854+((x)*128))
2706 #define  NV10TCL_LIGHT_SPOT_DIR_Z__SIZE                                                 0x00000008
2707 #define  NV10TCL_LIGHT_SPOT_CUTOFF_D(x)                                                 (0x00000858+((x)*128))
2708 #define  NV10TCL_LIGHT_SPOT_CUTOFF_D__SIZE                                              0x00000008
2709 #define  NV10TCL_LIGHT_POSITION_X(x)                                                    (0x0000085c+((x)*128))
2710 #define  NV10TCL_LIGHT_POSITION_X__SIZE                                                 0x00000008
2711 #define  NV10TCL_LIGHT_POSITION_Y(x)                                                    (0x00000860+((x)*128))
2712 #define  NV10TCL_LIGHT_POSITION_Y__SIZE                                                 0x00000008
2713 #define  NV10TCL_LIGHT_POSITION_Z(x)                                                    (0x00000864+((x)*128))
2714 #define  NV10TCL_LIGHT_POSITION_Z__SIZE                                                 0x00000008
2715 #define  NV10TCL_LIGHT_ATTENUATION_CONSTANT(x)                                          (0x00000868+((x)*128))
2716 #define  NV10TCL_LIGHT_ATTENUATION_CONSTANT__SIZE                                       0x00000008
2717 #define  NV10TCL_LIGHT_ATTENUATION_LINEAR(x)                                            (0x0000086c+((x)*128))
2718 #define  NV10TCL_LIGHT_ATTENUATION_LINEAR__SIZE                                         0x00000008
2719 #define  NV10TCL_LIGHT_ATTENUATION_QUADRATIC(x)                                         (0x00000870+((x)*128))
2720 #define  NV10TCL_LIGHT_ATTENUATION_QUADRATIC__SIZE                                      0x00000008
2721 #define  NV10TCL_VERTEX_POS_3F_X                                                        0x00000c00
2722 #define  NV10TCL_VERTEX_POS_3F_Y                                                        0x00000c04
2723 #define  NV10TCL_VERTEX_POS_3F_Z                                                        0x00000c08
2724 #define  NV10TCL_VERTEX_POS_4F_X                                                        0x00000c18
2725 #define  NV10TCL_VERTEX_POS_4F_Y                                                        0x00000c1c
2726 #define  NV10TCL_VERTEX_POS_4F_Z                                                        0x00000c20
2727 #define  NV10TCL_VERTEX_POS_4F_W                                                        0x00000c24
2728 #define  NV10TCL_VERTEX_NOR_3F_X                                                        0x00000c30
2729 #define  NV10TCL_VERTEX_NOR_3F_Y                                                        0x00000c34
2730 #define  NV10TCL_VERTEX_NOR_3F_Z                                                        0x00000c38
2731 #define  NV10TCL_VERTEX_NOR_3I_XY                                                       0x00000c40
2732 #define   NV10TCL_VERTEX_NOR_3I_XY_X_SHIFT                                              0
2733 #define   NV10TCL_VERTEX_NOR_3I_XY_X_MASK                                               0x0000ffff
2734 #define   NV10TCL_VERTEX_NOR_3I_XY_Y_SHIFT                                              16
2735 #define   NV10TCL_VERTEX_NOR_3I_XY_Y_MASK                                               0xffff0000
2736 #define  NV10TCL_VERTEX_NOR_3I_Z                                                        0x00000c44
2737 #define   NV10TCL_VERTEX_NOR_3I_Z_Z_SHIFT                                               0
2738 #define   NV10TCL_VERTEX_NOR_3I_Z_Z_MASK                                                0x0000ffff
2739 #define  NV10TCL_VERTEX_COL_4F_R                                                        0x00000c50
2740 #define  NV10TCL_VERTEX_COL_4F_G                                                        0x00000c54
2741 #define  NV10TCL_VERTEX_COL_4F_B                                                        0x00000c58
2742 #define  NV10TCL_VERTEX_COL_4F_A                                                        0x00000c5c
2743 #define  NV10TCL_VERTEX_COL_3F_R                                                        0x00000c60
2744 #define  NV10TCL_VERTEX_COL_3F_G                                                        0x00000c64
2745 #define  NV10TCL_VERTEX_COL_3F_B                                                        0x00000c68
2746 #define  NV10TCL_VERTEX_COL_4I                                                          0x00000c6c
2747 #define   NV10TCL_VERTEX_COL_4I_R_SHIFT                                                 0
2748 #define   NV10TCL_VERTEX_COL_4I_R_MASK                                                  0x000000ff
2749 #define   NV10TCL_VERTEX_COL_4I_G_SHIFT                                                 8
2750 #define   NV10TCL_VERTEX_COL_4I_G_MASK                                                  0x0000ff00
2751 #define   NV10TCL_VERTEX_COL_4I_B_SHIFT                                                 16
2752 #define   NV10TCL_VERTEX_COL_4I_B_MASK                                                  0x00ff0000
2753 #define   NV10TCL_VERTEX_COL_4I_A_SHIFT                                                 24
2754 #define   NV10TCL_VERTEX_COL_4I_A_MASK                                                  0xff000000
2755 #define  NV10TCL_VERTEX_COL2_3F_R                                                       0x00000c80
2756 #define  NV10TCL_VERTEX_COL2_3F_G                                                       0x00000c84
2757 #define  NV10TCL_VERTEX_COL2_3F_B                                                       0x00000c88
2758 #define  NV10TCL_VERTEX_COL2_3I                                                         0x00000c8c
2759 #define   NV10TCL_VERTEX_COL2_3I_R_SHIFT                                                0
2760 #define   NV10TCL_VERTEX_COL2_3I_R_MASK                                                 0x000000ff
2761 #define   NV10TCL_VERTEX_COL2_3I_G_SHIFT                                                8
2762 #define   NV10TCL_VERTEX_COL2_3I_G_MASK                                                 0x0000ff00
2763 #define   NV10TCL_VERTEX_COL2_3I_B_SHIFT                                                16
2764 #define   NV10TCL_VERTEX_COL2_3I_B_MASK                                                 0x00ff0000
2765 #define  NV10TCL_VERTEX_TX0_2F_S                                                        0x00000c90
2766 #define  NV10TCL_VERTEX_TX0_2F_T                                                        0x00000c94
2767 #define  NV10TCL_VERTEX_TX0_2I                                                          0x00000c98
2768 #define   NV10TCL_VERTEX_TX0_2I_S_SHIFT                                                 0
2769 #define   NV10TCL_VERTEX_TX0_2I_S_MASK                                                  0x0000ffff
2770 #define   NV10TCL_VERTEX_TX0_2I_T_SHIFT                                                 16
2771 #define   NV10TCL_VERTEX_TX0_2I_T_MASK                                                  0xffff0000
2772 #define  NV10TCL_VERTEX_TX0_4F_S                                                        0x00000ca0
2773 #define  NV10TCL_VERTEX_TX0_4F_T                                                        0x00000ca4
2774 #define  NV10TCL_VERTEX_TX0_4F_R                                                        0x00000ca8
2775 #define  NV10TCL_VERTEX_TX0_4F_Q                                                        0x00000cac
2776 #define  NV10TCL_VERTEX_TX0_4I_ST                                                       0x00000cb0
2777 #define   NV10TCL_VERTEX_TX0_4I_ST_S_SHIFT                                              0
2778 #define   NV10TCL_VERTEX_TX0_4I_ST_S_MASK                                               0x0000ffff
2779 #define   NV10TCL_VERTEX_TX0_4I_ST_T_SHIFT                                              16
2780 #define   NV10TCL_VERTEX_TX0_4I_ST_T_MASK                                               0xffff0000
2781 #define  NV10TCL_VERTEX_TX0_4I_RQ                                                       0x00000cb4
2782 #define   NV10TCL_VERTEX_TX0_4I_RQ_R_SHIFT                                              0
2783 #define   NV10TCL_VERTEX_TX0_4I_RQ_R_MASK                                               0x0000ffff
2784 #define   NV10TCL_VERTEX_TX0_4I_RQ_Q_SHIFT                                              16
2785 #define   NV10TCL_VERTEX_TX0_4I_RQ_Q_MASK                                               0xffff0000
2786 #define  NV10TCL_VERTEX_TX1_2F_S                                                        0x00000cb8
2787 #define  NV10TCL_VERTEX_TX1_2F_T                                                        0x00000cbc
2788 #define  NV10TCL_VERTEX_TX1_2I                                                          0x00000cc0
2789 #define   NV10TCL_VERTEX_TX1_2I_S_SHIFT                                                 0
2790 #define   NV10TCL_VERTEX_TX1_2I_S_MASK                                                  0x0000ffff
2791 #define   NV10TCL_VERTEX_TX1_2I_T_SHIFT                                                 16
2792 #define   NV10TCL_VERTEX_TX1_2I_T_MASK                                                  0xffff0000
2793 #define  NV10TCL_VERTEX_TX1_4F_S                                                        0x00000cc8
2794 #define  NV10TCL_VERTEX_TX1_4F_T                                                        0x00000ccc
2795 #define  NV10TCL_VERTEX_TX1_4F_R                                                        0x00000cd0
2796 #define  NV10TCL_VERTEX_TX1_4F_Q                                                        0x00000cd4
2797 #define  NV10TCL_VERTEX_TX1_4I_ST                                                       0x00000cd8
2798 #define   NV10TCL_VERTEX_TX1_4I_ST_S_SHIFT                                              0
2799 #define   NV10TCL_VERTEX_TX1_4I_ST_S_MASK                                               0x0000ffff
2800 #define   NV10TCL_VERTEX_TX1_4I_ST_T_SHIFT                                              16
2801 #define   NV10TCL_VERTEX_TX1_4I_ST_T_MASK                                               0xffff0000
2802 #define  NV10TCL_VERTEX_TX1_4I_RQ                                                       0x00000cdc
2803 #define   NV10TCL_VERTEX_TX1_4I_RQ_R_SHIFT                                              0
2804 #define   NV10TCL_VERTEX_TX1_4I_RQ_R_MASK                                               0x0000ffff
2805 #define   NV10TCL_VERTEX_TX1_4I_RQ_Q_SHIFT                                              16
2806 #define   NV10TCL_VERTEX_TX1_4I_RQ_Q_MASK                                               0xffff0000
2807 #define  NV10TCL_VERTEX_FOG_1F                                                          0x00000ce0
2808 #define  NV10TCL_VERTEX_WGH_1F                                                          0x00000ce4
2809 #define  NV10TCL_EDGEFLAG_ENABLE                                                        0x00000cec
2810 #define  NV10TCL_VERTEX_ARRAY_VALIDATE                                                  0x00000cf0
2811 #define  NV10TCL_VERTEX_ARRAY_ATTRIB_OFFSET(x)                                          (0x00000d00+((x)*8))
2812 #define  NV10TCL_VERTEX_ARRAY_ATTRIB_OFFSET__SIZE                                       0x00000008
2813 #define  NV10TCL_VERTEX_ARRAY_ATTRIB_FORMAT(x)                                          (0x00000d04+((x)*8))
2814 #define  NV10TCL_VERTEX_ARRAY_ATTRIB_FORMAT__SIZE                                       0x00000008
2815 #define   NV10TCL_VERTEX_ARRAY_ATTRIB_FORMAT_TYPE_SHIFT                                 0
2816 #define   NV10TCL_VERTEX_ARRAY_ATTRIB_FORMAT_TYPE_MASK                                  0x0000000f
2817 #define   NV10TCL_VERTEX_ARRAY_ATTRIB_FORMAT_FIELDS_SHIFT                               4
2818 #define   NV10TCL_VERTEX_ARRAY_ATTRIB_FORMAT_FIELDS_MASK                                0x000000f0
2819 #define   NV10TCL_VERTEX_ARRAY_ATTRIB_FORMAT_STRIDE_SHIFT                               8
2820 #define   NV10TCL_VERTEX_ARRAY_ATTRIB_FORMAT_STRIDE_MASK                                0x0000ff00
2821 #define  NV10TCL_VERTEX_ARRAY_OFFSET_POS                                                0x00000d00
2822 #define  NV10TCL_VERTEX_ARRAY_FORMAT_POS                                                0x00000d04
2823 #define   NV10TCL_VERTEX_ARRAY_FORMAT_POS_TYPE_SHIFT                                    0
2824 #define   NV10TCL_VERTEX_ARRAY_FORMAT_POS_TYPE_MASK                                     0x0000000f
2825 #define   NV10TCL_VERTEX_ARRAY_FORMAT_POS_FIELDS_SHIFT                                  4
2826 #define   NV10TCL_VERTEX_ARRAY_FORMAT_POS_FIELDS_MASK                                   0x000000f0
2827 #define   NV10TCL_VERTEX_ARRAY_FORMAT_POS_STRIDE_SHIFT                                  8
2828 #define   NV10TCL_VERTEX_ARRAY_FORMAT_POS_STRIDE_MASK                                   0x0000ff00
2829 #define  NV10TCL_VERTEX_ARRAY_OFFSET_COL                                                0x00000d08
2830 #define  NV10TCL_VERTEX_ARRAY_FORMAT_COL                                                0x00000d0c
2831 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL_TYPE_SHIFT                                    0
2832 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL_TYPE_MASK                                     0x0000000f
2833 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL_FIELDS_SHIFT                                  4
2834 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL_FIELDS_MASK                                   0x000000f0
2835 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL_STRIDE_SHIFT                                  8
2836 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL_STRIDE_MASK                                   0x0000ff00
2837 #define  NV10TCL_VERTEX_ARRAY_OFFSET_COL2                                               0x00000d10
2838 #define  NV10TCL_VERTEX_ARRAY_FORMAT_COL2                                               0x00000d14
2839 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL2_TYPE_SHIFT                                   0
2840 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL2_TYPE_MASK                                    0x0000000f
2841 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL2_FIELDS_SHIFT                                 4
2842 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL2_FIELDS_MASK                                  0x000000f0
2843 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL2_STRIDE_SHIFT                                 8
2844 #define   NV10TCL_VERTEX_ARRAY_FORMAT_COL2_STRIDE_MASK                                  0x0000ff00
2845 #define  NV10TCL_VERTEX_ARRAY_OFFSET_TX0                                                0x00000d18
2846 #define  NV10TCL_VERTEX_ARRAY_FORMAT_TX0                                                0x00000d1c
2847 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX0_TYPE_SHIFT                                    0
2848 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX0_TYPE_MASK                                     0x0000000f
2849 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX0_FIELDS_SHIFT                                  4
2850 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX0_FIELDS_MASK                                   0x000000f0
2851 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX0_STRIDE_SHIFT                                  8
2852 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX0_STRIDE_MASK                                   0x0000ff00
2853 #define  NV10TCL_VERTEX_ARRAY_OFFSET_TX1                                                0x00000d20
2854 #define  NV10TCL_VERTEX_ARRAY_FORMAT_TX1                                                0x00000d24
2855 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX1_TYPE_SHIFT                                    0
2856 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX1_TYPE_MASK                                     0x0000000f
2857 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX1_FIELDS_SHIFT                                  4
2858 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX1_FIELDS_MASK                                   0x000000f0
2859 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX1_STRIDE_SHIFT                                  8
2860 #define   NV10TCL_VERTEX_ARRAY_FORMAT_TX1_STRIDE_MASK                                   0x0000ff00
2861 #define  NV10TCL_VERTEX_ARRAY_OFFSET_NOR                                                0x00000d28
2862 #define  NV10TCL_VERTEX_ARRAY_FORMAT_NOR                                                0x00000d2c
2863 #define   NV10TCL_VERTEX_ARRAY_FORMAT_NOR_TYPE_SHIFT                                    0
2864 #define   NV10TCL_VERTEX_ARRAY_FORMAT_NOR_TYPE_MASK                                     0x0000000f
2865 #define   NV10TCL_VERTEX_ARRAY_FORMAT_NOR_FIELDS_SHIFT                                  4
2866 #define   NV10TCL_VERTEX_ARRAY_FORMAT_NOR_FIELDS_MASK                                   0x000000f0
2867 #define   NV10TCL_VERTEX_ARRAY_FORMAT_NOR_STRIDE_SHIFT                                  8
2868 #define   NV10TCL_VERTEX_ARRAY_FORMAT_NOR_STRIDE_MASK                                   0x0000ff00
2869 #define  NV10TCL_VERTEX_ARRAY_OFFSET_WGH                                                0x00000d30
2870 #define  NV10TCL_VERTEX_ARRAY_FORMAT_WGH                                                0x00000d34
2871 #define   NV10TCL_VERTEX_ARRAY_FORMAT_WGH_TYPE_SHIFT                                    0
2872 #define   NV10TCL_VERTEX_ARRAY_FORMAT_WGH_TYPE_MASK                                     0x0000000f
2873 #define   NV10TCL_VERTEX_ARRAY_FORMAT_WGH_FIELDS_SHIFT                                  4
2874 #define   NV10TCL_VERTEX_ARRAY_FORMAT_WGH_FIELDS_MASK                                   0x000000f0
2875 #define   NV10TCL_VERTEX_ARRAY_FORMAT_WGH_STRIDE_SHIFT                                  8
2876 #define   NV10TCL_VERTEX_ARRAY_FORMAT_WGH_STRIDE_MASK                                   0x0000ff00
2877 #define  NV10TCL_VERTEX_ARRAY_OFFSET_FOG                                                0x00000d38
2878 #define  NV10TCL_VERTEX_ARRAY_FORMAT_FOG                                                0x00000d3c
2879 #define   NV10TCL_VERTEX_ARRAY_FORMAT_FOG_TYPE_SHIFT                                    0
2880 #define   NV10TCL_VERTEX_ARRAY_FORMAT_FOG_TYPE_MASK                                     0x0000000f
2881 #define   NV10TCL_VERTEX_ARRAY_FORMAT_FOG_FIELDS_SHIFT                                  4
2882 #define   NV10TCL_VERTEX_ARRAY_FORMAT_FOG_FIELDS_MASK                                   0x000000f0
2883 #define   NV10TCL_VERTEX_ARRAY_FORMAT_FOG_STRIDE_SHIFT                                  8
2884 #define   NV10TCL_VERTEX_ARRAY_FORMAT_FOG_STRIDE_MASK                                   0x0000ff00
2885 #define  NV10TCL_VERTEX_BEGIN_END                                                       0x00000dfc
2886 #define   NV10TCL_VERTEX_BEGIN_END_STOP                                                 0x00000000
2887 #define   NV10TCL_VERTEX_BEGIN_END_POINTS                                               0x00000001
2888 #define   NV10TCL_VERTEX_BEGIN_END_LINES                                                0x00000002
2889 #define   NV10TCL_VERTEX_BEGIN_END_LINE_LOOP                                            0x00000003
2890 #define   NV10TCL_VERTEX_BEGIN_END_LINE_STRIP                                           0x00000004
2891 #define   NV10TCL_VERTEX_BEGIN_END_TRIANGLES                                            0x00000005
2892 #define   NV10TCL_VERTEX_BEGIN_END_TRIANGLE_STRIP                                       0x00000006
2893 #define   NV10TCL_VERTEX_BEGIN_END_TRIANGLE_FAN                                         0x00000007
2894 #define   NV10TCL_VERTEX_BEGIN_END_QUADS                                                0x00000008
2895 #define   NV10TCL_VERTEX_BEGIN_END_QUAD_STRIP                                           0x00000009
2896 #define   NV10TCL_VERTEX_BEGIN_END_POLYGON                                              0x0000000a
2897 #define  NV10TCL_VB_ELEMENT_U16                                                         0x00000e00
2898 #define   NV10TCL_VB_ELEMENT_U16_I0_SHIFT                                               0
2899 #define   NV10TCL_VB_ELEMENT_U16_I0_MASK                                                0x0000ffff
2900 #define   NV10TCL_VB_ELEMENT_U16_I1_SHIFT                                               16
2901 #define   NV10TCL_VB_ELEMENT_U16_I1_MASK                                                0xffff0000
2902 #define  NV10TCL_VB_ELEMENT_U32                                                         0x00001100
2903 #define  NV10TCL_VERTEX_BUFFER_BEGIN_END                                                0x000013fc
2904 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_STOP                                          0x00000000
2905 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_POINTS                                        0x00000001
2906 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_LINES                                         0x00000002
2907 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_LINE_LOOP                                     0x00000003
2908 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_LINE_STRIP                                    0x00000004
2909 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_TRIANGLES                                     0x00000005
2910 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_TRIANGLE_STRIP                                0x00000006
2911 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_TRIANGLE_FAN                                  0x00000007
2912 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_QUADS                                         0x00000008
2913 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_QUAD_STRIP                                    0x00000009
2914 #define   NV10TCL_VERTEX_BUFFER_BEGIN_END_POLYGON                                       0x0000000a
2915 #define  NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS                                              0x00001400
2916 #define   NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS_FIRST_SHIFT                                 0
2917 #define   NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS_FIRST_MASK                                  0x0000ffff
2918 #define   NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS_LAST_SHIFT                                  24
2919 #define   NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS_LAST_MASK                                   0xff000000
2920 #define  NV10TCL_VERTEX_ARRAY_DATA                                                      0x00001800
2921
2922
2923 #define NV04_CONTEXT_COLOR_KEY                                                          0x00000057
2924
2925
2926
2927 #define NV03_CONTEXT_SURFACES_2D                                                        0x00000058
2928
2929 #define  NV03_CONTEXT_SURFACES_2D_SYNCHRONIZE                                           0x00000100
2930 #define  NV03_CONTEXT_SURFACES_2D_DMA_NOTIFY                                            0x00000180
2931 #define  NV03_CONTEXT_SURFACES_2D_DMA_SOURCE                                            0x00000184
2932 #define  NV03_CONTEXT_SURFACES_2D_DMA_DESTIN                                            0x00000188
2933 #define  NV03_CONTEXT_SURFACES_2D_COLOR_FORMAT                                          0x00000300
2934 #define  NV03_CONTEXT_SURFACES_2D_PITCH                                                 0x00000304
2935 #define   NV03_CONTEXT_SURFACES_2D_PITCH_SOURCE_SHIFT                                   0
2936 #define   NV03_CONTEXT_SURFACES_2D_PITCH_SOURCE_MASK                                    0x0000ffff
2937 #define   NV03_CONTEXT_SURFACES_2D_PITCH_DESTIN_SHIFT                                   16
2938 #define   NV03_CONTEXT_SURFACES_2D_PITCH_DESTIN_MASK                                    0xffff0000
2939 #define  NV03_CONTEXT_SURFACES_2D_OFFSET_SOURCE                                         0x00000308
2940 #define  NV03_CONTEXT_SURFACES_2D_OFFSET_DESTIN                                         0x0000030c
2941
2942
2943 #define NV03_CONTEXT_SURFACES_3D                                                        0x0000005a
2944
2945 #define  NV03_CONTEXT_SURFACES_3D_SYNCHRONIZE                                           0x00000100
2946 #define  NV03_CONTEXT_SURFACES_3D_DMA_NOTIFY                                            0x00000180
2947 #define  NV03_CONTEXT_SURFACES_3D_DMA_SURFACE                                           0x00000184
2948 #define  NV03_CONTEXT_SURFACES_3D_PITCH                                                 0x00000300
2949 #define  NV03_CONTEXT_SURFACES_3D_OFFSET_COLOR                                          0x00000304
2950 #define  NV03_CONTEXT_SURFACES_3D_OFFSET_ZETA                                           0x00000308
2951
2952
2953 #define NV04_RENDER_SOLID_LINE                                                          0x0000005c
2954
2955 #define  NV04_RENDER_SOLID_LINE_SURFACE                                                 0x00000198
2956
2957
2958 #define NV04_RENDER_SOLID_TRIANGLE                                                      0x0000005d
2959
2960
2961
2962 #define NV04_RENDER_SOLID_RECTANGLE                                                     0x0000005e
2963
2964 #define  NV04_RENDER_SOLID_RECTANGLE_SURFACE                                            0x00000198
2965
2966
2967 #define NV04_IMAGE_BLIT                                                                 0x0000005f
2968
2969 #define  NV04_IMAGE_BLIT_NOP                                                            0x00000100
2970 #define  NV04_IMAGE_BLIT_NOTIFY                                                         0x00000104
2971 #define  NV04_IMAGE_BLIT_DMA_NOTIFY                                                     0x00000180
2972 #define  NV04_IMAGE_BLIT_COLOR_KEY                                                      0x00000184
2973 #define  NV04_IMAGE_BLIT_CLIP_RECTANGLE                                                 0x00000188
2974 #define  NV04_IMAGE_BLIT_PATTERN                                                        0x0000018c
2975 #define  NV04_IMAGE_BLIT_ROP                                                            0x00000190
2976 #define  NV04_IMAGE_BLIT_BETA4                                                          0x00000198
2977 #define  NV04_IMAGE_BLIT_SURFACE                                                        0x0000019c
2978 #define  NV04_IMAGE_BLIT_OPERATION                                                      0x000002fc
2979 #define   NV04_IMAGE_BLIT_OPERATION_SRCCOPY_AND                                         0x00000000
2980 #define   NV04_IMAGE_BLIT_OPERATION_ROP_AND                                             0x00000001
2981 #define   NV04_IMAGE_BLIT_OPERATION_BLEND_AND                                           0x00000002
2982 #define   NV04_IMAGE_BLIT_OPERATION_SRCCOPY                                             0x00000003
2983 #define   NV04_IMAGE_BLIT_OPERATION_SRCCOPY_PREMULT                                     0x00000004
2984 #define   NV04_IMAGE_BLIT_OPERATION_BLEND_PREMULT                                       0x00000005
2985
2986
2987 #define NV04_INDEXED_IMAGE_FROM_CPU                                                     0x00000060
2988
2989 #define  NV04_INDEXED_IMAGE_FROM_CPU_NOP                                                0x00000100
2990 #define  NV04_INDEXED_IMAGE_FROM_CPU_NOTIFY                                             0x00000104
2991 #define  NV04_INDEXED_IMAGE_FROM_CPU_PATCH                                              0x0000010c
2992 #define  NV04_INDEXED_IMAGE_FROM_CPU_DMA_NOTIFY                                         0x00000180
2993 #define  NV04_INDEXED_IMAGE_FROM_CPU_DMA_LUT                                            0x00000184
2994 #define  NV04_INDEXED_IMAGE_FROM_CPU_COLOR_FORMAT                                       0x000003e8
2995 #define  NV04_INDEXED_IMAGE_FROM_CPU_INDEX_FORMAT                                       0x000003ec
2996 #define  NV04_INDEXED_IMAGE_FROM_CPU_LUT_OFFSET                                         0x000003f0
2997 #define  NV04_INDEXED_IMAGE_FROM_CPU_POINT                                              0x000003f4
2998 #define  NV04_INDEXED_IMAGE_FROM_CPU_SIZE_OUT                                           0x000003f8
2999 #define  NV04_INDEXED_IMAGE_FROM_CPU_SIZE_IN                                            0x000003fc
3000 #define  NV04_INDEXED_IMAGE_FROM_CPU_COLOR                                              0x00000400
3001
3002
3003 #define NV04_IMAGE_FROM_CPU                                                             0x00000061
3004
3005 #define  NV04_IMAGE_FROM_CPU_BETA4                                                      0x00000198
3006 #define  NV04_IMAGE_FROM_CPU_SURFACE                                                    0x0000019c
3007
3008
3009 #define NV10_CONTEXT_SURFACES_2D                                                        0x00000062
3010
3011
3012
3013 #define NV05_SCALED_IMAGE_FROM_MEMORY                                                   0x00000063
3014
3015 #define  NV05_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION                                 0x000002fc
3016 #define   NV05_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION_DITHER                         0x00000000
3017 #define   NV05_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION_TRUNCATE                       0x00000001
3018 #define   NV05_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION_SUBTR_TRUNCATE                 0x00000002
3019
3020
3021 #define NV01_IMAGE_SRCCOPY_AND                                                          0x00000064
3022
3023 #define  NV01_IMAGE_SRCCOPY_AND_NOTIFY                                                  0x00000104
3024 #define  NV01_IMAGE_SRCCOPY_AND_DMA_NOTIFY                                              0x00000180
3025 #define  NV01_IMAGE_SRCCOPY_AND_IMAGE_OUTPUT                                            0x00000200
3026 #define  NV01_IMAGE_SRCCOPY_AND_IMAGE_INPUT                                             0x00000204
3027
3028
3029 #define NV05_INDEXED_IMAGE_FROM_CPU                                                     0x00000064
3030
3031 #define  NV05_INDEXED_IMAGE_FROM_CPU_COLOR_KEY                                          0x00000188
3032 #define  NV05_INDEXED_IMAGE_FROM_CPU_CLIP_RECTANGLE                                     0x0000018c
3033 #define  NV05_INDEXED_IMAGE_FROM_CPU_PATTERN                                            0x00000190
3034 #define  NV05_INDEXED_IMAGE_FROM_CPU_ROP                                                0x00000194
3035 #define  NV05_INDEXED_IMAGE_FROM_CPU_BETA1                                              0x00000198
3036 #define  NV05_INDEXED_IMAGE_FROM_CPU_BETA4                                              0x0000019c
3037 #define  NV05_INDEXED_IMAGE_FROM_CPU_SURFACE                                            0x000001a0
3038 #define  NV05_INDEXED_IMAGE_FROM_CPU_COLOR_CONVERSION                                   0x000003e0
3039 #define  NV05_INDEXED_IMAGE_FROM_CPU_OPERATION                                          0x000003e4
3040 #define  NV05_INDEXED_IMAGE_FROM_CPU_INDICES                                            0x00000400
3041
3042
3043 #define NV05_IMAGE_FROM_CPU                                                             0x00000065
3044
3045 #define  NV05_IMAGE_FROM_CPU_BETA4                                                      0x00000198
3046 #define  NV05_IMAGE_FROM_CPU_SURFACE                                                    0x0000019c
3047
3048
3049 #define NV05_STRETCHED_IMAGE_FROM_CPU                                                   0x00000066
3050
3051 #define  NV05_STRETCHED_IMAGE_FROM_CPU_BETA4                                            0x00000194
3052 #define  NV05_STRETCHED_IMAGE_FROM_CPU_SURFACE                                          0x00000198
3053 #define  NV05_STRETCHED_IMAGE_FROM_CPU_COLOR_CONVERSION                                 0x000002f8
3054
3055
3056 #define NV04_IMAGE_BLEND_PREMULT                                                        0x00000067
3057
3058 #define  NV04_IMAGE_BLEND_PREMULT_NOP                                                   0x00000100
3059 #define  NV04_IMAGE_BLEND_PREMULT_NOTIFY                                                0x00000104
3060 #define  NV04_IMAGE_BLEND_PREMULT_DMA_NOTIFY                                            0x00000180
3061 #define  NV04_IMAGE_BLEND_PREMULT_IMAGE_OUTPUT                                          0x00000200
3062 #define  NV04_IMAGE_BLEND_PREMULT_BETA_INPUT                                            0x00000204
3063 #define  NV04_IMAGE_BLEND_PREMULT_IMAGE_INPUT                                           0x00000208
3064
3065
3066 #define NV03_CHANNEL_PIO                                                                0x0000006a
3067
3068
3069
3070 #define NV03_CHANNEL_DMA                                                                0x0000006b
3071
3072
3073
3074 #define NV04_BETA_SOLID                                                                 0x00000072
3075
3076 #define  NV04_BETA_SOLID_NOP                                                            0x00000100
3077 #define  NV04_BETA_SOLID_NOTIFY                                                         0x00000104
3078 #define  NV04_BETA_SOLID_DMA_NOTIFY                                                     0x00000180
3079 #define  NV04_BETA_SOLID_BETA_OUTPUT                                                    0x00000200
3080 #define  NV04_BETA_SOLID_BETA_FACTOR                                                    0x00000300
3081
3082
3083 #define NV04_STRETCHED_IMAGE_FROM_CPU                                                   0x00000076
3084
3085
3086
3087 #define NV04_SCALED_IMAGE_FROM_MEMORY                                                   0x00000077
3088
3089 #define  NV04_SCALED_IMAGE_FROM_MEMORY_NOP                                              0x00000100
3090 #define  NV04_SCALED_IMAGE_FROM_MEMORY_NOTIFY                                           0x00000104
3091 #define  NV04_SCALED_IMAGE_FROM_MEMORY_DMA_NOTIFY                                       0x00000180
3092 #define  NV04_SCALED_IMAGE_FROM_MEMORY_DMA_IMAGE                                        0x00000184
3093 #define  NV04_SCALED_IMAGE_FROM_MEMORY_PATTERN                                          0x00000188
3094 #define  NV04_SCALED_IMAGE_FROM_MEMORY_ROP                                              0x0000018c
3095 #define  NV04_SCALED_IMAGE_FROM_MEMORY_BETA1                                            0x00000190
3096 #define  NV04_SCALED_IMAGE_FROM_MEMORY_BETA4                                            0x00000194
3097 #define  NV04_SCALED_IMAGE_FROM_MEMORY_SURFACE                                          0x00000198
3098 #define  NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION                                 0x000002fc
3099 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION_DITHER                         0x00000000
3100 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION_TRUNCATE                       0x00000001
3101 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION_SUBTR_TRUNCATE                 0x00000002
3102 #define  NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT                                     0x00000300
3103 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_A1R5G5B5                           0x00000001
3104 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_X1R5G5B5                           0x00000002
3105 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_A8R8G8B8                           0x00000003
3106 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_X8R8G8B8                           0x00000004
3107 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_V8YB8U8YA8                         0x00000005
3108 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_YB8V8YA8U8                         0x00000006
3109 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_R5G6B5                             0x00000007
3110 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_Y8                                 0x00000008
3111 #define   NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_FORMAT_AY8                                0x00000009
3112 #define  NV04_SCALED_IMAGE_FROM_MEMORY_OPERATION                                        0x00000304
3113 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OPERATION_SRCCOPY_AND                           0x00000000
3114 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OPERATION_ROP_AND                               0x00000001
3115 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OPERATION_BLEND_AND                             0x00000002
3116 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OPERATION_SRCCOPY                               0x00000003
3117 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OPERATION_SRCCOPY_PREMULT                       0x00000004
3118 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OPERATION_BLEND_PREMULT                         0x00000005
3119 #define  NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT                                       0x00000308
3120 #define   NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_X_SHIFT                              0
3121 #define   NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_X_MASK                               0x0000ffff
3122 #define   NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_Y_SHIFT                              16
3123 #define   NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_POINT_Y_MASK                               0xffff0000
3124 #define  NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE                                        0x0000030c
3125 #define   NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_W_SHIFT                               0
3126 #define   NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_W_MASK                                0x0000ffff
3127 #define   NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_H_SHIFT                               16
3128 #define   NV04_SCALED_IMAGE_FROM_MEMORY_CLIP_SIZE_H_MASK                                0xffff0000
3129 #define  NV04_SCALED_IMAGE_FROM_MEMORY_OUT_POINT                                        0x00000310
3130 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OUT_POINT_X_SHIFT                               0
3131 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OUT_POINT_X_MASK                                0x0000ffff
3132 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OUT_POINT_Y_SHIFT                               16
3133 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OUT_POINT_Y_MASK                                0xffff0000
3134 #define  NV04_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE                                         0x00000314
3135 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE_W_SHIFT                                0
3136 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE_W_MASK                                 0x0000ffff
3137 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE_H_SHIFT                                16
3138 #define   NV04_SCALED_IMAGE_FROM_MEMORY_OUT_SIZE_H_MASK                                 0xffff0000
3139 #define  NV04_SCALED_IMAGE_FROM_MEMORY_DU_DX                                            0x00000318
3140 #define  NV04_SCALED_IMAGE_FROM_MEMORY_DV_DY                                            0x0000031c
3141 #define  NV04_SCALED_IMAGE_FROM_MEMORY_SIZE                                             0x00000400
3142 #define   NV04_SCALED_IMAGE_FROM_MEMORY_SIZE_W_SHIFT                                    0
3143 #define   NV04_SCALED_IMAGE_FROM_MEMORY_SIZE_W_MASK                                     0x0000ffff
3144 #define   NV04_SCALED_IMAGE_FROM_MEMORY_SIZE_H_SHIFT                                    16
3145 #define   NV04_SCALED_IMAGE_FROM_MEMORY_SIZE_H_MASK                                     0xffff0000
3146 #define  NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT                                           0x00000404
3147 #define   NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_PITCH_SHIFT                              0
3148 #define   NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_PITCH_MASK                               0x0000ffff
3149 #define   NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_SHIFT                             16
3150 #define   NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_MASK                              0x00ff0000
3151 #define    NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_CENTER                           0x00010000
3152 #define    NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_CORNER                           0x00020000
3153 #define   NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_SHIFT                             24
3154 #define   NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_MASK                              0xff000000
3155 #define    NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_POINT_SAMPLE                     0x00000000
3156 #define    NV04_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_BILINEAR                         0x01000000
3157 #define  NV04_SCALED_IMAGE_FROM_MEMORY_ADDRESS                                          0x00000408
3158 #define  NV04_SCALED_IMAGE_FROM_MEMORY_POINT                                            0x0000040c
3159 #define   NV04_SCALED_IMAGE_FROM_MEMORY_POINT_X_SHIFT                                   0
3160 #define   NV04_SCALED_IMAGE_FROM_MEMORY_POINT_X_MASK                                    0x0000ffff
3161 #define   NV04_SCALED_IMAGE_FROM_MEMORY_POINT_Y_SHIFT                                   16
3162 #define   NV04_SCALED_IMAGE_FROM_MEMORY_POINT_Y_MASK                                    0xffff0000
3163
3164
3165 #define NV10_TEXTURE_FROM_CPU                                                           0x0000007b
3166
3167 #define  NV10_TEXTURE_FROM_CPU_NOP                                                      0x00000100
3168 #define  NV10_TEXTURE_FROM_CPU_NOTIFY                                                   0x00000104
3169 #define  NV10_TEXTURE_FROM_CPU_WAIT_FOR_IDLE                                            0x00000108
3170 #define  NV10_TEXTURE_FROM_CPU_PM_TRIGGER                                               0x00000140
3171 #define  NV10_TEXTURE_FROM_CPU_DMA_NOTIFY                                               0x00000180
3172 #define  NV10_TEXTURE_FROM_CPU_SURFACE                                                  0x00000184
3173 #define  NV10_TEXTURE_FROM_CPU_COLOR_FORMAT                                             0x00000300
3174 #define  NV10_TEXTURE_FROM_CPU_POINT                                                    0x00000304
3175 #define   NV10_TEXTURE_FROM_CPU_POINT_X_SHIFT                                           0
3176 #define   NV10_TEXTURE_FROM_CPU_POINT_X_MASK                                            0x0000ffff
3177 #define   NV10_TEXTURE_FROM_CPU_POINT_Y_SHIFT                                           16
3178 #define   NV10_TEXTURE_FROM_CPU_POINT_Y_MASK                                            0xffff0000
3179 #define  NV10_TEXTURE_FROM_CPU_SIZE                                                     0x00000308
3180 #define   NV10_TEXTURE_FROM_CPU_SIZE_W_SHIFT                                            0
3181 #define   NV10_TEXTURE_FROM_CPU_SIZE_W_MASK                                             0x0000ffff
3182 #define   NV10_TEXTURE_FROM_CPU_SIZE_H_SHIFT                                            16
3183 #define   NV10_TEXTURE_FROM_CPU_SIZE_H_MASK                                             0xffff0000
3184 #define  NV10_TEXTURE_FROM_CPU_CLIP_HORIZONTAL                                          0x0000030c
3185 #define   NV10_TEXTURE_FROM_CPU_CLIP_HORIZONTAL_X_SHIFT                                 0
3186 #define   NV10_TEXTURE_FROM_CPU_CLIP_HORIZONTAL_X_MASK                                  0x0000ffff
3187 #define   NV10_TEXTURE_FROM_CPU_CLIP_HORIZONTAL_W_SHIFT                                 16
3188 #define   NV10_TEXTURE_FROM_CPU_CLIP_HORIZONTAL_W_MASK                                  0xffff0000
3189 #define  NV10_TEXTURE_FROM_CPU_CLIP_VERTICAL                                            0x00000310
3190 #define   NV10_TEXTURE_FROM_CPU_CLIP_VERTICAL_Y_SHIFT                                   0
3191 #define   NV10_TEXTURE_FROM_CPU_CLIP_VERTICAL_Y_MASK                                    0x0000ffff
3192 #define   NV10_TEXTURE_FROM_CPU_CLIP_VERTICAL_H_SHIFT                                   16
3193 #define   NV10_TEXTURE_FROM_CPU_CLIP_VERTICAL_H_MASK                                    0xffff0000
3194 #define  NV10_TEXTURE_FROM_CPU_COLOR(x)                                                 (0x00000400+((x)*4))
3195 #define  NV10_TEXTURE_FROM_CPU_COLOR__SIZE                                              0x00000700
3196
3197
3198 #define NV10_VIDEO_DISPLAY                                                              0x0000007c
3199
3200
3201
3202 #define NV10_DVD_SUBPICTURE                                                             0x00000088
3203
3204
3205
3206 #define NV10_SCALED_IMAGE_FROM_MEMORY                                                   0x00000089
3207
3208 #define  NV10_SCALED_IMAGE_FROM_MEMORY_WAIT_FOR_IDLE                                    0x00000108
3209
3210
3211 #define NV10_IMAGE_FROM_CPU                                                             0x0000008a
3212
3213 #define  NV10_IMAGE_FROM_CPU_COLOR_CONVERSION                                           0x000002f8
3214
3215
3216 #define NV10_CONTEXT_SURFACES_3D                                                        0x00000093
3217
3218
3219
3220 #define NV10_DX5_TEXTURE_TRIANGLE                                                       0x00000094
3221
3222
3223
3224 #define NV10_DX6_MULTI_TEXTURE_TRIANGLE                                                 0x00000095
3225
3226
3227
3228 #define NV11TCL                                                                         0x00000096
3229
3230 #define  NV11TCL_COLOR_LOGIC_OP_ENABLE                                                  0x00000d40
3231 #define  NV11TCL_COLOR_LOGIC_OP_OP                                                      0x00000d44
3232 #define   NV11TCL_COLOR_LOGIC_OP_OP_CLEAR                                               0x00001500
3233 #define   NV11TCL_COLOR_LOGIC_OP_OP_AND                                                 0x00001501
3234 #define   NV11TCL_COLOR_LOGIC_OP_OP_AND_REVERSE                                         0x00001502
3235 #define   NV11TCL_COLOR_LOGIC_OP_OP_COPY                                                0x00001503
3236 #define   NV11TCL_COLOR_LOGIC_OP_OP_AND_INVERTED                                        0x00001504
3237 #define   NV11TCL_COLOR_LOGIC_OP_OP_NOOP                                                0x00001505
3238 #define   NV11TCL_COLOR_LOGIC_OP_OP_XOR                                                 0x00001506
3239 #define   NV11TCL_COLOR_LOGIC_OP_OP_OR                                                  0x00001507
3240 #define   NV11TCL_COLOR_LOGIC_OP_OP_NOR                                                 0x00001508
3241 #define   NV11TCL_COLOR_LOGIC_OP_OP_EQUIV                                               0x00001509
3242 #define   NV11TCL_COLOR_LOGIC_OP_OP_INVERT                                              0x0000150a
3243 #define   NV11TCL_COLOR_LOGIC_OP_OP_OR_REVERSE                                          0x0000150b
3244 #define   NV11TCL_COLOR_LOGIC_OP_OP_COPY_INVERTED                                       0x0000150c
3245 #define   NV11TCL_COLOR_LOGIC_OP_OP_OR_INVERTED                                         0x0000150d
3246 #define   NV11TCL_COLOR_LOGIC_OP_OP_NAND                                                0x0000150e
3247 #define   NV11TCL_COLOR_LOGIC_OP_OP_SET                                                 0x0000150f
3248
3249
3250 #define NV20TCL                                                                         0x00000097
3251
3252 #define  NV20TCL_NOP                                                                    0x00000100
3253 #define  NV20TCL_NOTIFY                                                                 0x00000104
3254 #define  NV20TCL_DMA_NOTIFY                                                             0x00000180
3255 #define  NV20TCL_DMA_IN_MEMORY0                                                         0x00000184
3256 #define  NV20TCL_DMA_IN_MEMORY1                                                         0x00000188
3257 #define  NV20TCL_DMA_IN_MEMORY2                                                         0x00000194
3258 #define  NV20TCL_DMA_IN_MEMORY3                                                         0x00000198
3259 #define  NV20TCL_DMA_IN_MEMORY6                                                         0x000001a4
3260 #define  NV20TCL_DMA_IN_MEMORY7                                                         0x000001a8
3261 #define  NV20TCL_VIEWPORT_HORIZ                                                         0x00000200
3262 #define  NV20TCL_VIEWPORT_VERT                                                          0x00000204
3263 #define  NV20TCL_BUFFER_FORMAT                                                          0x00000208
3264 #define  NV20TCL_BUFFER_PITCH                                                           0x0000020c
3265 #define  NV20TCL_COLOR_OFFSET                                                           0x00000210
3266 #define  NV20TCL_ZETA_OFFSET                                                            0x00000214
3267 #define  NV20TCL_RC_IN_ALPHA(x)                                                         (0x00000260+((x)*4))
3268 #define  NV20TCL_RC_IN_ALPHA__SIZE                                                      0x00000008
3269 #define  NV20TCL_RC_FINAL0                                                              0x00000288
3270 #define  NV20TCL_RC_FINAL1                                                              0x0000028c
3271 #define  NV20TCL_LIGHT_CONTROL                                                          0x00000294
3272 #define  NV20TCL_FOG_MODE                                                               0x0000029c
3273 #define  NV20TCL_FOG_COORD_DIST                                                         0x000002a0
3274 #define  NV20TCL_FOG_ENABLE                                                             0x000002a4
3275 #define  NV20TCL_FOG_COLOR                                                              0x000002a8
3276 #define  NV20TCL_VIEWPORT_CLIP_MODE                                                     0x000002b4
3277 #define  NV20TCL_VIEWPORT_CLIP_HORIZ(x)                                                 (0x000002c0+((x)*4))
3278 #define  NV20TCL_VIEWPORT_CLIP_HORIZ__SIZE                                              0x00000008
3279 #define  NV20TCL_VIEWPORT_CLIP_VERT(x)                                                  (0x000002e0+((x)*4))
3280 #define  NV20TCL_VIEWPORT_CLIP_VERT__SIZE                                               0x00000008
3281 #define  NV20TCL_ALPHA_FUNC_ENABLE                                                      0x00000300
3282 #define  NV20TCL_BLEND_FUNC_ENABLE                                                      0x00000304
3283 #define  NV20TCL_CULL_FACE_ENABLE                                                       0x00000308
3284 #define  NV20TCL_DEPTH_TEST_ENABLE                                                      0x0000030c
3285 #define  NV20TCL_DITHER_ENABLE                                                          0x00000310
3286 #define  NV20TCL_LIGHTING_ENABLE                                                        0x00000314
3287 #define  NV20TCL_POINT_PARAMETERS_ENABLE                                                0x00000318
3288 #define  NV20TCL_LINE_SMOOTH_ENABLE                                                     0x00000320
3289 #define  NV20TCL_POLYGON_SMOOTH_ENABLE                                                  0x00000324
3290 #define  NV20TCL_STENCIL_ENABLE                                                         0x0000032c
3291 #define  NV20TCL_POLYGON_OFFSET_POINT_ENABLE                                            0x00000330
3292 #define  NV20TCL_POLYGON_OFFSET_LINE_ENABLE                                             0x00000334
3293 #define  NV20TCL_POLYGON_OFFSET_FILL_ENABLE                                             0x00000338
3294 #define  NV20TCL_ALPHA_FUNC_FUNC                                                        0x0000033c
3295 #define   NV20TCL_ALPHA_FUNC_FUNC_NEVER                                                 0x00000200
3296 #define   NV20TCL_ALPHA_FUNC_FUNC_LESS                                                  0x00000201
3297 #define   NV20TCL_ALPHA_FUNC_FUNC_EQUAL                                                 0x00000202
3298 #define   NV20TCL_ALPHA_FUNC_FUNC_LEQUAL                                                0x00000203
3299 #define   NV20TCL_ALPHA_FUNC_FUNC_GREATER                                               0x00000204
3300 #define   NV20TCL_ALPHA_FUNC_FUNC_GREATER                                               0x00000204
3301 #define   NV20TCL_ALPHA_FUNC_FUNC_NOTEQUAL                                              0x00000205
3302 #define   NV20TCL_ALPHA_FUNC_FUNC_GEQUAL                                                0x00000206
3303 #define   NV20TCL_ALPHA_FUNC_FUNC_ALWAYS                                                0x00000207
3304 #define  NV20TCL_ALPHA_FUNC_REF                                                         0x00000340
3305 #define  NV20TCL_BLEND_FUNC_SRC                                                         0x00000344
3306 #define   NV20TCL_BLEND_FUNC_SRC_ZERO                                                   0x00000000
3307 #define   NV20TCL_BLEND_FUNC_SRC_ONE                                                    0x00000001
3308 #define   NV20TCL_BLEND_FUNC_SRC_SRC_COLOR                                              0x00000300
3309 #define   NV20TCL_BLEND_FUNC_SRC_ONE_MINUS_SRC_COLOR                                    0x00000301
3310 #define   NV20TCL_BLEND_FUNC_SRC_SRC_ALPHA                                              0x00000302
3311 #define   NV20TCL_BLEND_FUNC_SRC_ONE_MINUS_SRC_ALPHA                                    0x00000303
3312 #define   NV20TCL_BLEND_FUNC_SRC_DST_ALPHA                                              0x00000304
3313 #define   NV20TCL_BLEND_FUNC_SRC_ONE_MINUS_DST_ALPHA                                    0x00000305
3314 #define   NV20TCL_BLEND_FUNC_SRC_DST_COLOR                                              0x00000306
3315 #define   NV20TCL_BLEND_FUNC_SRC_ONE_MINUS_DST_COLOR                                    0x00000307
3316 #define   NV20TCL_BLEND_FUNC_SRC_SRC_ALPHA_SATURATE                                     0x00000308
3317 #define   NV20TCL_BLEND_FUNC_SRC_CONSTANT_COLOR                                         0x00008001
3318 #define   NV20TCL_BLEND_FUNC_SRC_ONE_MINUS_CONSTANT_COLOR                               0x00008002
3319 #define   NV20TCL_BLEND_FUNC_SRC_CONSTANT_ALPHA                                         0x00008003
3320 #define   NV20TCL_BLEND_FUNC_SRC_ONE_MINUS_CONSTANT_ALPHA                               0x00008004
3321 #define  NV20TCL_BLEND_FUNC_DST                                                         0x00000348
3322 #define   NV20TCL_BLEND_FUNC_DST_ZERO                                                   0x00000000
3323 #define   NV20TCL_BLEND_FUNC_DST_ONE                                                    0x00000001
3324 #define   NV20TCL_BLEND_FUNC_DST_SRC_COLOR                                              0x00000300
3325 #define   NV20TCL_BLEND_FUNC_DST_ONE_MINUS_SRC_COLOR                                    0x00000301
3326 #define   NV20TCL_BLEND_FUNC_DST_SRC_ALPHA                                              0x00000302
3327 #define   NV20TCL_BLEND_FUNC_DST_ONE_MINUS_SRC_ALPHA                                    0x00000303
3328 #define   NV20TCL_BLEND_FUNC_DST_DST_ALPHA                                              0x00000304
3329 #define   NV20TCL_BLEND_FUNC_DST_ONE_MINUS_DST_ALPHA                                    0x00000305
3330 #define   NV20TCL_BLEND_FUNC_DST_DST_COLOR                                              0x00000306
3331 #define   NV20TCL_BLEND_FUNC_DST_ONE_MINUS_DST_COLOR                                    0x00000307
3332 #define   NV20TCL_BLEND_FUNC_DST_SRC_ALPHA_SATURATE                                     0x00000308
3333 #define   NV20TCL_BLEND_FUNC_DST_CONSTANT_COLOR                                         0x00008001
3334 #define   NV20TCL_BLEND_FUNC_DST_ONE_MINUS_CONSTANT_COLOR                               0x00008002
3335 #define   NV20TCL_BLEND_FUNC_DST_CONSTANT_ALPHA                                         0x00008003
3336 #define   NV20TCL_BLEND_FUNC_DST_ONE_MINUS_CONSTANT_ALPHA                               0x00008004
3337 #define  NV20TCL_BLEND_COLOR                                                            0x0000034c
3338 #define  NV20TCL_BLEND_EQUATION                                                         0x00000350
3339 #define   NV20TCL_BLEND_EQUATION_FUNC_ADD                                               0x00008006
3340 #define   NV20TCL_BLEND_EQUATION_MIN                                                    0x00008007
3341 #define   NV20TCL_BLEND_EQUATION_MAX                                                    0x00008008
3342 #define   NV20TCL_BLEND_EQUATION_FUNC_SUBTRACT                                          0x0000800a
3343 #define   NV20TCL_BLEND_EQUATION_FUNC_REVERSE_SUBTRACT                                  0x0000800b
3344 #define  NV20TCL_DEPTH_FUNC                                                             0x00000354
3345 #define   NV20TCL_DEPTH_FUNC_NEVER                                                      0x00000200
3346 #define   NV20TCL_DEPTH_FUNC_LESS                                                       0x00000201
3347 #define   NV20TCL_DEPTH_FUNC_EQUAL                                                      0x00000202
3348 #define   NV20TCL_DEPTH_FUNC_LEQUAL                                                     0x00000203
3349 #define   NV20TCL_DEPTH_FUNC_GREATER                                                    0x00000204
3350 #define   NV20TCL_DEPTH_FUNC_GREATER                                                    0x00000204
3351 #define   NV20TCL_DEPTH_FUNC_NOTEQUAL                                                   0x00000205
3352 #define   NV20TCL_DEPTH_FUNC_GEQUAL                                                     0x00000206
3353 #define   NV20TCL_DEPTH_FUNC_ALWAYS                                                     0x00000207
3354 #define  NV20TCL_COLOR_MASK                                                             0x00000358
3355 #define  NV20TCL_DEPTH_WRITE_ENABLE                                                     0x0000035c
3356 #define  NV20TCL_STENCIL_MASK                                                           0x00000360
3357 #define  NV20TCL_STENCIL_FUNC_FUNC                                                      0x00000364
3358 #define   NV20TCL_STENCIL_FUNC_FUNC_NEVER                                               0x00000200
3359 #define   NV20TCL_STENCIL_FUNC_FUNC_LESS                                                0x00000201
3360 #define   NV20TCL_STENCIL_FUNC_FUNC_EQUAL                                               0x00000202
3361 #define   NV20TCL_STENCIL_FUNC_FUNC_LEQUAL                                              0x00000203
3362 #define   NV20TCL_STENCIL_FUNC_FUNC_GREATER                                             0x00000204
3363 #define   NV20TCL_STENCIL_FUNC_FUNC_GREATER                                             0x00000204
3364 #define   NV20TCL_STENCIL_FUNC_FUNC_NOTEQUAL                                            0x00000205
3365 #define   NV20TCL_STENCIL_FUNC_FUNC_GEQUAL                                              0x00000206
3366 #define   NV20TCL_STENCIL_FUNC_FUNC_ALWAYS                                              0x00000207
3367 #define  NV20TCL_STENCIL_FUNC_REF                                                       0x00000368
3368 #define  NV20TCL_STENCIL_FUNC_MASK                                                      0x0000036c
3369 #define  NV20TCL_STENCIL_OP_FAIL                                                        0x00000370
3370 #define   NV20TCL_STENCIL_OP_FAIL_ZERO                                                  0x00000000
3371 #define   NV20TCL_STENCIL_OP_FAIL_INVERT                                                0x0000150a
3372 #define   NV20TCL_STENCIL_OP_FAIL_KEEP                                                  0x00001e00
3373 #define   NV20TCL_STENCIL_OP_FAIL_REPLACE                                               0x00001e01
3374 #define   NV20TCL_STENCIL_OP_FAIL_INCR                                                  0x00001e02
3375 #define   NV20TCL_STENCIL_OP_FAIL_DECR                                                  0x00001e03
3376 #define   NV20TCL_STENCIL_OP_FAIL_INCR_WRAP                                             0x00008507
3377 #define   NV20TCL_STENCIL_OP_FAIL_DECR_WRAP                                             0x00008508
3378 #define  NV20TCL_STENCIL_OP_ZFAIL                                                       0x00000374
3379 #define   NV20TCL_STENCIL_OP_ZFAIL_ZERO                                                 0x00000000
3380 #define   NV20TCL_STENCIL_OP_ZFAIL_INVERT                                               0x0000150a
3381 #define   NV20TCL_STENCIL_OP_ZFAIL_KEEP                                                 0x00001e00
3382 #define   NV20TCL_STENCIL_OP_ZFAIL_REPLACE                                              0x00001e01
3383 #define   NV20TCL_STENCIL_OP_ZFAIL_INCR                                                 0x00001e02
3384 #define   NV20TCL_STENCIL_OP_ZFAIL_DECR                                                 0x00001e03
3385 #define   NV20TCL_STENCIL_OP_ZFAIL_INCR_WRAP                                            0x00008507
3386 #define   NV20TCL_STENCIL_OP_ZFAIL_DECR_WRAP                                            0x00008508
3387 #define  NV20TCL_STENCIL_OP_ZPASS                                                       0x00000378
3388 #define   NV20TCL_STENCIL_OP_ZPASS_ZERO                                                 0x00000000
3389 #define   NV20TCL_STENCIL_OP_ZPASS_INVERT                                               0x0000150a
3390 #define   NV20TCL_STENCIL_OP_ZPASS_KEEP                                                 0x00001e00
3391 #define   NV20TCL_STENCIL_OP_ZPASS_REPLACE                                              0x00001e01
3392 #define   NV20TCL_STENCIL_OP_ZPASS_INCR                                                 0x00001e02
3393 #define   NV20TCL_STENCIL_OP_ZPASS_DECR                                                 0x00001e03
3394 #define   NV20TCL_STENCIL_OP_ZPASS_INCR_WRAP                                            0x00008507
3395 #define   NV20TCL_STENCIL_OP_ZPASS_DECR_WRAP                                            0x00008508
3396 #define  NV20TCL_SHADE_MODEL                                                            0x0000037c
3397 #define   NV20TCL_SHADE_MODEL_FLAT                                                      0x00001d00
3398 #define   NV20TCL_SHADE_MODEL_SMOOTH                                                    0x00001d01
3399 #define  NV20TCL_LINE_WIDTH                                                             0x00000380
3400 #define  NV20TCL_POLYGON_OFFSET_FACTOR                                                  0x00000384
3401 #define  NV20TCL_POLYGON_OFFSET_UNITS                                                   0x00000388
3402 #define  NV20TCL_POLYGON_MODE_FRONT                                                     0x0000038c
3403 #define   NV20TCL_POLYGON_MODE_FRONT_POINT                                              0x00001b00
3404 #define   NV20TCL_POLYGON_MODE_FRONT_LINE                                               0x00001b01
3405 #define   NV20TCL_POLYGON_MODE_FRONT_FILL                                               0x00001b02
3406 #define  NV20TCL_POLYGON_MODE_BACK                                                      0x00000390
3407 #define   NV20TCL_POLYGON_MODE_BACK_POINT                                               0x00001b00
3408 #define   NV20TCL_POLYGON_MODE_BACK_LINE                                                0x00001b01
3409 #define   NV20TCL_POLYGON_MODE_BACK_FILL                                                0x00001b02
3410 #define  NV20TCL_DEPTH_RANGE_NEAR                                                       0x00000394
3411 #define  NV20TCL_DEPTH_RANGE_FAR                                                        0x00000398
3412 #define  NV20TCL_CULL_FACE                                                              0x0000039c
3413 #define   NV20TCL_CULL_FACE_FRONT                                                       0x00000404
3414 #define   NV20TCL_CULL_FACE_BACK                                                        0x00000405
3415 #define   NV20TCL_CULL_FACE_FRONT_AND_BACK                                              0x00000408
3416 #define  NV20TCL_FRONT_FACE                                                             0x000003a0
3417 #define   NV20TCL_FRONT_FACE_CW                                                         0x00000900
3418 #define   NV20TCL_FRONT_FACE_CCW                                                        0x00000901
3419 #define  NV20TCL_NORMALIZE_ENABLE                                                       0x000003a4
3420 #define  NV20TCL_SEPARATE_SPECULAR_ENABLE                                               0x000003b8
3421 #define  NV20TCL_ENABLED_LIGHTS                                                         0x000003bc
3422 #define  NV20TCL_CLIP_PLANE_ENABLE(x)                                                   (0x000003c0+((x)*4))
3423 #define  NV20TCL_CLIP_PLANE_ENABLE__SIZE                                                0x00000010
3424 #define  NV20TCL_TX_MATRIX_ENABLE(x)                                                    (0x00000420+((x)*4))
3425 #define  NV20TCL_TX_MATRIX_ENABLE__SIZE                                                 0x00000004
3426 #define  NV20TCL_POINT_SIZE                                                             0x0000043c
3427 #define  NV20TCL_MODELVIEW_MATRIX(x)                                                    (0x00000480+((x)*4))
3428 #define  NV20TCL_MODELVIEW_MATRIX__SIZE                                                 0x00000010
3429 #define  NV20TCL_PROJECTION_MATRIX(x)                                                   (0x00000680+((x)*4))
3430 #define  NV20TCL_PROJECTION_MATRIX__SIZE                                                0x00000010
3431 #define  NV20TCL_TX0_MATRIX(x)                                                          (0x000006c0+((x)*4))
3432 #define  NV20TCL_TX0_MATRIX__SIZE                                                       0x00000010
3433 #define  NV20TCL_TX1_MATRIX(x)                                                          (0x00000700+((x)*4))
3434 #define  NV20TCL_TX1_MATRIX__SIZE                                                       0x00000010
3435 #define  NV20TCL_TX2_MATRIX(x)                                                          (0x00000740+((x)*4))
3436 #define  NV20TCL_TX2_MATRIX__SIZE                                                       0x00000010
3437 #define  NV20TCL_TX3_MATRIX(x)                                                          (0x00000780+((x)*4))
3438 #define  NV20TCL_TX3_MATRIX__SIZE                                                       0x00000010
3439 #define  NV20TCL_FOG_EQUATION_CONSTANT                                                  0x000009c0
3440 #define  NV20TCL_FOG_EQUATION_LINEAR                                                    0x000009c4
3441 #define  NV20TCL_FOG_EQUATION_QUADRATIC                                                 0x000009c8
3442 #define  NV20TCL_VIEWPORT_SCALE0_X                                                      0x00000a20
3443 #define  NV20TCL_VIEWPORT_SCALE0_Y                                                      0x00000a24
3444 #define  NV20TCL_VIEWPORT_SCALE0_Z                                                      0x00000a28
3445 #define  NV20TCL_VIEWPORT_SCALE0_W                                                      0x00000a2c
3446 #define  NV20TCL_POINT_PARAMETER(x)                                                     (0x00000a30+((x)*4))
3447 #define  NV20TCL_POINT_PARAMETER__SIZE                                                  0x00000007
3448 #define  NV20TCL_RC_CONSTANT_COLOR0(x)                                                  (0x00000a60+((x)*4))
3449 #define  NV20TCL_RC_CONSTANT_COLOR0__SIZE                                               0x00000008
3450 #define  NV20TCL_RC_CONSTANT_COLOR1(x)                                                  (0x00000a80+((x)*4))
3451 #define  NV20TCL_RC_CONSTANT_COLOR1__SIZE                                               0x00000008
3452 #define  NV20TCL_RC_OUT_ALPHA(x)                                                        (0x00000aa0+((x)*4))
3453 #define  NV20TCL_RC_OUT_ALPHA__SIZE                                                     0x00000008
3454 #define  NV20TCL_RC_IN_RGB(x)                                                           (0x00000ac0+((x)*4))
3455 #define  NV20TCL_RC_IN_RGB__SIZE                                                        0x00000008
3456 #define  NV20TCL_VIEWPORT_SCALE1_X                                                      0x00000af0
3457 #define  NV20TCL_VIEWPORT_SCALE1_Y                                                      0x00000af4
3458 #define  NV20TCL_VIEWPORT_SCALE1_Z                                                      0x00000af8
3459 #define  NV20TCL_VIEWPORT_SCALE1_W                                                      0x00000afc
3460 #define  NV20TCL_VP_UPLOAD_INST(x)                                                      (0x00000b00+((x)*4))
3461 #define  NV20TCL_VP_UPLOAD_INST__SIZE                                                   0x00000004
3462 #define  NV20TCL_VP_UPLOAD_CONST(x)                                                     (0x00000b80+((x)*4))
3463 #define  NV20TCL_VP_UPLOAD_CONST__SIZE                                                  0x00000004
3464 #define  NV20TCL_POLYGON_STIPPLE_ENABLE                                                 0x0000147c
3465 #define  NV20TCL_POLYGON_STIPPLE_PATTERN(x)                                             (0x00001480+((x)*4))
3466 #define  NV20TCL_POLYGON_STIPPLE_PATTERN__SIZE                                          0x00000020
3467 #define  NV20TCL_VERTEX_POS_3F_X                                                        0x00001500
3468 #define  NV20TCL_VERTEX_POS_3F_Y                                                        0x00001504
3469 #define  NV20TCL_VERTEX_POS_3F_Z                                                        0x00001508
3470 #define  NV20TCL_VERTEX_POS_4F_X                                                        0x00001518
3471 #define  NV20TCL_VERTEX_POS_4F_Y                                                        0x0000151c
3472 #define  NV20TCL_VERTEX_POS_4F_Z                                                        0x00001520
3473 #define  NV20TCL_VERTEX_POS_3I_XY                                                       0x00001528
3474 #define   NV20TCL_VERTEX_POS_3I_XY_X_SHIFT                                              0
3475 #define   NV20TCL_VERTEX_POS_3I_XY_X_MASK                                               0x0000ffff
3476 #define   NV20TCL_VERTEX_POS_3I_XY_Y_SHIFT                                              16
3477 #define   NV20TCL_VERTEX_POS_3I_XY_Y_MASK                                               0xffff0000
3478 #define  NV20TCL_VERTEX_POS_3I_Z                                                        0x0000152c
3479 #define   NV20TCL_VERTEX_POS_3I_Z_Z_SHIFT                                               0
3480 #define   NV20TCL_VERTEX_POS_3I_Z_Z_MASK                                                0x0000ffff
3481 #define  NV20TCL_VERTEX_NOR_3F_X                                                        0x00001530
3482 #define  NV20TCL_VERTEX_NOR_3F_Y                                                        0x00001534
3483 #define  NV20TCL_VERTEX_NOR_3F_Z                                                        0x00001538
3484 #define  NV20TCL_VERTEX_NOR_3I_XY                                                       0x00001540
3485 #define   NV20TCL_VERTEX_NOR_3I_XY_X_SHIFT                                              0
3486 #define   NV20TCL_VERTEX_NOR_3I_XY_X_MASK                                               0x0000ffff
3487 #define   NV20TCL_VERTEX_NOR_3I_XY_Y_SHIFT                                              16
3488 #define   NV20TCL_VERTEX_NOR_3I_XY_Y_MASK                                               0xffff0000
3489 #define  NV20TCL_VERTEX_NOR_3I_Z                                                        0x00001544
3490 #define   NV20TCL_VERTEX_NOR_3I_Z_Z_SHIFT                                               0
3491 #define   NV20TCL_VERTEX_NOR_3I_Z_Z_MASK                                                0x0000ffff
3492 #define  NV20TCL_VERTEX_COL_4F_X                                                        0x00001550
3493 #define  NV20TCL_VERTEX_COL_4F_Y                                                        0x00001554
3494 #define  NV20TCL_VERTEX_COL_4F_Z                                                        0x00001558
3495 #define  NV20TCL_VERTEX_COL_4F_W                                                        0x0000155c
3496 #define  NV20TCL_VERTEX_COL_3F_X                                                        0x00001560
3497 #define  NV20TCL_VERTEX_COL_3F_Y                                                        0x00001564
3498 #define  NV20TCL_VERTEX_COL_3F_Z                                                        0x00001568
3499 #define  NV20TCL_VERTEX_COL_4I                                                          0x0000156c
3500 #define   NV20TCL_VERTEX_COL_4I_R_SHIFT                                                 0
3501 #define   NV20TCL_VERTEX_COL_4I_R_MASK                                                  0x000000ff
3502 #define   NV20TCL_VERTEX_COL_4I_G_SHIFT                                                 8
3503 #define   NV20TCL_VERTEX_COL_4I_G_MASK                                                  0x0000ff00
3504 #define   NV20TCL_VERTEX_COL_4I_B_SHIFT                                                 16
3505 #define   NV20TCL_VERTEX_COL_4I_B_MASK                                                  0x00ff0000
3506 #define   NV20TCL_VERTEX_COL_4I_A_SHIFT                                                 24
3507 #define   NV20TCL_VERTEX_COL_4I_A_MASK                                                  0xff000000
3508 #define  NV20TCL_VERTEX_COL2_3F_X                                                       0x00001580
3509 #define  NV20TCL_VERTEX_COL2_3F_Y                                                       0x00001584
3510 #define  NV20TCL_VERTEX_COL2_3F_Z                                                       0x00001588
3511 #define  NV20TCL_VERTEX_COL2_4I                                                         0x0000158c
3512 #define   NV20TCL_VERTEX_COL2_4I_R_SHIFT                                                0
3513 #define   NV20TCL_VERTEX_COL2_4I_R_MASK                                                 0x000000ff
3514 #define   NV20TCL_VERTEX_COL2_4I_G_SHIFT                                                8
3515 #define   NV20TCL_VERTEX_COL2_4I_G_MASK                                                 0x0000ff00
3516 #define   NV20TCL_VERTEX_COL2_4I_B_SHIFT                                                16
3517 #define   NV20TCL_VERTEX_COL2_4I_B_MASK                                                 0x00ff0000
3518 #define   NV20TCL_VERTEX_COL2_4I_A_SHIFT                                                24
3519 #define   NV20TCL_VERTEX_COL2_4I_A_MASK                                                 0xff000000
3520 #define  NV20TCL_VERTEX_TX0_2F_S                                                        0x00001590
3521 #define  NV20TCL_VERTEX_TX0_2F_T                                                        0x00001594
3522 #define  NV20TCL_VERTEX_TX0_2I                                                          0x00001598
3523 #define   NV20TCL_VERTEX_TX0_2I_S_SHIFT                                                 0
3524 #define   NV20TCL_VERTEX_TX0_2I_S_MASK                                                  0x0000ffff
3525 #define   NV20TCL_VERTEX_TX0_2I_T_SHIFT                                                 16
3526 #define   NV20TCL_VERTEX_TX0_2I_T_MASK                                                  0xffff0000
3527 #define  NV20TCL_VERTEX_TX0_4F_S                                                        0x000015a0
3528 #define  NV20TCL_VERTEX_TX0_4F_T                                                        0x000015a4
3529 #define  NV20TCL_VERTEX_TX0_4F_R                                                        0x000015a8
3530 #define  NV20TCL_VERTEX_TX0_4F_Q                                                        0x000015ac
3531 #define  NV20TCL_VERTEX_TX0_4I_ST                                                       0x000015b0
3532 #define   NV20TCL_VERTEX_TX0_4I_ST_S_SHIFT                                              0
3533 #define   NV20TCL_VERTEX_TX0_4I_ST_S_MASK                                               0x0000ffff
3534 #define   NV20TCL_VERTEX_TX0_4I_ST_T_SHIFT                                              16
3535 #define   NV20TCL_VERTEX_TX0_4I_ST_T_MASK                                               0xffff0000
3536 #define  NV20TCL_VERTEX_TX0_4I_RQ                                                       0x000015b4
3537 #define   NV20TCL_VERTEX_TX0_4I_RQ_R_SHIFT                                              0
3538 #define   NV20TCL_VERTEX_TX0_4I_RQ_R_MASK                                               0x0000ffff
3539 #define   NV20TCL_VERTEX_TX0_4I_RQ_Q_SHIFT                                              16
3540 #define   NV20TCL_VERTEX_TX0_4I_RQ_Q_MASK                                               0xffff0000
3541 #define  NV20TCL_VERTEX_TX1_2F_S                                                        0x000015b8
3542 #define  NV20TCL_VERTEX_TX1_2F_T                                                        0x000015bc
3543 #define  NV20TCL_VERTEX_TX1_2I                                                          0x000015c0
3544 #define   NV20TCL_VERTEX_TX1_2I_S_SHIFT                                                 0
3545 #define   NV20TCL_VERTEX_TX1_2I_S_MASK                                                  0x0000ffff
3546 #define   NV20TCL_VERTEX_TX1_2I_T_SHIFT                                                 16
3547 #define   NV20TCL_VERTEX_TX1_2I_T_MASK                                                  0xffff0000
3548 #define  NV20TCL_VERTEX_TX1_4F_S                                                        0x000015c8
3549 #define  NV20TCL_VERTEX_TX1_4F_T                                                        0x000015cc
3550 #define  NV20TCL_VERTEX_TX1_4F_R                                                        0x000015d0
3551 #define  NV20TCL_VERTEX_TX1_4F_Q                                                        0x000015d4
3552 #define  NV20TCL_VERTEX_TX1_4I_ST                                                       0x000015d8
3553 #define   NV20TCL_VERTEX_TX1_4I_ST_S_SHIFT                                              0
3554 #define   NV20TCL_VERTEX_TX1_4I_ST_S_MASK                                               0x0000ffff
3555 #define   NV20TCL_VERTEX_TX1_4I_ST_T_SHIFT                                              16
3556 #define   NV20TCL_VERTEX_TX1_4I_ST_T_MASK                                               0xffff0000
3557 #define  NV20TCL_VERTEX_TX1_4I_RQ                                                       0x000015dc
3558 #define   NV20TCL_VERTEX_TX1_4I_RQ_R_SHIFT                                              0
3559 #define   NV20TCL_VERTEX_TX1_4I_RQ_R_MASK                                               0x0000ffff
3560 #define   NV20TCL_VERTEX_TX1_4I_RQ_Q_SHIFT                                              16
3561 #define   NV20TCL_VERTEX_TX1_4I_RQ_Q_MASK                                               0xffff0000
3562 #define  NV20TCL_VERTEX_TX2_2F_S                                                        0x000015e0
3563 #define  NV20TCL_VERTEX_TX2_2F_T                                                        0x000015e4
3564 #define  NV20TCL_VERTEX_TX2_2I                                                          0x000015e8
3565 #define   NV20TCL_VERTEX_TX2_2I_S_SHIFT                                                 0
3566 #define   NV20TCL_VERTEX_TX2_2I_S_MASK                                                  0x0000ffff
3567 #define   NV20TCL_VERTEX_TX2_2I_T_SHIFT                                                 16
3568 #define   NV20TCL_VERTEX_TX2_2I_T_MASK                                                  0xffff0000
3569 #define  NV20TCL_VERTEX_TX2_4F_S                                                        0x000015f0
3570 #define  NV20TCL_VERTEX_TX2_4F_T                                                        0x000015f4
3571 #define  NV20TCL_VERTEX_TX2_4F_R                                                        0x000015f8
3572 #define  NV20TCL_VERTEX_TX2_4F_Q                                                        0x000015fc
3573 #define  NV20TCL_VERTEX_TX2_4I_ST                                                       0x00001600
3574 #define   NV20TCL_VERTEX_TX2_4I_ST_S_SHIFT                                              0
3575 #define   NV20TCL_VERTEX_TX2_4I_ST_S_MASK                                               0x0000ffff
3576 #define   NV20TCL_VERTEX_TX2_4I_ST_T_SHIFT                                              16
3577 #define   NV20TCL_VERTEX_TX2_4I_ST_T_MASK                                               0xffff0000
3578 #define  NV20TCL_VERTEX_TX2_4I_RQ                                                       0x00001604
3579 #define   NV20TCL_VERTEX_TX2_4I_RQ_R_SHIFT                                              0
3580 #define   NV20TCL_VERTEX_TX2_4I_RQ_R_MASK                                               0x0000ffff
3581 #define   NV20TCL_VERTEX_TX2_4I_RQ_Q_SHIFT                                              16
3582 #define   NV20TCL_VERTEX_TX2_4I_RQ_Q_MASK                                               0xffff0000
3583 #define  NV20TCL_VERTEX_TX3_2F_S                                                        0x00001608
3584 #define  NV20TCL_VERTEX_TX3_2F_T                                                        0x0000160c
3585 #define  NV20TCL_VERTEX_TX3_2I                                                          0x00001610
3586 #define   NV20TCL_VERTEX_TX3_2I_S_SHIFT                                                 0
3587 #define   NV20TCL_VERTEX_TX3_2I_S_MASK                                                  0x0000ffff
3588 #define   NV20TCL_VERTEX_TX3_2I_T_SHIFT                                                 16
3589 #define   NV20TCL_VERTEX_TX3_2I_T_MASK                                                  0xffff0000
3590 #define  NV20TCL_VERTEX_TX3_4F_S                                                        0x00001620
3591 #define  NV20TCL_VERTEX_TX3_4F_T                                                        0x00001624
3592 #define  NV20TCL_VERTEX_TX3_4F_R                                                        0x00001628
3593 #define  NV20TCL_VERTEX_TX3_4F_Q                                                        0x0000162c
3594 #define  NV20TCL_VERTEX_TX3_4I_ST                                                       0x00001630
3595 #define   NV20TCL_VERTEX_TX3_4I_ST_S_SHIFT                                              0
3596 #define   NV20TCL_VERTEX_TX3_4I_ST_S_MASK                                               0x0000ffff
3597 #define   NV20TCL_VERTEX_TX3_4I_ST_T_SHIFT                                              16
3598 #define   NV20TCL_VERTEX_TX3_4I_ST_T_MASK                                               0xffff0000
3599 #define  NV20TCL_VERTEX_TX3_4I_RQ                                                       0x00001634
3600 #define   NV20TCL_VERTEX_TX3_4I_RQ_R_SHIFT                                              0
3601 #define   NV20TCL_VERTEX_TX3_4I_RQ_R_MASK                                               0x0000ffff
3602 #define   NV20TCL_VERTEX_TX3_4I_RQ_Q_SHIFT                                              16
3603 #define   NV20TCL_VERTEX_TX3_4I_RQ_Q_MASK                                               0xffff0000
3604 #define  NV20TCL_EDGEFLAG_ENABLE                                                        0x000016bc
3605 #define  NV20TCL_VERTEX_ATTR_OFFSET(x)                                                  (0x00001720+((x)*4))
3606 #define  NV20TCL_VERTEX_ATTR_OFFSET__SIZE                                               0x00000010
3607 #define  NV20TCL_VERTEX_ARRAY_FORMAT(x)                                                 (0x00001760+((x)*4))
3608 #define  NV20TCL_VERTEX_ARRAY_FORMAT__SIZE                                              0x00000010
3609 #define   NV20TCL_VERTEX_ARRAY_FORMAT_TYPE_SHIFT                                        0
3610 #define   NV20TCL_VERTEX_ARRAY_FORMAT_TYPE_MASK                                         0x0000000f
3611 #define   NV20TCL_VERTEX_ARRAY_FORMAT_FIELDS_SHIFT                                      4
3612 #define   NV20TCL_VERTEX_ARRAY_FORMAT_FIELDS_MASK                                       0x000000f0
3613 #define   NV20TCL_VERTEX_ARRAY_FORMAT_STRIDE_SHIFT                                      8
3614 #define   NV20TCL_VERTEX_ARRAY_FORMAT_STRIDE_MASK                                       0x0000ff00
3615 #define  NV20TCL_COLOR_LOGIC_OP_ENABLE                                                  0x000017bc
3616 #define  NV20TCL_COLOR_LOGIC_OP_OP                                                      0x000017c0
3617 #define  NV20TCL_LIGHT_MODEL_TWO_SIDE_ENABLE                                            0x000017c4
3618 #define  NV20TCL_TX_SHADER_CULL_MODE                                                    0x000017f8
3619 #define  NV20TCL_VERTEX_BEGIN_END                                                       0x000017fc
3620 #define  NV20TCL_VERTEX_BUFFER_DRAW_ARRAYS                                              0x00001810
3621 #define  NV20TCL_VERTEX_ARRAY_DATA                                                      0x00001818
3622 #define  NV20TCL_TX_OFFSET(x)                                                           (0x00001b00+((x)*64))
3623 #define  NV20TCL_TX_OFFSET__SIZE                                                        0x00000004
3624 #define  NV20TCL_TX_FORMAT(x)                                                           (0x00001b04+((x)*64))
3625 #define  NV20TCL_TX_FORMAT__SIZE                                                        0x00000004
3626 #define  NV20TCL_TX_WRAP(x)                                                             (0x00001b08+((x)*64))
3627 #define  NV20TCL_TX_WRAP__SIZE                                                          0x00000004
3628 #define  NV20TCL_TX_ENABLE(x)                                                           (0x00001b0c+((x)*64))
3629 #define  NV20TCL_TX_ENABLE__SIZE                                                        0x00000004
3630 #define  NV20TCL_TX_FILTER(x)                                                           (0x00001b14+((x)*64))
3631 #define  NV20TCL_TX_FILTER__SIZE                                                        0x00000004
3632 #define  NV20TCL_TX_BORDER_COLOR(x)                                                     (0x00001b24+((x)*64))
3633 #define  NV20TCL_TX_BORDER_COLOR__SIZE                                                  0x00000004
3634 #define  NV20TCL_SCISSOR_HORIZ                                                          0x00001c30
3635 #define  NV20TCL_SCISSOR_VERT                                                           0x00001c50
3636 #define  NV20TCL_MULTISAMPLE_CONTROL                                                    0x00001d7c
3637 #define  NV20TCL_CLEAR_VALUE                                                            0x00001d90
3638 #define  NV20TCL_CLEAR_BUFFERS                                                          0x00001d94
3639 #define  NV20TCL_RC_COLOR0                                                              0x00001e20
3640 #define  NV20TCL_RC_COLOR1                                                              0x00001e24
3641 #define  NV20TCL_RC_OUT_RGB(x)                                                          (0x00001e40+((x)*4))
3642 #define  NV20TCL_RC_OUT_RGB__SIZE                                                       0x00000008
3643 #define  NV20TCL_RC_ENABLE                                                              0x00001e60
3644 #define  NV20TCL_TX_SHADER_OP                                                           0x00001e70
3645 #define  NV20TCL_VP_UPLOAD_CONST_ID                                                     0x00001ea4
3646
3647
3648 #define NV17TCL                                                                         0x00000099
3649
3650 #define  NV17TCL_DMA_IN_MEMORY4                                                         0x000001ac
3651 #define  NV17TCL_DMA_IN_MEMORY5                                                         0x000001b0
3652 #define  NV17TCL_COLOR_MASK_ENABLE                                                      0x000002bc
3653 #define  NV17TCL_LMA_DEPTH_BUFFER_PITCH                                                 0x00000d5c
3654 #define  NV17TCL_LMA_DEPTH_BUFFER_OFFSET                                                0x00000d60
3655 #define  NV17TCL_LMA_DEPTH_FILL_VALUE                                                   0x00000d68
3656 #define  NV17TCL_LMA_DEPTH_BUFFER_CLEAR                                                 0x00000d6c
3657 #define  NV17TCL_LMA_DEPTH_ENABLE                                                       0x00001658
3658
3659
3660 #define NV20_SWIZZLED_SURFACE                                                           0x0000009e
3661
3662
3663
3664 #define NV12_IMAGE_BLIT                                                                 0x0000009f
3665
3666
3667
3668 #define NV30_CONTEXT_SURFACES_2D                                                        0x00000362
3669
3670
3671
3672 #define NV30_STRETCHED_IMAGE_FROM_CPU                                                   0x00000366
3673
3674
3675
3676 #define NV30_TEXTURE_FROM_CPU                                                           0x0000037b
3677
3678
3679
3680 #define NV30_SCALED_IMAGE_FROM_MEMORY                                                   0x00000389
3681
3682
3683
3684 #define NV30_IMAGE_FROM_CPU                                                             0x0000038a
3685
3686
3687
3688 #define NV30TCL                                                                         0x00000397
3689
3690
3691
3692 #define NV30_SWIZZLED_SURFACE                                                           0x0000039e
3693
3694
3695
3696 #define NV35TCL                                                                         0x00000497
3697
3698
3699
3700 #define NV25TCL                                                                         0x00000597
3701
3702 #define  NV25TCL_DMA_IN_MEMORY4                                                         0x0000019c
3703 #define  NV25TCL_DMA_IN_MEMORY5                                                         0x000001a0
3704 #define  NV25TCL_DMA_IN_MEMORY8                                                         0x000001ac
3705 #define  NV25TCL_DMA_IN_MEMORY9                                                         0x000001b0
3706
3707
3708 #define NV34TCL                                                                         0x00000697
3709
3710 #define  NV34TCL_NOP                                                                    0x00000100
3711 #define  NV34TCL_NOTIFY                                                                 0x00000104
3712 #define  NV34TCL_DMA_NOTIFY                                                             0x00000180
3713 #define  NV34TCL_DMA_TEXTURE0                                                           0x00000184
3714 #define  NV34TCL_DMA_TEXTURE1                                                           0x00000188
3715 #define  NV34TCL_DMA_COLOR1                                                             0x0000018c
3716 #define  NV34TCL_DMA_COLOR0                                                             0x00000194
3717 #define  NV34TCL_DMA_ZETA                                                               0x00000198
3718 #define  NV34TCL_DMA_VTXBUF0                                                            0x0000019c
3719 #define  NV34TCL_DMA_VTXBUF1                                                            0x000001a0
3720 #define  NV34TCL_DMA_FENCE                                                              0x000001a4
3721 #define  NV34TCL_DMA_QUERY                                                              0x000001a8
3722 #define  NV34TCL_DMA_IN_MEMORY7                                                         0x000001ac
3723 #define  NV34TCL_DMA_IN_MEMORY8                                                         0x000001b0
3724 #define  NV34TCL_RT_HORIZ                                                               0x00000200
3725 #define   NV34TCL_RT_HORIZ_X_SHIFT                                                      0
3726 #define   NV34TCL_RT_HORIZ_X_MASK                                                       0x0000ffff
3727 #define   NV34TCL_RT_HORIZ_W_SHIFT                                                      16
3728 #define   NV34TCL_RT_HORIZ_W_MASK                                                       0xffff0000
3729 #define  NV34TCL_RT_VERT                                                                0x00000204
3730 #define   NV34TCL_RT_VERT_Y_SHIFT                                                       0
3731 #define   NV34TCL_RT_VERT_Y_MASK                                                        0x0000ffff
3732 #define   NV34TCL_RT_VERT_H_SHIFT                                                       16
3733 #define   NV34TCL_RT_VERT_H_MASK                                                        0xffff0000
3734 #define  NV34TCL_RT_FORMAT                                                              0x00000208
3735 #define   NV34TCL_RT_FORMAT_TYPE_SHIFT                                                  8
3736 #define   NV34TCL_RT_FORMAT_TYPE_MASK                                                   0x00000f00
3737 #define    NV34TCL_RT_FORMAT_TYPE_LINEAR                                                0x00000100
3738 #define    NV34TCL_RT_FORMAT_TYPE_SWIZZLED                                              0x00000200
3739 #define   NV34TCL_RT_FORMAT_ZETA_SHIFT                                                  5
3740 #define   NV34TCL_RT_FORMAT_ZETA_MASK                                                   0x000000e0
3741 #define    NV34TCL_RT_FORMAT_ZETA_Z16                                                   0x00000020
3742 #define    NV34TCL_RT_FORMAT_ZETA_Z24S8                                                 0x00000040
3743 #define   NV34TCL_RT_FORMAT_COLOR_SHIFT                                                 0
3744 #define   NV34TCL_RT_FORMAT_COLOR_MASK                                                  0x0000001f
3745 #define    NV34TCL_RT_FORMAT_COLOR_R5G6B5                                               0x00000003
3746 #define    NV34TCL_RT_FORMAT_COLOR_X8R8G8B8                                             0x00000005
3747 #define    NV34TCL_RT_FORMAT_COLOR_A8R8G8B8                                             0x00000008
3748 #define    NV34TCL_RT_FORMAT_COLOR_B8                                                   0x00000009
3749 #define    NV34TCL_RT_FORMAT_COLOR_X8B8G8R8                                             0x0000000f
3750 #define    NV34TCL_RT_FORMAT_COLOR_A8B8G8R8                                             0x00000010
3751 #define  NV34TCL_COLOR0_PITCH                                                           0x0000020c
3752 #define   NV34TCL_COLOR0_PITCH_COLOR0_SHIFT                                             0
3753 #define   NV34TCL_COLOR0_PITCH_COLOR0_MASK                                              0x0000ffff
3754 #define   NV34TCL_COLOR0_PITCH_ZETA_SHIFT                                               16
3755 #define   NV34TCL_COLOR0_PITCH_ZETA_MASK                                                0xffff0000
3756 #define  NV34TCL_COLOR0_OFFSET                                                          0x00000210
3757 #define  NV34TCL_ZETA_OFFSET                                                            0x00000214
3758 #define  NV34TCL_COLOR1_OFFSET                                                          0x00000218
3759 #define  NV34TCL_COLOR1_PITCH                                                           0x0000021c
3760 #define  NV34TCL_RT_ENABLE                                                              0x00000220
3761 #define   NV34TCL_RT_ENABLE_MRT                                                         (1 <<  4)
3762 #define   NV34TCL_RT_ENABLE_COLOR1                                                      (1 <<  1)
3763 #define   NV34TCL_RT_ENABLE_COLOR0                                                      (1 <<  0)
3764 #define  NV34TCL_LMA_DEPTH_PITCH                                                        0x0000022c
3765 #define  NV34TCL_LMA_DEPTH_OFFSET                                                       0x00000230
3766 #define  NV34TCL_TX_UNITS_ENABLE                                                        0x0000023c
3767 #define   NV34TCL_TX_UNITS_ENABLE_TX0                                                   (1 <<  0)
3768 #define   NV34TCL_TX_UNITS_ENABLE_TX1                                                   (1 <<  1)
3769 #define   NV34TCL_TX_UNITS_ENABLE_TX2                                                   (1 <<  2)
3770 #define   NV34TCL_TX_UNITS_ENABLE_TX3                                                   (1 <<  3)
3771 #define  NV34TCL_TX_MATRIX_ENABLE(x)                                                    (0x00000240+((x)*4))
3772 #define  NV34TCL_TX_MATRIX_ENABLE__SIZE                                                 0x00000004
3773 #define  NV34TCL_UNK0250(x)                                                             (0x00000250+((x)*4))
3774 #define  NV34TCL_UNK0250__SIZE                                                          0x00000004
3775 #define  NV34TCL_VIEWPORT_TX_ORIGIN                                                     0x000002b8
3776 #define   NV34TCL_VIEWPORT_TX_ORIGIN_X_SHIFT                                            0
3777 #define   NV34TCL_VIEWPORT_TX_ORIGIN_X_MASK                                             0x0000ffff
3778 #define   NV34TCL_VIEWPORT_TX_ORIGIN_Y_SHIFT                                            16
3779 #define   NV34TCL_VIEWPORT_TX_ORIGIN_Y_MASK                                             0xffff0000
3780 #define  NV34TCL_VIEWPORT_CLIP_HORIZ(x)                                                 (0x000002c0+((x)*8))
3781 #define  NV34TCL_VIEWPORT_CLIP_HORIZ__SIZE                                              0x00000008
3782 #define   NV34TCL_VIEWPORT_CLIP_HORIZ_L_SHIFT                                           0
3783 #define   NV34TCL_VIEWPORT_CLIP_HORIZ_L_MASK                                            0x0000ffff
3784 #define   NV34TCL_VIEWPORT_CLIP_HORIZ_R_SHIFT                                           16
3785 #define   NV34TCL_VIEWPORT_CLIP_HORIZ_R_MASK                                            0xffff0000
3786 #define  NV34TCL_VIEWPORT_CLIP_VERT(x)                                                  (0x000002c4+((x)*8))
3787 #define  NV34TCL_VIEWPORT_CLIP_VERT__SIZE                                               0x00000008
3788 #define   NV34TCL_VIEWPORT_CLIP_VERT_T_SHIFT                                            0
3789 #define   NV34TCL_VIEWPORT_CLIP_VERT_T_MASK                                             0x0000ffff
3790 #define   NV34TCL_VIEWPORT_CLIP_VERT_D_SHIFT                                            16
3791 #define   NV34TCL_VIEWPORT_CLIP_VERT_D_MASK                                             0xffff0000
3792 #define  NV34TCL_DITHER_ENABLE                                                          0x00000300
3793 #define  NV34TCL_ALPHA_FUNC_ENABLE                                                      0x00000304
3794 #define  NV34TCL_ALPHA_FUNC_FUNC                                                        0x00000308
3795 #define   NV34TCL_ALPHA_FUNC_FUNC_NEVER                                                 0x00000200
3796 #define   NV34TCL_ALPHA_FUNC_FUNC_LESS                                                  0x00000201
3797 #define   NV34TCL_ALPHA_FUNC_FUNC_EQUAL                                                 0x00000202
3798 #define   NV34TCL_ALPHA_FUNC_FUNC_LEQUAL                                                0x00000203
3799 #define   NV34TCL_ALPHA_FUNC_FUNC_GREATER                                               0x00000204
3800 #define   NV34TCL_ALPHA_FUNC_FUNC_GREATER                                               0x00000204
3801 #define   NV34TCL_ALPHA_FUNC_FUNC_NOTEQUAL                                              0x00000205
3802 #define   NV34TCL_ALPHA_FUNC_FUNC_GEQUAL                                                0x00000206
3803 #define   NV34TCL_ALPHA_FUNC_FUNC_ALWAYS                                                0x00000207
3804 #define  NV34TCL_ALPHA_FUNC_REF                                                         0x0000030c
3805 #define  NV34TCL_BLEND_FUNC_ENABLE                                                      0x00000310
3806 #define  NV34TCL_BLEND_FUNC_SRC                                                         0x00000314
3807 #define   NV34TCL_BLEND_FUNC_SRC_RGB_SHIFT                                              0
3808 #define   NV34TCL_BLEND_FUNC_SRC_RGB_MASK                                               0x0000ffff
3809 #define    NV34TCL_BLEND_FUNC_SRC_RGB_ZERO                                              0x00000000
3810 #define    NV34TCL_BLEND_FUNC_SRC_RGB_ONE                                               0x00000001
3811 #define    NV34TCL_BLEND_FUNC_SRC_RGB_SRC_COLOR                                         0x00000300
3812 #define    NV34TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_SRC_COLOR                               0x00000301
3813 #define    NV34TCL_BLEND_FUNC_SRC_RGB_SRC_ALPHA                                         0x00000302
3814 #define    NV34TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_SRC_ALPHA                               0x00000303
3815 #define    NV34TCL_BLEND_FUNC_SRC_RGB_DST_ALPHA                                         0x00000304
3816 #define    NV34TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_DST_ALPHA                               0x00000305
3817 #define    NV34TCL_BLEND_FUNC_SRC_RGB_DST_COLOR                                         0x00000306
3818 #define    NV34TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_DST_COLOR                               0x00000307
3819 #define    NV34TCL_BLEND_FUNC_SRC_RGB_SRC_ALPHA_SATURATE                                0x00000308
3820 #define    NV34TCL_BLEND_FUNC_SRC_RGB_CONSTANT_COLOR                                    0x00008001
3821 #define    NV34TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_CONSTANT_COLOR                          0x00008002
3822 #define    NV34TCL_BLEND_FUNC_SRC_RGB_CONSTANT_ALPHA                                    0x00008003
3823 #define    NV34TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_CONSTANT_ALPHA                          0x00008004
3824 #define   NV34TCL_BLEND_FUNC_SRC_ALPHA_SHIFT                                            16
3825 #define   NV34TCL_BLEND_FUNC_SRC_ALPHA_MASK                                             0xffff0000
3826 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_ZERO                                            0x00000000
3827 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_ONE                                             0x00010000
3828 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_SRC_COLOR                                       0x03000000
3829 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_SRC_COLOR                             0x03010000
3830 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_SRC_ALPHA                                       0x03020000
3831 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_SRC_ALPHA                             0x03030000
3832 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_DST_ALPHA                                       0x03040000
3833 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_DST_ALPHA                             0x03050000
3834 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_DST_COLOR                                       0x03060000
3835 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_DST_COLOR                             0x03070000
3836 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_SRC_ALPHA_SATURATE                              0x03080000
3837 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_CONSTANT_COLOR                                  0x80010000
3838 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_CONSTANT_COLOR                        0x80020000
3839 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_CONSTANT_ALPHA                                  0x80030000
3840 #define    NV34TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_CONSTANT_ALPHA                        0x80040000
3841 #define  NV34TCL_BLEND_FUNC_DST                                                         0x00000318
3842 #define   NV34TCL_BLEND_FUNC_DST_RGB_SHIFT                                              0
3843 #define   NV34TCL_BLEND_FUNC_DST_RGB_MASK                                               0x0000ffff
3844 #define    NV34TCL_BLEND_FUNC_DST_RGB_ZERO                                              0x00000000
3845 #define    NV34TCL_BLEND_FUNC_DST_RGB_ONE                                               0x00000001
3846 #define    NV34TCL_BLEND_FUNC_DST_RGB_SRC_COLOR                                         0x00000300
3847 #define    NV34TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_SRC_COLOR                               0x00000301
3848 #define    NV34TCL_BLEND_FUNC_DST_RGB_SRC_ALPHA                                         0x00000302
3849 #define    NV34TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_SRC_ALPHA                               0x00000303
3850 #define    NV34TCL_BLEND_FUNC_DST_RGB_DST_ALPHA                                         0x00000304
3851 #define    NV34TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_DST_ALPHA                               0x00000305
3852 #define    NV34TCL_BLEND_FUNC_DST_RGB_DST_COLOR                                         0x00000306
3853 #define    NV34TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_DST_COLOR                               0x00000307
3854 #define    NV34TCL_BLEND_FUNC_DST_RGB_SRC_ALPHA_SATURATE                                0x00000308
3855 #define    NV34TCL_BLEND_FUNC_DST_RGB_CONSTANT_COLOR                                    0x00008001
3856 #define    NV34TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_CONSTANT_COLOR                          0x00008002
3857 #define    NV34TCL_BLEND_FUNC_DST_RGB_CONSTANT_ALPHA                                    0x00008003
3858 #define    NV34TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_CONSTANT_ALPHA                          0x00008004
3859 #define   NV34TCL_BLEND_FUNC_DST_ALPHA_SHIFT                                            16
3860 #define   NV34TCL_BLEND_FUNC_DST_ALPHA_MASK                                             0xffff0000
3861 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_ZERO                                            0x00000000
3862 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_ONE                                             0x00010000
3863 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_SRC_COLOR                                       0x03000000
3864 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_SRC_COLOR                             0x03010000
3865 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_SRC_ALPHA                                       0x03020000
3866 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_SRC_ALPHA                             0x03030000
3867 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_DST_ALPHA                                       0x03040000
3868 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_DST_ALPHA                             0x03050000
3869 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_DST_COLOR                                       0x03060000
3870 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_DST_COLOR                             0x03070000
3871 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_SRC_ALPHA_SATURATE                              0x03080000
3872 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_CONSTANT_COLOR                                  0x80010000
3873 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_CONSTANT_COLOR                        0x80020000
3874 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_CONSTANT_ALPHA                                  0x80030000
3875 #define    NV34TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_CONSTANT_ALPHA                        0x80040000
3876 #define  NV34TCL_BLEND_COLOR                                                            0x0000031c
3877 #define   NV34TCL_BLEND_COLOR_B_SHIFT                                                   0
3878 #define   NV34TCL_BLEND_COLOR_B_MASK                                                    0x000000ff
3879 #define   NV34TCL_BLEND_COLOR_G_SHIFT                                                   8
3880 #define   NV34TCL_BLEND_COLOR_G_MASK                                                    0x0000ff00
3881 #define   NV34TCL_BLEND_COLOR_R_SHIFT                                                   16
3882 #define   NV34TCL_BLEND_COLOR_R_MASK                                                    0x00ff0000
3883 #define   NV34TCL_BLEND_COLOR_A_SHIFT                                                   24
3884 #define   NV34TCL_BLEND_COLOR_A_MASK                                                    0xff000000
3885 #define  NV34TCL_BLEND_EQUATION                                                         0x00000320
3886 #define   NV34TCL_BLEND_EQUATION_FUNC_ADD                                               0x00008006
3887 #define   NV34TCL_BLEND_EQUATION_MIN                                                    0x00008007
3888 #define   NV34TCL_BLEND_EQUATION_MAX                                                    0x00008008
3889 #define   NV34TCL_BLEND_EQUATION_FUNC_SUBTRACT                                          0x0000800a
3890 #define   NV34TCL_BLEND_EQUATION_FUNC_REVERSE_SUBTRACT                                  0x0000800b
3891 #define  NV34TCL_COLOR_MASK                                                             0x00000324
3892 #define   NV34TCL_COLOR_MASK_B_SHIFT                                                    0
3893 #define   NV34TCL_COLOR_MASK_B_MASK                                                     0x000000ff
3894 #define   NV34TCL_COLOR_MASK_G_SHIFT                                                    8
3895 #define   NV34TCL_COLOR_MASK_G_MASK                                                     0x0000ff00
3896 #define   NV34TCL_COLOR_MASK_R_SHIFT                                                    16
3897 #define   NV34TCL_COLOR_MASK_R_MASK                                                     0x00ff0000
3898 #define   NV34TCL_COLOR_MASK_A_SHIFT                                                    24
3899 #define   NV34TCL_COLOR_MASK_A_MASK                                                     0xff000000
3900 #define  NV34TCL_STENCIL_BACK_ENABLE                                                    0x00000328
3901 #define  NV34TCL_STENCIL_BACK_MASK                                                      0x0000032c
3902 #define  NV34TCL_STENCIL_BACK_FUNC_FUNC                                                 0x00000330
3903 #define   NV34TCL_STENCIL_BACK_FUNC_FUNC_NEVER                                          0x00000200
3904 #define   NV34TCL_STENCIL_BACK_FUNC_FUNC_LESS                                           0x00000201
3905 #define   NV34TCL_STENCIL_BACK_FUNC_FUNC_EQUAL                                          0x00000202
3906 #define   NV34TCL_STENCIL_BACK_FUNC_FUNC_LEQUAL                                         0x00000203
3907 #define   NV34TCL_STENCIL_BACK_FUNC_FUNC_GREATER                                        0x00000204
3908 #define   NV34TCL_STENCIL_BACK_FUNC_FUNC_GREATER                                        0x00000204
3909 #define   NV34TCL_STENCIL_BACK_FUNC_FUNC_NOTEQUAL                                       0x00000205
3910 #define   NV34TCL_STENCIL_BACK_FUNC_FUNC_GEQUAL                                         0x00000206
3911 #define   NV34TCL_STENCIL_BACK_FUNC_FUNC_ALWAYS                                         0x00000207
3912 #define  NV34TCL_STENCIL_BACK_FUNC_REF                                                  0x00000334
3913 #define  NV34TCL_STENCIL_BACK_FUNC_MASK                                                 0x00000338
3914 #define  NV34TCL_STENCIL_BACK_OP_FAIL                                                   0x0000033c
3915 #define   NV34TCL_STENCIL_BACK_OP_FAIL_ZERO                                             0x00000000
3916 #define   NV34TCL_STENCIL_BACK_OP_FAIL_INVERT                                           0x0000150a
3917 #define   NV34TCL_STENCIL_BACK_OP_FAIL_KEEP                                             0x00001e00
3918 #define   NV34TCL_STENCIL_BACK_OP_FAIL_REPLACE                                          0x00001e01
3919 #define   NV34TCL_STENCIL_BACK_OP_FAIL_INCR                                             0x00001e02
3920 #define   NV34TCL_STENCIL_BACK_OP_FAIL_DECR                                             0x00001e03
3921 #define   NV34TCL_STENCIL_BACK_OP_FAIL_INCR_WRAP                                        0x00008507
3922 #define   NV34TCL_STENCIL_BACK_OP_FAIL_DECR_WRAP                                        0x00008508
3923 #define  NV34TCL_STENCIL_BACK_OP_ZFAIL                                                  0x00000340
3924 #define   NV34TCL_STENCIL_BACK_OP_ZFAIL_ZERO                                            0x00000000
3925 #define   NV34TCL_STENCIL_BACK_OP_ZFAIL_INVERT                                          0x0000150a
3926 #define   NV34TCL_STENCIL_BACK_OP_ZFAIL_KEEP                                            0x00001e00
3927 #define   NV34TCL_STENCIL_BACK_OP_ZFAIL_REPLACE                                         0x00001e01
3928 #define   NV34TCL_STENCIL_BACK_OP_ZFAIL_INCR                                            0x00001e02
3929 #define   NV34TCL_STENCIL_BACK_OP_ZFAIL_DECR                                            0x00001e03
3930 #define   NV34TCL_STENCIL_BACK_OP_ZFAIL_INCR_WRAP                                       0x00008507
3931 #define   NV34TCL_STENCIL_BACK_OP_ZFAIL_DECR_WRAP                                       0x00008508
3932 #define  NV34TCL_STENCIL_BACK_OP_ZPASS                                                  0x00000344
3933 #define   NV34TCL_STENCIL_BACK_OP_ZPASS_ZERO                                            0x00000000
3934 #define   NV34TCL_STENCIL_BACK_OP_ZPASS_INVERT                                          0x0000150a
3935 #define   NV34TCL_STENCIL_BACK_OP_ZPASS_KEEP                                            0x00001e00
3936 #define   NV34TCL_STENCIL_BACK_OP_ZPASS_REPLACE                                         0x00001e01
3937 #define   NV34TCL_STENCIL_BACK_OP_ZPASS_INCR                                            0x00001e02
3938 #define   NV34TCL_STENCIL_BACK_OP_ZPASS_DECR                                            0x00001e03
3939 #define   NV34TCL_STENCIL_BACK_OP_ZPASS_INCR_WRAP                                       0x00008507
3940 #define   NV34TCL_STENCIL_BACK_OP_ZPASS_DECR_WRAP                                       0x00008508
3941 #define  NV34TCL_STENCIL_FRONT_ENABLE                                                   0x00000348
3942 #define  NV34TCL_STENCIL_FRONT_MASK                                                     0x0000034c
3943 #define  NV34TCL_STENCIL_FRONT_FUNC_FUNC                                                0x00000350
3944 #define   NV34TCL_STENCIL_FRONT_FUNC_FUNC_NEVER                                         0x00000200
3945 #define   NV34TCL_STENCIL_FRONT_FUNC_FUNC_LESS                                          0x00000201
3946 #define   NV34TCL_STENCIL_FRONT_FUNC_FUNC_EQUAL                                         0x00000202
3947 #define   NV34TCL_STENCIL_FRONT_FUNC_FUNC_LEQUAL                                        0x00000203
3948 #define   NV34TCL_STENCIL_FRONT_FUNC_FUNC_GREATER                                       0x00000204
3949 #define   NV34TCL_STENCIL_FRONT_FUNC_FUNC_GREATER                                       0x00000204
3950 #define   NV34TCL_STENCIL_FRONT_FUNC_FUNC_NOTEQUAL                                      0x00000205
3951 #define   NV34TCL_STENCIL_FRONT_FUNC_FUNC_GEQUAL                                        0x00000206
3952 #define   NV34TCL_STENCIL_FRONT_FUNC_FUNC_ALWAYS                                        0x00000207
3953 #define  NV34TCL_STENCIL_FRONT_FUNC_REF                                                 0x00000354
3954 #define  NV34TCL_STENCIL_FRONT_FUNC_MASK                                                0x00000358
3955 #define  NV34TCL_STENCIL_FRONT_OP_FAIL                                                  0x0000035c
3956 #define   NV34TCL_STENCIL_FRONT_OP_FAIL_ZERO                                            0x00000000
3957 #define   NV34TCL_STENCIL_FRONT_OP_FAIL_INVERT                                          0x0000150a
3958 #define   NV34TCL_STENCIL_FRONT_OP_FAIL_KEEP                                            0x00001e00
3959 #define   NV34TCL_STENCIL_FRONT_OP_FAIL_REPLACE                                         0x00001e01
3960 #define   NV34TCL_STENCIL_FRONT_OP_FAIL_INCR                                            0x00001e02
3961 #define   NV34TCL_STENCIL_FRONT_OP_FAIL_DECR                                            0x00001e03
3962 #define   NV34TCL_STENCIL_FRONT_OP_FAIL_INCR_WRAP                                       0x00008507
3963 #define   NV34TCL_STENCIL_FRONT_OP_FAIL_DECR_WRAP                                       0x00008508
3964 #define  NV34TCL_STENCIL_FRONT_OP_ZFAIL                                                 0x00000360
3965 #define   NV34TCL_STENCIL_FRONT_OP_ZFAIL_ZERO                                           0x00000000
3966 #define   NV34TCL_STENCIL_FRONT_OP_ZFAIL_INVERT                                         0x0000150a
3967 #define   NV34TCL_STENCIL_FRONT_OP_ZFAIL_KEEP                                           0x00001e00
3968 #define   NV34TCL_STENCIL_FRONT_OP_ZFAIL_REPLACE                                        0x00001e01
3969 #define   NV34TCL_STENCIL_FRONT_OP_ZFAIL_INCR                                           0x00001e02
3970 #define   NV34TCL_STENCIL_FRONT_OP_ZFAIL_DECR                                           0x00001e03
3971 #define   NV34TCL_STENCIL_FRONT_OP_ZFAIL_INCR_WRAP                                      0x00008507
3972 #define   NV34TCL_STENCIL_FRONT_OP_ZFAIL_DECR_WRAP                                      0x00008508
3973 #define  NV34TCL_STENCIL_FRONT_OP_ZPASS                                                 0x00000364
3974 #define   NV34TCL_STENCIL_FRONT_OP_ZPASS_ZERO                                           0x00000000
3975 #define   NV34TCL_STENCIL_FRONT_OP_ZPASS_INVERT                                         0x0000150a
3976 #define   NV34TCL_STENCIL_FRONT_OP_ZPASS_KEEP                                           0x00001e00
3977 #define   NV34TCL_STENCIL_FRONT_OP_ZPASS_REPLACE                                        0x00001e01
3978 #define   NV34TCL_STENCIL_FRONT_OP_ZPASS_INCR                                           0x00001e02
3979 #define   NV34TCL_STENCIL_FRONT_OP_ZPASS_DECR                                           0x00001e03
3980 #define   NV34TCL_STENCIL_FRONT_OP_ZPASS_INCR_WRAP                                      0x00008507
3981 #define   NV34TCL_STENCIL_FRONT_OP_ZPASS_DECR_WRAP                                      0x00008508
3982 #define  NV34TCL_SHADE_MODEL                                                            0x00000368
3983 #define   NV34TCL_SHADE_MODEL_FLAT                                                      0x00001d00
3984 #define   NV34TCL_SHADE_MODEL_SMOOTH                                                    0x00001d01
3985 #define  NV34TCL_FOG_ENABLE                                                             0x0000036c
3986 #define  NV34TCL_FOG_COLOR                                                              0x00000370
3987 #define  NV34TCL_COLOR_LOGIC_OP_ENABLE                                                  0x00000374
3988 #define  NV34TCL_COLOR_LOGIC_OP_OP                                                      0x00000378
3989 #define   NV34TCL_COLOR_LOGIC_OP_OP_CLEAR                                               0x00001500
3990 #define   NV34TCL_COLOR_LOGIC_OP_OP_AND                                                 0x00001501
3991 #define   NV34TCL_COLOR_LOGIC_OP_OP_AND_REVERSE                                         0x00001502
3992 #define   NV34TCL_COLOR_LOGIC_OP_OP_COPY                                                0x00001503
3993 #define   NV34TCL_COLOR_LOGIC_OP_OP_AND_INVERTED                                        0x00001504
3994 #define   NV34TCL_COLOR_LOGIC_OP_OP_NOOP                                                0x00001505
3995 #define   NV34TCL_COLOR_LOGIC_OP_OP_XOR                                                 0x00001506
3996 #define   NV34TCL_COLOR_LOGIC_OP_OP_OR                                                  0x00001507
3997 #define   NV34TCL_COLOR_LOGIC_OP_OP_NOR                                                 0x00001508
3998 #define   NV34TCL_COLOR_LOGIC_OP_OP_EQUIV                                               0x00001509
3999 #define   NV34TCL_COLOR_LOGIC_OP_OP_INVERT                                              0x0000150a
4000 #define   NV34TCL_COLOR_LOGIC_OP_OP_OR_REVERSE                                          0x0000150b
4001 #define   NV34TCL_COLOR_LOGIC_OP_OP_COPY_INVERTED                                       0x0000150c
4002 #define   NV34TCL_COLOR_LOGIC_OP_OP_OR_INVERTED                                         0x0000150d
4003 #define   NV34TCL_COLOR_LOGIC_OP_OP_NAND                                                0x0000150e
4004 #define   NV34TCL_COLOR_LOGIC_OP_OP_SET                                                 0x0000150f
4005 #define  NV34TCL_NORMALIZE_ENABLE                                                       0x0000037c
4006 #define  NV34TCL_COLOR_MATERIAL                                                         0x00000390
4007 #define   NV34TCL_COLOR_MATERIAL_FRONT_EMISSION_ENABLE                                  (1 <<  0)
4008 #define   NV34TCL_COLOR_MATERIAL_FRONT_AMBIENT_ENABLE                                   (1 <<  2)
4009 #define   NV34TCL_COLOR_MATERIAL_FRONT_DIFFUSE_ENABLE                                   (1 <<  4)
4010 #define   NV34TCL_COLOR_MATERIAL_FRONT_SPECULAR_ENABLE                                  (1 <<  6)
4011 #define   NV34TCL_COLOR_MATERIAL_BACK_EMISSION_ENABLE                                   (1 <<  8)
4012 #define   NV34TCL_COLOR_MATERIAL_BACK_AMBIENT_ENABLE                                    (1 << 10)
4013 #define   NV34TCL_COLOR_MATERIAL_BACK_DIFFUSE_ENABLE                                    (1 << 12)
4014 #define   NV34TCL_COLOR_MATERIAL_BACK_SPECULAR_ENABLE                                   (1 << 14)
4015 #define  NV34TCL_DEPTH_RANGE_NEAR                                                       0x00000394
4016 #define  NV34TCL_DEPTH_RANGE_FAR                                                        0x00000398
4017 #define  NV34TCL_COLOR_MATERIAL_FRONT_R                                                 0x000003a0
4018 #define  NV34TCL_COLOR_MATERIAL_FRONT_G                                                 0x000003a4
4019 #define  NV34TCL_COLOR_MATERIAL_FRONT_B                                                 0x000003a8
4020 #define  NV34TCL_COLOR_MATERIAL_FRONT_A                                                 0x000003b4
4021 #define  NV34TCL_LINE_WIDTH                                                             0x000003b8
4022 #define  NV34TCL_LINE_SMOOTH_ENABLE                                                     0x000003bc
4023 #define  NV34TCL_CLIP_PLANE_ENABLE(x)                                                   (0x00000400+((x)*4))
4024 #define  NV34TCL_CLIP_PLANE_ENABLE__SIZE                                                0x00000020
4025 #define   NV34TCL_CLIP_PLANE_ENABLE_FALSE                                               0x00000000
4026 #define   NV34TCL_CLIP_PLANE_ENABLE_EYE_LINEAR                                          0x00002400
4027 #define   NV34TCL_CLIP_PLANE_ENABLE_OBJECT_LINEAR                                       0x00002401
4028 #define  NV34TCL_MODELVIEW_MATRIX(x)                                                    (0x00000480+((x)*4))
4029 #define  NV34TCL_MODELVIEW_MATRIX__SIZE                                                 0x00000010
4030 #define  NV34TCL_INVERSE_MODELVIEW_MATRIX(x)                                            (0x00000580+((x)*4))
4031 #define  NV34TCL_INVERSE_MODELVIEW_MATRIX__SIZE                                         0x0000000c
4032 #define  NV34TCL_PROJECTION_MATRIX(x)                                                   (0x00000680+((x)*4))
4033 #define  NV34TCL_PROJECTION_MATRIX__SIZE                                                0x00000010
4034 #define  NV34TCL_TX0_MATRIX(x)                                                          (0x000006c0+((x)*4))
4035 #define  NV34TCL_TX0_MATRIX__SIZE                                                       0x00000010
4036 #define  NV34TCL_TX1_MATRIX(x)                                                          (0x00000700+((x)*4))
4037 #define  NV34TCL_TX1_MATRIX__SIZE                                                       0x00000010
4038 #define  NV34TCL_TX2_MATRIX(x)                                                          (0x00000740+((x)*4))
4039 #define  NV34TCL_TX2_MATRIX__SIZE                                                       0x00000010
4040 #define  NV34TCL_TX3_MATRIX(x)                                                          (0x00000780+((x)*4))
4041 #define  NV34TCL_TX3_MATRIX__SIZE                                                       0x00000010
4042 #define  NV34TCL_SCISSOR_HORIZ                                                          0x000008c0
4043 #define   NV34TCL_SCISSOR_HORIZ_X_SHIFT                                                 0
4044 #define   NV34TCL_SCISSOR_HORIZ_X_MASK                                                  0x0000ffff
4045 #define   NV34TCL_SCISSOR_HORIZ_W_SHIFT                                                 16
4046 #define   NV34TCL_SCISSOR_HORIZ_W_MASK                                                  0xffff0000
4047 #define  NV34TCL_SCISSOR_VERT                                                           0x000008c4
4048 #define   NV34TCL_SCISSOR_VERT_Y_SHIFT                                                  0
4049 #define   NV34TCL_SCISSOR_VERT_Y_MASK                                                   0x0000ffff
4050 #define   NV34TCL_SCISSOR_VERT_H_SHIFT                                                  16
4051 #define   NV34TCL_SCISSOR_VERT_H_MASK                                                   0xffff0000
4052 #define  NV34TCL_FOG_COORD_DIST                                                         0x000008c8
4053 #define  NV34TCL_FOG_MODE                                                               0x000008cc
4054 #define   NV34TCL_FOG_MODE_EXP                                                          0x00000800
4055 #define   NV34TCL_FOG_MODE_EXP_2                                                        0x00000802
4056 #define   NV34TCL_FOG_MODE_EXP2                                                         0x00000803
4057 #define   NV34TCL_FOG_MODE_LINEAR                                                       0x00000804
4058 #define   NV34TCL_FOG_MODE_LINEAR_2                                                     0x00002601
4059 #define  NV34TCL_FOG_EQUATION_CONSTANT                                                  0x000008d0
4060 #define  NV34TCL_FOG_EQUATION_LINEAR                                                    0x000008d4
4061 #define  NV34TCL_FOG_EQUATION_QUADRATIC                                                 0x000008d8
4062 #define  NV34TCL_FP_ACTIVE_PROGRAM                                                      0x000008e4
4063 #define   NV34TCL_FP_ACTIVE_PROGRAM_DMA0                                                (1 <<  0)
4064 #define   NV34TCL_FP_ACTIVE_PROGRAM_DMA1                                                (1 <<  1)
4065 #define   NV34TCL_FP_ACTIVE_PROGRAM_OFFSET_SHIFT                                        2
4066 #define   NV34TCL_FP_ACTIVE_PROGRAM_OFFSET_MASK                                         0xfffffffc
4067 #define  NV34TCL_RC_COLOR0                                                              0x000008ec
4068 #define   NV34TCL_RC_COLOR0_B_SHIFT                                                     0
4069 #define   NV34TCL_RC_COLOR0_B_MASK                                                      0x000000ff
4070 #define   NV34TCL_RC_COLOR0_G_SHIFT                                                     8
4071 #define   NV34TCL_RC_COLOR0_G_MASK                                                      0x0000ff00
4072 #define   NV34TCL_RC_COLOR0_R_SHIFT                                                     16
4073 #define   NV34TCL_RC_COLOR0_R_MASK                                                      0x00ff0000
4074 #define   NV34TCL_RC_COLOR0_A_SHIFT                                                     24
4075 #define   NV34TCL_RC_COLOR0_A_MASK                                                      0xff000000
4076 #define  NV34TCL_RC_COLOR1                                                              0x000008f0
4077 #define   NV34TCL_RC_COLOR1_B_SHIFT                                                     0
4078 #define   NV34TCL_RC_COLOR1_B_MASK                                                      0x000000ff
4079 #define   NV34TCL_RC_COLOR1_G_SHIFT                                                     8
4080 #define   NV34TCL_RC_COLOR1_G_MASK                                                      0x0000ff00
4081 #define   NV34TCL_RC_COLOR1_R_SHIFT                                                     16
4082 #define   NV34TCL_RC_COLOR1_R_MASK                                                      0x00ff0000
4083 #define   NV34TCL_RC_COLOR1_A_SHIFT                                                     24
4084 #define   NV34TCL_RC_COLOR1_A_MASK                                                      0xff000000
4085 #define  NV34TCL_RC_FINAL0                                                              0x000008f4
4086 #define  NV34TCL_RC_FINAL1                                                              0x000008f8
4087 #define  NV34TCL_RC_ENABLE                                                              0x000008fc
4088 #define  NV34TCL_RC_IN_ALPHA(x)                                                         (0x00000900+((x)*32))
4089 #define  NV34TCL_RC_IN_ALPHA__SIZE                                                      0x00000008
4090 #define  NV34TCL_RC_IN_RGB(x)                                                           (0x00000904+((x)*32))
4091 #define  NV34TCL_RC_IN_RGB__SIZE                                                        0x00000008
4092 #define  NV34TCL_RC_CONSTANT_COLOR0(x)                                                  (0x00000908+((x)*32))
4093 #define  NV34TCL_RC_CONSTANT_COLOR0__SIZE                                               0x00000008
4094 #define   NV34TCL_RC_CONSTANT_COLOR0_B_SHIFT                                            0
4095 #define   NV34TCL_RC_CONSTANT_COLOR0_B_MASK                                             0x000000ff
4096 #define   NV34TCL_RC_CONSTANT_COLOR0_G_SHIFT                                            8
4097 #define   NV34TCL_RC_CONSTANT_COLOR0_G_MASK                                             0x0000ff00
4098 #define   NV34TCL_RC_CONSTANT_COLOR0_R_SHIFT                                            16
4099 #define   NV34TCL_RC_CONSTANT_COLOR0_R_MASK                                             0x00ff0000
4100 #define   NV34TCL_RC_CONSTANT_COLOR0_A_SHIFT                                            24
4101 #define   NV34TCL_RC_CONSTANT_COLOR0_A_MASK                                             0xff000000
4102 #define  NV34TCL_RC_CONSTANT_COLOR1(x)                                                  (0x0000090c+((x)*32))
4103 #define  NV34TCL_RC_CONSTANT_COLOR1__SIZE                                               0x00000008
4104 #define   NV34TCL_RC_CONSTANT_COLOR1_B_SHIFT                                            0
4105 #define   NV34TCL_RC_CONSTANT_COLOR1_B_MASK                                             0x000000ff
4106 #define   NV34TCL_RC_CONSTANT_COLOR1_G_SHIFT                                            8
4107 #define   NV34TCL_RC_CONSTANT_COLOR1_G_MASK                                             0x0000ff00
4108 #define   NV34TCL_RC_CONSTANT_COLOR1_R_SHIFT                                            16
4109 #define   NV34TCL_RC_CONSTANT_COLOR1_R_MASK                                             0x00ff0000
4110 #define   NV34TCL_RC_CONSTANT_COLOR1_A_SHIFT                                            24
4111 #define   NV34TCL_RC_CONSTANT_COLOR1_A_MASK                                             0xff000000
4112 #define  NV34TCL_RC_OUT_ALPHA(x)                                                        (0x00000910+((x)*32))
4113 #define  NV34TCL_RC_OUT_ALPHA__SIZE                                                     0x00000008
4114 #define  NV34TCL_RC_OUT_RGB(x)                                                          (0x00000914+((x)*32))
4115 #define  NV34TCL_RC_OUT_RGB__SIZE                                                       0x00000008
4116 #define  NV34TCL_VIEWPORT_HORIZ                                                         0x00000a00
4117 #define   NV34TCL_VIEWPORT_HORIZ_X_SHIFT                                                0
4118 #define   NV34TCL_VIEWPORT_HORIZ_X_MASK                                                 0x0000ffff
4119 #define   NV34TCL_VIEWPORT_HORIZ_W_SHIFT                                                16
4120 #define   NV34TCL_VIEWPORT_HORIZ_W_MASK                                                 0xffff0000
4121 #define  NV34TCL_VIEWPORT_VERT                                                          0x00000a04
4122 #define   NV34TCL_VIEWPORT_VERT_Y_SHIFT                                                 0
4123 #define   NV34TCL_VIEWPORT_VERT_Y_MASK                                                  0x0000ffff
4124 #define   NV34TCL_VIEWPORT_VERT_H_SHIFT                                                 16
4125 #define   NV34TCL_VIEWPORT_VERT_H_MASK                                                  0xffff0000
4126 #define  NV34TCL_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_R                 0x00000a10
4127 #define  NV34TCL_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_G                 0x00000a14
4128 #define  NV34TCL_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_B                 0x00000a18
4129 #define  NV34TCL_VIEWPORT_TRANSLATE_X                                                   0x00000a20
4130 #define  NV34TCL_VIEWPORT_TRANSLATE_Y                                                   0x00000a24
4131 #define  NV34TCL_VIEWPORT_TRANSLATE_Z                                                   0x00000a28
4132 #define  NV34TCL_VIEWPORT_TRANSLATE_W                                                   0x00000a2c
4133 #define  NV34TCL_VIEWPORT_SCALE_X                                                       0x00000a30
4134 #define  NV34TCL_VIEWPORT_SCALE_Y                                                       0x00000a34
4135 #define  NV34TCL_VIEWPORT_SCALE_Z                                                       0x00000a38
4136 #define  NV34TCL_VIEWPORT_SCALE_W                                                       0x00000a3c
4137 #define  NV34TCL_POLYGON_OFFSET_POINT_ENABLE                                            0x00000a60
4138 #define  NV34TCL_POLYGON_OFFSET_LINE_ENABLE                                             0x00000a64
4139 #define  NV34TCL_POLYGON_OFFSET_FILL_ENABLE                                             0x00000a68
4140 #define  NV34TCL_DEPTH_FUNC                                                             0x00000a6c
4141 #define   NV34TCL_DEPTH_FUNC_NEVER                                                      0x00000200
4142 #define   NV34TCL_DEPTH_FUNC_LESS                                                       0x00000201
4143 #define   NV34TCL_DEPTH_FUNC_EQUAL                                                      0x00000202
4144 #define   NV34TCL_DEPTH_FUNC_LEQUAL                                                     0x00000203
4145 #define   NV34TCL_DEPTH_FUNC_GREATER                                                    0x00000204
4146 #define   NV34TCL_DEPTH_FUNC_GREATER                                                    0x00000204
4147 #define   NV34TCL_DEPTH_FUNC_NOTEQUAL                                                   0x00000205
4148 #define   NV34TCL_DEPTH_FUNC_GEQUAL                                                     0x00000206
4149 #define   NV34TCL_DEPTH_FUNC_ALWAYS                                                     0x00000207
4150 #define  NV34TCL_DEPTH_WRITE_ENABLE                                                     0x00000a70
4151 #define  NV34TCL_DEPTH_TEST_ENABLE                                                      0x00000a74
4152 #define  NV34TCL_POLYGON_OFFSET_FACTOR                                                  0x00000a78
4153 #define  NV34TCL_POLYGON_OFFSET_UNITS                                                   0x00000a7c
4154 #define  NV34TCL_VTX_ATTR_3I_XY(x)                                                      (0x00000a80+((x)*8))
4155 #define  NV34TCL_VTX_ATTR_3I_XY__SIZE                                                   0x00000010
4156 #define   NV34TCL_VTX_ATTR_3I_XY_X_SHIFT                                                0
4157 #define   NV34TCL_VTX_ATTR_3I_XY_X_MASK                                                 0x0000ffff
4158 #define   NV34TCL_VTX_ATTR_3I_XY_Y_SHIFT                                                16
4159 #define   NV34TCL_VTX_ATTR_3I_XY_Y_MASK                                                 0xffff0000
4160 #define  NV34TCL_VTX_ATTR_3I_Z(x)                                                       (0x00000a84+((x)*8))
4161 #define  NV34TCL_VTX_ATTR_3I_Z__SIZE                                                    0x00000010
4162 #define   NV34TCL_VTX_ATTR_3I_Z_Z_SHIFT                                                 0
4163 #define   NV34TCL_VTX_ATTR_3I_Z_Z_MASK                                                  0x0000ffff
4164 #define  NV34TCL_VP_UPLOAD_INST(x)                                                      (0x00000b80+((x)*4))
4165 #define  NV34TCL_VP_UPLOAD_INST__SIZE                                                   0x00000004
4166 #define  NV34TCL_CLIP_PLANE_A(x)                                                        (0x00000e00+((x)*16))
4167 #define  NV34TCL_CLIP_PLANE_A__SIZE                                                     0x00000020
4168 #define  NV34TCL_CLIP_PLANE_B(x)                                                        (0x00000e04+((x)*16))
4169 #define  NV34TCL_CLIP_PLANE_B__SIZE                                                     0x00000020
4170 #define  NV34TCL_CLIP_PLANE_C(x)                                                        (0x00000e08+((x)*16))
4171 #define  NV34TCL_CLIP_PLANE_C__SIZE                                                     0x00000020
4172 #define  NV34TCL_CLIP_PLANE_D(x)                                                        (0x00000e0c+((x)*16))
4173 #define  NV34TCL_CLIP_PLANE_D__SIZE                                                     0x00000020
4174 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_R(x)                                  (0x00001000+((x)*64))
4175 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_R__SIZE                               0x00000008
4176 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_G(x)                                  (0x00001004+((x)*64))
4177 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_G__SIZE                               0x00000008
4178 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_B(x)                                  (0x00001008+((x)*64))
4179 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_B__SIZE                               0x00000008
4180 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_R(x)                                  (0x0000100c+((x)*64))
4181 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_R__SIZE                               0x00000008
4182 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_G(x)                                  (0x00001010+((x)*64))
4183 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_G__SIZE                               0x00000008
4184 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_B(x)                                  (0x00001014+((x)*64))
4185 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_B__SIZE                               0x00000008
4186 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_R(x)                                 (0x00001018+((x)*64))
4187 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_R__SIZE                              0x00000008
4188 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_G(x)                                 (0x0000101c+((x)*64))
4189 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_G__SIZE                              0x00000008
4190 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_B(x)                                 (0x00001020+((x)*64))
4191 #define  NV34TCL_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_B__SIZE                              0x00000008
4192 #define  NV34TCL_LIGHT_HALF_VECTOR_X(x)                                                 (0x00001028+((x)*64))
4193 #define  NV34TCL_LIGHT_HALF_VECTOR_X__SIZE                                              0x00000008
4194 #define  NV34TCL_LIGHT_HALF_VECTOR_Y(x)                                                 (0x0000102c+((x)*64))
4195 #define  NV34TCL_LIGHT_HALF_VECTOR_Y__SIZE                                              0x00000008
4196 #define  NV34TCL_LIGHT_HALF_VECTOR_Z(x)                                                 (0x00001030+((x)*64))
4197 #define  NV34TCL_LIGHT_HALF_VECTOR_Z__SIZE                                              0x00000008
4198 #define  NV34TCL_LIGHT_DIRECTION_X(x)                                                   (0x00001034+((x)*64))
4199 #define  NV34TCL_LIGHT_DIRECTION_X__SIZE                                                0x00000008
4200 #define  NV34TCL_LIGHT_DIRECTION_Y(x)                                                   (0x00001038+((x)*64))
4201 #define  NV34TCL_LIGHT_DIRECTION_Y__SIZE                                                0x00000008
4202 #define  NV34TCL_LIGHT_DIRECTION_Z(x)                                                   (0x0000103c+((x)*64))
4203 #define  NV34TCL_LIGHT_DIRECTION_Z__SIZE                                                0x00000008
4204 #define  NV34TCL_LIGHT_SPOT_CUTOFF_A(x)                                                 (0x00001200+((x)*64))
4205 #define  NV34TCL_LIGHT_SPOT_CUTOFF_A__SIZE                                              0x00000008
4206 #define  NV34TCL_LIGHT_SPOT_CUTOFF_B(x)                                                 (0x00001204+((x)*64))
4207 #define  NV34TCL_LIGHT_SPOT_CUTOFF_B__SIZE                                              0x00000008
4208 #define  NV34TCL_LIGHT_SPOT_CUTOFF_C(x)                                                 (0x00001208+((x)*64))
4209 #define  NV34TCL_LIGHT_SPOT_CUTOFF_C__SIZE                                              0x00000008
4210 #define  NV34TCL_LIGHT_SPOT_DIR_X(x)                                                    (0x0000120c+((x)*64))
4211 #define  NV34TCL_LIGHT_SPOT_DIR_X__SIZE                                                 0x00000008
4212 #define  NV34TCL_LIGHT_SPOT_DIR_Y(x)                                                    (0x00001210+((x)*64))
4213 #define  NV34TCL_LIGHT_SPOT_DIR_Y__SIZE                                                 0x00000008
4214 #define  NV34TCL_LIGHT_SPOT_DIR_Z(x)                                                    (0x00001214+((x)*64))
4215 #define  NV34TCL_LIGHT_SPOT_DIR_Z__SIZE                                                 0x00000008
4216 #define  NV34TCL_LIGHT_SPOT_CUTOFF_D(x)                                                 (0x00001218+((x)*64))
4217 #define  NV34TCL_LIGHT_SPOT_CUTOFF_D__SIZE                                              0x00000008
4218 #define  NV34TCL_LIGHT_POSITION_X(x)                                                    (0x0000121c+((x)*64))
4219 #define  NV34TCL_LIGHT_POSITION_X__SIZE                                                 0x00000008
4220 #define  NV34TCL_LIGHT_POSITION_Y(x)                                                    (0x00001220+((x)*64))
4221 #define  NV34TCL_LIGHT_POSITION_Y__SIZE                                                 0x00000008
4222 #define  NV34TCL_LIGHT_POSITION_Z(x)                                                    (0x00001224+((x)*64))
4223 #define  NV34TCL_LIGHT_POSITION_Z__SIZE                                                 0x00000008
4224 #define  NV34TCL_LIGHT_ATTENUATION_CONSTANT(x)                                          (0x00001228+((x)*64))
4225 #define  NV34TCL_LIGHT_ATTENUATION_CONSTANT__SIZE                                       0x00000008
4226 #define  NV34TCL_LIGHT_ATTENUATION_LINEAR(x)                                            (0x0000122c+((x)*64))
4227 #define  NV34TCL_LIGHT_ATTENUATION_LINEAR__SIZE                                         0x00000008
4228 #define  NV34TCL_LIGHT_ATTENUATION_QUADRATIC(x)                                         (0x00001230+((x)*64))
4229 #define  NV34TCL_LIGHT_ATTENUATION_QUADRATIC__SIZE                                      0x00000008
4230 #define  NV34TCL_FRONT_MATERIAL_SHININESS(x)                                            (0x00001400+((x)*4))
4231 #define  NV34TCL_FRONT_MATERIAL_SHININESS__SIZE                                         0x00000006
4232 #define  NV34TCL_ENABLED_LIGHTS                                                         0x00001420
4233 #define  NV34TCL_FP_REG_CONTROL                                                         0x00001450
4234 #define   NV34TCL_FP_REG_CONTROL_UNK1_SHIFT                                             16
4235 #define   NV34TCL_FP_REG_CONTROL_UNK1_MASK                                              0xffff0000
4236 #define   NV34TCL_FP_REG_CONTROL_UNK0_SHIFT                                             0
4237 #define   NV34TCL_FP_REG_CONTROL_UNK0_MASK                                              0x0000ffff
4238 #define  NV34TCL_VP_CLIP_PLANES_ENABLE                                                  0x00001478
4239 #define   NV34TCL_VP_CLIP_PLANES_ENABLE_PLANE0                                          (1 <<  1)
4240 #define   NV34TCL_VP_CLIP_PLANES_ENABLE_PLANE1                                          (1 <<  5)
4241 #define   NV34TCL_VP_CLIP_PLANES_ENABLE_PLANE2                                          (1 <<  9)
4242 #define   NV34TCL_VP_CLIP_PLANES_ENABLE_PLANE3                                          (1 << 13)
4243 #define   NV34TCL_VP_CLIP_PLANES_ENABLE_PLANE4                                          (1 << 17)
4244 #define   NV34TCL_VP_CLIP_PLANES_ENABLE_PLANE5                                          (1 << 21)
4245 #define   NV34TCL_VP_CLIP_PLANES_ENABLE_PLANE6                                          (1 << 25)
4246 #define   NV34TCL_VP_CLIP_PLANES_ENABLE_PLANE7                                          (1 << 29)
4247 #define  NV34TCL_POLYGON_STIPPLE_ENABLE                                                 0x0000147c
4248 #define  NV34TCL_POLYGON_STIPPLE_PATTERN(x)                                             (0x00001480+((x)*4))
4249 #define  NV34TCL_POLYGON_STIPPLE_PATTERN__SIZE                                          0x00000020
4250 #define  NV34TCL_VTX_ATTR_3F_X(x)                                                       (0x00001500+((x)*16))
4251 #define  NV34TCL_VTX_ATTR_3F_X__SIZE                                                    0x00000010
4252 #define  NV34TCL_VTX_ATTR_3F_Y(x)                                                       (0x00001504+((x)*16))
4253 #define  NV34TCL_VTX_ATTR_3F_Y__SIZE                                                    0x00000010
4254 #define  NV34TCL_VTX_ATTR_3F_Z(x)                                                       (0x00001508+((x)*16))
4255 #define  NV34TCL_VTX_ATTR_3F_Z__SIZE                                                    0x00000010
4256 #define  NV34TCL_VP_CLIP_PLANE_A(x)                                                     (0x00001600+((x)*16))
4257 #define  NV34TCL_VP_CLIP_PLANE_A__SIZE                                                  0x00000006
4258 #define  NV34TCL_VP_CLIP_PLANE_B(x)                                                     (0x00001604+((x)*16))
4259 #define  NV34TCL_VP_CLIP_PLANE_B__SIZE                                                  0x00000006
4260 #define  NV34TCL_VP_CLIP_PLANE_C(x)                                                     (0x00001608+((x)*16))
4261 #define  NV34TCL_VP_CLIP_PLANE_C__SIZE                                                  0x00000006
4262 #define  NV34TCL_VP_CLIP_PLANE_D(x)                                                     (0x0000160c+((x)*16))
4263 #define  NV34TCL_VP_CLIP_PLANE_D__SIZE                                                  0x00000006
4264 #define  NV34TCL_VTXBUF_ADDRESS(x)                                                      (0x00001680+((x)*4))
4265 #define  NV34TCL_VTXBUF_ADDRESS__SIZE                                                   0x00000010
4266 #define   NV34TCL_VTXBUF_ADDRESS_DMA1                                                   (1 << 31)
4267 #define   NV34TCL_VTXBUF_ADDRESS_OFFSET_SHIFT                                           0
4268 #define   NV34TCL_VTXBUF_ADDRESS_OFFSET_MASK                                            0x0fffffff
4269 #define  NV34TCL_VTXFMT(x)                                                              (0x00001740+((x)*4))
4270 #define  NV34TCL_VTXFMT__SIZE                                                           0x00000010
4271 #define   NV34TCL_VTXFMT_TYPE_SHIFT                                                     0
4272 #define   NV34TCL_VTXFMT_TYPE_MASK                                                      0x0000000f
4273 #define    NV34TCL_VTXFMT_TYPE_FLOAT                                                    0x00000002
4274 #define    NV34TCL_VTXFMT_TYPE_UBYTE                                                    0x00000004
4275 #define    NV34TCL_VTXFMT_TYPE_USHORT                                                   0x00000005
4276 #define   NV34TCL_VTXFMT_SIZE_SHIFT                                                     4
4277 #define   NV34TCL_VTXFMT_SIZE_MASK                                                      0x000000f0
4278 #define   NV34TCL_VTXFMT_STRIDE_SHIFT                                                   8
4279 #define   NV34TCL_VTXFMT_STRIDE_MASK                                                    0x0000ff00
4280 #define  NV34TCL_LIGHT_MODEL_BACK_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_R                  0x000017a0
4281 #define  NV34TCL_LIGHT_MODEL_BACK_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_G                  0x000017a4
4282 #define  NV34TCL_LIGHT_MODEL_BACK_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_B                  0x000017a8
4283 #define  NV34TCL_COLOR_MATERIAL_BACK_R                                                  0x000017b0
4284 #define  NV34TCL_COLOR_MATERIAL_BACK_G                                                  0x000017b4
4285 #define  NV34TCL_COLOR_MATERIAL_BACK_B                                                  0x000017b8
4286 #define  NV34TCL_COLOR_MATERIAL_BACK_A                                                  0x000017c0
4287 #define  NV34TCL_QUERY_RESET                                                            0x000017c8
4288 #define  NV34TCL_QUERY_UNK17CC                                                          0x000017cc
4289 #define  NV34TCL_QUERY_GET                                                              0x00001800
4290 #define   NV34TCL_QUERY_GET_UNK24_SHIFT                                                 24
4291 #define   NV34TCL_QUERY_GET_UNK24_MASK                                                  0xff000000
4292 #define   NV34TCL_QUERY_GET_OFFSET_SHIFT                                                0
4293 #define   NV34TCL_QUERY_GET_OFFSET_MASK                                                 0x00ffffff
4294 #define  NV34TCL_VERTEX_BEGIN_END                                                       0x00001808
4295 #define   NV34TCL_VERTEX_BEGIN_END_STOP                                                 0x00000000
4296 #define   NV34TCL_VERTEX_BEGIN_END_POINTS                                               0x00000001
4297 #define   NV34TCL_VERTEX_BEGIN_END_LINES                                                0x00000002
4298 #define   NV34TCL_VERTEX_BEGIN_END_LINE_LOOP                                            0x00000003
4299 #define   NV34TCL_VERTEX_BEGIN_END_LINE_STRIP                                           0x00000004
4300 #define   NV34TCL_VERTEX_BEGIN_END_TRIANGLES                                            0x00000005
4301 #define   NV34TCL_VERTEX_BEGIN_END_TRIANGLE_STRIP                                       0x00000006
4302 #define   NV34TCL_VERTEX_BEGIN_END_TRIANGLE_FAN                                         0x00000007
4303 #define   NV34TCL_VERTEX_BEGIN_END_QUADS                                                0x00000008
4304 #define   NV34TCL_VERTEX_BEGIN_END_QUAD_STRIP                                           0x00000009
4305 #define   NV34TCL_VERTEX_BEGIN_END_POLYGON                                              0x0000000a
4306 #define  NV34TCL_VB_ELEMENT_U16                                                         0x0000180c
4307 #define   NV34TCL_VB_ELEMENT_U16_I0_SHIFT                                               0
4308 #define   NV34TCL_VB_ELEMENT_U16_I0_MASK                                                0x0000ffff
4309 #define   NV34TCL_VB_ELEMENT_U16_I1_SHIFT                                               16
4310 #define   NV34TCL_VB_ELEMENT_U16_I1_MASK                                                0xffff0000
4311 #define  NV34TCL_VB_ELEMENT_U32                                                         0x00001810
4312 #define  NV34TCL_VB_VERTEX_BATCH                                                        0x00001814
4313 #define   NV34TCL_VB_VERTEX_BATCH_OFFSET_SHIFT                                          0
4314 #define   NV34TCL_VB_VERTEX_BATCH_OFFSET_MASK                                           0x00ffffff
4315 #define   NV34TCL_VB_VERTEX_BATCH_COUNT_SHIFT                                           24
4316 #define   NV34TCL_VB_VERTEX_BATCH_COUNT_MASK                                            0xff000000
4317 #define  NV34TCL_VERTEX_DATA                                                            0x00001818
4318 #define  NV34TCL_IDXBUF_ADDRESS                                                         0x0000181c
4319 #define  NV34TCL_IDXBUF_FORMAT                                                          0x00001820
4320 #define   NV34TCL_IDXBUF_FORMAT_TYPE_SHIFT                                              4
4321 #define   NV34TCL_IDXBUF_FORMAT_TYPE_MASK                                               0x000000f0
4322 #define    NV34TCL_IDXBUF_FORMAT_TYPE_U32                                               0x00000000
4323 #define    NV34TCL_IDXBUF_FORMAT_TYPE_U16                                               0x00000010
4324 #define   NV34TCL_IDXBUF_FORMAT_DMA1                                                    (1 <<  0)
4325 #define  NV34TCL_VB_INDEX_BATCH                                                         0x00001824
4326 #define   NV34TCL_VB_INDEX_BATCH_COUNT_SHIFT                                            24
4327 #define   NV34TCL_VB_INDEX_BATCH_COUNT_MASK                                             0xff000000
4328 #define   NV34TCL_VB_INDEX_BATCH_START_SHIFT                                            0
4329 #define   NV34TCL_VB_INDEX_BATCH_START_MASK                                             0x00ffffff
4330 #define  NV34TCL_POLYGON_MODE_FRONT                                                     0x00001828
4331 #define   NV34TCL_POLYGON_MODE_FRONT_POINT                                              0x00001b00
4332 #define   NV34TCL_POLYGON_MODE_FRONT_LINE                                               0x00001b01
4333 #define   NV34TCL_POLYGON_MODE_FRONT_FILL                                               0x00001b02
4334 #define  NV34TCL_POLYGON_MODE_BACK                                                      0x0000182c
4335 #define   NV34TCL_POLYGON_MODE_BACK_POINT                                               0x00001b00
4336 #define   NV34TCL_POLYGON_MODE_BACK_LINE                                                0x00001b01
4337 #define   NV34TCL_POLYGON_MODE_BACK_FILL                                                0x00001b02
4338 #define  NV34TCL_CULL_FACE                                                              0x00001830
4339 #define   NV34TCL_CULL_FACE_FRONT                                                       0x00000404
4340 #define   NV34TCL_CULL_FACE_BACK                                                        0x00000405
4341 #define   NV34TCL_CULL_FACE_FRONT_AND_BACK                                              0x00000408
4342 #define  NV34TCL_FRONT_FACE                                                             0x00001834
4343 #define   NV34TCL_FRONT_FACE_CW                                                         0x00000900
4344 #define   NV34TCL_FRONT_FACE_CCW                                                        0x00000901
4345 #define  NV34TCL_POLYGON_SMOOTH_ENABLE                                                  0x00001838
4346 #define  NV34TCL_CULL_FACE_ENABLE                                                       0x0000183c
4347 #define  NV34TCL_TX_PALETTE_OFFSET(x)                                                   (0x00001840+((x)*4))
4348 #define  NV34TCL_TX_PALETTE_OFFSET__SIZE                                                0x00000004
4349 #define  NV34TCL_VTX_ATTR_2F_X(x)                                                       (0x00001880+((x)*8))
4350 #define  NV34TCL_VTX_ATTR_2F_X__SIZE                                                    0x00000010
4351 #define  NV34TCL_VTX_ATTR_2F_Y(x)                                                       (0x00001884+((x)*8))
4352 #define  NV34TCL_VTX_ATTR_2F_Y__SIZE                                                    0x00000010
4353 #define  NV34TCL_VTX_ATTR_2I(x)                                                         (0x00001900+((x)*4))
4354 #define  NV34TCL_VTX_ATTR_2I__SIZE                                                      0x00000010
4355 #define   NV34TCL_VTX_ATTR_2I_X_SHIFT                                                   0
4356 #define   NV34TCL_VTX_ATTR_2I_X_MASK                                                    0x0000ffff
4357 #define   NV34TCL_VTX_ATTR_2I_Y_SHIFT                                                   16
4358 #define   NV34TCL_VTX_ATTR_2I_Y_MASK                                                    0xffff0000
4359 #define  NV34TCL_VTX_ATTR_4UB(x)                                                        (0x00001940+((x)*4))
4360 #define  NV34TCL_VTX_ATTR_4UB__SIZE                                                     0x00000010
4361 #define   NV34TCL_VTX_ATTR_4UB_X_SHIFT                                                  0
4362 #define   NV34TCL_VTX_ATTR_4UB_X_MASK                                                   0x000000ff
4363 #define   NV34TCL_VTX_ATTR_4UB_Y_SHIFT                                                  8
4364 #define   NV34TCL_VTX_ATTR_4UB_Y_MASK                                                   0x0000ff00
4365 #define   NV34TCL_VTX_ATTR_4UB_Z_SHIFT                                                  16
4366 #define   NV34TCL_VTX_ATTR_4UB_Z_MASK                                                   0x00ff0000
4367 #define   NV34TCL_VTX_ATTR_4UB_W_SHIFT                                                  24
4368 #define   NV34TCL_VTX_ATTR_4UB_W_MASK                                                   0xff000000
4369 #define  NV34TCL_VTX_ATTR_4I_XY(x)                                                      (0x00001980+((x)*8))
4370 #define  NV34TCL_VTX_ATTR_4I_XY__SIZE                                                   0x00000010
4371 #define   NV34TCL_VTX_ATTR_4I_XY_X_SHIFT                                                0
4372 #define   NV34TCL_VTX_ATTR_4I_XY_X_MASK                                                 0x0000ffff
4373 #define   NV34TCL_VTX_ATTR_4I_XY_Y_SHIFT                                                16
4374 #define   NV34TCL_VTX_ATTR_4I_XY_Y_MASK                                                 0xffff0000
4375 #define  NV34TCL_VTX_ATTR_4I_ZW(x)                                                      (0x00001984+((x)*8))
4376 #define  NV34TCL_VTX_ATTR_4I_ZW__SIZE                                                   0x00000010
4377 #define   NV34TCL_VTX_ATTR_4I_ZW_Z_SHIFT                                                0
4378 #define   NV34TCL_VTX_ATTR_4I_ZW_Z_MASK                                                 0x0000ffff
4379 #define   NV34TCL_VTX_ATTR_4I_ZW_W_SHIFT                                                16
4380 #define   NV34TCL_VTX_ATTR_4I_ZW_W_MASK                                                 0xffff0000
4381 #define  NV34TCL_TX_OFFSET(x)                                                           (0x00001a00+((x)*32))
4382 #define  NV34TCL_TX_OFFSET__SIZE                                                        0x00000004
4383 #define  NV34TCL_TX_FORMAT(x)                                                           (0x00001a04+((x)*32))
4384 #define  NV34TCL_TX_FORMAT__SIZE                                                        0x00000004
4385 #define   NV34TCL_TX_FORMAT_DMA0                                                        (1 <<  0)
4386 #define   NV34TCL_TX_FORMAT_DMA1                                                        (1 <<  1)
4387 #define   NV34TCL_TX_FORMAT_CUBE_MAP                                                    (1 <<  2)
4388 #define   NV34TCL_TX_FORMAT_DIMS_SHIFT                                                  4
4389 #define   NV34TCL_TX_FORMAT_DIMS_MASK                                                   0x000000f0
4390 #define    NV34TCL_TX_FORMAT_DIMS_1D                                                    0x00000010
4391 #define    NV34TCL_TX_FORMAT_DIMS_2D                                                    0x00000020
4392 #define    NV34TCL_TX_FORMAT_DIMS_3D                                                    0x00000030
4393 #define   NV34TCL_TX_FORMAT_FORMAT_SHIFT                                                8
4394 #define   NV34TCL_TX_FORMAT_FORMAT_MASK                                                 0x0000ff00
4395 #define    NV34TCL_TX_FORMAT_FORMAT_L8                                                  0x00000000
4396 #define    NV34TCL_TX_FORMAT_FORMAT_A8                                                  0x00000100
4397 #define    NV34TCL_TX_FORMAT_FORMAT_A1R5G5B5                                            0x00000200
4398 #define    NV34TCL_TX_FORMAT_FORMAT_A8_RECT                                             0x00000300
4399 #define    NV34TCL_TX_FORMAT_FORMAT_A4R4G4B4                                            0x00000400
4400 #define    NV34TCL_TX_FORMAT_FORMAT_A8R8G8B8                                            0x00000600
4401 #define    NV34TCL_TX_FORMAT_FORMAT_X8R8G8B8                                            0x00000700
4402 #define    NV34TCL_TX_FORMAT_FORMAT_INDEX8                                              0x00000b00
4403 #define    NV34TCL_TX_FORMAT_FORMAT_DXT1                                                0x00000c00
4404 #define    NV34TCL_TX_FORMAT_FORMAT_DXT3                                                0x00000e00
4405 #define    NV34TCL_TX_FORMAT_FORMAT_DXT5                                                0x00000f00
4406 #define    NV34TCL_TX_FORMAT_FORMAT_A1R5G5B5_RECT                                       0x00001000
4407 #define    NV34TCL_TX_FORMAT_FORMAT_A8R8G8B8_RECT                                       0x00001200
4408 #define    NV34TCL_TX_FORMAT_FORMAT_L8_RECT                                             0x00001300
4409 #define    NV34TCL_TX_FORMAT_FORMAT_A8L8                                                0x00001a00
4410 #define    NV34TCL_TX_FORMAT_FORMAT_A8_RECT2                                            0x00001b00
4411 #define    NV34TCL_TX_FORMAT_FORMAT_R8G8B8_RECT                                         0x00001e00
4412 #define    NV34TCL_TX_FORMAT_FORMAT_A4R4G4B4_RECT                                       0x00001d00
4413 #define    NV34TCL_TX_FORMAT_FORMAT_L8A8_RECT                                           0x00002000
4414 #define    NV34TCL_TX_FORMAT_FORMAT_A16                                                 0x00003200
4415 #define    NV34TCL_TX_FORMAT_FORMAT_A16_RECT                                            0x00003500
4416 #define    NV34TCL_TX_FORMAT_FORMAT_FLOAT_RGBA16_NV                                     0x00004a00
4417 #define    NV34TCL_TX_FORMAT_FORMAT_FLOAT_RGBA32_NV                                     0x00004b00
4418 #define    NV34TCL_TX_FORMAT_FORMAT_FLOAT_R32_NV                                        0x00004c00
4419 #define   NV34TCL_TX_FORMAT_NPOT                                                        (1 << 12)
4420 #define   NV34TCL_TX_FORMAT_RECT                                                        (1 << 14)
4421 #define   NV34TCL_TX_FORMAT_MIPMAP_LEVELS_SHIFT                                         16
4422 #define   NV34TCL_TX_FORMAT_MIPMAP_LEVELS_MASK                                          0x000f0000
4423 #define   NV34TCL_TX_FORMAT_BASE_SIZE_U_SHIFT                                           20
4424 #define   NV34TCL_TX_FORMAT_BASE_SIZE_U_MASK                                            0x00f00000
4425 #define   NV34TCL_TX_FORMAT_BASE_SIZE_V_SHIFT                                           24
4426 #define   NV34TCL_TX_FORMAT_BASE_SIZE_V_MASK                                            0x0f000000
4427 #define   NV34TCL_TX_FORMAT_BASE_SIZE_W_SHIFT                                           28
4428 #define   NV34TCL_TX_FORMAT_BASE_SIZE_W_MASK                                            0xf0000000
4429 #define  NV34TCL_TX_WRAP(x)                                                             (0x00001a08+((x)*32))
4430 #define  NV34TCL_TX_WRAP__SIZE                                                          0x00000004
4431 #define   NV34TCL_TX_WRAP_S_SHIFT                                                       0
4432 #define   NV34TCL_TX_WRAP_S_MASK                                                        0x000000ff
4433 #define    NV34TCL_TX_WRAP_S_REPEAT                                                     0x00000001
4434 #define    NV34TCL_TX_WRAP_S_MIRRORED_REPEAT                                            0x00000002
4435 #define    NV34TCL_TX_WRAP_S_CLAMP_TO_EDGE                                              0x00000003
4436 #define    NV34TCL_TX_WRAP_S_CLAMP_TO_BORDER                                            0x00000004
4437 #define    NV34TCL_TX_WRAP_S_CLAMP                                                      0x00000005
4438 #define   NV34TCL_TX_WRAP_T_SHIFT                                                       8
4439 #define   NV34TCL_TX_WRAP_T_MASK                                                        0x00000f00
4440 #define    NV34TCL_TX_WRAP_T_REPEAT                                                     0x00000100
4441 #define    NV34TCL_TX_WRAP_T_MIRRORED_REPEAT                                            0x00000200
4442 #define    NV34TCL_TX_WRAP_T_CLAMP_TO_EDGE                                              0x00000300
4443 #define    NV34TCL_TX_WRAP_T_CLAMP_TO_BORDER                                            0x00000400
4444 #define    NV34TCL_TX_WRAP_T_CLAMP                                                      0x00000500
4445 #define   NV34TCL_TX_WRAP_EXPAND_NORMAL_SHIFT                                           12
4446 #define   NV34TCL_TX_WRAP_EXPAND_NORMAL_MASK                                            0x0000f000
4447 #define   NV34TCL_TX_WRAP_R_SHIFT                                                       16
4448 #define   NV34TCL_TX_WRAP_R_MASK                                                        0x00ff0000
4449 #define    NV34TCL_TX_WRAP_R_REPEAT                                                     0x00010000
4450 #define    NV34TCL_TX_WRAP_R_MIRRORED_REPEAT                                            0x00020000
4451 #define    NV34TCL_TX_WRAP_R_CLAMP_TO_EDGE                                              0x00030000
4452 #define    NV34TCL_TX_WRAP_R_CLAMP_TO_BORDER                                            0x00040000
4453 #define    NV34TCL_TX_WRAP_R_CLAMP                                                      0x00050000
4454 #define  NV34TCL_TX_ENABLE(x)                                                           (0x00001a0c+((x)*32))
4455 #define  NV34TCL_TX_ENABLE__SIZE                                                        0x00000004
4456 #define   NV34TCL_TX_ENABLE_ANISO_SHIFT                                                 4
4457 #define   NV34TCL_TX_ENABLE_ANISO_MASK                                                  0x00000030
4458 #define    NV34TCL_TX_ENABLE_ANISO_NONE                                                 0x00000000
4459 #define    NV34TCL_TX_ENABLE_ANISO_2X                                                   0x00000010
4460 #define    NV34TCL_TX_ENABLE_ANISO_4X                                                   0x00000020
4461 #define    NV34TCL_TX_ENABLE_ANISO_8X                                                   0x00000030
4462 #define   NV34TCL_TX_ENABLE_MIPMAP_MAX_LOD_SHIFT                                        14
4463 #define   NV34TCL_TX_ENABLE_MIPMAP_MAX_LOD_MASK                                         0x0003c000
4464 #define   NV34TCL_TX_ENABLE_MIPMAP_MIN_LOD_SHIFT                                        26
4465 #define   NV34TCL_TX_ENABLE_MIPMAP_MIN_LOD_MASK                                         0x3c000000
4466 #define   NV34TCL_TX_ENABLE_ENABLE                                                      (1 << 30)
4467 #define  NV34TCL_TX_SWIZZLE(x)                                                          (0x00001a10+((x)*32))
4468 #define  NV34TCL_TX_SWIZZLE__SIZE                                                       0x00000004
4469 #define   NV34TCL_TX_SWIZZLE_S0_X_SHIFT                                                 14
4470 #define   NV34TCL_TX_SWIZZLE_S0_X_MASK                                                  0x0000c000
4471 #define    NV34TCL_TX_SWIZZLE_S0_X_ZERO                                                 0x00000000
4472 #define    NV34TCL_TX_SWIZZLE_S0_X_ONE                                                  0x00004000
4473 #define    NV34TCL_TX_SWIZZLE_S0_X_S1                                                   0x00008000
4474 #define   NV34TCL_TX_SWIZZLE_S0_Y_SHIFT                                                 12
4475 #define   NV34TCL_TX_SWIZZLE_S0_Y_MASK                                                  0x00003000
4476 #define    NV34TCL_TX_SWIZZLE_S0_Y_ZERO                                                 0x00000000
4477 #define    NV34TCL_TX_SWIZZLE_S0_Y_ONE                                                  0x00001000
4478 #define    NV34TCL_TX_SWIZZLE_S0_Y_S1                                                   0x00002000
4479 #define   NV34TCL_TX_SWIZZLE_S0_Z_SHIFT                                                 10
4480 #define   NV34TCL_TX_SWIZZLE_S0_Z_MASK                                                  0x00000c00
4481 #define    NV34TCL_TX_SWIZZLE_S0_Z_ZERO                                                 0x00000000
4482 #define    NV34TCL_TX_SWIZZLE_S0_Z_ONE                                                  0x00000400
4483 #define    NV34TCL_TX_SWIZZLE_S0_Z_S1                                                   0x00000800
4484 #define   NV34TCL_TX_SWIZZLE_S0_W_SHIFT                                                 8
4485 #define   NV34TCL_TX_SWIZZLE_S0_W_MASK                                                  0x00000300
4486 #define    NV34TCL_TX_SWIZZLE_S0_W_ZERO                                                 0x00000000
4487 #define    NV34TCL_TX_SWIZZLE_S0_W_ONE                                                  0x00000100
4488 #define    NV34TCL_TX_SWIZZLE_S0_W_S1                                                   0x00000200
4489 #define   NV34TCL_TX_SWIZZLE_S1_X_SHIFT                                                 6
4490 #define   NV34TCL_TX_SWIZZLE_S1_X_MASK                                                  0x000000c0
4491 #define    NV34TCL_TX_SWIZZLE_S1_X_W                                                    0x00000000
4492 #define    NV34TCL_TX_SWIZZLE_S1_X_Z                                                    0x00000040
4493 #define    NV34TCL_TX_SWIZZLE_S1_X_Y                                                    0x00000080
4494 #define    NV34TCL_TX_SWIZZLE_S1_X_X                                                    0x000000c0
4495 #define   NV34TCL_TX_SWIZZLE_S1_Y_SHIFT                                                 4
4496 #define   NV34TCL_TX_SWIZZLE_S1_Y_MASK                                                  0x00000030
4497 #define    NV34TCL_TX_SWIZZLE_S1_Y_W                                                    0x00000000
4498 #define    NV34TCL_TX_SWIZZLE_S1_Y_Z                                                    0x00000010
4499 #define    NV34TCL_TX_SWIZZLE_S1_Y_Y                                                    0x00000020
4500 #define    NV34TCL_TX_SWIZZLE_S1_Y_X                                                    0x00000030
4501 #define   NV34TCL_TX_SWIZZLE_S1_Z_SHIFT                                                 2
4502 #define   NV34TCL_TX_SWIZZLE_S1_Z_MASK                                                  0x0000000c
4503 #define    NV34TCL_TX_SWIZZLE_S1_Z_W                                                    0x00000000
4504 #define    NV34TCL_TX_SWIZZLE_S1_Z_Z                                                    0x00000004
4505 #define    NV34TCL_TX_SWIZZLE_S1_Z_Y                                                    0x00000008
4506 #define    NV34TCL_TX_SWIZZLE_S1_Z_X                                                    0x0000000c
4507 #define   NV34TCL_TX_SWIZZLE_S1_W_SHIFT                                                 0
4508 #define   NV34TCL_TX_SWIZZLE_S1_W_MASK                                                  0x00000003
4509 #define    NV34TCL_TX_SWIZZLE_S1_W_W                                                    0x00000000
4510 #define    NV34TCL_TX_SWIZZLE_S1_W_Z                                                    0x00000001
4511 #define    NV34TCL_TX_SWIZZLE_S1_W_Y                                                    0x00000002
4512 #define    NV34TCL_TX_SWIZZLE_S1_W_X                                                    0x00000003
4513 #define   NV34TCL_TX_SWIZZLE_RECT_PITCH_SHIFT                                           16
4514 #define   NV34TCL_TX_SWIZZLE_RECT_PITCH_MASK                                            0xffff0000
4515 #define  NV34TCL_TX_FILTER(x)                                                           (0x00001a14+((x)*32))
4516 #define  NV34TCL_TX_FILTER__SIZE                                                        0x00000004
4517 #define   NV34TCL_TX_FILTER_LOD_BIAS_SHIFT                                              8
4518 #define   NV34TCL_TX_FILTER_LOD_BIAS_MASK                                               0x00000f00
4519 #define   NV34TCL_TX_FILTER_MINIFY_SHIFT                                                16
4520 #define   NV34TCL_TX_FILTER_MINIFY_MASK                                                 0x000f0000
4521 #define    NV34TCL_TX_FILTER_MINIFY_NEAREST                                             0x00010000
4522 #define    NV34TCL_TX_FILTER_MINIFY_LINEAR                                              0x00020000
4523 #define    NV34TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST                              0x00030000
4524 #define    NV34TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST                               0x00040000
4525 #define    NV34TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR                               0x00050000
4526 #define    NV34TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR                                0x00060000
4527 #define   NV34TCL_TX_FILTER_MAGNIFY_SHIFT                                               24
4528 #define   NV34TCL_TX_FILTER_MAGNIFY_MASK                                                0x0f000000
4529 #define    NV34TCL_TX_FILTER_MAGNIFY_NEAREST                                            0x01000000
4530 #define    NV34TCL_TX_FILTER_MAGNIFY_LINEAR                                             0x02000000
4531 #define   NV34TCL_TX_FILTER_SIGNED_BLUE                                                 (1 << 28)
4532 #define   NV34TCL_TX_FILTER_SIGNED_GREEN                                                (1 << 29)
4533 #define   NV34TCL_TX_FILTER_SIGNED_RED                                                  (1 << 30)
4534 #define   NV34TCL_TX_FILTER_SIGNED_ALPHA                                                (1 << 31)
4535 #define  NV34TCL_TX_NPOT_SIZE(x)                                                        (0x00001a18+((x)*32))
4536 #define  NV34TCL_TX_NPOT_SIZE__SIZE                                                     0x00000004
4537 #define   NV34TCL_TX_NPOT_SIZE_H_SHIFT                                                  0
4538 #define   NV34TCL_TX_NPOT_SIZE_H_MASK                                                   0x0000ffff
4539 #define   NV34TCL_TX_NPOT_SIZE_W_SHIFT                                                  16
4540 #define   NV34TCL_TX_NPOT_SIZE_W_MASK                                                   0xffff0000
4541 #define  NV34TCL_TX_BORDER_COLOR(x)                                                     (0x00001a1c+((x)*32))
4542 #define  NV34TCL_TX_BORDER_COLOR__SIZE                                                  0x00000004
4543 #define   NV34TCL_TX_BORDER_COLOR_B_SHIFT                                               0
4544 #define   NV34TCL_TX_BORDER_COLOR_B_MASK                                                0x000000ff
4545 #define   NV34TCL_TX_BORDER_COLOR_G_SHIFT                                               8
4546 #define   NV34TCL_TX_BORDER_COLOR_G_MASK                                                0x0000ff00
4547 #define   NV34TCL_TX_BORDER_COLOR_R_SHIFT                                               16
4548 #define   NV34TCL_TX_BORDER_COLOR_R_MASK                                                0x00ff0000
4549 #define   NV34TCL_TX_BORDER_COLOR_A_SHIFT                                               24
4550 #define   NV34TCL_TX_BORDER_COLOR_A_MASK                                                0xff000000
4551 #define  NV34TCL_VTX_ATTR_4F_X(x)                                                       (0x00001c00+((x)*16))
4552 #define  NV34TCL_VTX_ATTR_4F_X__SIZE                                                    0x00000010
4553 #define  NV34TCL_VTX_ATTR_4F_Y(x)                                                       (0x00001c04+((x)*16))
4554 #define  NV34TCL_VTX_ATTR_4F_Y__SIZE                                                    0x00000010
4555 #define  NV34TCL_VTX_ATTR_4F_Z(x)                                                       (0x00001c08+((x)*16))
4556 #define  NV34TCL_VTX_ATTR_4F_Z__SIZE                                                    0x00000010
4557 #define  NV34TCL_VTX_ATTR_4F_W(x)                                                       (0x00001c0c+((x)*16))
4558 #define  NV34TCL_VTX_ATTR_4F_W__SIZE                                                    0x00000010
4559 #define  NV34TCL_FP_CONTROL                                                             0x00001d60
4560 #define   NV34TCL_FP_CONTROL_USES_KIL                                                   (1 <<  7)
4561 #define   NV34TCL_FP_CONTROL_USED_REGS_MINUS1_DIV2_SHIFT                                0
4562 #define   NV34TCL_FP_CONTROL_USED_REGS_MINUS1_DIV2_MASK                                 0x0000000f
4563 #define  NV34TCL_MULTISAMPLE_CONTROL                                                    0x00001d7c
4564 #define  NV34TCL_CLEAR_DEPTH_VALUE                                                      0x00001d8c
4565 #define  NV34TCL_CLEAR_COLOR_VALUE                                                      0x00001d90
4566 #define   NV34TCL_CLEAR_COLOR_VALUE_B_SHIFT                                             0
4567 #define   NV34TCL_CLEAR_COLOR_VALUE_B_MASK                                              0x000000ff
4568 #define   NV34TCL_CLEAR_COLOR_VALUE_G_SHIFT                                             8
4569 #define   NV34TCL_CLEAR_COLOR_VALUE_G_MASK                                              0x0000ff00
4570 #define   NV34TCL_CLEAR_COLOR_VALUE_R_SHIFT                                             16
4571 #define   NV34TCL_CLEAR_COLOR_VALUE_R_MASK                                              0x00ff0000
4572 #define   NV34TCL_CLEAR_COLOR_VALUE_A_SHIFT                                             24
4573 #define   NV34TCL_CLEAR_COLOR_VALUE_A_MASK                                              0xff000000
4574 #define  NV34TCL_CLEAR_BUFFERS                                                          0x00001d94
4575 #define   NV34TCL_CLEAR_BUFFERS_COLOR_A                                                 (1 <<  7)
4576 #define   NV34TCL_CLEAR_BUFFERS_COLOR_B                                                 (1 <<  6)
4577 #define   NV34TCL_CLEAR_BUFFERS_COLOR_G                                                 (1 <<  5)
4578 #define   NV34TCL_CLEAR_BUFFERS_COLOR_R                                                 (1 <<  4)
4579 #define   NV34TCL_CLEAR_BUFFERS_STENCIL                                                 (1 <<  1)
4580 #define   NV34TCL_CLEAR_BUFFERS_DEPTH                                                   (1 <<  0)
4581 #define  NV34TCL_DO_VERTICES                                                            0x00001dac
4582 #define  NV34TCL_LINE_STIPPLE_ENABLE                                                    0x00001db4
4583 #define  NV34TCL_LINE_STIPPLE_PATTERN                                                   0x00001db8
4584 #define   NV34TCL_LINE_STIPPLE_PATTERN_FACTOR_SHIFT                                     0
4585 #define   NV34TCL_LINE_STIPPLE_PATTERN_FACTOR_MASK                                      0x0000ffff
4586 #define   NV34TCL_LINE_STIPPLE_PATTERN_PATTERN_SHIFT                                    16
4587 #define   NV34TCL_LINE_STIPPLE_PATTERN_PATTERN_MASK                                     0xffff0000
4588 #define  NV34TCL_BACK_MATERIAL_SHININESS(x)                                             (0x00001e20+((x)*4))
4589 #define  NV34TCL_BACK_MATERIAL_SHININESS__SIZE                                          0x00000006
4590 #define  NV34TCL_VTX_ATTR_1F(x)                                                         (0x00001e40+((x)*4))
4591 #define  NV34TCL_VTX_ATTR_1F__SIZE                                                      0x00000010
4592 #define  NV34TCL_VP_UPLOAD_FROM_ID                                                      0x00001e9c
4593 #define  NV34TCL_VP_START_FROM_ID                                                       0x00001ea0
4594 #define  NV34TCL_POINT_PARAMETERS(x)                                                    (0x00001ec0+((x)*4))
4595 #define  NV34TCL_POINT_PARAMETERS__SIZE                                                 0x00000008
4596 #define  NV34TCL_POINT_SIZE                                                             0x00001ee0
4597 #define  NV34TCL_POINT_PARAMETERS_ENABLE                                                0x00001ee4
4598 #define  NV34TCL_POINT_SPRITE                                                           0x00001ee8
4599 #define   NV34TCL_POINT_SPRITE_ENABLE                                                   (1 <<  0)
4600 #define   NV34TCL_POINT_SPRITE_R_MODE_SHIFT                                             1
4601 #define   NV34TCL_POINT_SPRITE_R_MODE_MASK                                              0x00000006
4602 #define    NV34TCL_POINT_SPRITE_R_MODE_GL_ZERO                                          0x00000000
4603 #define    NV34TCL_POINT_SPRITE_R_MODE_GL_R                                             0x00000002
4604 #define    NV34TCL_POINT_SPRITE_R_MODE_GL_S                                             0x00000004
4605 #define   NV34TCL_POINT_SPRITE_COORD_REPLACE                                            (1 << 11)
4606 #define  NV34TCL_VP_UPLOAD_CONST_ID                                                     0x00001efc
4607 #define  NV34TCL_VP_UPLOAD_CONST_X(x)                                                   (0x00001f00+((x)*16))
4608 #define  NV34TCL_VP_UPLOAD_CONST_X__SIZE                                                0x00000004
4609 #define  NV34TCL_VP_UPLOAD_CONST_Y(x)                                                   (0x00001f04+((x)*16))
4610 #define  NV34TCL_VP_UPLOAD_CONST_Y__SIZE                                                0x00000004
4611 #define  NV34TCL_VP_UPLOAD_CONST_Z(x)                                                   (0x00001f08+((x)*16))
4612 #define  NV34TCL_VP_UPLOAD_CONST_Z__SIZE                                                0x00000004
4613 #define  NV34TCL_VP_UPLOAD_CONST_W(x)                                                   (0x00001f0c+((x)*16))
4614 #define  NV34TCL_VP_UPLOAD_CONST_W__SIZE                                                0x00000004
4615 #define  NV34TCL_UNK1f80(x)                                                             (0x00001f80+((x)*4))
4616 #define  NV34TCL_UNK1f80__SIZE                                                          0x00000010
4617 #define  NV34TCL_VP_ATTRIB_EN                                                           0x00001ff0
4618 #define  NV34TCL_VP_RESULT_EN                                                           0x00001ff4
4619
4620
4621 #define NV40_CONTEXT_SURFACES_2D                                                        0x00003062
4622
4623
4624
4625 #define NV40_STRETCHED_IMAGE_FROM_CPU                                                   0x00003066
4626
4627
4628
4629 #define NV40_TEXTURE_FROM_CPU                                                           0x0000307b
4630
4631
4632
4633 #define NV40_SCALED_IMAGE_FROM_MEMORY                                                   0x00003089
4634
4635
4636
4637 #define NV40_IMAGE_FROM_CPU                                                             0x0000308a
4638
4639
4640
4641 #define NV40_SWIZZLED_SURFACE                                                           0x0000309e
4642
4643
4644
4645 #define NV40TCL                                                                         0x00004097
4646
4647 #define  NV40TCL_REF_CNT                                                                0x00000050
4648 #define  NV40TCL_NOP                                                                    0x00000100
4649 #define  NV40TCL_NOTIFY                                                                 0x00000104
4650 #define  NV40TCL_DMA_NOTIFY                                                             0x00000180
4651 #define  NV40TCL_DMA_TEXTURE0                                                           0x00000184
4652 #define  NV40TCL_DMA_TEXTURE1                                                           0x00000188
4653 #define  NV40TCL_DMA_COLOR1                                                             0x0000018c
4654 #define  NV40TCL_DMA_COLOR0                                                             0x00000194
4655 #define  NV40TCL_DMA_ZETA                                                               0x00000198
4656 #define  NV40TCL_DMA_VTXBUF0                                                            0x0000019c
4657 #define  NV40TCL_DMA_VTXBUF1                                                            0x000001a0
4658 #define  NV40TCL_DMA_FENCE                                                              0x000001a4
4659 #define  NV40TCL_DMA_QUERY                                                              0x000001a8
4660 #define  NV40TCL_DMA_UNK01AC                                                            0x000001ac
4661 #define  NV40TCL_DMA_UNK01B0                                                            0x000001b0
4662 #define  NV40TCL_DMA_COLOR2                                                             0x000001b4
4663 #define  NV40TCL_DMA_COLOR3                                                             0x000001b8
4664 #define  NV40TCL_RT_HORIZ                                                               0x00000200
4665 #define   NV40TCL_RT_HORIZ_W_SHIFT                                                      16
4666 #define   NV40TCL_RT_HORIZ_W_MASK                                                       0xffff0000
4667 #define   NV40TCL_RT_HORIZ_X_SHIFT                                                      0
4668 #define   NV40TCL_RT_HORIZ_X_MASK                                                       0x0000ffff
4669 #define  NV40TCL_RT_VERT                                                                0x00000204
4670 #define   NV40TCL_RT_VERT_H_SHIFT                                                       16
4671 #define   NV40TCL_RT_VERT_H_MASK                                                        0xffff0000
4672 #define   NV40TCL_RT_VERT_Y_SHIFT                                                       0
4673 #define   NV40TCL_RT_VERT_Y_MASK                                                        0x0000ffff
4674 #define  NV40TCL_RT_FORMAT                                                              0x00000208
4675 #define   NV40TCL_RT_FORMAT_LOG2_HEIGHT_SHIFT                                           24
4676 #define   NV40TCL_RT_FORMAT_LOG2_HEIGHT_MASK                                            0xff000000
4677 #define   NV40TCL_RT_FORMAT_LOG2_WIDTH_SHIFT                                            16
4678 #define   NV40TCL_RT_FORMAT_LOG2_WIDTH_MASK                                             0x00ff0000
4679 #define   NV40TCL_RT_FORMAT_TYPE_SHIFT                                                  8
4680 #define   NV40TCL_RT_FORMAT_TYPE_MASK                                                   0x00000f00
4681 #define    NV40TCL_RT_FORMAT_TYPE_LINEAR                                                0x00000100
4682 #define    NV40TCL_RT_FORMAT_TYPE_SWIZZLED                                              0x00000200
4683 #define   NV40TCL_RT_FORMAT_ZETA_SHIFT                                                  5
4684 #define   NV40TCL_RT_FORMAT_ZETA_MASK                                                   0x000000e0
4685 #define    NV40TCL_RT_FORMAT_ZETA_Z16                                                   0x00000020
4686 #define    NV40TCL_RT_FORMAT_ZETA_Z24S8                                                 0x00000040
4687 #define   NV40TCL_RT_FORMAT_COLOR_SHIFT                                                 0
4688 #define   NV40TCL_RT_FORMAT_COLOR_MASK                                                  0x0000001f
4689 #define    NV40TCL_RT_FORMAT_COLOR_R5G6B5                                               0x00000003
4690 #define    NV40TCL_RT_FORMAT_COLOR_X8R8G8B8                                             0x00000005
4691 #define    NV40TCL_RT_FORMAT_COLOR_A8R8G8B8                                             0x00000008
4692 #define    NV40TCL_RT_FORMAT_COLOR_B8                                                   0x00000009
4693 #define    NV40TCL_RT_FORMAT_COLOR_X8B8G8R8                                             0x0000000f
4694 #define    NV40TCL_RT_FORMAT_COLOR_A8B8G8R8                                             0x00000010
4695 #define  NV40TCL_COLOR0_PITCH                                                           0x0000020c
4696 #define  NV40TCL_COLOR0_OFFSET                                                          0x00000210
4697 #define  NV40TCL_ZETA_OFFSET                                                            0x00000214
4698 #define  NV40TCL_COLOR1_OFFSET                                                          0x00000218
4699 #define  NV40TCL_COLOR1_PITCH                                                           0x0000021c
4700 #define  NV40TCL_RT_ENABLE                                                              0x00000220
4701 #define   NV40TCL_RT_ENABLE_MRT                                                         (1 <<  4)
4702 #define   NV40TCL_RT_ENABLE_COLOR3                                                      (1 <<  3)
4703 #define   NV40TCL_RT_ENABLE_COLOR2                                                      (1 <<  2)
4704 #define   NV40TCL_RT_ENABLE_COLOR1                                                      (1 <<  1)
4705 #define   NV40TCL_RT_ENABLE_COLOR0                                                      (1 <<  0)
4706 #define  NV40TCL_ZETA_PITCH                                                             0x0000022c
4707 #define  NV40TCL_COLOR2_PITCH                                                           0x00000280
4708 #define  NV40TCL_COLOR3_PITCH                                                           0x00000284
4709 #define  NV40TCL_COLOR2_OFFSET                                                          0x00000288
4710 #define  NV40TCL_COLOR3_OFFSET                                                          0x0000028c
4711 #define  NV40TCL_VIEWPORT_CLIP_HORIZ(x)                                                 (0x000002c0+((x)*8))
4712 #define  NV40TCL_VIEWPORT_CLIP_HORIZ__SIZE                                              0x00000008
4713 #define  NV40TCL_VIEWPORT_CLIP_VERT(x)                                                  (0x000002c4+((x)*8))
4714 #define  NV40TCL_VIEWPORT_CLIP_VERT__SIZE                                               0x00000008
4715 #define  NV40TCL_DITHER_ENABLE                                                          0x00000300
4716 #define  NV40TCL_ALPHA_TEST_ENABLE                                                      0x00000304
4717 #define  NV40TCL_ALPHA_TEST_FUNC                                                        0x00000308
4718 #define   NV40TCL_ALPHA_TEST_FUNC_NEVER                                                 0x00000200
4719 #define   NV40TCL_ALPHA_TEST_FUNC_LESS                                                  0x00000201
4720 #define   NV40TCL_ALPHA_TEST_FUNC_EQUAL                                                 0x00000202
4721 #define   NV40TCL_ALPHA_TEST_FUNC_LEQUAL                                                0x00000203
4722 #define   NV40TCL_ALPHA_TEST_FUNC_GREATER                                               0x00000204
4723 #define   NV40TCL_ALPHA_TEST_FUNC_GREATER                                               0x00000204
4724 #define   NV40TCL_ALPHA_TEST_FUNC_NOTEQUAL                                              0x00000205
4725 #define   NV40TCL_ALPHA_TEST_FUNC_GEQUAL                                                0x00000206
4726 #define   NV40TCL_ALPHA_TEST_FUNC_ALWAYS                                                0x00000207
4727 #define  NV40TCL_ALPHA_TEST_REF                                                         0x0000030c
4728 #define  NV40TCL_BLEND_ENABLE                                                           0x00000310
4729 #define  NV40TCL_BLEND_FUNC_SRC                                                         0x00000314
4730 #define   NV40TCL_BLEND_FUNC_SRC_RGB_SHIFT                                              0
4731 #define   NV40TCL_BLEND_FUNC_SRC_RGB_MASK                                               0x0000ffff
4732 #define    NV40TCL_BLEND_FUNC_SRC_RGB_ZERO                                              0x00000000
4733 #define    NV40TCL_BLEND_FUNC_SRC_RGB_ONE                                               0x00000001
4734 #define    NV40TCL_BLEND_FUNC_SRC_RGB_SRC_COLOR                                         0x00000300
4735 #define    NV40TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_SRC_COLOR                               0x00000301
4736 #define    NV40TCL_BLEND_FUNC_SRC_RGB_SRC_ALPHA                                         0x00000302
4737 #define    NV40TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_SRC_ALPHA                               0x00000303
4738 #define    NV40TCL_BLEND_FUNC_SRC_RGB_DST_ALPHA                                         0x00000304
4739 #define    NV40TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_DST_ALPHA                               0x00000305
4740 #define    NV40TCL_BLEND_FUNC_SRC_RGB_DST_COLOR                                         0x00000306
4741 #define    NV40TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_DST_COLOR                               0x00000307
4742 #define    NV40TCL_BLEND_FUNC_SRC_RGB_SRC_ALPHA_SATURATE                                0x00000308
4743 #define    NV40TCL_BLEND_FUNC_SRC_RGB_CONSTANT_COLOR                                    0x00008001
4744 #define    NV40TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_CONSTANT_COLOR                          0x00008002
4745 #define    NV40TCL_BLEND_FUNC_SRC_RGB_CONSTANT_ALPHA                                    0x00008003
4746 #define    NV40TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_CONSTANT_ALPHA                          0x00008004
4747 #define   NV40TCL_BLEND_FUNC_SRC_ALPHA_SHIFT                                            16
4748 #define   NV40TCL_BLEND_FUNC_SRC_ALPHA_MASK                                             0xffff0000
4749 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_ZERO                                            0x00000000
4750 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_ONE                                             0x00010000
4751 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_SRC_COLOR                                       0x03000000
4752 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_SRC_COLOR                             0x03010000
4753 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_SRC_ALPHA                                       0x03020000
4754 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_SRC_ALPHA                             0x03030000
4755 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_DST_ALPHA                                       0x03040000
4756 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_DST_ALPHA                             0x03050000
4757 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_DST_COLOR                                       0x03060000
4758 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_DST_COLOR                             0x03070000
4759 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_SRC_ALPHA_SATURATE                              0x03080000
4760 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_CONSTANT_COLOR                                  0x80010000
4761 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_CONSTANT_COLOR                        0x80020000
4762 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_CONSTANT_ALPHA                                  0x80030000
4763 #define    NV40TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_CONSTANT_ALPHA                        0x80040000
4764 #define  NV40TCL_BLEND_FUNC_DST                                                         0x00000318
4765 #define   NV40TCL_BLEND_FUNC_DST_RGB_SHIFT                                              0
4766 #define   NV40TCL_BLEND_FUNC_DST_RGB_MASK                                               0x0000ffff
4767 #define    NV40TCL_BLEND_FUNC_DST_RGB_ZERO                                              0x00000000
4768 #define    NV40TCL_BLEND_FUNC_DST_RGB_ONE                                               0x00000001
4769 #define    NV40TCL_BLEND_FUNC_DST_RGB_SRC_COLOR                                         0x00000300
4770 #define    NV40TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_SRC_COLOR                               0x00000301
4771 #define    NV40TCL_BLEND_FUNC_DST_RGB_SRC_ALPHA                                         0x00000302
4772 #define    NV40TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_SRC_ALPHA                               0x00000303
4773 #define    NV40TCL_BLEND_FUNC_DST_RGB_DST_ALPHA                                         0x00000304
4774 #define    NV40TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_DST_ALPHA                               0x00000305
4775 #define    NV40TCL_BLEND_FUNC_DST_RGB_DST_COLOR                                         0x00000306
4776 #define    NV40TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_DST_COLOR                               0x00000307
4777 #define    NV40TCL_BLEND_FUNC_DST_RGB_SRC_ALPHA_SATURATE                                0x00000308
4778 #define    NV40TCL_BLEND_FUNC_DST_RGB_CONSTANT_COLOR                                    0x00008001
4779 #define    NV40TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_CONSTANT_COLOR                          0x00008002
4780 #define    NV40TCL_BLEND_FUNC_DST_RGB_CONSTANT_ALPHA                                    0x00008003
4781 #define    NV40TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_CONSTANT_ALPHA                          0x00008004
4782 #define   NV40TCL_BLEND_FUNC_DST_ALPHA_SHIFT                                            16
4783 #define   NV40TCL_BLEND_FUNC_DST_ALPHA_MASK                                             0xffff0000
4784 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_ZERO                                            0x00000000
4785 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_ONE                                             0x00010000
4786 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_SRC_COLOR                                       0x03000000
4787 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_SRC_COLOR                             0x03010000
4788 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_SRC_ALPHA                                       0x03020000
4789 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_SRC_ALPHA                             0x03030000
4790 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_DST_ALPHA                                       0x03040000
4791 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_DST_ALPHA                             0x03050000
4792 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_DST_COLOR                                       0x03060000
4793 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_DST_COLOR                             0x03070000
4794 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_SRC_ALPHA_SATURATE                              0x03080000
4795 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_CONSTANT_COLOR                                  0x80010000
4796 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_CONSTANT_COLOR                        0x80020000
4797 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_CONSTANT_ALPHA                                  0x80030000
4798 #define    NV40TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_CONSTANT_ALPHA                        0x80040000
4799 #define  NV40TCL_BLEND_COLOR                                                            0x0000031c
4800 #define  NV40TCL_BLEND_EQUATION                                                         0x00000320
4801 #define   NV40TCL_BLEND_EQUATION_RGB_SHIFT                                              0
4802 #define   NV40TCL_BLEND_EQUATION_RGB_MASK                                               0x0000ffff
4803 #define    NV40TCL_BLEND_EQUATION_RGB_FUNC_ADD                                          0x00008006
4804 #define    NV40TCL_BLEND_EQUATION_RGB_MIN                                               0x00008007
4805 #define    NV40TCL_BLEND_EQUATION_RGB_MAX                                               0x00008008
4806 #define    NV40TCL_BLEND_EQUATION_RGB_FUNC_SUBTRACT                                     0x0000800a
4807 #define    NV40TCL_BLEND_EQUATION_RGB_FUNC_REVERSE_SUBTRACT                             0x0000800b
4808 #define   NV40TCL_BLEND_EQUATION_ALPHA_SHIFT                                            16
4809 #define   NV40TCL_BLEND_EQUATION_ALPHA_MASK                                             0xffff0000
4810 #define    NV40TCL_BLEND_EQUATION_ALPHA_FUNC_ADD                                        0x80060000
4811 #define    NV40TCL_BLEND_EQUATION_ALPHA_MIN                                             0x80070000
4812 #define    NV40TCL_BLEND_EQUATION_ALPHA_MAX                                             0x80080000
4813 #define    NV40TCL_BLEND_EQUATION_ALPHA_FUNC_SUBTRACT                                   0x800a0000
4814 #define    NV40TCL_BLEND_EQUATION_ALPHA_FUNC_REVERSE_SUBTRACT                           0x800b0000
4815 #define  NV40TCL_COLOR_MASK                                                             0x00000324
4816 #define   NV40TCL_COLOR_MASK_BUFFER0_B_SHIFT                                            0
4817 #define   NV40TCL_COLOR_MASK_BUFFER0_B_MASK                                             0x000000ff
4818 #define   NV40TCL_COLOR_MASK_BUFFER0_G_SHIFT                                            8
4819 #define   NV40TCL_COLOR_MASK_BUFFER0_G_MASK                                             0x0000ff00
4820 #define   NV40TCL_COLOR_MASK_BUFFER0_R_SHIFT                                            16
4821 #define   NV40TCL_COLOR_MASK_BUFFER0_R_MASK                                             0x00ff0000
4822 #define   NV40TCL_COLOR_MASK_BUFFER0_A_SHIFT                                            24
4823 #define   NV40TCL_COLOR_MASK_BUFFER0_A_MASK                                             0xff000000
4824 #define  NV40TCL_STENCIL_FRONT_ENABLE                                                   0x00000328
4825 #define  NV40TCL_STENCIL_FRONT_MASK                                                     0x0000032c
4826 #define  NV40TCL_STENCIL_FRONT_FUNC_FUNC                                                0x00000330
4827 #define   NV40TCL_STENCIL_FRONT_FUNC_FUNC_NEVER                                         0x00000200
4828 #define   NV40TCL_STENCIL_FRONT_FUNC_FUNC_LESS                                          0x00000201
4829 #define   NV40TCL_STENCIL_FRONT_FUNC_FUNC_EQUAL                                         0x00000202
4830 #define   NV40TCL_STENCIL_FRONT_FUNC_FUNC_LEQUAL                                        0x00000203
4831 #define   NV40TCL_STENCIL_FRONT_FUNC_FUNC_GREATER                                       0x00000204
4832 #define   NV40TCL_STENCIL_FRONT_FUNC_FUNC_GREATER                                       0x00000204
4833 #define   NV40TCL_STENCIL_FRONT_FUNC_FUNC_NOTEQUAL                                      0x00000205
4834 #define   NV40TCL_STENCIL_FRONT_FUNC_FUNC_GEQUAL                                        0x00000206
4835 #define   NV40TCL_STENCIL_FRONT_FUNC_FUNC_ALWAYS                                        0x00000207
4836 #define  NV40TCL_STENCIL_FRONT_FUNC_REF                                                 0x00000334
4837 #define  NV40TCL_STENCIL_FRONT_FUNC_MASK                                                0x00000338
4838 #define  NV40TCL_STENCIL_FRONT_OP_FAIL                                                  0x0000033c
4839 #define   NV40TCL_STENCIL_FRONT_OP_FAIL_ZERO                                            0x00000000
4840 #define   NV40TCL_STENCIL_FRONT_OP_FAIL_INVERT                                          0x0000150a
4841 #define   NV40TCL_STENCIL_FRONT_OP_FAIL_KEEP                                            0x00001e00
4842 #define   NV40TCL_STENCIL_FRONT_OP_FAIL_REPLACE                                         0x00001e01
4843 #define   NV40TCL_STENCIL_FRONT_OP_FAIL_INCR                                            0x00001e02
4844 #define   NV40TCL_STENCIL_FRONT_OP_FAIL_DECR                                            0x00001e03
4845 #define   NV40TCL_STENCIL_FRONT_OP_FAIL_INCR_WRAP                                       0x00008507
4846 #define   NV40TCL_STENCIL_FRONT_OP_FAIL_DECR_WRAP                                       0x00008508
4847 #define  NV40TCL_STENCIL_FRONT_OP_ZFAIL                                                 0x00000340
4848 #define   NV40TCL_STENCIL_FRONT_OP_ZFAIL_ZERO                                           0x00000000
4849 #define   NV40TCL_STENCIL_FRONT_OP_ZFAIL_INVERT                                         0x0000150a
4850 #define   NV40TCL_STENCIL_FRONT_OP_ZFAIL_KEEP                                           0x00001e00
4851 #define   NV40TCL_STENCIL_FRONT_OP_ZFAIL_REPLACE                                        0x00001e01
4852 #define   NV40TCL_STENCIL_FRONT_OP_ZFAIL_INCR                                           0x00001e02
4853 #define   NV40TCL_STENCIL_FRONT_OP_ZFAIL_DECR                                           0x00001e03
4854 #define   NV40TCL_STENCIL_FRONT_OP_ZFAIL_INCR_WRAP                                      0x00008507
4855 #define   NV40TCL_STENCIL_FRONT_OP_ZFAIL_DECR_WRAP                                      0x00008508
4856 #define  NV40TCL_STENCIL_FRONT_OP_ZPASS                                                 0x00000344
4857 #define   NV40TCL_STENCIL_FRONT_OP_ZPASS_ZERO                                           0x00000000
4858 #define   NV40TCL_STENCIL_FRONT_OP_ZPASS_INVERT                                         0x0000150a
4859 #define   NV40TCL_STENCIL_FRONT_OP_ZPASS_KEEP                                           0x00001e00
4860 #define   NV40TCL_STENCIL_FRONT_OP_ZPASS_REPLACE                                        0x00001e01
4861 #define   NV40TCL_STENCIL_FRONT_OP_ZPASS_INCR                                           0x00001e02
4862 #define   NV40TCL_STENCIL_FRONT_OP_ZPASS_DECR                                           0x00001e03
4863 #define   NV40TCL_STENCIL_FRONT_OP_ZPASS_INCR_WRAP                                      0x00008507
4864 #define   NV40TCL_STENCIL_FRONT_OP_ZPASS_DECR_WRAP                                      0x00008508
4865 #define  NV40TCL_STENCIL_BACK_ENABLE                                                    0x00000348
4866 #define  NV40TCL_STENCIL_BACK_MASK                                                      0x0000034c
4867 #define  NV40TCL_STENCIL_BACK_FUNC_FUNC                                                 0x00000350
4868 #define   NV40TCL_STENCIL_BACK_FUNC_FUNC_NEVER                                          0x00000200
4869 #define   NV40TCL_STENCIL_BACK_FUNC_FUNC_LESS                                           0x00000201
4870 #define   NV40TCL_STENCIL_BACK_FUNC_FUNC_EQUAL                                          0x00000202
4871 #define   NV40TCL_STENCIL_BACK_FUNC_FUNC_LEQUAL                                         0x00000203
4872 #define   NV40TCL_STENCIL_BACK_FUNC_FUNC_GREATER                                        0x00000204
4873 #define   NV40TCL_STENCIL_BACK_FUNC_FUNC_GREATER                                        0x00000204
4874 #define   NV40TCL_STENCIL_BACK_FUNC_FUNC_NOTEQUAL                                       0x00000205
4875 #define   NV40TCL_STENCIL_BACK_FUNC_FUNC_GEQUAL                                         0x00000206
4876 #define   NV40TCL_STENCIL_BACK_FUNC_FUNC_ALWAYS                                         0x00000207
4877 #define  NV40TCL_STENCIL_BACK_FUNC_REF                                                  0x00000354
4878 #define  NV40TCL_STENCIL_BACK_FUNC_MASK                                                 0x00000358
4879 #define  NV40TCL_STENCIL_BACK_OP_FAIL                                                   0x0000035c
4880 #define   NV40TCL_STENCIL_BACK_OP_FAIL_ZERO                                             0x00000000
4881 #define   NV40TCL_STENCIL_BACK_OP_FAIL_INVERT                                           0x0000150a
4882 #define   NV40TCL_STENCIL_BACK_OP_FAIL_KEEP                                             0x00001e00
4883 #define   NV40TCL_STENCIL_BACK_OP_FAIL_REPLACE                                          0x00001e01
4884 #define   NV40TCL_STENCIL_BACK_OP_FAIL_INCR                                             0x00001e02
4885 #define   NV40TCL_STENCIL_BACK_OP_FAIL_DECR                                             0x00001e03
4886 #define   NV40TCL_STENCIL_BACK_OP_FAIL_INCR_WRAP                                        0x00008507
4887 #define   NV40TCL_STENCIL_BACK_OP_FAIL_DECR_WRAP                                        0x00008508
4888 #define  NV40TCL_STENCIL_BACK_OP_ZFAIL                                                  0x00000360
4889 #define   NV40TCL_STENCIL_BACK_OP_ZFAIL_ZERO                                            0x00000000
4890 #define   NV40TCL_STENCIL_BACK_OP_ZFAIL_INVERT                                          0x0000150a
4891 #define   NV40TCL_STENCIL_BACK_OP_ZFAIL_KEEP                                            0x00001e00
4892 #define   NV40TCL_STENCIL_BACK_OP_ZFAIL_REPLACE                                         0x00001e01
4893 #define   NV40TCL_STENCIL_BACK_OP_ZFAIL_INCR                                            0x00001e02
4894 #define   NV40TCL_STENCIL_BACK_OP_ZFAIL_DECR                                            0x00001e03
4895 #define   NV40TCL_STENCIL_BACK_OP_ZFAIL_INCR_WRAP                                       0x00008507
4896 #define   NV40TCL_STENCIL_BACK_OP_ZFAIL_DECR_WRAP                                       0x00008508
4897 #define  NV40TCL_STENCIL_BACK_OP_ZPASS                                                  0x00000364
4898 #define   NV40TCL_STENCIL_BACK_OP_ZPASS_ZERO                                            0x00000000
4899 #define   NV40TCL_STENCIL_BACK_OP_ZPASS_INVERT                                          0x0000150a
4900 #define   NV40TCL_STENCIL_BACK_OP_ZPASS_KEEP                                            0x00001e00
4901 #define   NV40TCL_STENCIL_BACK_OP_ZPASS_REPLACE                                         0x00001e01
4902 #define   NV40TCL_STENCIL_BACK_OP_ZPASS_INCR                                            0x00001e02
4903 #define   NV40TCL_STENCIL_BACK_OP_ZPASS_DECR                                            0x00001e03
4904 #define   NV40TCL_STENCIL_BACK_OP_ZPASS_INCR_WRAP                                       0x00008507
4905 #define   NV40TCL_STENCIL_BACK_OP_ZPASS_DECR_WRAP                                       0x00008508
4906 #define  NV40TCL_SHADE_MODEL                                                            0x00000368
4907 #define   NV40TCL_SHADE_MODEL_FLAT                                                      0x00001d00
4908 #define   NV40TCL_SHADE_MODEL_SMOOTH                                                    0x00001d01
4909 #define  NV40TCL_MRT_COLOR_MASK                                                         0x00000370
4910 #define   NV40TCL_MRT_COLOR_MASK_BUFFER1_A                                              (1 <<  4)
4911 #define   NV40TCL_MRT_COLOR_MASK_BUFFER1_R                                              (1 <<  5)
4912 #define   NV40TCL_MRT_COLOR_MASK_BUFFER1_G                                              (1 <<  6)
4913 #define   NV40TCL_MRT_COLOR_MASK_BUFFER1_B                                              (1 <<  7)
4914 #define   NV40TCL_MRT_COLOR_MASK_BUFFER2_A                                              (1 <<  8)
4915 #define   NV40TCL_MRT_COLOR_MASK_BUFFER2_R                                              (1 <<  9)
4916 #define   NV40TCL_MRT_COLOR_MASK_BUFFER2_G                                              (1 << 10)
4917 #define   NV40TCL_MRT_COLOR_MASK_BUFFER2_B                                              (1 << 11)
4918 #define   NV40TCL_MRT_COLOR_MASK_BUFFER3_A                                              (1 << 12)
4919 #define   NV40TCL_MRT_COLOR_MASK_BUFFER3_R                                              (1 << 13)
4920 #define   NV40TCL_MRT_COLOR_MASK_BUFFER3_G                                              (1 << 14)
4921 #define   NV40TCL_MRT_COLOR_MASK_BUFFER3_B                                              (1 << 15)
4922 #define  NV40TCL_COLOR_LOGIC_OP_ENABLE                                                  0x00000374
4923 #define  NV40TCL_COLOR_LOGIC_OP                                                         0x00000378
4924 #define   NV40TCL_COLOR_LOGIC_OP_CLEAR                                                  0x00001500
4925 #define   NV40TCL_COLOR_LOGIC_OP_AND                                                    0x00001501
4926 #define   NV40TCL_COLOR_LOGIC_OP_AND_REVERSE                                            0x00001502
4927 #define   NV40TCL_COLOR_LOGIC_OP_COPY                                                   0x00001503
4928 #define   NV40TCL_COLOR_LOGIC_OP_AND_INVERTED                                           0x00001504
4929 #define   NV40TCL_COLOR_LOGIC_OP_NOOP                                                   0x00001505
4930 #define   NV40TCL_COLOR_LOGIC_OP_XOR                                                    0x00001506
4931 #define   NV40TCL_COLOR_LOGIC_OP_OR                                                     0x00001507
4932 #define   NV40TCL_COLOR_LOGIC_OP_NOR                                                    0x00001508
4933 #define   NV40TCL_COLOR_LOGIC_OP_EQUIV                                                  0x00001509
4934 #define   NV40TCL_COLOR_LOGIC_OP_INVERT                                                 0x0000150a
4935 #define   NV40TCL_COLOR_LOGIC_OP_OR_REVERSE                                             0x0000150b
4936 #define   NV40TCL_COLOR_LOGIC_OP_COPY_INVERTED                                          0x0000150c
4937 #define   NV40TCL_COLOR_LOGIC_OP_OR_INVERTED                                            0x0000150d
4938 #define   NV40TCL_COLOR_LOGIC_OP_NAND                                                   0x0000150e
4939 #define   NV40TCL_COLOR_LOGIC_OP_SET                                                    0x0000150f
4940 #define  NV40TCL_DEPTH_RANGE_NEAR                                                       0x00000394
4941 #define  NV40TCL_DEPTH_RANGE_FAR                                                        0x00000398
4942 #define  NV40TCL_LINE_WIDTH                                                             0x000003b8
4943 #define  NV40TCL_LINE_SMOOTH_ENABLE                                                     0x000003bc
4944 #define  NV40TCL_UNK03C0(x)                                                             (0x000003c0+((x)*4))
4945 #define  NV40TCL_UNK03C0__SIZE                                                          0x00000010
4946 #define  NV40TCL_UNK0400(x)                                                             (0x00000400+((x)*4))
4947 #define  NV40TCL_UNK0400__SIZE                                                          0x00000010
4948 #define  NV40TCL_UNK0440(x)                                                             (0x00000440+((x)*4))
4949 #define  NV40TCL_UNK0440__SIZE                                                          0x00000020
4950 #define  NV40TCL_SCISSOR_HORIZ                                                          0x000008c0
4951 #define   NV40TCL_SCISSOR_HORIZ_X_SHIFT                                                 0
4952 #define   NV40TCL_SCISSOR_HORIZ_X_MASK                                                  0x0000ffff
4953 #define   NV40TCL_SCISSOR_HORIZ_W_SHIFT                                                 16
4954 #define   NV40TCL_SCISSOR_HORIZ_W_MASK                                                  0xffff0000
4955 #define  NV40TCL_SCISSOR_VERT                                                           0x000008c4
4956 #define   NV40TCL_SCISSOR_VERT_Y_SHIFT                                                  0
4957 #define   NV40TCL_SCISSOR_VERT_Y_MASK                                                   0x0000ffff
4958 #define   NV40TCL_SCISSOR_VERT_H_SHIFT                                                  16
4959 #define   NV40TCL_SCISSOR_VERT_H_MASK                                                   0xffff0000
4960 #define  NV40TCL_FOG_MODE                                                               0x000008cc
4961 #define  NV40TCL_FOG_EQUATION_CONSTANT                                                  0x000008d0
4962 #define  NV40TCL_FOG_EQUATION_LINEAR                                                    0x000008d4
4963 #define  NV40TCL_FOG_EQUATION_QUADRATIC                                                 0x000008d8
4964 #define  NV40TCL_FP_ADDRESS                                                             0x000008e4
4965 #define   NV40TCL_FP_ADDRESS_OFFSET_SHIFT                                               8
4966 #define   NV40TCL_FP_ADDRESS_OFFSET_MASK                                                0xffffff00
4967 #define   NV40TCL_FP_ADDRESS_DMA1                                                       (1 <<  1)
4968 #define   NV40TCL_FP_ADDRESS_DMA0                                                       (1 <<  0)
4969 #define  NV40TCL_VIEWPORT_HORIZ                                                         0x00000a00
4970 #define   NV40TCL_VIEWPORT_HORIZ_W_SHIFT                                                16
4971 #define   NV40TCL_VIEWPORT_HORIZ_W_MASK                                                 0xffff0000
4972 #define   NV40TCL_VIEWPORT_HORIZ_X_SHIFT                                                0
4973 #define   NV40TCL_VIEWPORT_HORIZ_X_MASK                                                 0x0000ffff
4974 #define  NV40TCL_VIEWPORT_VERT                                                          0x00000a04
4975 #define   NV40TCL_VIEWPORT_VERT_H_SHIFT                                                 16
4976 #define   NV40TCL_VIEWPORT_VERT_H_MASK                                                  0xffff0000
4977 #define   NV40TCL_VIEWPORT_VERT_Y_SHIFT                                                 0
4978 #define   NV40TCL_VIEWPORT_VERT_Y_MASK                                                  0x0000ffff
4979 #define  NV40TCL_VIEWPORT_TRANSLATE_X                                                   0x00000a20
4980 #define  NV40TCL_VIEWPORT_TRANSLATE_Y                                                   0x00000a24
4981 #define  NV40TCL_VIEWPORT_TRANSLATE_Z                                                   0x00000a28
4982 #define  NV40TCL_VIEWPORT_TRANSLATE_W                                                   0x00000a2c
4983 #define  NV40TCL_VIEWPORT_SCALE_X                                                       0x00000a30
4984 #define  NV40TCL_VIEWPORT_SCALE_Y                                                       0x00000a34
4985 #define  NV40TCL_VIEWPORT_SCALE_Z                                                       0x00000a38
4986 #define  NV40TCL_VIEWPORT_SCALE_W                                                       0x00000a3c
4987 #define  NV40TCL_POLYGON_OFFSET_POINT_ENABLE                                            0x00000a60
4988 #define  NV40TCL_POLYGON_OFFSET_LINE_ENABLE                                             0x00000a64
4989 #define  NV40TCL_POLYGON_OFFSET_FILL_ENABLE                                             0x00000a68
4990 #define  NV40TCL_DEPTH_FUNC                                                             0x00000a6c
4991 #define   NV40TCL_DEPTH_FUNC_NEVER                                                      0x00000200
4992 #define   NV40TCL_DEPTH_FUNC_LESS                                                       0x00000201
4993 #define   NV40TCL_DEPTH_FUNC_EQUAL                                                      0x00000202
4994 #define   NV40TCL_DEPTH_FUNC_LEQUAL                                                     0x00000203
4995 #define   NV40TCL_DEPTH_FUNC_GREATER                                                    0x00000204
4996 #define   NV40TCL_DEPTH_FUNC_GREATER                                                    0x00000204
4997 #define   NV40TCL_DEPTH_FUNC_NOTEQUAL                                                   0x00000205
4998 #define   NV40TCL_DEPTH_FUNC_GEQUAL                                                     0x00000206
4999 #define   NV40TCL_DEPTH_FUNC_ALWAYS                                                     0x00000207
5000 #define  NV40TCL_DEPTH_WRITE_ENABLE                                                     0x00000a70
5001 #define  NV40TCL_DEPTH_TEST_ENABLE                                                      0x00000a74
5002 #define  NV40TCL_POLYGON_OFFSET_FACTOR                                                  0x00000a78
5003 #define  NV40TCL_POLYGON_OFFSET_UNITS                                                   0x00000a7c
5004 #define  NV40TCL_VTX_ATTR_3I_XY(x)                                                      (0x00000a80+((x)*8))
5005 #define  NV40TCL_VTX_ATTR_3I_XY__SIZE                                                   0x00000010
5006 #define   NV40TCL_VTX_ATTR_3I_XY_X_SHIFT                                                0
5007 #define   NV40TCL_VTX_ATTR_3I_XY_X_MASK                                                 0x0000ffff
5008 #define   NV40TCL_VTX_ATTR_3I_XY_Y_SHIFT                                                16
5009 #define   NV40TCL_VTX_ATTR_3I_XY_Y_MASK                                                 0xffff0000
5010 #define  NV40TCL_VTX_ATTR_3I_Z(x)                                                       (0x00000a84+((x)*8))
5011 #define  NV40TCL_VTX_ATTR_3I_Z__SIZE                                                    0x00000010
5012 #define   NV40TCL_VTX_ATTR_3I_Z_Z_SHIFT                                                 0
5013 #define   NV40TCL_VTX_ATTR_3I_Z_Z_MASK                                                  0x0000ffff
5014 #define  NV40TCL_UNK0B40(x)                                                             (0x00000b40+((x)*4))
5015 #define  NV40TCL_UNK0B40__SIZE                                                          0x00000008
5016 #define  NV40TCL_VP_UPLOAD_INST(x)                                                      (0x00000b80+((x)*4))
5017 #define  NV40TCL_VP_UPLOAD_INST__SIZE                                                   0x00000004
5018 #define  NV40TCL_CLIP_PLANE_ENABLE                                                      0x00001478
5019 #define   NV40TCL_CLIP_PLANE_ENABLE_PLANE0                                              (1 <<  1)
5020 #define   NV40TCL_CLIP_PLANE_ENABLE_PLANE1                                              (1 <<  5)
5021 #define   NV40TCL_CLIP_PLANE_ENABLE_PLANE2                                              (1 <<  9)
5022 #define   NV40TCL_CLIP_PLANE_ENABLE_PLANE3                                              (1 << 13)
5023 #define   NV40TCL_CLIP_PLANE_ENABLE_PLANE4                                              (1 << 17)
5024 #define   NV40TCL_CLIP_PLANE_ENABLE_PLANE5                                              (1 << 21)
5025 #define  NV40TCL_POLYGON_STIPPLE_ENABLE                                                 0x0000147c
5026 #define  NV40TCL_POLYGON_STIPPLE_PATTERN(x)                                             (0x00001480+((x)*4))
5027 #define  NV40TCL_POLYGON_STIPPLE_PATTERN__SIZE                                          0x00000020
5028 #define  NV40TCL_VTX_ATTR_3F_X(x)                                                       (0x00001500+((x)*16))
5029 #define  NV40TCL_VTX_ATTR_3F_X__SIZE                                                    0x00000010
5030 #define  NV40TCL_VTX_ATTR_3F_Y(x)                                                       (0x00001504+((x)*16))
5031 #define  NV40TCL_VTX_ATTR_3F_Y__SIZE                                                    0x00000010
5032 #define  NV40TCL_VTX_ATTR_3F_Z(x)                                                       (0x00001508+((x)*16))
5033 #define  NV40TCL_VTX_ATTR_3F_Z__SIZE                                                    0x00000010
5034 #define  NV40TCL_VTXBUF_ADDRESS(x)                                                      (0x00001680+((x)*4))
5035 #define  NV40TCL_VTXBUF_ADDRESS__SIZE                                                   0x00000010
5036 #define   NV40TCL_VTXBUF_ADDRESS_DMA1                                                   (1 << 31)
5037 #define   NV40TCL_VTXBUF_ADDRESS_OFFSET_SHIFT                                           0
5038 #define   NV40TCL_VTXBUF_ADDRESS_OFFSET_MASK                                            0x0fffffff
5039 #define  NV40TCL_VTX_CACHE_INVALIDATE                                                   0x00001714
5040 #define  NV40TCL_VTXFMT(x)                                                              (0x00001740+((x)*4))
5041 #define  NV40TCL_VTXFMT__SIZE                                                           0x00000010
5042 #define   NV40TCL_VTXFMT_TYPE_SHIFT                                                     0
5043 #define   NV40TCL_VTXFMT_TYPE_MASK                                                      0x0000000f
5044 #define    NV40TCL_VTXFMT_TYPE_FLOAT                                                    0x00000002
5045 #define    NV40TCL_VTXFMT_TYPE_UBYTE                                                    0x00000004
5046 #define    NV40TCL_VTXFMT_TYPE_USHORT                                                   0x00000005
5047 #define   NV40TCL_VTXFMT_SIZE_SHIFT                                                     4
5048 #define   NV40TCL_VTXFMT_SIZE_MASK                                                      0x000000f0
5049 #define   NV40TCL_VTXFMT_STRIDE_SHIFT                                                   8
5050 #define   NV40TCL_VTXFMT_STRIDE_MASK                                                    0x0000ff00
5051 #define  NV40TCL_QUERY_RESET                                                            0x000017c8
5052 #define  NV40TCL_QUERY_UNK17CC                                                          0x000017cc
5053 #define  NV40TCL_QUERY_GET                                                              0x00001800
5054 #define   NV40TCL_QUERY_GET_UNK24_SHIFT                                                 24
5055 #define   NV40TCL_QUERY_GET_UNK24_MASK                                                  0xff000000
5056 #define   NV40TCL_QUERY_GET_OFFSET_SHIFT                                                0
5057 #define   NV40TCL_QUERY_GET_OFFSET_MASK                                                 0x00ffffff
5058 #define  NV40TCL_BEGIN_END                                                              0x00001808
5059 #define   NV40TCL_BEGIN_END_STOP                                                        0x00000000
5060 #define   NV40TCL_BEGIN_END_POINTS                                                      0x00000001
5061 #define   NV40TCL_BEGIN_END_LINES                                                       0x00000002
5062 #define   NV40TCL_BEGIN_END_LINE_LOOP                                                   0x00000003
5063 #define   NV40TCL_BEGIN_END_LINE_STRIP                                                  0x00000004
5064 #define   NV40TCL_BEGIN_END_TRIANGLES                                                   0x00000005
5065 #define   NV40TCL_BEGIN_END_TRIANGLE_STRIP                                              0x00000006
5066 #define   NV40TCL_BEGIN_END_TRIANGLE_FAN                                                0x00000007
5067 #define   NV40TCL_BEGIN_END_QUADS                                                       0x00000008
5068 #define   NV40TCL_BEGIN_END_QUAD_STRIP                                                  0x00000009
5069 #define   NV40TCL_BEGIN_END_POLYGON                                                     0x0000000a
5070 #define  NV40TCL_VB_ELEMENT_U16                                                         0x0000180c
5071 #define   NV40TCL_VB_ELEMENT_U16_1_SHIFT                                                16
5072 #define   NV40TCL_VB_ELEMENT_U16_1_MASK                                                 0xffff0000
5073 #define   NV40TCL_VB_ELEMENT_U16_0_SHIFT                                                0
5074 #define   NV40TCL_VB_ELEMENT_U16_0_MASK                                                 0x0000ffff
5075 #define  NV40TCL_VB_ELEMENT_U32                                                         0x00001810
5076 #define  NV40TCL_VB_VERTEX_BATCH                                                        0x00001814
5077 #define   NV40TCL_VB_VERTEX_BATCH_COUNT_SHIFT                                           24
5078 #define   NV40TCL_VB_VERTEX_BATCH_COUNT_MASK                                            0xff000000
5079 #define   NV40TCL_VB_VERTEX_BATCH_START_SHIFT                                           0
5080 #define   NV40TCL_VB_VERTEX_BATCH_START_MASK                                            0x00ffffff
5081 #define  NV40TCL_VERTEX_DATA                                                            0x00001818
5082 #define  NV40TCL_IDXBUF_ADDRESS                                                         0x0000181c
5083 #define  NV40TCL_IDXBUF_FORMAT                                                          0x00001820
5084 #define   NV40TCL_IDXBUF_FORMAT_TYPE_SHIFT                                              4
5085 #define   NV40TCL_IDXBUF_FORMAT_TYPE_MASK                                               0x000000f0
5086 #define    NV40TCL_IDXBUF_FORMAT_TYPE_U32                                               0x00000000
5087 #define    NV40TCL_IDXBUF_FORMAT_TYPE_U16                                               0x00000010
5088 #define   NV40TCL_IDXBUF_FORMAT_DMA1                                                    (1 <<  0)
5089 #define  NV40TCL_VB_INDEX_BATCH                                                         0x00001824
5090 #define   NV40TCL_VB_INDEX_BATCH_COUNT_SHIFT                                            24
5091 #define   NV40TCL_VB_INDEX_BATCH_COUNT_MASK                                             0xff000000
5092 #define   NV40TCL_VB_INDEX_BATCH_START_SHIFT                                            0
5093 #define   NV40TCL_VB_INDEX_BATCH_START_MASK                                             0x00ffffff
5094 #define  NV40TCL_POLYGON_MODE_FRONT                                                     0x00001828
5095 #define   NV40TCL_POLYGON_MODE_FRONT_POINT                                              0x00001b00
5096 #define   NV40TCL_POLYGON_MODE_FRONT_LINE                                               0x00001b01
5097 #define   NV40TCL_POLYGON_MODE_FRONT_FILL                                               0x00001b02
5098 #define  NV40TCL_POLYGON_MODE_BACK                                                      0x0000182c
5099 #define   NV40TCL_POLYGON_MODE_BACK_POINT                                               0x00001b00
5100 #define   NV40TCL_POLYGON_MODE_BACK_LINE                                                0x00001b01
5101 #define   NV40TCL_POLYGON_MODE_BACK_FILL                                                0x00001b02
5102 #define  NV40TCL_CULL_FACE                                                              0x00001830
5103 #define   NV40TCL_CULL_FACE_FRONT                                                       0x00000404
5104 #define   NV40TCL_CULL_FACE_BACK                                                        0x00000405
5105 #define   NV40TCL_CULL_FACE_FRONT_AND_BACK                                              0x00000408
5106 #define  NV40TCL_FRONT_FACE                                                             0x00001834
5107 #define   NV40TCL_FRONT_FACE_CW                                                         0x00000900
5108 #define   NV40TCL_FRONT_FACE_CCW                                                        0x00000901
5109 #define  NV40TCL_POLYGON_SMOOTH_ENABLE                                                  0x00001838
5110 #define  NV40TCL_CULL_FACE_ENABLE                                                       0x0000183c
5111 #define  NV40TCL_TEX_SIZE1(x)                                                           (0x00001840+((x)*4))
5112 #define  NV40TCL_TEX_SIZE1__SIZE                                                        0x00000008
5113 #define   NV40TCL_TEX_SIZE1_DEPTH_SHIFT                                                 20
5114 #define   NV40TCL_TEX_SIZE1_DEPTH_MASK                                                  0xfff00000
5115 #define   NV40TCL_TEX_SIZE1_PITCH_SHIFT                                                 0
5116 #define   NV40TCL_TEX_SIZE1_PITCH_MASK                                                  0x0000ffff
5117 #define  NV40TCL_VTX_ATTR_2F_X(x)                                                       (0x00001880+((x)*8))
5118 #define  NV40TCL_VTX_ATTR_2F_X__SIZE                                                    0x00000010
5119 #define  NV40TCL_VTX_ATTR_2F_Y(x)                                                       (0x00001884+((x)*8))
5120 #define  NV40TCL_VTX_ATTR_2F_Y__SIZE                                                    0x00000010
5121 #define  NV40TCL_VTX_ATTR_2I(x)                                                         (0x00001900+((x)*4))
5122 #define  NV40TCL_VTX_ATTR_2I__SIZE                                                      0x00000010
5123 #define   NV40TCL_VTX_ATTR_2I_X_SHIFT                                                   0
5124 #define   NV40TCL_VTX_ATTR_2I_X_MASK                                                    0x0000ffff
5125 #define   NV40TCL_VTX_ATTR_2I_Y_SHIFT                                                   16
5126 #define   NV40TCL_VTX_ATTR_2I_Y_MASK                                                    0xffff0000
5127 #define  NV40TCL_VTX_ATTR_4UB(x)                                                        (0x00001940+((x)*4))
5128 #define  NV40TCL_VTX_ATTR_4UB__SIZE                                                     0x00000010
5129 #define   NV40TCL_VTX_ATTR_4UB_X_SHIFT                                                  0
5130 #define   NV40TCL_VTX_ATTR_4UB_X_MASK                                                   0x000000ff
5131 #define   NV40TCL_VTX_ATTR_4UB_Y_SHIFT                                                  8
5132 #define   NV40TCL_VTX_ATTR_4UB_Y_MASK                                                   0x0000ff00
5133 #define   NV40TCL_VTX_ATTR_4UB_Z_SHIFT                                                  16
5134 #define   NV40TCL_VTX_ATTR_4UB_Z_MASK                                                   0x00ff0000
5135 #define   NV40TCL_VTX_ATTR_4UB_W_SHIFT                                                  24
5136 #define   NV40TCL_VTX_ATTR_4UB_W_MASK                                                   0xff000000
5137 #define  NV40TCL_VTX_ATTR_4I_XY(x)                                                      (0x00001980+((x)*8))
5138 #define  NV40TCL_VTX_ATTR_4I_XY__SIZE                                                   0x00000010
5139 #define   NV40TCL_VTX_ATTR_4I_XY_X_SHIFT                                                0
5140 #define   NV40TCL_VTX_ATTR_4I_XY_X_MASK                                                 0x0000ffff
5141 #define   NV40TCL_VTX_ATTR_4I_XY_Y_SHIFT                                                16
5142 #define   NV40TCL_VTX_ATTR_4I_XY_Y_MASK                                                 0xffff0000
5143 #define  NV40TCL_VTX_ATTR_4I_ZW(x)                                                      (0x00001984+((x)*8))
5144 #define  NV40TCL_VTX_ATTR_4I_ZW__SIZE                                                   0x00000010
5145 #define   NV40TCL_VTX_ATTR_4I_ZW_Z_SHIFT                                                0
5146 #define   NV40TCL_VTX_ATTR_4I_ZW_Z_MASK                                                 0x0000ffff
5147 #define   NV40TCL_VTX_ATTR_4I_ZW_W_SHIFT                                                16
5148 #define   NV40TCL_VTX_ATTR_4I_ZW_W_MASK                                                 0xffff0000
5149 #define  NV40TCL_TEX_OFFSET(x)                                                          (0x00001a00+((x)*32))
5150 #define  NV40TCL_TEX_OFFSET__SIZE                                                       0x00000010
5151 #define  NV40TCL_TEX_FORMAT(x)                                                          (0x00001a04+((x)*32))
5152 #define  NV40TCL_TEX_FORMAT__SIZE                                                       0x00000010
5153 #define   NV40TCL_TEX_FORMAT_MIPMAP_COUNT_SHIFT                                         16
5154 #define   NV40TCL_TEX_FORMAT_MIPMAP_COUNT_MASK                                          0x000f0000
5155 #define   NV40TCL_TEX_FORMAT_RECT                                                       (1 << 14)
5156 #define   NV40TCL_TEX_FORMAT_LINEAR                                                     (1 << 13)
5157 #define   NV40TCL_TEX_FORMAT_FORMAT_SHIFT                                               8
5158 #define   NV40TCL_TEX_FORMAT_FORMAT_MASK                                                0x00001f00
5159 #define    NV40TCL_TEX_FORMAT_FORMAT_L8                                                 0x00000100
5160 #define    NV40TCL_TEX_FORMAT_FORMAT_A1R5G5B5                                           0x00000200
5161 #define    NV40TCL_TEX_FORMAT_FORMAT_A4R4G4B4                                           0x00000300
5162 #define    NV40TCL_TEX_FORMAT_FORMAT_R5G6B5                                             0x00000400
5163 #define    NV40TCL_TEX_FORMAT_FORMAT_A8R8G8B8                                           0x00000500
5164 #define    NV40TCL_TEX_FORMAT_FORMAT_DXT1                                               0x00000600
5165 #define    NV40TCL_TEX_FORMAT_FORMAT_DXT3                                               0x00000700
5166 #define    NV40TCL_TEX_FORMAT_FORMAT_DXT5                                               0x00000800
5167 #define    NV40TCL_TEX_FORMAT_FORMAT_A8L8                                               0x00000b00
5168 #define    NV40TCL_TEX_FORMAT_FORMAT_Z24                                                0x00001000
5169 #define    NV40TCL_TEX_FORMAT_FORMAT_Z16                                                0x00001200
5170 #define    NV40TCL_TEX_FORMAT_FORMAT_HILO8                                              0x00001800
5171 #define    NV40TCL_TEX_FORMAT_FORMAT_RGBA16F                                            0x00001a00
5172 #define    NV40TCL_TEX_FORMAT_FORMAT_RGBA32F                                            0x00001b00
5173 #define   NV40TCL_TEX_FORMAT_DIMS_SHIFT                                                 4
5174 #define   NV40TCL_TEX_FORMAT_DIMS_MASK                                                  0x000000f0
5175 #define    NV40TCL_TEX_FORMAT_DIMS_1D                                                   0x00000010
5176 #define    NV40TCL_TEX_FORMAT_DIMS_2D                                                   0x00000020
5177 #define    NV40TCL_TEX_FORMAT_DIMS_3D                                                   0x00000030
5178 #define   NV40TCL_TEX_FORMAT_NO_BORDER                                                  (1 <<  3)
5179 #define   NV40TCL_TEX_FORMAT_CUBIC                                                      (1 <<  2)
5180 #define   NV40TCL_TEX_FORMAT_DMA1                                                       (1 <<  1)
5181 #define   NV40TCL_TEX_FORMAT_DMA0                                                       (1 <<  0)
5182 #define  NV40TCL_TEX_WRAP(x)                                                            (0x00001a08+((x)*32))
5183 #define  NV40TCL_TEX_WRAP__SIZE                                                         0x00000010
5184 #define   NV40TCL_TEX_WRAP_S_SHIFT                                                      0
5185 #define   NV40TCL_TEX_WRAP_S_MASK                                                       0x000000ff
5186 #define    NV40TCL_TEX_WRAP_S_REPEAT                                                    0x00000001
5187 #define    NV40TCL_TEX_WRAP_S_MIRRORED_REPEAT                                           0x00000002
5188 #define    NV40TCL_TEX_WRAP_S_CLAMP_TO_EDGE                                             0x00000003
5189 #define    NV40TCL_TEX_WRAP_S_CLAMP_TO_BORDER                                           0x00000004
5190 #define    NV40TCL_TEX_WRAP_S_CLAMP                                                     0x00000005
5191 #define    NV40TCL_TEX_WRAP_S_MIRROR_CLAMP_TO_EDGE                                      0x00000006
5192 #define    NV40TCL_TEX_WRAP_S_MIRROR_CLAMP_TO_BORDER                                    0x00000007
5193 #define    NV40TCL_TEX_WRAP_S_MIRROR_CLAMP                                              0x00000008
5194 #define   NV40TCL_TEX_WRAP_T_SHIFT                                                      8
5195 #define   NV40TCL_TEX_WRAP_T_MASK                                                       0x0000ff00
5196 #define    NV40TCL_TEX_WRAP_T_REPEAT                                                    0x00000100
5197 #define    NV40TCL_TEX_WRAP_T_MIRRORED_REPEAT                                           0x00000200
5198 #define    NV40TCL_TEX_WRAP_T_CLAMP_TO_EDGE                                             0x00000300
5199 #define    NV40TCL_TEX_WRAP_T_CLAMP_TO_BORDER                                           0x00000400
5200 #define    NV40TCL_TEX_WRAP_T_CLAMP                                                     0x00000500
5201 #define    NV40TCL_TEX_WRAP_T_MIRROR_CLAMP_TO_EDGE                                      0x00000600
5202 #define    NV40TCL_TEX_WRAP_T_MIRROR_CLAMP_TO_BORDER                                    0x00000700
5203 #define    NV40TCL_TEX_WRAP_T_MIRROR_CLAMP                                              0x00000800
5204 #define   NV40TCL_TEX_WRAP_R_SHIFT                                                      16
5205 #define   NV40TCL_TEX_WRAP_R_MASK                                                       0x00ff0000
5206 #define    NV40TCL_TEX_WRAP_R_REPEAT                                                    0x00010000
5207 #define    NV40TCL_TEX_WRAP_R_MIRRORED_REPEAT                                           0x00020000
5208 #define    NV40TCL_TEX_WRAP_R_CLAMP_TO_EDGE                                             0x00030000
5209 #define    NV40TCL_TEX_WRAP_R_CLAMP_TO_BORDER                                           0x00040000
5210 #define    NV40TCL_TEX_WRAP_R_CLAMP                                                     0x00050000
5211 #define    NV40TCL_TEX_WRAP_R_MIRROR_CLAMP_TO_EDGE                                      0x00060000
5212 #define    NV40TCL_TEX_WRAP_R_MIRROR_CLAMP_TO_BORDER                                    0x00070000
5213 #define    NV40TCL_TEX_WRAP_R_MIRROR_CLAMP                                              0x00080000
5214 #define   NV40TCL_TEX_WRAP_RCOMP_SHIFT                                                  28
5215 #define   NV40TCL_TEX_WRAP_RCOMP_MASK                                                   0xf0000000
5216 #define    NV40TCL_TEX_WRAP_RCOMP_NEVER                                                 0x00000000
5217 #define    NV40TCL_TEX_WRAP_RCOMP_GREATER                                               0x10000000
5218 #define    NV40TCL_TEX_WRAP_RCOMP_EQUAL                                                 0x20000000
5219 #define    NV40TCL_TEX_WRAP_RCOMP_GEQUAL                                                0x30000000
5220 #define    NV40TCL_TEX_WRAP_RCOMP_LESS                                                  0x40000000
5221 #define    NV40TCL_TEX_WRAP_RCOMP_NOTEQUAL                                              0x50000000
5222 #define    NV40TCL_TEX_WRAP_RCOMP_LEQUAL                                                0x60000000
5223 #define    NV40TCL_TEX_WRAP_RCOMP_ALWAYS                                                0x70000000
5224 #define  NV40TCL_TEX_ENABLE(x)                                                          (0x00001a0c+((x)*32))
5225 #define  NV40TCL_TEX_ENABLE__SIZE                                                       0x00000010
5226 #define   NV40TCL_TEX_ENABLE_ENABLE                                                     (1 << 31)
5227 #define   NV40TCL_TEX_ENABLE_ANISO_SHIFT                                                4
5228 #define   NV40TCL_TEX_ENABLE_ANISO_MASK                                                 0x000000f0
5229 #define    NV40TCL_TEX_ENABLE_ANISO_NONE                                                0x00000000
5230 #define    NV40TCL_TEX_ENABLE_ANISO_2X                                                  0x00000010
5231 #define    NV40TCL_TEX_ENABLE_ANISO_4X                                                  0x00000020
5232 #define    NV40TCL_TEX_ENABLE_ANISO_6X                                                  0x00000030
5233 #define    NV40TCL_TEX_ENABLE_ANISO_8X                                                  0x00000040
5234 #define    NV40TCL_TEX_ENABLE_ANISO_10X                                                 0x00000050
5235 #define    NV40TCL_TEX_ENABLE_ANISO_12X                                                 0x00000060
5236 #define    NV40TCL_TEX_ENABLE_ANISO_16X                                                 0x00000070
5237 #define  NV40TCL_TEX_SWIZZLE(x)                                                         (0x00001a10+((x)*32))
5238 #define  NV40TCL_TEX_SWIZZLE__SIZE                                                      0x00000010
5239 #define   NV40TCL_TEX_SWIZZLE_S0_X_SHIFT                                                14
5240 #define   NV40TCL_TEX_SWIZZLE_S0_X_MASK                                                 0x0000c000
5241 #define    NV40TCL_TEX_SWIZZLE_S0_X_ZERO                                                0x00000000
5242 #define    NV40TCL_TEX_SWIZZLE_S0_X_ONE                                                 0x00004000
5243 #define    NV40TCL_TEX_SWIZZLE_S0_X_S1                                                  0x00008000
5244 #define   NV40TCL_TEX_SWIZZLE_S0_Y_SHIFT                                                12
5245 #define   NV40TCL_TEX_SWIZZLE_S0_Y_MASK                                                 0x00003000
5246 #define    NV40TCL_TEX_SWIZZLE_S0_Y_ZERO                                                0x00000000
5247 #define    NV40TCL_TEX_SWIZZLE_S0_Y_ONE                                                 0x00001000
5248 #define    NV40TCL_TEX_SWIZZLE_S0_Y_S1                                                  0x00002000
5249 #define   NV40TCL_TEX_SWIZZLE_S0_Z_SHIFT                                                10
5250 #define   NV40TCL_TEX_SWIZZLE_S0_Z_MASK                                                 0x00000c00
5251 #define    NV40TCL_TEX_SWIZZLE_S0_Z_ZERO                                                0x00000000
5252 #define    NV40TCL_TEX_SWIZZLE_S0_Z_ONE                                                 0x00000400
5253 #define    NV40TCL_TEX_SWIZZLE_S0_Z_S1                                                  0x00000800
5254 #define   NV40TCL_TEX_SWIZZLE_S0_W_SHIFT                                                8
5255 #define   NV40TCL_TEX_SWIZZLE_S0_W_MASK                                                 0x00000300
5256 #define    NV40TCL_TEX_SWIZZLE_S0_W_ZERO                                                0x00000000
5257 #define    NV40TCL_TEX_SWIZZLE_S0_W_ONE                                                 0x00000100
5258 #define    NV40TCL_TEX_SWIZZLE_S0_W_S1                                                  0x00000200
5259 #define   NV40TCL_TEX_SWIZZLE_S1_X_SHIFT                                                6
5260 #define   NV40TCL_TEX_SWIZZLE_S1_X_MASK                                                 0x000000c0
5261 #define    NV40TCL_TEX_SWIZZLE_S1_X_W                                                   0x00000000
5262 #define    NV40TCL_TEX_SWIZZLE_S1_X_Z                                                   0x00000040
5263 #define    NV40TCL_TEX_SWIZZLE_S1_X_Y                                                   0x00000080
5264 #define    NV40TCL_TEX_SWIZZLE_S1_X_X                                                   0x000000c0
5265 #define   NV40TCL_TEX_SWIZZLE_S1_Y_SHIFT                                                4
5266 #define   NV40TCL_TEX_SWIZZLE_S1_Y_MASK                                                 0x00000030
5267 #define    NV40TCL_TEX_SWIZZLE_S1_Y_W                                                   0x00000000
5268 #define    NV40TCL_TEX_SWIZZLE_S1_Y_Z                                                   0x00000010
5269 #define    NV40TCL_TEX_SWIZZLE_S1_Y_Y                                                   0x00000020
5270 #define    NV40TCL_TEX_SWIZZLE_S1_Y_X                                                   0x00000030
5271 #define   NV40TCL_TEX_SWIZZLE_S1_Z_SHIFT                                                2
5272 #define   NV40TCL_TEX_SWIZZLE_S1_Z_MASK                                                 0x0000000c
5273 #define    NV40TCL_TEX_SWIZZLE_S1_Z_W                                                   0x00000000
5274 #define    NV40TCL_TEX_SWIZZLE_S1_Z_Z                                                   0x00000004
5275 #define    NV40TCL_TEX_SWIZZLE_S1_Z_Y                                                   0x00000008
5276 #define    NV40TCL_TEX_SWIZZLE_S1_Z_X                                                   0x0000000c
5277 #define   NV40TCL_TEX_SWIZZLE_S1_W_SHIFT                                                0
5278 #define   NV40TCL_TEX_SWIZZLE_S1_W_MASK                                                 0x00000003
5279 #define    NV40TCL_TEX_SWIZZLE_S1_W_W                                                   0x00000000
5280 #define    NV40TCL_TEX_SWIZZLE_S1_W_Z                                                   0x00000001
5281 #define    NV40TCL_TEX_SWIZZLE_S1_W_Y                                                   0x00000002
5282 #define    NV40TCL_TEX_SWIZZLE_S1_W_X                                                   0x00000003
5283 #define  NV40TCL_TEX_FILTER(x)                                                          (0x00001a14+((x)*32))
5284 #define  NV40TCL_TEX_FILTER__SIZE                                                       0x00000010
5285 #define   NV40TCL_TEX_FILTER_SIGNED_ALPHA                                               (1 << 31)
5286 #define   NV40TCL_TEX_FILTER_SIGNED_RED                                                 (1 << 30)
5287 #define   NV40TCL_TEX_FILTER_SIGNED_GREEN                                               (1 << 29)
5288 #define   NV40TCL_TEX_FILTER_SIGNED_BLUE                                                (1 << 28)
5289 #define   NV40TCL_TEX_FILTER_MIN_SHIFT                                                  16
5290 #define   NV40TCL_TEX_FILTER_MIN_MASK                                                   0x000f0000
5291 #define    NV40TCL_TEX_FILTER_MIN_NEAREST                                               0x00010000
5292 #define    NV40TCL_TEX_FILTER_MIN_LINEAR                                                0x00020000
5293 #define    NV40TCL_TEX_FILTER_MIN_NEAREST_MIPMAP_NEAREST                                0x00030000
5294 #define    NV40TCL_TEX_FILTER_MIN_LINEAR_MIPMAP_NEAREST                                 0x00040000
5295 #define    NV40TCL_TEX_FILTER_MIN_NEAREST_MIPMAP_LINEAR                                 0x00050000
5296 #define    NV40TCL_TEX_FILTER_MIN_LINEAR_MIPMAP_LINEAR                                  0x00060000
5297 #define   NV40TCL_TEX_FILTER_MAG_SHIFT                                                  24
5298 #define   NV40TCL_TEX_FILTER_MAG_MASK                                                   0x0f000000
5299 #define    NV40TCL_TEX_FILTER_MAG_NEAREST                                               0x01000000
5300 #define    NV40TCL_TEX_FILTER_MAG_LINEAR                                                0x02000000
5301 #define  NV40TCL_TEX_SIZE0(x)                                                           (0x00001a18+((x)*32))
5302 #define  NV40TCL_TEX_SIZE0__SIZE                                                        0x00000010
5303 #define   NV40TCL_TEX_SIZE0_H_SHIFT                                                     0
5304 #define   NV40TCL_TEX_SIZE0_H_MASK                                                      0x0000ffff
5305 #define   NV40TCL_TEX_SIZE0_W_SHIFT                                                     16
5306 #define   NV40TCL_TEX_SIZE0_W_MASK                                                      0xffff0000
5307 #define  NV40TCL_TEX_BORDER_COLOR(x)                                                    (0x00001a1c+((x)*32))
5308 #define  NV40TCL_TEX_BORDER_COLOR__SIZE                                                 0x00000010
5309 #define   NV40TCL_TEX_BORDER_COLOR_B_SHIFT                                              0
5310 #define   NV40TCL_TEX_BORDER_COLOR_B_MASK                                               0x000000ff
5311 #define   NV40TCL_TEX_BORDER_COLOR_G_SHIFT                                              8
5312 #define   NV40TCL_TEX_BORDER_COLOR_G_MASK                                               0x0000ff00
5313 #define   NV40TCL_TEX_BORDER_COLOR_R_SHIFT                                              16
5314 #define   NV40TCL_TEX_BORDER_COLOR_R_MASK                                               0x00ff0000
5315 #define   NV40TCL_TEX_BORDER_COLOR_A_SHIFT                                              24
5316 #define   NV40TCL_TEX_BORDER_COLOR_A_MASK                                               0xff000000
5317 #define  NV40TCL_VTX_ATTR_4F_X(x)                                                       (0x00001c00+((x)*16))
5318 #define  NV40TCL_VTX_ATTR_4F_X__SIZE                                                    0x00000010
5319 #define  NV40TCL_VTX_ATTR_4F_Y(x)                                                       (0x00001c04+((x)*16))
5320 #define  NV40TCL_VTX_ATTR_4F_Y__SIZE                                                    0x00000010
5321 #define  NV40TCL_VTX_ATTR_4F_Z(x)                                                       (0x00001c08+((x)*16))
5322 #define  NV40TCL_VTX_ATTR_4F_Z__SIZE                                                    0x00000010
5323 #define  NV40TCL_VTX_ATTR_4F_W(x)                                                       (0x00001c0c+((x)*16))
5324 #define  NV40TCL_VTX_ATTR_4F_W__SIZE                                                    0x00000010
5325 #define  NV40TCL_FP_CONTROL                                                             0x00001d60
5326 #define   NV40TCL_FP_CONTROL_TEMP_COUNT_SHIFT                                           24
5327 #define   NV40TCL_FP_CONTROL_TEMP_COUNT_MASK                                            0xff000000
5328 #define   NV40TCL_FP_CONTROL_KIL                                                        (1 <<  7)
5329 #define  NV40TCL_MULTISAMPLE_CONTROL                                                    0x00001d7c
5330 #define  NV40TCL_CLEAR_VALUE_DEPTH                                                      0x00001d8c
5331 #define  NV40TCL_CLEAR_VALUE_COLOR                                                      0x00001d90
5332 #define  NV40TCL_CLEAR_BUFFERS                                                          0x00001d94
5333 #define   NV40TCL_CLEAR_BUFFERS_COLOR_A                                                 (1 <<  7)
5334 #define   NV40TCL_CLEAR_BUFFERS_COLOR_B                                                 (1 <<  6)
5335 #define   NV40TCL_CLEAR_BUFFERS_COLOR_G                                                 (1 <<  5)
5336 #define   NV40TCL_CLEAR_BUFFERS_COLOR_R                                                 (1 <<  4)
5337 #define   NV40TCL_CLEAR_BUFFERS_STENCIL                                                 (1 <<  1)
5338 #define   NV40TCL_CLEAR_BUFFERS_DEPTH                                                   (1 <<  0)
5339 #define  NV40TCL_LINE_STIPPLE_ENABLE                                                    0x00001db4
5340 #define  NV40TCL_LINE_STIPPLE_PATTERN                                                   0x00001db8
5341 #define   NV40TCL_LINE_STIPPLE_PATTERN_FACTOR_SHIFT                                     0
5342 #define   NV40TCL_LINE_STIPPLE_PATTERN_FACTOR_MASK                                      0x0000ffff
5343 #define   NV40TCL_LINE_STIPPLE_PATTERN_PATTERN_SHIFT                                    16
5344 #define   NV40TCL_LINE_STIPPLE_PATTERN_PATTERN_MASK                                     0xffff0000
5345 #define  NV40TCL_VTX_ATTR_1F(x)                                                         (0x00001e40+((x)*4))
5346 #define  NV40TCL_VTX_ATTR_1F__SIZE                                                      0x00000010
5347 #define  NV40TCL_VP_UPLOAD_FROM_ID                                                      0x00001e9c
5348 #define  NV40TCL_VP_START_FROM_ID                                                       0x00001ea0
5349 #define  NV40TCL_POINT_SIZE                                                             0x00001ee0
5350 #define  NV40TCL_POINT_SPRITE                                                           0x00001ee8
5351 #define  NV40TCL_VP_UPLOAD_CONST_ID                                                     0x00001efc
5352 #define  NV40TCL_VP_UPLOAD_CONST_X(x)                                                   (0x00001f00+((x)*16))
5353 #define  NV40TCL_VP_UPLOAD_CONST_X__SIZE                                                0x00000004
5354 #define  NV40TCL_VP_UPLOAD_CONST_Y(x)                                                   (0x00001f04+((x)*16))
5355 #define  NV40TCL_VP_UPLOAD_CONST_Y__SIZE                                                0x00000004
5356 #define  NV40TCL_VP_UPLOAD_CONST_Z(x)                                                   (0x00001f08+((x)*16))
5357 #define  NV40TCL_VP_UPLOAD_CONST_Z__SIZE                                                0x00000004
5358 #define  NV40TCL_VP_UPLOAD_CONST_W(x)                                                   (0x00001f0c+((x)*16))
5359 #define  NV40TCL_VP_UPLOAD_CONST_W__SIZE                                                0x00000004
5360 #define  NV40TCL_TEX_CACHE_CTL                                                          0x00001fd8
5361 #define  NV40TCL_VP_ATTRIB_EN                                                           0x00001ff0
5362 #define  NV40TCL_VP_RESULT_EN                                                           0x00001ff4
5363
5364
5365 #define NV44TCL                                                                         0x00004497
5366
5367
5368
5369 #define NV50_2D                                                                         0x0000502d
5370
5371 #define  NV50_2D_NOP                                                                    0x00000100
5372 #define  NV50_2D_NOTIFY                                                                 0x00000104
5373 #define  NV50_2D_DMA_NOTIFY                                                             0x00000180
5374 #define  NV50_2D_DMA_IN_MEMORY0                                                         0x00000184
5375 #define  NV50_2D_DMA_IN_MEMORY1                                                         0x00000188
5376 #define  NV50_2D_DMA_IN_MEMORY2                                                         0x0000018c
5377 #define  NV50_2D_DST_FORMAT                                                             0x00000200
5378 #define   NV50_2D_DST_FORMAT_32BPP                                                      0x000000cf
5379 #define   NV50_2D_DST_FORMAT_24BPP                                                      0x000000e6
5380 #define   NV50_2D_DST_FORMAT_16BPP                                                      0x000000e8
5381 #define   NV50_2D_DST_FORMAT_8BPP                                                       0x000000f3
5382 #define   NV50_2D_DST_FORMAT_15BPP                                                      0x000000f8
5383 #define  NV50_2D_DST_PITCH                                                              0x00000214
5384 #define  NV50_2D_DST_WIDTH                                                              0x00000218
5385 #define  NV50_2D_DST_HEIGHT                                                             0x0000021c
5386 #define  NV50_2D_DST_ADDRESS_HIGH                                                       0x00000220
5387 #define  NV50_2D_DST_ADDRESS_LOW                                                        0x00000224
5388 #define  NV50_2D_SRC_FORMAT                                                             0x00000230
5389 #define   NV50_2D_SRC_FORMAT_32BPP                                                      0x000000cf
5390 #define   NV50_2D_SRC_FORMAT_24BPP                                                      0x000000e6
5391 #define   NV50_2D_SRC_FORMAT_16BPP                                                      0x000000e8
5392 #define   NV50_2D_SRC_FORMAT_8BPP                                                       0x000000f3
5393 #define   NV50_2D_SRC_FORMAT_15BPP                                                      0x000000f8
5394 #define  NV50_2D_SRC_PITCH                                                              0x00000244
5395 #define  NV50_2D_SRC_WIDTH                                                              0x00000248
5396 #define  NV50_2D_SRC_HEIGHT                                                             0x0000024c
5397 #define  NV50_2D_SRC_ADDRESS_HIGH                                                       0x00000250
5398 #define  NV50_2D_SRC_ADDRESS_LOW                                                        0x00000254
5399 #define  NV50_2D_CLIP_X                                                                 0x00000280
5400 #define  NV50_2D_CLIP_Y                                                                 0x00000284
5401 #define  NV50_2D_CLIP_Z                                                                 0x00000288
5402 #define  NV50_2D_CLIP_W                                                                 0x0000028c
5403 #define  NV50_2D_ROP                                                                    0x000002a0
5404 #define  NV50_2D_OPERATION                                                              0x000002ac
5405 #define   NV50_2D_OPERATION_SRCCOPY_AND                                                 0x00000000
5406 #define   NV50_2D_OPERATION_ROP_AND                                                     0x00000001
5407 #define   NV50_2D_OPERATION_BLEND_AND                                                   0x00000002
5408 #define   NV50_2D_OPERATION_SRCCOPY                                                     0x00000003
5409 #define   NV50_2D_OPERATION_SRCCOPY_PREMULT                                             0x00000004
5410 #define   NV50_2D_OPERATION_BLEND_PREMULT                                               0x00000005
5411 #define  NV50_2D_PATTERN_FORMAT                                                         0x000002e8
5412 #define   NV50_2D_PATTERN_FORMAT_16BPP                                                  0x00000000
5413 #define   NV50_2D_PATTERN_FORMAT_15BPP                                                  0x00000001
5414 #define   NV50_2D_PATTERN_FORMAT_32BPP                                                  0x00000002
5415 #define   NV50_2D_PATTERN_FORMAT_8BPP                                                   0x00000003
5416 #define  NV50_2D_PATTERN_COLOR(x)                                                       (0x000002f0+((x)*4))
5417 #define  NV50_2D_PATTERN_COLOR__SIZE                                                    0x00000002
5418 #define  NV50_2D_PATTERN_BITMAP(x)                                                      (0x000002f8+((x)*4))
5419 #define  NV50_2D_PATTERN_BITMAP__SIZE                                                   0x00000002
5420 #define  NV50_2D_RECT_FORMAT                                                            0x00000584
5421 #define   NV50_2D_RECT_FORMAT_32BPP                                                     0x000000cf
5422 #define   NV50_2D_RECT_FORMAT_24BPP                                                     0x000000e6
5423 #define   NV50_2D_RECT_FORMAT_16BPP                                                     0x000000e8
5424 #define   NV50_2D_RECT_FORMAT_8BPP                                                      0x000000f3
5425 #define   NV50_2D_RECT_FORMAT_15BPP                                                     0x000000f8
5426 #define  NV50_2D_RECT_COLOR                                                             0x00000588
5427 #define  NV50_2D_RECT_X1                                                                0x00000600
5428 #define  NV50_2D_RECT_Y1                                                                0x00000604
5429 #define  NV50_2D_RECT_X2                                                                0x00000608
5430 #define  NV50_2D_RECT_Y2                                                                0x0000060c
5431 #define  NV50_2D_SIFC_UNK0800                                                           0x00000800
5432 #define  NV50_2D_SIFC_FORMAT                                                            0x00000804
5433 #define   NV50_2D_SIFC_FORMAT_32BPP                                                     0x000000cf
5434 #define   NV50_2D_SIFC_FORMAT_24BPP                                                     0x000000e6
5435 #define   NV50_2D_SIFC_FORMAT_16BPP                                                     0x000000e8
5436 #define   NV50_2D_SIFC_FORMAT_8BPP                                                      0x000000f3
5437 #define   NV50_2D_SIFC_FORMAT_15BPP                                                     0x000000f8
5438 #define  NV50_2D_SIFC_WIDTH                                                             0x00000838
5439 #define  NV50_2D_SIFC_HEIGHT                                                            0x0000083c
5440 #define  NV50_2D_SIFC_SCALE_UNK0840                                                     0x00000840
5441 #define  NV50_2D_SIFC_SCALE_UNK0844                                                     0x00000844
5442 #define  NV50_2D_SIFC_SCALE_UNK0848                                                     0x00000848
5443 #define  NV50_2D_SIFC_SCALE_UNK084C                                                     0x0000084c
5444 #define  NV50_2D_SIFC_UNK0850                                                           0x00000850
5445 #define  NV50_2D_SIFC_DST_X                                                             0x00000854
5446 #define  NV50_2D_SIFC_UNK0858                                                           0x00000858
5447 #define  NV50_2D_SIFC_DST_Y                                                             0x0000085c
5448 #define  NV50_2D_SIFC_DATA                                                              0x00000860
5449 #define  NV50_2D_BLIT_DST_X                                                             0x000008b0
5450 #define  NV50_2D_BLIT_DST_Y                                                             0x000008b4
5451 #define  NV50_2D_BLIT_DST_W                                                             0x000008b8
5452 #define  NV50_2D_BLIT_DST_H                                                             0x000008bc
5453 #define  NV50_2D_BLIT_SRC_X                                                             0x000008d4
5454 #define  NV50_2D_BLIT_SRC_Y                                                             0x000008dc
5455
5456
5457 #define NV50_MEMORY_TO_MEMORY_FORMAT                                                    0x00005039
5458
5459 #define  NV50_MEMORY_TO_MEMORY_FORMAT_OFFSET_IN_HIGH                                    0x00000238
5460 #define  NV50_MEMORY_TO_MEMORY_FORMAT_OFFSET_OUT_HIGH                                   0x0000023c
5461
5462
5463 #define NV50TCL                                                                         0x00005097
5464
5465 #define  NV50TCL_NOP                                                                    0x00000100
5466 #define  NV50TCL_NOTIFY                                                                 0x00000104
5467 #define  NV50TCL_DMA_NOTIFY                                                             0x00000180
5468 #define  NV50TCL_DMA_UNK0(x)                                                            (0x00000184+((x)*4))
5469 #define  NV50TCL_DMA_UNK0__SIZE                                                         0x0000000b
5470 #define  NV50TCL_DMA_UNK1(x)                                                            (0x000001c0+((x)*4))
5471 #define  NV50TCL_DMA_UNK1__SIZE                                                         0x00000008
5472 #define  NV50TCL_RT_ADDRESS_HIGH(x)                                                     (0x00000200+((x)*32))
5473 #define  NV50TCL_RT_ADDRESS_HIGH__SIZE                                                  0x00000008
5474 #define  NV50TCL_RT_ADDRESS_LOW(x)                                                      (0x00000204+((x)*32))
5475 #define  NV50TCL_RT_ADDRESS_LOW__SIZE                                                   0x00000008
5476 #define  NV50TCL_RT_FORMAT(x)                                                           (0x00000208+((x)*32))
5477 #define  NV50TCL_RT_FORMAT__SIZE                                                        0x00000008
5478 #define   NV50TCL_RT_FORMAT_32BPP                                                       0x000000cf
5479 #define   NV50TCL_RT_FORMAT_24BPP                                                       0x000000e6
5480 #define   NV50TCL_RT_FORMAT_16BPP                                                       0x000000e8
5481 #define   NV50TCL_RT_FORMAT_8BPP                                                        0x000000f3
5482 #define   NV50TCL_RT_FORMAT_15BPP                                                       0x000000f8
5483 #define  NV50TCL_RT_TILE_UNK(x)                                                         (0x0000020c+((x)*32))
5484 #define  NV50TCL_RT_TILE_UNK__SIZE                                                      0x00000008
5485 #define  NV50TCL_RT_UNK4(x)                                                             (0x00000210+((x)*32))
5486 #define  NV50TCL_RT_UNK4__SIZE                                                          0x00000008
5487 #define  NV50TCL_VTX_ATTR_1F(x)                                                         (0x00000300+((x)*4))
5488 #define  NV50TCL_VTX_ATTR_1F__SIZE                                                      0x00000010
5489 #define  NV50TCL_VTX_ATTR_2F_X(x)                                                       (0x00000380+((x)*8))
5490 #define  NV50TCL_VTX_ATTR_2F_X__SIZE                                                    0x00000010
5491 #define  NV50TCL_VTX_ATTR_2F_Y(x)                                                       (0x00000384+((x)*8))
5492 #define  NV50TCL_VTX_ATTR_2F_Y__SIZE                                                    0x00000010
5493 #define  NV50TCL_VTX_ATTR_3F_X(x)                                                       (0x00000400+((x)*16))
5494 #define  NV50TCL_VTX_ATTR_3F_X__SIZE                                                    0x00000010
5495 #define  NV50TCL_VTX_ATTR_3F_Y(x)                                                       (0x00000404+((x)*16))
5496 #define  NV50TCL_VTX_ATTR_3F_Y__SIZE                                                    0x00000010
5497 #define  NV50TCL_VTX_ATTR_3F_Z(x)                                                       (0x00000408+((x)*16))
5498 #define  NV50TCL_VTX_ATTR_3F_Z__SIZE                                                    0x00000010
5499 #define  NV50TCL_VTX_ATTR_3F_W(x)                                                       (0x0000040c+((x)*16))
5500 #define  NV50TCL_VTX_ATTR_3F_W__SIZE                                                    0x00000010
5501 #define  NV50TCL_VTX_ATTR_4F_X(x)                                                       (0x00000500+((x)*16))
5502 #define  NV50TCL_VTX_ATTR_4F_X__SIZE                                                    0x00000010
5503 #define  NV50TCL_VTX_ATTR_4F_Y(x)                                                       (0x00000504+((x)*16))
5504 #define  NV50TCL_VTX_ATTR_4F_Y__SIZE                                                    0x00000010
5505 #define  NV50TCL_VTX_ATTR_4F_Z(x)                                                       (0x00000508+((x)*16))
5506 #define  NV50TCL_VTX_ATTR_4F_Z__SIZE                                                    0x00000010
5507 #define  NV50TCL_VTX_ATTR_4F_W(x)                                                       (0x0000050c+((x)*16))
5508 #define  NV50TCL_VTX_ATTR_4F_W__SIZE                                                    0x00000010
5509 #define  NV50TCL_VTX_ATTR_2I(x)                                                         (0x00000680+((x)*4))
5510 #define  NV50TCL_VTX_ATTR_2I__SIZE                                                      0x00000010
5511 #define   NV50TCL_VTX_ATTR_2I_X_SHIFT                                                   0
5512 #define   NV50TCL_VTX_ATTR_2I_X_MASK                                                    0x0000ffff
5513 #define   NV50TCL_VTX_ATTR_2I_Y_SHIFT                                                   16
5514 #define   NV50TCL_VTX_ATTR_2I_Y_MASK                                                    0xffff0000
5515 #define  NV50TCL_VTX_ATTR_4I_0(x)                                                       (0x00000700+((x)*8))
5516 #define  NV50TCL_VTX_ATTR_4I_0__SIZE                                                    0x00000010
5517 #define   NV50TCL_VTX_ATTR_4I_0_X_SHIFT                                                 0
5518 #define   NV50TCL_VTX_ATTR_4I_0_X_MASK                                                  0x0000ffff
5519 #define   NV50TCL_VTX_ATTR_4I_0_Y_SHIFT                                                 16
5520 #define   NV50TCL_VTX_ATTR_4I_0_Y_MASK                                                  0xffff0000
5521 #define  NV50TCL_VTX_ATTR_4I_1(x)                                                       (0x00000704+((x)*8))
5522 #define  NV50TCL_VTX_ATTR_4I_1__SIZE                                                    0x00000010
5523 #define   NV50TCL_VTX_ATTR_4I_1_Z_SHIFT                                                 0
5524 #define   NV50TCL_VTX_ATTR_4I_1_Z_MASK                                                  0x0000ffff
5525 #define   NV50TCL_VTX_ATTR_4I_1_W_SHIFT                                                 16
5526 #define   NV50TCL_VTX_ATTR_4I_1_W_MASK                                                  0xffff0000
5527 #define  NV50TCL_VTX_ATTR_4NI_0(x)                                                      (0x00000780+((x)*8))
5528 #define  NV50TCL_VTX_ATTR_4NI_0__SIZE                                                   0x00000010
5529 #define   NV50TCL_VTX_ATTR_4NI_0_X_SHIFT                                                0
5530 #define   NV50TCL_VTX_ATTR_4NI_0_X_MASK                                                 0x0000ffff
5531 #define   NV50TCL_VTX_ATTR_4NI_0_Y_SHIFT                                                16
5532 #define   NV50TCL_VTX_ATTR_4NI_0_Y_MASK                                                 0xffff0000
5533 #define  NV50TCL_VTX_ATTR_4NI_1(x)                                                      (0x00000784+((x)*8))
5534 #define  NV50TCL_VTX_ATTR_4NI_1__SIZE                                                   0x00000010
5535 #define   NV50TCL_VTX_ATTR_4NI_1_Z_SHIFT                                                0
5536 #define   NV50TCL_VTX_ATTR_4NI_1_Z_MASK                                                 0x0000ffff
5537 #define   NV50TCL_VTX_ATTR_4NI_1_W_SHIFT                                                16
5538 #define   NV50TCL_VTX_ATTR_4NI_1_W_MASK                                                 0xffff0000
5539 #define  NV50TCL_VERTEX_ARRAY_FORMAT(x)                                                 (0x00000900+((x)*16))
5540 #define  NV50TCL_VERTEX_ARRAY_FORMAT__SIZE                                              0x00000010
5541 #define  NV50TCL_VIEWPORT_UNK0(x)                                                       (0x00000a00+((x)*4))
5542 #define  NV50TCL_VIEWPORT_UNK0__SIZE                                                    0x00000003
5543 #define  NV50TCL_VIEWPORT_UNK1(x)                                                       (0x00000a0c+((x)*4))
5544 #define  NV50TCL_VIEWPORT_UNK1__SIZE                                                    0x00000003
5545 #define  NV50TCL_VIEWPORT_HORIZ                                                         0x00000c00
5546 #define   NV50TCL_VIEWPORT_HORIZ_X_SHIFT                                                0
5547 #define   NV50TCL_VIEWPORT_HORIZ_X_MASK                                                 0x0000ffff
5548 #define   NV50TCL_VIEWPORT_HORIZ_W_SHIFT                                                16
5549 #define   NV50TCL_VIEWPORT_HORIZ_W_MASK                                                 0xffff0000
5550 #define  NV50TCL_VIEWPORT_VERT                                                          0x00000c04
5551 #define   NV50TCL_VIEWPORT_VERT_Y_SHIFT                                                 0
5552 #define   NV50TCL_VIEWPORT_VERT_Y_MASK                                                  0x0000ffff
5553 #define   NV50TCL_VIEWPORT_VERT_H_SHIFT                                                 16
5554 #define   NV50TCL_VIEWPORT_VERT_H_MASK                                                  0xffff0000
5555 #define  NV50TCL_DEPTH_RANGE_NEAR                                                       0x00000c08
5556 #define  NV50TCL_DEPTH_RANGE_FAR                                                        0x00000c0c
5557 #define  NV50TCL_VIEWPORT_CLIP_HORIZ(x)                                                 (0x00000d00+((x)*8))
5558 #define  NV50TCL_VIEWPORT_CLIP_HORIZ__SIZE                                              0x00000008
5559 #define  NV50TCL_VIEWPORT_CLIP_VERT(x)                                                  (0x00000d04+((x)*8))
5560 #define  NV50TCL_VIEWPORT_CLIP_VERT__SIZE                                               0x00000008
5561 #define  NV50TCL_VERTEX_BUFFER_FIRST                                                    0x00000d74
5562 #define  NV50TCL_VERTEX_BUFFER_COUNT                                                    0x00000d78
5563 #define  NV50TCL_CLEAR_COLOR(x)                                                         (0x00000d80+((x)*4))
5564 #define  NV50TCL_CLEAR_COLOR__SIZE                                                      0x00000004
5565 #define  NV50TCL_CLEAR_DEPTH                                                            0x00000d90
5566 #define  NV50TCL_CLEAR_STENCIL                                                          0x00000da0
5567 #define  NV50TCL_POLYGON_MODE_FRONT                                                     0x00000dac
5568 #define   NV50TCL_POLYGON_MODE_FRONT_POINT                                              0x00001b00
5569 #define   NV50TCL_POLYGON_MODE_FRONT_LINE                                               0x00001b01
5570 #define   NV50TCL_POLYGON_MODE_FRONT_FILL                                               0x00001b02
5571 #define  NV50TCL_POLYGON_MODE_BACK                                                      0x00000db0
5572 #define   NV50TCL_POLYGON_MODE_BACK_POINT                                               0x00001b00
5573 #define   NV50TCL_POLYGON_MODE_BACK_LINE                                                0x00001b01
5574 #define   NV50TCL_POLYGON_MODE_BACK_FILL                                                0x00001b02
5575 #define  NV50TCL_POLYGON_SMOOTH_ENABLE                                                  0x00000db4
5576 #define  NV50TCL_POLYGON_OFFSET_POINT_ENABLE                                            0x00000dc0
5577 #define  NV50TCL_POLYGON_OFFSET_LINE_ENABLE                                             0x00000dc4
5578 #define  NV50TCL_POLYGON_OFFSET_FILL_ENABLE                                             0x00000dc8
5579 #define  NV50TCL_SCISSOR_HORIZ                                                          0x00000e04
5580 #define   NV50TCL_SCISSOR_HORIZ_L_SHIFT                                                 0
5581 #define   NV50TCL_SCISSOR_HORIZ_L_MASK                                                  0x0000ffff
5582 #define   NV50TCL_SCISSOR_HORIZ_R_SHIFT                                                 16
5583 #define   NV50TCL_SCISSOR_HORIZ_R_MASK                                                  0xffff0000
5584 #define  NV50TCL_SCISSOR_VERT                                                           0x00000e08
5585 #define   NV50TCL_SCISSOR_VERT_T_SHIFT                                                  0
5586 #define   NV50TCL_SCISSOR_VERT_T_MASK                                                   0x0000ffff
5587 #define   NV50TCL_SCISSOR_VERT_B_SHIFT                                                  16
5588 #define   NV50TCL_SCISSOR_VERT_B_MASK                                                   0xffff0000
5589 #define  NV50TCL_CB_ADDR                                                                0x00000f00
5590 #define   NV50TCL_CB_ADDR_ID_SHIFT                                                      8
5591 #define   NV50TCL_CB_ADDR_ID_MASK                                                       0xffffff00
5592 #define   NV50TCL_CB_ADDR_BUFFER_SHIFT                                                  0
5593 #define   NV50TCL_CB_ADDR_BUFFER_MASK                                                   0x000000ff
5594 #define  NV50TCL_CB_DATA(x)                                                             (0x00000f04+((x)*4))
5595 #define  NV50TCL_CB_DATA__SIZE                                                          0x00000010
5596 #define  NV50TCL_STENCIL_FRONT_FUNC_REF                                                 0x00000f54
5597 #define  NV50TCL_STENCIL_FRONT_MASK                                                     0x00000f58
5598 #define  NV50TCL_STENCIL_FRONT_FUNC_MASK                                                0x00000f5c
5599 #define  NV50TCL_GP_ADDRESS_HIGH                                                        0x00000f70
5600 #define  NV50TCL_GP_ADDRESS_LOW                                                         0x00000f74
5601 #define  NV50TCL_VP_ADDRESS_HIGH                                                        0x00000f7c
5602 #define  NV50TCL_VP_ADDRESS_LOW                                                         0x00000f80
5603 #define  NV50TCL_FP_ADDRESS_HIGH                                                        0x00000fa4
5604 #define  NV50TCL_FP_ADDRESS_LOW                                                         0x00000fa8
5605 #define  NV50TCL_ZETA_ADDRESS_HIGH                                                      0x00000fe0
5606 #define  NV50TCL_ZETA_ADDRESS_LOW                                                       0x00000fe4
5607 #define  NV50TCL_UNKFF4                                                                 0x00000ff4
5608 #define   NV50TCL_UNKFF4_W_SHIFT                                                        16
5609 #define   NV50TCL_UNKFF4_W_MASK                                                         0xffff0000
5610 #define  NV50TCL_UNKFF8                                                                 0x00000ff8
5611 #define   NV50TCL_UNKFF8_H_SHIFT                                                        16
5612 #define   NV50TCL_UNKFF8_H_MASK                                                         0xffff0000
5613 #define  NV50TCL_RT_HORIZ(x)                                                            (0x00001240+((x)*8))
5614 #define  NV50TCL_RT_HORIZ__SIZE                                                         0x00000008
5615 #define  NV50TCL_RT_VERT(x)                                                             (0x00001244+((x)*8))
5616 #define  NV50TCL_RT_VERT__SIZE                                                          0x00000008
5617 #define  NV50TCL_CB_DEF_ADDRESS_HIGH                                                    0x00001280
5618 #define  NV50TCL_CB_DEF_ADDRESS_LOW                                                     0x00001284
5619 #define  NV50TCL_CB_DEF_SET                                                             0x00001288
5620 #define   NV50TCL_CB_DEF_SET_SIZE_SHIFT                                                 0
5621 #define   NV50TCL_CB_DEF_SET_SIZE_MASK                                                  0x0000ffff
5622 #define   NV50TCL_CB_DEF_SET_BUFFER_SHIFT                                               16
5623 #define   NV50TCL_CB_DEF_SET_BUFFER_MASK                                                0xffff0000
5624 #define  NV50TCL_DEPTH_TEST_ENABLE                                                      0x000012cc
5625 #define  NV50TCL_SHADE_MODEL                                                            0x000012d4
5626 #define   NV50TCL_SHADE_MODEL_FLAT                                                      0x00001d00
5627 #define   NV50TCL_SHADE_MODEL_SMOOTH                                                    0x00001d01
5628 #define  NV50TCL_DEPTH_WRITE_ENABLE                                                     0x000012e8
5629 #define  NV50TCL_ALPHA_TEST_ENABLE                                                      0x000012ec
5630 #define  NV50TCL_DEPTH_TEST_FUNC                                                        0x0000130c
5631 #define   NV50TCL_DEPTH_TEST_FUNC_NEVER                                                 0x00000200
5632 #define   NV50TCL_DEPTH_TEST_FUNC_LESS                                                  0x00000201
5633 #define   NV50TCL_DEPTH_TEST_FUNC_EQUAL                                                 0x00000202
5634 #define   NV50TCL_DEPTH_TEST_FUNC_LEQUAL                                                0x00000203
5635 #define   NV50TCL_DEPTH_TEST_FUNC_GREATER                                               0x00000204
5636 #define   NV50TCL_DEPTH_TEST_FUNC_GREATER                                               0x00000204
5637 #define   NV50TCL_DEPTH_TEST_FUNC_NOTEQUAL                                              0x00000205
5638 #define   NV50TCL_DEPTH_TEST_FUNC_GEQUAL                                                0x00000206
5639 #define   NV50TCL_DEPTH_TEST_FUNC_ALWAYS                                                0x00000207
5640 #define  NV50TCL_ALPHA_TEST_REF                                                         0x00001310
5641 #define  NV50TCL_ALPHA_TEST_FUNC                                                        0x00001314
5642 #define   NV50TCL_ALPHA_TEST_FUNC_NEVER                                                 0x00000200
5643 #define   NV50TCL_ALPHA_TEST_FUNC_LESS                                                  0x00000201
5644 #define   NV50TCL_ALPHA_TEST_FUNC_EQUAL                                                 0x00000202
5645 #define   NV50TCL_ALPHA_TEST_FUNC_LEQUAL                                                0x00000203
5646 #define   NV50TCL_ALPHA_TEST_FUNC_GREATER                                               0x00000204
5647 #define   NV50TCL_ALPHA_TEST_FUNC_GREATER                                               0x00000204
5648 #define   NV50TCL_ALPHA_TEST_FUNC_NOTEQUAL                                              0x00000205
5649 #define   NV50TCL_ALPHA_TEST_FUNC_GEQUAL                                                0x00000206
5650 #define   NV50TCL_ALPHA_TEST_FUNC_ALWAYS                                                0x00000207
5651 #define  NV50TCL_BLEND_COLOR(x)                                                         (0x0000131c+((x)*4))
5652 #define  NV50TCL_BLEND_COLOR__SIZE                                                      0x00000004
5653 #define  NV50TCL_BLEND_EQUATION_RGB                                                     0x00001340
5654 #define   NV50TCL_BLEND_EQUATION_RGB_FUNC_ADD                                           0x00008006
5655 #define   NV50TCL_BLEND_EQUATION_RGB_MIN                                                0x00008007
5656 #define   NV50TCL_BLEND_EQUATION_RGB_MAX                                                0x00008008
5657 #define   NV50TCL_BLEND_EQUATION_RGB_FUNC_SUBTRACT                                      0x0000800a
5658 #define   NV50TCL_BLEND_EQUATION_RGB_FUNC_REVERSE_SUBTRACT                              0x0000800b
5659 #define  NV50TCL_BLEND_FUNC_SRC_RGB                                                     0x00001344
5660 #define   NV50TCL_BLEND_FUNC_SRC_RGB_ZERO                                               0x00000000
5661 #define   NV50TCL_BLEND_FUNC_SRC_RGB_ONE                                                0x00000001
5662 #define   NV50TCL_BLEND_FUNC_SRC_RGB_SRC_COLOR                                          0x00000300
5663 #define   NV50TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_SRC_COLOR                                0x00000301
5664 #define   NV50TCL_BLEND_FUNC_SRC_RGB_SRC_ALPHA                                          0x00000302
5665 #define   NV50TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_SRC_ALPHA                                0x00000303
5666 #define   NV50TCL_BLEND_FUNC_SRC_RGB_DST_ALPHA                                          0x00000304
5667 #define   NV50TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_DST_ALPHA                                0x00000305
5668 #define   NV50TCL_BLEND_FUNC_SRC_RGB_DST_COLOR                                          0x00000306
5669 #define   NV50TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_DST_COLOR                                0x00000307
5670 #define   NV50TCL_BLEND_FUNC_SRC_RGB_SRC_ALPHA_SATURATE                                 0x00000308
5671 #define   NV50TCL_BLEND_FUNC_SRC_RGB_CONSTANT_COLOR                                     0x00008001
5672 #define   NV50TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_CONSTANT_COLOR                           0x00008002
5673 #define   NV50TCL_BLEND_FUNC_SRC_RGB_CONSTANT_ALPHA                                     0x00008003
5674 #define   NV50TCL_BLEND_FUNC_SRC_RGB_ONE_MINUS_CONSTANT_ALPHA                           0x00008004
5675 #define  NV50TCL_BLEND_FUNC_DST_RGB                                                     0x00001348
5676 #define   NV50TCL_BLEND_FUNC_DST_RGB_ZERO                                               0x00000000
5677 #define   NV50TCL_BLEND_FUNC_DST_RGB_ONE                                                0x00000001
5678 #define   NV50TCL_BLEND_FUNC_DST_RGB_SRC_COLOR                                          0x00000300
5679 #define   NV50TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_SRC_COLOR                                0x00000301
5680 #define   NV50TCL_BLEND_FUNC_DST_RGB_SRC_ALPHA                                          0x00000302
5681 #define   NV50TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_SRC_ALPHA                                0x00000303
5682 #define   NV50TCL_BLEND_FUNC_DST_RGB_DST_ALPHA                                          0x00000304
5683 #define   NV50TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_DST_ALPHA                                0x00000305
5684 #define   NV50TCL_BLEND_FUNC_DST_RGB_DST_COLOR                                          0x00000306
5685 #define   NV50TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_DST_COLOR                                0x00000307
5686 #define   NV50TCL_BLEND_FUNC_DST_RGB_SRC_ALPHA_SATURATE                                 0x00000308
5687 #define   NV50TCL_BLEND_FUNC_DST_RGB_CONSTANT_COLOR                                     0x00008001
5688 #define   NV50TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_CONSTANT_COLOR                           0x00008002
5689 #define   NV50TCL_BLEND_FUNC_DST_RGB_CONSTANT_ALPHA                                     0x00008003
5690 #define   NV50TCL_BLEND_FUNC_DST_RGB_ONE_MINUS_CONSTANT_ALPHA                           0x00008004
5691 #define  NV50TCL_BLEND_EQUATION_ALPHA                                                   0x0000134c
5692 #define   NV50TCL_BLEND_EQUATION_ALPHA_FUNC_ADD                                         0x00008006
5693 #define   NV50TCL_BLEND_EQUATION_ALPHA_MIN                                              0x00008007
5694 #define   NV50TCL_BLEND_EQUATION_ALPHA_MAX                                              0x00008008
5695 #define   NV50TCL_BLEND_EQUATION_ALPHA_FUNC_SUBTRACT                                    0x0000800a
5696 #define   NV50TCL_BLEND_EQUATION_ALPHA_FUNC_REVERSE_SUBTRACT                            0x0000800b
5697 #define  NV50TCL_BLEND_FUNC_SRC_ALPHA                                                   0x00001350
5698 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_ZERO                                             0x00000000
5699 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_ONE                                              0x00000001
5700 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_SRC_COLOR                                        0x00000300
5701 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_SRC_COLOR                              0x00000301
5702 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_SRC_ALPHA                                        0x00000302
5703 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_SRC_ALPHA                              0x00000303
5704 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_DST_ALPHA                                        0x00000304
5705 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_DST_ALPHA                              0x00000305
5706 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_DST_COLOR                                        0x00000306
5707 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_DST_COLOR                              0x00000307
5708 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_SRC_ALPHA_SATURATE                               0x00000308
5709 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_CONSTANT_COLOR                                   0x00008001
5710 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_CONSTANT_COLOR                         0x00008002
5711 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_CONSTANT_ALPHA                                   0x00008003
5712 #define   NV50TCL_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_CONSTANT_ALPHA                         0x00008004
5713 #define  NV50TCL_BLEND_FUNC_DST_ALPHA                                                   0x00001358
5714 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_ZERO                                             0x00000000
5715 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_ONE                                              0x00000001
5716 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_SRC_COLOR                                        0x00000300
5717 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_SRC_COLOR                              0x00000301
5718 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_SRC_ALPHA                                        0x00000302
5719 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_SRC_ALPHA                              0x00000303
5720 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_DST_ALPHA                                        0x00000304
5721 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_DST_ALPHA                              0x00000305
5722 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_DST_COLOR                                        0x00000306
5723 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_DST_COLOR                              0x00000307
5724 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_SRC_ALPHA_SATURATE                               0x00000308
5725 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_CONSTANT_COLOR                                   0x00008001
5726 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_CONSTANT_COLOR                         0x00008002
5727 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_CONSTANT_ALPHA                                   0x00008003
5728 #define   NV50TCL_BLEND_FUNC_DST_ALPHA_ONE_MINUS_CONSTANT_ALPHA                         0x00008004
5729 #define  NV50TCL_BLEND_ENABLE(x)                                                        (0x00001360+((x)*4))
5730 #define  NV50TCL_BLEND_ENABLE__SIZE                                                     0x00000008
5731 #define  NV50TCL_STENCIL_BACK_ENABLE                                                    0x00001380
5732 #define  NV50TCL_STENCIL_BACK_OP_FAIL                                                   0x00001384
5733 #define   NV50TCL_STENCIL_BACK_OP_FAIL_ZERO                                             0x00000000
5734 #define   NV50TCL_STENCIL_BACK_OP_FAIL_INVERT                                           0x0000150a
5735 #define   NV50TCL_STENCIL_BACK_OP_FAIL_KEEP                                             0x00001e00
5736 #define   NV50TCL_STENCIL_BACK_OP_FAIL_REPLACE                                          0x00001e01
5737 #define   NV50TCL_STENCIL_BACK_OP_FAIL_INCR                                             0x00001e02
5738 #define   NV50TCL_STENCIL_BACK_OP_FAIL_DECR                                             0x00001e03
5739 #define   NV50TCL_STENCIL_BACK_OP_FAIL_INCR_WRAP                                        0x00008507
5740 #define   NV50TCL_STENCIL_BACK_OP_FAIL_DECR_WRAP                                        0x00008508
5741 #define  NV50TCL_STENCIL_BACK_OP_ZFAIL                                                  0x00001388
5742 #define   NV50TCL_STENCIL_BACK_OP_ZFAIL_ZERO                                            0x00000000
5743 #define   NV50TCL_STENCIL_BACK_OP_ZFAIL_INVERT                                          0x0000150a
5744 #define   NV50TCL_STENCIL_BACK_OP_ZFAIL_KEEP                                            0x00001e00
5745 #define   NV50TCL_STENCIL_BACK_OP_ZFAIL_REPLACE                                         0x00001e01
5746 #define   NV50TCL_STENCIL_BACK_OP_ZFAIL_INCR                                            0x00001e02
5747 #define   NV50TCL_STENCIL_BACK_OP_ZFAIL_DECR                                            0x00001e03
5748 #define   NV50TCL_STENCIL_BACK_OP_ZFAIL_INCR_WRAP                                       0x00008507
5749 #define   NV50TCL_STENCIL_BACK_OP_ZFAIL_DECR_WRAP                                       0x00008508
5750 #define  NV50TCL_STENCIL_BACK_OP_ZPASS                                                  0x0000138c
5751 #define   NV50TCL_STENCIL_BACK_OP_ZPASS_ZERO                                            0x00000000
5752 #define   NV50TCL_STENCIL_BACK_OP_ZPASS_INVERT                                          0x0000150a
5753 #define   NV50TCL_STENCIL_BACK_OP_ZPASS_KEEP                                            0x00001e00
5754 #define   NV50TCL_STENCIL_BACK_OP_ZPASS_REPLACE                                         0x00001e01
5755 #define   NV50TCL_STENCIL_BACK_OP_ZPASS_INCR                                            0x00001e02
5756 #define   NV50TCL_STENCIL_BACK_OP_ZPASS_DECR                                            0x00001e03
5757 #define   NV50TCL_STENCIL_BACK_OP_ZPASS_INCR_WRAP                                       0x00008507
5758 #define   NV50TCL_STENCIL_BACK_OP_ZPASS_DECR_WRAP                                       0x00008508
5759 #define  NV50TCL_STENCIL_BACK_FUNC_FUNC                                                 0x00001390
5760 #define   NV50TCL_STENCIL_BACK_FUNC_FUNC_NEVER                                          0x00000200
5761 #define   NV50TCL_STENCIL_BACK_FUNC_FUNC_LESS                                           0x00000201
5762 #define   NV50TCL_STENCIL_BACK_FUNC_FUNC_EQUAL                                          0x00000202
5763 #define   NV50TCL_STENCIL_BACK_FUNC_FUNC_LEQUAL                                         0x00000203
5764 #define   NV50TCL_STENCIL_BACK_FUNC_FUNC_GREATER                                        0x00000204
5765 #define   NV50TCL_STENCIL_BACK_FUNC_FUNC_GREATER                                        0x00000204
5766 #define   NV50TCL_STENCIL_BACK_FUNC_FUNC_NOTEQUAL                                       0x00000205
5767 #define   NV50TCL_STENCIL_BACK_FUNC_FUNC_GEQUAL                                         0x00000206
5768 #define   NV50TCL_STENCIL_BACK_FUNC_FUNC_ALWAYS                                         0x00000207
5769 #define  NV50TCL_STENCIL_BACK_FUNC_REF                                                  0x00001394
5770 #define  NV50TCL_STENCIL_BACK_MASK                                                      0x00001398
5771 #define  NV50TCL_STENCIL_BACK_FUNC_MASK                                                 0x0000139c
5772 #define  NV50TCL_LINE_WIDTH                                                             0x000013b0
5773 #define  NV50TCL_VP_START_ID                                                            0x0000140c
5774 #define  NV50TCL_GP_START_ID                                                            0x00001410
5775 #define  NV50TCL_FP_START_ID                                                            0x00001414
5776 #define  NV50TCL_POINT_SIZE                                                             0x00001518
5777 #define  NV50TCL_TSC_ADDRESS_HIGH                                                       0x0000155c
5778 #define  NV50TCL_TSC_ADDRESS_LOW                                                        0x00001560
5779 #define  NV50TCL_POLYGON_OFFSET_FACTOR                                                  0x0000156c
5780 #define  NV50TCL_LINE_SMOOTH_ENABLE                                                     0x00001570
5781 #define  NV50TCL_TIC_ADDRESS_HIGH                                                       0x00001574
5782 #define  NV50TCL_TIC_ADDRESS_LOW                                                        0x00001578
5783 #define  NV50TCL_STENCIL_FRONT_ENABLE                                                   0x00001594
5784 #define  NV50TCL_STENCIL_FRONT_OP_FAIL                                                  0x00001598
5785 #define   NV50TCL_STENCIL_FRONT_OP_FAIL_ZERO                                            0x00000000
5786 #define   NV50TCL_STENCIL_FRONT_OP_FAIL_INVERT                                          0x0000150a
5787 #define   NV50TCL_STENCIL_FRONT_OP_FAIL_KEEP                                            0x00001e00
5788 #define   NV50TCL_STENCIL_FRONT_OP_FAIL_REPLACE                                         0x00001e01
5789 #define   NV50TCL_STENCIL_FRONT_OP_FAIL_INCR                                            0x00001e02
5790 #define   NV50TCL_STENCIL_FRONT_OP_FAIL_DECR                                            0x00001e03
5791 #define   NV50TCL_STENCIL_FRONT_OP_FAIL_INCR_WRAP                                       0x00008507
5792 #define   NV50TCL_STENCIL_FRONT_OP_FAIL_DECR_WRAP                                       0x00008508
5793 #define  NV50TCL_STENCIL_FRONT_OP_ZFAIL                                                 0x0000159c
5794 #define   NV50TCL_STENCIL_FRONT_OP_ZFAIL_ZERO                                           0x00000000
5795 #define   NV50TCL_STENCIL_FRONT_OP_ZFAIL_INVERT                                         0x0000150a
5796 #define   NV50TCL_STENCIL_FRONT_OP_ZFAIL_KEEP                                           0x00001e00
5797 #define   NV50TCL_STENCIL_FRONT_OP_ZFAIL_REPLACE                                        0x00001e01
5798 #define   NV50TCL_STENCIL_FRONT_OP_ZFAIL_INCR                                           0x00001e02
5799 #define   NV50TCL_STENCIL_FRONT_OP_ZFAIL_DECR                                           0x00001e03
5800 #define   NV50TCL_STENCIL_FRONT_OP_ZFAIL_INCR_WRAP                                      0x00008507
5801 #define   NV50TCL_STENCIL_FRONT_OP_ZFAIL_DECR_WRAP                                      0x00008508
5802 #define  NV50TCL_STENCIL_FRONT_OP_ZPASS                                                 0x000015a0
5803 #define   NV50TCL_STENCIL_FRONT_OP_ZPASS_ZERO                                           0x00000000
5804 #define   NV50TCL_STENCIL_FRONT_OP_ZPASS_INVERT                                         0x0000150a
5805 #define   NV50TCL_STENCIL_FRONT_OP_ZPASS_KEEP                                           0x00001e00
5806 #define   NV50TCL_STENCIL_FRONT_OP_ZPASS_REPLACE                                        0x00001e01
5807 #define   NV50TCL_STENCIL_FRONT_OP_ZPASS_INCR                                           0x00001e02
5808 #define   NV50TCL_STENCIL_FRONT_OP_ZPASS_DECR                                           0x00001e03
5809 #define   NV50TCL_STENCIL_FRONT_OP_ZPASS_INCR_WRAP                                      0x00008507
5810 #define   NV50TCL_STENCIL_FRONT_OP_ZPASS_DECR_WRAP                                      0x00008508
5811 #define  NV50TCL_STENCIL_FRONT_FUNC_FUNC                                                0x000015a4
5812 #define   NV50TCL_STENCIL_FRONT_FUNC_FUNC_NEVER                                         0x00000200
5813 #define   NV50TCL_STENCIL_FRONT_FUNC_FUNC_LESS                                          0x00000201
5814 #define   NV50TCL_STENCIL_FRONT_FUNC_FUNC_EQUAL                                         0x00000202
5815 #define   NV50TCL_STENCIL_FRONT_FUNC_FUNC_LEQUAL                                        0x00000203
5816 #define   NV50TCL_STENCIL_FRONT_FUNC_FUNC_GREATER                                       0x00000204
5817 #define   NV50TCL_STENCIL_FRONT_FUNC_FUNC_GREATER                                       0x00000204
5818 #define   NV50TCL_STENCIL_FRONT_FUNC_FUNC_NOTEQUAL                                      0x00000205
5819 #define   NV50TCL_STENCIL_FRONT_FUNC_FUNC_GEQUAL                                        0x00000206
5820 #define   NV50TCL_STENCIL_FRONT_FUNC_FUNC_ALWAYS                                        0x00000207
5821 #define  NV50TCL_POLYGON_OFFSET_UNITS                                                   0x000015bc
5822 #define  NV50TCL_VERTEX_BEGIN                                                           0x000015dc
5823 #define   NV50TCL_VERTEX_BEGIN_POINTS                                                   0x00000000
5824 #define   NV50TCL_VERTEX_BEGIN_LINES                                                    0x00000001
5825 #define   NV50TCL_VERTEX_BEGIN_LINE_LOOP                                                0x00000002
5826 #define   NV50TCL_VERTEX_BEGIN_LINE_STRIP                                               0x00000003
5827 #define   NV50TCL_VERTEX_BEGIN_TRIANGLES                                                0x00000004
5828 #define   NV50TCL_VERTEX_BEGIN_TRIANGLE_STRIP                                           0x00000005
5829 #define   NV50TCL_VERTEX_BEGIN_TRIANGLE_FAN                                             0x00000006
5830 #define   NV50TCL_VERTEX_BEGIN_QUADS                                                    0x00000007
5831 #define   NV50TCL_VERTEX_BEGIN_QUAD_STRIP                                               0x00000008
5832 #define   NV50TCL_VERTEX_BEGIN_POLYGON                                                  0x00000009
5833 #define  NV50TCL_VERTEX_END                                                             0x000015e0
5834 #define  NV50TCL_VERTEX_DATA                                                            0x00001640
5835 #define  NV50TCL_VP_ATTR_EN_0                                                           0x00001650
5836 #define   NV50TCL_VP_ATTR_EN_0_7_SHIFT                                                  28
5837 #define   NV50TCL_VP_ATTR_EN_0_7_MASK                                                   0xf0000000
5838 #define    NV50TCL_VP_ATTR_EN_0_7_NONE                                                  0x00000000
5839 #define    NV50TCL_VP_ATTR_EN_0_7_XNNN                                                  0x10000000
5840 #define    NV50TCL_VP_ATTR_EN_0_7_NYNN                                                  0x20000000
5841 #define    NV50TCL_VP_ATTR_EN_0_7_XYNN                                                  0x30000000
5842 #define    NV50TCL_VP_ATTR_EN_0_7_NNZN                                                  0x40000000
5843 #define    NV50TCL_VP_ATTR_EN_0_7_XNZN                                                  0x50000000
5844 #define    NV50TCL_VP_ATTR_EN_0_7_NYZN                                                  0x60000000
5845 #define    NV50TCL_VP_ATTR_EN_0_7_XYZN                                                  0x70000000
5846 #define    NV50TCL_VP_ATTR_EN_0_7_NNNW                                                  0x80000000
5847 #define    NV50TCL_VP_ATTR_EN_0_7_XNNW                                                  0x90000000
5848 #define    NV50TCL_VP_ATTR_EN_0_7_NYNW                                                  0xa0000000
5849 #define    NV50TCL_VP_ATTR_EN_0_7_XYNW                                                  0xb0000000
5850 #define    NV50TCL_VP_ATTR_EN_0_7_NNZW                                                  0xc0000000
5851 #define    NV50TCL_VP_ATTR_EN_0_7_XNZW                                                  0xd0000000
5852 #define    NV50TCL_VP_ATTR_EN_0_7_NYZW                                                  0xe0000000
5853 #define    NV50TCL_VP_ATTR_EN_0_7_XYZW                                                  0xf0000000
5854 #define   NV50TCL_VP_ATTR_EN_0_6_SHIFT                                                  24
5855 #define   NV50TCL_VP_ATTR_EN_0_6_MASK                                                   0x0f000000
5856 #define    NV50TCL_VP_ATTR_EN_0_6_NONE                                                  0x00000000
5857 #define    NV50TCL_VP_ATTR_EN_0_6_XNNN                                                  0x01000000
5858 #define    NV50TCL_VP_ATTR_EN_0_6_NYNN                                                  0x02000000
5859 #define    NV50TCL_VP_ATTR_EN_0_6_XYNN                                                  0x03000000
5860 #define    NV50TCL_VP_ATTR_EN_0_6_NNZN                                                  0x04000000
5861 #define    NV50TCL_VP_ATTR_EN_0_6_XNZN                                                  0x05000000
5862 #define    NV50TCL_VP_ATTR_EN_0_6_NYZN                                                  0x06000000
5863 #define    NV50TCL_VP_ATTR_EN_0_6_XYZN                                                  0x07000000
5864 #define    NV50TCL_VP_ATTR_EN_0_6_NNNW                                                  0x08000000
5865 #define    NV50TCL_VP_ATTR_EN_0_6_XNNW                                                  0x09000000
5866 #define    NV50TCL_VP_ATTR_EN_0_6_NYNW                                                  0x0a000000
5867 #define    NV50TCL_VP_ATTR_EN_0_6_XYNW                                                  0x0b000000
5868 #define    NV50TCL_VP_ATTR_EN_0_6_NNZW                                                  0x0c000000
5869 #define    NV50TCL_VP_ATTR_EN_0_6_XNZW                                                  0x0d000000
5870 #define    NV50TCL_VP_ATTR_EN_0_6_NYZW                                                  0x0e000000
5871 #define    NV50TCL_VP_ATTR_EN_0_6_XYZW                                                  0x0f000000
5872 #define   NV50TCL_VP_ATTR_EN_0_5_SHIFT                                                  20
5873 #define   NV50TCL_VP_ATTR_EN_0_5_MASK                                                   0x00f00000
5874 #define    NV50TCL_VP_ATTR_EN_0_5_NONE                                                  0x00000000
5875 #define    NV50TCL_VP_ATTR_EN_0_5_XNNN                                                  0x00100000
5876 #define    NV50TCL_VP_ATTR_EN_0_5_NYNN                                                  0x00200000
5877 #define    NV50TCL_VP_ATTR_EN_0_5_XYNN                                                  0x00300000
5878 #define    NV50TCL_VP_ATTR_EN_0_5_NNZN                                                  0x00400000
5879 #define    NV50TCL_VP_ATTR_EN_0_5_XNZN                                                  0x00500000
5880 #define    NV50TCL_VP_ATTR_EN_0_5_NYZN                                                  0x00600000
5881 #define    NV50TCL_VP_ATTR_EN_0_5_XYZN                                                  0x00700000
5882 #define    NV50TCL_VP_ATTR_EN_0_5_NNNW                                                  0x00800000
5883 #define    NV50TCL_VP_ATTR_EN_0_5_XNNW                                                  0x00900000
5884 #define    NV50TCL_VP_ATTR_EN_0_5_NYNW                                                  0x00a00000
5885 #define    NV50TCL_VP_ATTR_EN_0_5_XYNW                                                  0x00b00000
5886 #define    NV50TCL_VP_ATTR_EN_0_5_NNZW                                                  0x00c00000
5887 #define    NV50TCL_VP_ATTR_EN_0_5_XNZW                                                  0x00d00000
5888 #define    NV50TCL_VP_ATTR_EN_0_5_NYZW                                                  0x00e00000
5889 #define    NV50TCL_VP_ATTR_EN_0_5_XYZW                                                  0x00f00000
5890 #define   NV50TCL_VP_ATTR_EN_0_4_SHIFT                                                  16
5891 #define   NV50TCL_VP_ATTR_EN_0_4_MASK                                                   0x000f0000
5892 #define    NV50TCL_VP_ATTR_EN_0_4_NONE                                                  0x00000000
5893 #define    NV50TCL_VP_ATTR_EN_0_4_XNNN                                                  0x00010000
5894 #define    NV50TCL_VP_ATTR_EN_0_4_NYNN                                                  0x00020000
5895 #define    NV50TCL_VP_ATTR_EN_0_4_XYNN                                                  0x00030000
5896 #define    NV50TCL_VP_ATTR_EN_0_4_NNZN                                                  0x00040000
5897 #define    NV50TCL_VP_ATTR_EN_0_4_XNZN                                                  0x00050000
5898 #define    NV50TCL_VP_ATTR_EN_0_4_NYZN                                                  0x00060000
5899 #define    NV50TCL_VP_ATTR_EN_0_4_XYZN                                                  0x00070000
5900 #define    NV50TCL_VP_ATTR_EN_0_4_NNNW                                                  0x00080000
5901 #define    NV50TCL_VP_ATTR_EN_0_4_XNNW                                                  0x00090000
5902 #define    NV50TCL_VP_ATTR_EN_0_4_NYNW                                                  0x000a0000
5903 #define    NV50TCL_VP_ATTR_EN_0_4_XYNW                                                  0x000b0000
5904 #define    NV50TCL_VP_ATTR_EN_0_4_NNZW                                                  0x000c0000
5905 #define    NV50TCL_VP_ATTR_EN_0_4_XNZW                                                  0x000d0000
5906 #define    NV50TCL_VP_ATTR_EN_0_4_NYZW                                                  0x000e0000
5907 #define    NV50TCL_VP_ATTR_EN_0_4_XYZW                                                  0x000f0000
5908 #define   NV50TCL_VP_ATTR_EN_0_3_SHIFT                                                  12
5909 #define   NV50TCL_VP_ATTR_EN_0_3_MASK                                                   0x0000f000
5910 #define    NV50TCL_VP_ATTR_EN_0_3_NONE                                                  0x00000000
5911 #define    NV50TCL_VP_ATTR_EN_0_3_XNNN                                                  0x00001000
5912 #define    NV50TCL_VP_ATTR_EN_0_3_NYNN                                                  0x00002000
5913 #define    NV50TCL_VP_ATTR_EN_0_3_XYNN                                                  0x00003000
5914 #define    NV50TCL_VP_ATTR_EN_0_3_NNZN                                                  0x00004000
5915 #define    NV50TCL_VP_ATTR_EN_0_3_XNZN                                                  0x00005000
5916 #define    NV50TCL_VP_ATTR_EN_0_3_NYZN                                                  0x00006000
5917 #define    NV50TCL_VP_ATTR_EN_0_3_XYZN                                                  0x00007000
5918 #define    NV50TCL_VP_ATTR_EN_0_3_NNNW                                                  0x00008000
5919 #define    NV50TCL_VP_ATTR_EN_0_3_XNNW                                                  0x00009000
5920 #define    NV50TCL_VP_ATTR_EN_0_3_NYNW                                                  0x0000a000
5921 #define    NV50TCL_VP_ATTR_EN_0_3_XYNW                                                  0x0000b000
5922 #define    NV50TCL_VP_ATTR_EN_0_3_NNZW                                                  0x0000c000
5923 #define    NV50TCL_VP_ATTR_EN_0_3_XNZW                                                  0x0000d000
5924 #define    NV50TCL_VP_ATTR_EN_0_3_NYZW                                                  0x0000e000
5925 #define    NV50TCL_VP_ATTR_EN_0_3_XYZW                                                  0x0000f000
5926 #define   NV50TCL_VP_ATTR_EN_0_2_SHIFT                                                  8
5927 #define   NV50TCL_VP_ATTR_EN_0_2_MASK                                                   0x00000f00
5928 #define    NV50TCL_VP_ATTR_EN_0_2_NONE                                                  0x00000000
5929 #define    NV50TCL_VP_ATTR_EN_0_2_XNNN                                                  0x00000100
5930 #define    NV50TCL_VP_ATTR_EN_0_2_NYNN                                                  0x00000200
5931 #define    NV50TCL_VP_ATTR_EN_0_2_XYNN                                                  0x00000300
5932 #define    NV50TCL_VP_ATTR_EN_0_2_NNZN                                                  0x00000400
5933 #define    NV50TCL_VP_ATTR_EN_0_2_XNZN                                                  0x00000500
5934 #define    NV50TCL_VP_ATTR_EN_0_2_NYZN                                                  0x00000600
5935 #define    NV50TCL_VP_ATTR_EN_0_2_XYZN                                                  0x00000700
5936 #define    NV50TCL_VP_ATTR_EN_0_2_NNNW                                                  0x00000800
5937 #define    NV50TCL_VP_ATTR_EN_0_2_XNNW                                                  0x00000900
5938 #define    NV50TCL_VP_ATTR_EN_0_2_NYNW                                                  0x00000a00
5939 #define    NV50TCL_VP_ATTR_EN_0_2_XYNW                                                  0x00000b00
5940 #define    NV50TCL_VP_ATTR_EN_0_2_NNZW                                                  0x00000c00
5941 #define    NV50TCL_VP_ATTR_EN_0_2_XNZW                                                  0x00000d00
5942 #define    NV50TCL_VP_ATTR_EN_0_2_NYZW                                                  0x00000e00
5943 #define    NV50TCL_VP_ATTR_EN_0_2_XYZW                                                  0x00000f00
5944 #define   NV50TCL_VP_ATTR_EN_0_1_SHIFT                                                  4
5945 #define   NV50TCL_VP_ATTR_EN_0_1_MASK                                                   0x000000f0
5946 #define    NV50TCL_VP_ATTR_EN_0_1_NONE                                                  0x00000000
5947 #define    NV50TCL_VP_ATTR_EN_0_1_XNNN                                                  0x00000010
5948 #define    NV50TCL_VP_ATTR_EN_0_1_NYNN                                                  0x00000020
5949 #define    NV50TCL_VP_ATTR_EN_0_1_XYNN                                                  0x00000030
5950 #define    NV50TCL_VP_ATTR_EN_0_1_NNZN                                                  0x00000040
5951 #define    NV50TCL_VP_ATTR_EN_0_1_XNZN                                                  0x00000050
5952 #define    NV50TCL_VP_ATTR_EN_0_1_NYZN                                                  0x00000060
5953 #define    NV50TCL_VP_ATTR_EN_0_1_XYZN                                                  0x00000070
5954 #define    NV50TCL_VP_ATTR_EN_0_1_NNNW                                                  0x00000080
5955 #define    NV50TCL_VP_ATTR_EN_0_1_XNNW                                                  0x00000090
5956 #define    NV50TCL_VP_ATTR_EN_0_1_NYNW                                                  0x000000a0
5957 #define    NV50TCL_VP_ATTR_EN_0_1_XYNW                                                  0x000000b0
5958 #define    NV50TCL_VP_ATTR_EN_0_1_NNZW                                                  0x000000c0
5959 #define    NV50TCL_VP_ATTR_EN_0_1_XNZW                                                  0x000000d0
5960 #define    NV50TCL_VP_ATTR_EN_0_1_NYZW                                                  0x000000e0
5961 #define    NV50TCL_VP_ATTR_EN_0_1_XYZW                                                  0x000000f0
5962 #define   NV50TCL_VP_ATTR_EN_0_0_SHIFT                                                  0
5963 #define   NV50TCL_VP_ATTR_EN_0_0_MASK                                                   0x0000000f
5964 #define    NV50TCL_VP_ATTR_EN_0_0_NONE                                                  0x00000000
5965 #define    NV50TCL_VP_ATTR_EN_0_0_XNNN                                                  0x00000001
5966 #define    NV50TCL_VP_ATTR_EN_0_0_NYNN                                                  0x00000002
5967 #define    NV50TCL_VP_ATTR_EN_0_0_XYNN                                                  0x00000003
5968 #define    NV50TCL_VP_ATTR_EN_0_0_NNZN                                                  0x00000004
5969 #define    NV50TCL_VP_ATTR_EN_0_0_XNZN                                                  0x00000005
5970 #define    NV50TCL_VP_ATTR_EN_0_0_NYZN                                                  0x00000006
5971 #define    NV50TCL_VP_ATTR_EN_0_0_XYZN                                                  0x00000007
5972 #define    NV50TCL_VP_ATTR_EN_0_0_NNNW                                                  0x00000008
5973 #define    NV50TCL_VP_ATTR_EN_0_0_XNNW                                                  0x00000009
5974 #define    NV50TCL_VP_ATTR_EN_0_0_NYNW                                                  0x0000000a
5975 #define    NV50TCL_VP_ATTR_EN_0_0_XYNW                                                  0x0000000b
5976 #define    NV50TCL_VP_ATTR_EN_0_0_NNZW                                                  0x0000000c
5977 #define    NV50TCL_VP_ATTR_EN_0_0_XNZW                                                  0x0000000d
5978 #define    NV50TCL_VP_ATTR_EN_0_0_NYZW                                                  0x0000000e
5979 #define    NV50TCL_VP_ATTR_EN_0_0_XYZW                                                  0x0000000f
5980 #define  NV50TCL_VP_ATTR_EN_1                                                           0x00001654
5981 #define   NV50TCL_VP_ATTR_EN_1_15_SHIFT                                                 28
5982 #define   NV50TCL_VP_ATTR_EN_1_15_MASK                                                  0xf0000000
5983 #define    NV50TCL_VP_ATTR_EN_1_15_NONE                                                 0x00000000
5984 #define    NV50TCL_VP_ATTR_EN_1_15_XNNN                                                 0x10000000
5985 #define    NV50TCL_VP_ATTR_EN_1_15_NYNN                                                 0x20000000
5986 #define    NV50TCL_VP_ATTR_EN_1_15_XYNN                                                 0x30000000
5987 #define    NV50TCL_VP_ATTR_EN_1_15_NNZN                                                 0x40000000
5988 #define    NV50TCL_VP_ATTR_EN_1_15_XNZN                                                 0x50000000
5989 #define    NV50TCL_VP_ATTR_EN_1_15_NYZN                                                 0x60000000
5990 #define    NV50TCL_VP_ATTR_EN_1_15_XYZN                                                 0x70000000
5991 #define    NV50TCL_VP_ATTR_EN_1_15_NNNW                                                 0x80000000
5992 #define    NV50TCL_VP_ATTR_EN_1_15_XNNW                                                 0x90000000
5993 #define    NV50TCL_VP_ATTR_EN_1_15_NYNW                                                 0xa0000000
5994 #define    NV50TCL_VP_ATTR_EN_1_15_XYNW                                                 0xb0000000
5995 #define    NV50TCL_VP_ATTR_EN_1_15_NNZW                                                 0xc0000000
5996 #define    NV50TCL_VP_ATTR_EN_1_15_XNZW                                                 0xd0000000
5997 #define    NV50TCL_VP_ATTR_EN_1_15_NYZW                                                 0xe0000000
5998 #define    NV50TCL_VP_ATTR_EN_1_15_XYZW                                                 0xf0000000
5999 #define   NV50TCL_VP_ATTR_EN_1_14_SHIFT                                                 24
6000 #define   NV50TCL_VP_ATTR_EN_1_14_MASK                                                  0x0f000000
6001 #define    NV50TCL_VP_ATTR_EN_1_14_NONE                                                 0x00000000
6002 #define    NV50TCL_VP_ATTR_EN_1_14_XNNN                                                 0x01000000
6003 #define    NV50TCL_VP_ATTR_EN_1_14_NYNN                                                 0x02000000
6004 #define    NV50TCL_VP_ATTR_EN_1_14_XYNN                                                 0x03000000
6005 #define    NV50TCL_VP_ATTR_EN_1_14_NNZN                                                 0x04000000
6006 #define    NV50TCL_VP_ATTR_EN_1_14_XNZN                                                 0x05000000
6007 #define    NV50TCL_VP_ATTR_EN_1_14_NYZN                                                 0x06000000
6008 #define    NV50TCL_VP_ATTR_EN_1_14_XYZN                                                 0x07000000
6009 #define    NV50TCL_VP_ATTR_EN_1_14_NNNW                                                 0x08000000
6010 #define    NV50TCL_VP_ATTR_EN_1_14_XNNW                                                 0x09000000
6011 #define    NV50TCL_VP_ATTR_EN_1_14_NYNW                                                 0x0a000000
6012 #define    NV50TCL_VP_ATTR_EN_1_14_XYNW                                                 0x0b000000
6013 #define    NV50TCL_VP_ATTR_EN_1_14_NNZW                                                 0x0c000000
6014 #define    NV50TCL_VP_ATTR_EN_1_14_XNZW                                                 0x0d000000
6015 #define    NV50TCL_VP_ATTR_EN_1_14_NYZW                                                 0x0e000000
6016 #define    NV50TCL_VP_ATTR_EN_1_14_XYZW                                                 0x0f000000
6017 #define   NV50TCL_VP_ATTR_EN_1_13_SHIFT                                                 20
6018 #define   NV50TCL_VP_ATTR_EN_1_13_MASK                                                  0x00f00000
6019 #define    NV50TCL_VP_ATTR_EN_1_13_NONE                                                 0x00000000
6020 #define    NV50TCL_VP_ATTR_EN_1_13_XNNN                                                 0x00100000
6021 #define    NV50TCL_VP_ATTR_EN_1_13_NYNN                                                 0x00200000
6022 #define    NV50TCL_VP_ATTR_EN_1_13_XYNN                                                 0x00300000
6023 #define    NV50TCL_VP_ATTR_EN_1_13_NNZN                                                 0x00400000
6024 #define    NV50TCL_VP_ATTR_EN_1_13_XNZN                                                 0x00500000
6025 #define    NV50TCL_VP_ATTR_EN_1_13_NYZN                                                 0x00600000
6026 #define    NV50TCL_VP_ATTR_EN_1_13_XYZN                                                 0x00700000
6027 #define    NV50TCL_VP_ATTR_EN_1_13_NNNW                                                 0x00800000
6028 #define    NV50TCL_VP_ATTR_EN_1_13_XNNW                                                 0x00900000
6029 #define    NV50TCL_VP_ATTR_EN_1_13_NYNW                                                 0x00a00000
6030 #define    NV50TCL_VP_ATTR_EN_1_13_XYNW                                                 0x00b00000
6031 #define    NV50TCL_VP_ATTR_EN_1_13_NNZW                                                 0x00c00000
6032 #define    NV50TCL_VP_ATTR_EN_1_13_XNZW                                                 0x00d00000
6033 #define    NV50TCL_VP_ATTR_EN_1_13_NYZW                                                 0x00e00000
6034 #define    NV50TCL_VP_ATTR_EN_1_13_XYZW                                                 0x00f00000
6035 #define   NV50TCL_VP_ATTR_EN_1_12_SHIFT                                                 16
6036 #define   NV50TCL_VP_ATTR_EN_1_12_MASK                                                  0x000f0000
6037 #define    NV50TCL_VP_ATTR_EN_1_12_NONE                                                 0x00000000
6038 #define    NV50TCL_VP_ATTR_EN_1_12_XNNN                                                 0x00010000
6039 #define    NV50TCL_VP_ATTR_EN_1_12_NYNN                                                 0x00020000
6040 #define    NV50TCL_VP_ATTR_EN_1_12_XYNN                                                 0x00030000
6041 #define    NV50TCL_VP_ATTR_EN_1_12_NNZN                                                 0x00040000
6042 #define    NV50TCL_VP_ATTR_EN_1_12_XNZN                                                 0x00050000
6043 #define    NV50TCL_VP_ATTR_EN_1_12_NYZN                                                 0x00060000
6044 #define    NV50TCL_VP_ATTR_EN_1_12_XYZN                                                 0x00070000
6045 #define    NV50TCL_VP_ATTR_EN_1_12_NNNW                                                 0x00080000
6046 #define    NV50TCL_VP_ATTR_EN_1_12_XNNW                                                 0x00090000
6047 #define    NV50TCL_VP_ATTR_EN_1_12_NYNW                                                 0x000a0000
6048 #define    NV50TCL_VP_ATTR_EN_1_12_XYNW                                                 0x000b0000
6049 #define    NV50TCL_VP_ATTR_EN_1_12_NNZW                                                 0x000c0000
6050 #define    NV50TCL_VP_ATTR_EN_1_12_XNZW                                                 0x000d0000
6051 #define    NV50TCL_VP_ATTR_EN_1_12_NYZW                                                 0x000e0000
6052 #define    NV50TCL_VP_ATTR_EN_1_12_XYZW                                                 0x000f0000
6053 #define   NV50TCL_VP_ATTR_EN_1_11_SHIFT                                                 12
6054 #define   NV50TCL_VP_ATTR_EN_1_11_MASK                                                  0x0000f000
6055 #define    NV50TCL_VP_ATTR_EN_1_11_NONE                                                 0x00000000
6056 #define    NV50TCL_VP_ATTR_EN_1_11_XNNN                                                 0x00001000
6057 #define    NV50TCL_VP_ATTR_EN_1_11_NYNN                                                 0x00002000
6058 #define    NV50TCL_VP_ATTR_EN_1_11_XYNN                                                 0x00003000
6059 #define    NV50TCL_VP_ATTR_EN_1_11_NNZN                                                 0x00004000
6060 #define    NV50TCL_VP_ATTR_EN_1_11_XNZN                                                 0x00005000
6061 #define    NV50TCL_VP_ATTR_EN_1_11_NYZN                                                 0x00006000
6062 #define    NV50TCL_VP_ATTR_EN_1_11_XYZN                                                 0x00007000
6063 #define    NV50TCL_VP_ATTR_EN_1_11_NNNW                                                 0x00008000
6064 #define    NV50TCL_VP_ATTR_EN_1_11_XNNW                                                 0x00009000
6065 #define    NV50TCL_VP_ATTR_EN_1_11_NYNW                                                 0x0000a000
6066 #define    NV50TCL_VP_ATTR_EN_1_11_XYNW                                                 0x0000b000
6067 #define    NV50TCL_VP_ATTR_EN_1_11_NNZW                                                 0x0000c000
6068 #define    NV50TCL_VP_ATTR_EN_1_11_XNZW                                                 0x0000d000
6069 #define    NV50TCL_VP_ATTR_EN_1_11_NYZW                                                 0x0000e000
6070 #define    NV50TCL_VP_ATTR_EN_1_11_XYZW                                                 0x0000f000
6071 #define   NV50TCL_VP_ATTR_EN_1_10_SHIFT                                                 8
6072 #define   NV50TCL_VP_ATTR_EN_1_10_MASK                                                  0x00000f00
6073 #define    NV50TCL_VP_ATTR_EN_1_10_NONE                                                 0x00000000
6074 #define    NV50TCL_VP_ATTR_EN_1_10_XNNN                                                 0x00000100
6075 #define    NV50TCL_VP_ATTR_EN_1_10_NYNN                                                 0x00000200
6076 #define    NV50TCL_VP_ATTR_EN_1_10_XYNN                                                 0x00000300
6077 #define    NV50TCL_VP_ATTR_EN_1_10_NNZN                                                 0x00000400
6078 #define    NV50TCL_VP_ATTR_EN_1_10_XNZN                                                 0x00000500
6079 #define    NV50TCL_VP_ATTR_EN_1_10_NYZN                                                 0x00000600
6080 #define    NV50TCL_VP_ATTR_EN_1_10_XYZN                                                 0x00000700
6081 #define    NV50TCL_VP_ATTR_EN_1_10_NNNW                                                 0x00000800
6082 #define    NV50TCL_VP_ATTR_EN_1_10_XNNW                                                 0x00000900
6083 #define    NV50TCL_VP_ATTR_EN_1_10_NYNW                                                 0x00000a00
6084 #define    NV50TCL_VP_ATTR_EN_1_10_XYNW                                                 0x00000b00
6085 #define    NV50TCL_VP_ATTR_EN_1_10_NNZW                                                 0x00000c00
6086 #define    NV50TCL_VP_ATTR_EN_1_10_XNZW                                                 0x00000d00
6087 #define    NV50TCL_VP_ATTR_EN_1_10_NYZW                                                 0x00000e00
6088 #define    NV50TCL_VP_ATTR_EN_1_10_XYZW                                                 0x00000f00
6089 #define   NV50TCL_VP_ATTR_EN_1_9_SHIFT                                                  4
6090 #define   NV50TCL_VP_ATTR_EN_1_9_MASK                                                   0x000000f0
6091 #define    NV50TCL_VP_ATTR_EN_1_9_NONE                                                  0x00000000
6092 #define    NV50TCL_VP_ATTR_EN_1_9_XNNN                                                  0x00000010
6093 #define    NV50TCL_VP_ATTR_EN_1_9_NYNN                                                  0x00000020
6094 #define    NV50TCL_VP_ATTR_EN_1_9_XYNN                                                  0x00000030
6095 #define    NV50TCL_VP_ATTR_EN_1_9_NNZN                                                  0x00000040
6096 #define    NV50TCL_VP_ATTR_EN_1_9_XNZN                                                  0x00000050
6097 #define    NV50TCL_VP_ATTR_EN_1_9_NYZN                                                  0x00000060
6098 #define    NV50TCL_VP_ATTR_EN_1_9_XYZN                                                  0x00000070
6099 #define    NV50TCL_VP_ATTR_EN_1_9_NNNW                                                  0x00000080
6100 #define    NV50TCL_VP_ATTR_EN_1_9_XNNW                                                  0x00000090
6101 #define    NV50TCL_VP_ATTR_EN_1_9_NYNW                                                  0x000000a0
6102 #define    NV50TCL_VP_ATTR_EN_1_9_XYNW                                                  0x000000b0
6103 #define    NV50TCL_VP_ATTR_EN_1_9_NNZW                                                  0x000000c0
6104 #define    NV50TCL_VP_ATTR_EN_1_9_XNZW                                                  0x000000d0
6105 #define    NV50TCL_VP_ATTR_EN_1_9_NYZW                                                  0x000000e0
6106 #define    NV50TCL_VP_ATTR_EN_1_9_XYZW                                                  0x000000f0
6107 #define   NV50TCL_VP_ATTR_EN_1_8_SHIFT                                                  0
6108 #define   NV50TCL_VP_ATTR_EN_1_8_MASK                                                   0x0000000f
6109 #define    NV50TCL_VP_ATTR_EN_1_8_NONE                                                  0x00000000
6110 #define    NV50TCL_VP_ATTR_EN_1_8_XNNN                                                  0x00000001
6111 #define    NV50TCL_VP_ATTR_EN_1_8_NYNN                                                  0x00000002
6112 #define    NV50TCL_VP_ATTR_EN_1_8_XYNN                                                  0x00000003
6113 #define    NV50TCL_VP_ATTR_EN_1_8_NNZN                                                  0x00000004
6114 #define    NV50TCL_VP_ATTR_EN_1_8_XNZN                                                  0x00000005
6115 #define    NV50TCL_VP_ATTR_EN_1_8_NYZN                                                  0x00000006
6116 #define    NV50TCL_VP_ATTR_EN_1_8_XYZN                                                  0x00000007
6117 #define    NV50TCL_VP_ATTR_EN_1_8_NNNW                                                  0x00000008
6118 #define    NV50TCL_VP_ATTR_EN_1_8_XNNW                                                  0x00000009
6119 #define    NV50TCL_VP_ATTR_EN_1_8_NYNW                                                  0x0000000a
6120 #define    NV50TCL_VP_ATTR_EN_1_8_XYNW                                                  0x0000000b
6121 #define    NV50TCL_VP_ATTR_EN_1_8_NNZW                                                  0x0000000c
6122 #define    NV50TCL_VP_ATTR_EN_1_8_XNZW                                                  0x0000000d
6123 #define    NV50TCL_VP_ATTR_EN_1_8_NYZW                                                  0x0000000e
6124 #define    NV50TCL_VP_ATTR_EN_1_8_XYZW                                                  0x0000000f
6125 #define  NV50TCL_LINE_STIPPLE_ENABLE                                                    0x0000166c
6126 #define  NV50TCL_LINE_STIPPLE_PATTERN                                                   0x00001680
6127 #define  NV50TCL_POLYGON_STIPPLE_ENABLE                                                 0x0000168c
6128 #define  NV50TCL_VP_REG_HPOS                                                            0x000016bc
6129 #define   NV50TCL_VP_REG_HPOS_X_SHIFT                                                   0
6130 #define   NV50TCL_VP_REG_HPOS_X_MASK                                                    0x000000ff
6131 #define   NV50TCL_VP_REG_HPOS_Y_SHIFT                                                   8
6132 #define   NV50TCL_VP_REG_HPOS_Y_MASK                                                    0x0000ff00
6133 #define   NV50TCL_VP_REG_HPOS_Z_SHIFT                                                   16
6134 #define   NV50TCL_VP_REG_HPOS_Z_MASK                                                    0x00ff0000
6135 #define   NV50TCL_VP_REG_HPOS_W_SHIFT                                                   24
6136 #define   NV50TCL_VP_REG_HPOS_W_MASK                                                    0xff000000
6137 #define  NV50TCL_VP_REG_COL0                                                            0x000016c0
6138 #define   NV50TCL_VP_REG_COL0_X_SHIFT                                                   0
6139 #define   NV50TCL_VP_REG_COL0_X_MASK                                                    0x000000ff
6140 #define   NV50TCL_VP_REG_COL0_Y_SHIFT                                                   8
6141 #define   NV50TCL_VP_REG_COL0_Y_MASK                                                    0x0000ff00
6142 #define   NV50TCL_VP_REG_COL0_Z_SHIFT                                                   16
6143 #define   NV50TCL_VP_REG_COL0_Z_MASK                                                    0x00ff0000
6144 #define   NV50TCL_VP_REG_COL0_W_SHIFT                                                   24
6145 #define   NV50TCL_VP_REG_COL0_W_MASK                                                    0xff000000
6146 #define  NV50TCL_POLYGON_STIPPLE_PATTERN(x)                                             (0x00001700+((x)*4))
6147 #define  NV50TCL_POLYGON_STIPPLE_PATTERN__SIZE                                          0x00000020
6148 #define  NV50TCL_CULL_FACE_ENABLE                                                       0x00001918
6149 #define  NV50TCL_FRONT_FACE                                                             0x0000191c
6150 #define   NV50TCL_FRONT_FACE_CW                                                         0x00000900
6151 #define   NV50TCL_FRONT_FACE_CCW                                                        0x00000901
6152 #define  NV50TCL_CULL_FACE                                                              0x00001920
6153 #define   NV50TCL_CULL_FACE_FRONT                                                       0x00000404
6154 #define   NV50TCL_CULL_FACE_BACK                                                        0x00000405
6155 #define   NV50TCL_CULL_FACE_FRONT_AND_BACK                                              0x00000408
6156 #define  NV50TCL_LOGIC_OP_ENABLE                                                        0x000019c4
6157 #define  NV50TCL_LOGIC_OP                                                               0x000019c8
6158 #define   NV50TCL_LOGIC_OP_CLEAR                                                        0x00001500
6159 #define   NV50TCL_LOGIC_OP_AND                                                          0x00001501
6160 #define   NV50TCL_LOGIC_OP_AND_REVERSE                                                  0x00001502
6161 #define   NV50TCL_LOGIC_OP_COPY                                                         0x00001503
6162 #define   NV50TCL_LOGIC_OP_AND_INVERTED                                                 0x00001504
6163 #define   NV50TCL_LOGIC_OP_NOOP                                                         0x00001505
6164 #define   NV50TCL_LOGIC_OP_XOR                                                          0x00001506
6165 #define   NV50TCL_LOGIC_OP_OR                                                           0x00001507
6166 #define   NV50TCL_LOGIC_OP_NOR                                                          0x00001508
6167 #define   NV50TCL_LOGIC_OP_EQUIV                                                        0x00001509
6168 #define   NV50TCL_LOGIC_OP_INVERT                                                       0x0000150a
6169 #define   NV50TCL_LOGIC_OP_OR_REVERSE                                                   0x0000150b
6170 #define   NV50TCL_LOGIC_OP_COPY_INVERTED                                                0x0000150c
6171 #define   NV50TCL_LOGIC_OP_OR_INVERTED                                                  0x0000150d
6172 #define   NV50TCL_LOGIC_OP_NAND                                                         0x0000150e
6173 #define   NV50TCL_LOGIC_OP_SET                                                          0x0000150f
6174 #define  NV50TCL_CLEAR_BUFFERS                                                          0x000019d0
6175 #define  NV50TCL_COLOR_MASK(x)                                                          (0x00001a00+((x)*4))
6176 #define  NV50TCL_COLOR_MASK__SIZE                                                       0x00000008
6177 #define   NV50TCL_COLOR_MASK_R_SHIFT                                                    0
6178 #define   NV50TCL_COLOR_MASK_R_MASK                                                     0x0000000f
6179 #define   NV50TCL_COLOR_MASK_G_SHIFT                                                    4
6180 #define   NV50TCL_COLOR_MASK_G_MASK                                                     0x000000f0
6181 #define   NV50TCL_COLOR_MASK_B_SHIFT                                                    8
6182 #define   NV50TCL_COLOR_MASK_B_MASK                                                     0x00000f00
6183 #define   NV50TCL_COLOR_MASK_A_SHIFT                                                    12
6184 #define   NV50TCL_COLOR_MASK_A_MASK                                                     0x0000f000
6185
6186
6187 #define NV50_COMPUTE                                                                    0x000050c0
6188
6189 #define  NV50_COMPUTE_DMA_UNK0                                                          0x000001a0
6190 #define  NV50_COMPUTE_DMA_STATUS                                                        0x000001a4
6191 #define  NV50_COMPUTE_DMA_UNK1                                                          0x000001b8
6192 #define  NV50_COMPUTE_DMA_UNK2                                                          0x000001bc
6193 #define  NV50_COMPUTE_DMA_UNK3                                                          0x000001c0
6194 #define  NV50_COMPUTE_UNK4_HIGH                                                         0x00000210
6195 #define  NV50_COMPUTE_UNK4_LOW                                                          0x00000214
6196 #define  NV50_COMPUTE_UNK5_HIGH                                                         0x00000218
6197 #define  NV50_COMPUTE_UNK5_LOW                                                          0x0000021c
6198 #define  NV50_COMPUTE_UNK6_HIGH                                                         0x00000294
6199 #define  NV50_COMPUTE_UNK6_LOW                                                          0x00000298
6200 #define  NV50_COMPUTE_CONST_BASE_HIGH                                                   0x000002a4
6201 #define  NV50_COMPUTE_CONST_BASE_LO                                                     0x000002a8
6202 #define  NV50_COMPUTE_CONST_SIZE_SEG                                                    0x000002ac
6203 #define  NV50_COMPUTE_REG_COUNT                                                         0x000002c0
6204 #define  NV50_COMPUTE_STATUS_HIGH                                                       0x00000310
6205 #define  NV50_COMPUTE_STATUS_LOW                                                        0x00000314
6206 #define  NV50_COMPUTE_EXECUTE                                                           0x0000031c
6207 #define  NV50_COMPUTE_USER_PARAM_COUNT                                                  0x00000374
6208 #define  NV50_COMPUTE_GRIDDIM_YX                                                        0x000003a4
6209 #define  NV50_COMPUTE_SHARED_SIZE                                                       0x000003a8
6210 #define  NV50_COMPUTE_BLOCKDIM_YX                                                       0x000003ac
6211 #define  NV50_COMPUTE_BLOCKDIM_Z                                                        0x000003b0
6212 #define  NV50_COMPUTE_CALL_ADDRESS                                                      0x000003b4
6213 #define  NV50_COMPUTE_GLOBAL_BASE_HIGH(x)                                               (0x00000400+((x)*32))
6214 #define  NV50_COMPUTE_GLOBAL_BASE_HIGH__SIZE                                            0x00000010
6215 #define  NV50_COMPUTE_GLOBAL_BASE_LOW(x)                                                (0x00000404+((x)*32))
6216 #define  NV50_COMPUTE_GLOBAL_BASE_LOW__SIZE                                             0x00000010
6217 #define  NV50_COMPUTE_GLOBAL_LIMIT_HIGH(x)                                              (0x00000408+((x)*32))
6218 #define  NV50_COMPUTE_GLOBAL_LIMIT_HIGH__SIZE                                           0x00000010
6219 #define  NV50_COMPUTE_GLOBAL_LIMIT_LOW(x)                                               (0x0000040c+((x)*32))
6220 #define  NV50_COMPUTE_GLOBAL_LIMIT_LOW__SIZE                                            0x00000010
6221 #define  NV50_COMPUTE_GLOBAL_UNK(x)                                                     (0x00000410+((x)*32))
6222 #define  NV50_COMPUTE_GLOBAL_UNK__SIZE                                                  0x00000010
6223 #define  NV50_COMPUTE_USER_PARAM(x)                                                     (0x00000600+((x)*4))
6224 #define  NV50_COMPUTE_USER_PARAM__SIZE                                                  0x00000040
6225
6226
6227 #define NV54TCL                                                                         0x00008297
6228
6229
6230
6231 #endif /* NOUVEAU_REG_H */