Merge remote branch 'origin/master' into libdrm
[glsdk/libdrm.git] / nouveau / nouveau_class.h
1 /*************************************************************************
3    Autogenerated file, do not edit !
5 **************************************************************************
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,
23 All Rights Reserved.
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:
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.
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.
45 *************************************************************************/
48 #ifndef NOUVEAU_REG_H
49 #define NOUVEAU_REG_H 1
52 #define NV01_ROOT                                                                       0x00000001
56 #define NV01_CONTEXT_DMA                                                                0x00000002
60 #define NV01_DEVICE                                                                     0x00000003
64 #define NV01_TIMER                                                                      0x00000004
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
74 #define NV_IMAGE_STENCIL                                                                0x00000010
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
83 #define NV_IMAGE_BLEND_AND                                                              0x00000011
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
93 #define NV01_CONTEXT_BETA1                                                              0x00000012
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
101 #define NV_IMAGE_ROP_AND                                                                0x00000013
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
111 #define NV_IMAGE_COLOR_KEY                                                              0x00000015
115 #define NV01_CONTEXT_COLOR_KEY                                                          0x00000017
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
132 #define NV01_CONTEXT_PATTERN                                                            0x00000018
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
146 #define NV01_CONTEXT_CLIP_RECTANGLE                                                     0x00000019
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
163 #define NV01_RENDER_SOLID_LINE                                                          0x0000001c
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
231 #define NV01_RENDER_SOLID_TRIANGLE                                                      0x0000001d
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
312 #define NV01_RENDER_SOLID_RECTANGLE                                                     0x0000001e
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
346 #define NV01_IMAGE_BLIT                                                                 0x0000001f
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
377 #define NV01_IMAGE_FROM_CPU                                                             0x00000021
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
421 #define NV01_NULL                                                                       0x00000030
425 #define NV03_STRETCHED_IMAGE_FROM_CPU                                                   0x00000036
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
464 #define NV03_SCALED_IMAGE_FROM_MEMORY                                                   0x00000037
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
535 #define NV04_DVD_SUBPICTURE                                                             0x00000038
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
598 #define NV04_MEMORY_TO_MEMORY_FORMAT                                                    0x00000039
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
619 #define NV01_MEMORY_LOCAL_BANKED                                                        0x0000003d
623 #define NV01_MAPPING_SYSTEM                                                             0x0000003e
627 #define NV03_MEMORY_LOCAL_CURSOR                                                        0x0000003f
631 #define NV01_MEMORY_LOCAL_LINEAR                                                        0x00000040
635 #define NV01_MAPPING_LOCAL                                                              0x00000041
639 #define NV04_CONTEXT_SURFACES_2D                                                        0x00000042
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
668 #define NV03_CONTEXT_ROP                                                                0x00000043
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
712 #define NV04_IMAGE_PATTERN                                                              0x00000044
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
783 #define NV03_VIDEO_LUT_CURSOR_DAC                                                       0x00000046
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
855 #define NV03_DX3_TEXTURED_TRIANGLE                                                      0x00000048
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
950 #define NV04_GDI_RECTANGLE_TEXT                                                         0x0000004a
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
1115 #define NV03_GDI_RECTANGLE_TEXT                                                         0x0000004b
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
1241 #define NV04_SWIZZLED_SURFACE                                                           0x00000052
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
1268 #define NV04_CONTEXT_SURFACES_3D                                                        0x00000053
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
1318 #define NV04_DX5_TEXTURED_TRIANGLE                                                      0x00000054
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
1492 #define NV04_DX6_MULTITEX_TRIANGLE                                                      0x00000055
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
1743 #define NV10TCL                                                                         0x00000056
1745 #define  NV10TCL_NOP                                                                    0x00000100
1746 #define  NV10TCL_NOTIFY                                                                 0x00000104
1747 #define  NV10TCL_DMA_NOTIFY                                                             0x00000180
1748 #define  NV10TCL_DMA_IN_MEMORY0                                                         0x00000184
1749 #define  NV10TCL_DMA_IN_MEMORY1                                                         0x00000188
1750 #define  NV10TCL_DMA_VTXBUF0                                                            0x0000018c
1751 #define  NV10TCL_DMA_IN_MEMORY2                                                         0x00000194
1752 #define  NV10TCL_DMA_IN_MEMORY3                                                         0x00000198
1753 #define  NV10TCL_RT_HORIZ                                                               0x00000200
1754 #define   NV10TCL_RT_HORIZ_X_SHIFT                                                      0
1755 #define   NV10TCL_RT_HORIZ_X_MASK                                                       0x0000ffff
1756 #define   NV10TCL_RT_HORIZ_W_SHIFT                                                      16
1757 #define   NV10TCL_RT_HORIZ_W_MASK                                                       0xffff0000
1758 #define  NV10TCL_RT_VERT                                                                0x00000204
1759 #define   NV10TCL_RT_VERT_Y_SHIFT                                                       0
1760 #define   NV10TCL_RT_VERT_Y_MASK                                                        0x0000ffff
1761 #define   NV10TCL_RT_VERT_H_SHIFT                                                       16
1762 #define   NV10TCL_RT_VERT_H_MASK                                                        0xffff0000
1763 #define  NV10TCL_RT_FORMAT                                                              0x00000208
1764 #define   NV10TCL_RT_FORMAT_TYPE_SHIFT                                                  8
1765 #define   NV10TCL_RT_FORMAT_TYPE_MASK                                                   0x00000f00
1766 #define    NV10TCL_RT_FORMAT_TYPE_LINEAR                                                0x00000100
1767 #define    NV10TCL_RT_FORMAT_TYPE_SWIZZLED                                              0x00000200
1768 #define   NV10TCL_RT_FORMAT_COLOR_SHIFT                                                 0
1769 #define   NV10TCL_RT_FORMAT_COLOR_MASK                                                  0x0000001f
1770 #define    NV10TCL_RT_FORMAT_COLOR_R5G6B5                                               0x00000003
1771 #define    NV10TCL_RT_FORMAT_COLOR_X8R8G8B8                                             0x00000005
1772 #define    NV10TCL_RT_FORMAT_COLOR_A8R8G8B8                                             0x00000008
1773 #define    NV10TCL_RT_FORMAT_COLOR_B8                                                   0x00000009
1774 #define    NV10TCL_RT_FORMAT_COLOR_UNKNOWN                                              0x0000000d
1775 #define    NV10TCL_RT_FORMAT_COLOR_X8B8G8R8                                             0x0000000f
1776 #define    NV10TCL_RT_FORMAT_COLOR_A8B8G8R8                                             0x00000010
1777 #define  NV10TCL_RT_PITCH                                                               0x0000020c
1778 #define   NV10TCL_RT_PITCH_COLOR_PITCH_SHIFT                                            0
1779 #define   NV10TCL_RT_PITCH_COLOR_PITCH_MASK                                             0x0000ffff
1780 #define   NV10TCL_RT_PITCH_ZETA_PITCH_SHIFT                                             16
1781 #define   NV10TCL_RT_PITCH_ZETA_PITCH_MASK                                              0xffff0000
1782 #define  NV10TCL_COLOR_OFFSET                                                           0x00000210
1783 #define  NV10TCL_ZETA_OFFSET                                                            0x00000214
1784 #define  NV10TCL_TX_OFFSET(x)                                                           (0x00000218+((x)*4))
1785 #define  NV10TCL_TX_OFFSET__SIZE                                                        0x00000002
1786 #define  NV10TCL_TX_FORMAT(x)                                                           (0x00000220+((x)*4))
1787 #define  NV10TCL_TX_FORMAT__SIZE                                                        0x00000002
1788 #define   NV10TCL_TX_FORMAT_DMA0                                                        (1 <<  0)
1789 #define   NV10TCL_TX_FORMAT_DMA1                                                        (1 <<  1)
1790 #define   NV10TCL_TX_FORMAT_CUBE_MAP                                                    (1 <<  2)
1791 #define   NV10TCL_TX_FORMAT_FORMAT_SHIFT                                                7
1792 #define   NV10TCL_TX_FORMAT_FORMAT_MASK                                                 0x00000780
1793 #define    NV10TCL_TX_FORMAT_FORMAT_L8                                                  0x00000000
1794 #define    NV10TCL_TX_FORMAT_FORMAT_A8                                                  0x00000080
1795 #define    NV10TCL_TX_FORMAT_FORMAT_A1R5G5B5                                            0x00000100
1796 #define    NV10TCL_TX_FORMAT_FORMAT_A8_RECT                                             0x00000180
1797 #define    NV10TCL_TX_FORMAT_FORMAT_A4R4G4B4                                            0x00000200
1798 #define    NV10TCL_TX_FORMAT_FORMAT_R5G6B5                                              0x00000280
1799 #define    NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8                                            0x00000300
1800 #define    NV10TCL_TX_FORMAT_FORMAT_X8R8G8B8                                            0x00000380
1801 #define    NV10TCL_TX_FORMAT_FORMAT_INDEX8                                              0x00000580
1802 #define    NV10TCL_TX_FORMAT_FORMAT_DXT1                                                0x00000600
1803 #define    NV10TCL_TX_FORMAT_FORMAT_DXT3                                                0x00000700
1804 #define    NV10TCL_TX_FORMAT_FORMAT_DXT5                                                0x00000780
1805 #define    NV10TCL_TX_FORMAT_FORMAT_A1R5G5B5_RECT                                       0x00000800
1806 #define    NV10TCL_TX_FORMAT_FORMAT_R5G6B5_RECT                                         0x00000880
1807 #define    NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8_RECT                                       0x00000900
1808 #define    NV10TCL_TX_FORMAT_FORMAT_L8_RECT                                             0x00000980
1809 #define    NV10TCL_TX_FORMAT_FORMAT_A8L8                                                0x00000d00
1810 #define    NV10TCL_TX_FORMAT_FORMAT_A8_RECT2                                            0x00000d80
1811 #define    NV10TCL_TX_FORMAT_FORMAT_A4R4G4B4_RECT                                       0x00000e80
1812 #define    NV10TCL_TX_FORMAT_FORMAT_R8G8B8_RECT                                         0x00000f00
1813 #define    NV10TCL_TX_FORMAT_FORMAT_L8A8_RECT                                           0x00001000
1814 #define    NV10TCL_TX_FORMAT_FORMAT_DSDT                                                0x00001400
1815 #define    NV10TCL_TX_FORMAT_FORMAT_A16                                                 0x00001900
1816 #define    NV10TCL_TX_FORMAT_FORMAT_HILO16                                              0x00001980
1817 #define    NV10TCL_TX_FORMAT_FORMAT_A16_RECT                                            0x00001a80
1818 #define    NV10TCL_TX_FORMAT_FORMAT_HILO16_RECT                                         0x00001b00
1819 #define    NV10TCL_TX_FORMAT_FORMAT_HILO8                                               0x00002200
1820 #define    NV10TCL_TX_FORMAT_FORMAT_SIGNED_HILO8                                        0x00002280
1821 #define    NV10TCL_TX_FORMAT_FORMAT_HILO8_RECT                                          0x00002300
1822 #define    NV10TCL_TX_FORMAT_FORMAT_SIGNED_HILO8_RECT                                   0x00002380
1823 #define    NV10TCL_TX_FORMAT_FORMAT_FLOAT_RGBA16_NV                                     0x00002500
1824 #define    NV10TCL_TX_FORMAT_FORMAT_FLOAT_RGBA32_NV                                     0x00002580
1825 #define    NV10TCL_TX_FORMAT_FORMAT_FLOAT_R32_NV                                        0x00002600
1826 #define   NV10TCL_TX_FORMAT_NPOT                                                        (1 << 11)
1827 #define   NV10TCL_TX_FORMAT_MIPMAP                                                      (1 << 15)
1828 #define   NV10TCL_TX_FORMAT_BASE_SIZE_U_SHIFT                                           16
1829 #define   NV10TCL_TX_FORMAT_BASE_SIZE_U_MASK                                            0x000f0000
1830 #define   NV10TCL_TX_FORMAT_BASE_SIZE_V_SHIFT                                           20
1831 #define   NV10TCL_TX_FORMAT_BASE_SIZE_V_MASK                                            0x00f00000
1832 #define   NV10TCL_TX_FORMAT_WRAP_S_SHIFT                                                24
1833 #define   NV10TCL_TX_FORMAT_WRAP_S_MASK                                                 0x0f000000
1834 #define    NV10TCL_TX_FORMAT_WRAP_S_REPEAT                                              0x01000000
1835 #define    NV10TCL_TX_FORMAT_WRAP_S_MIRRORED_REPEAT                                     0x02000000
1836 #define    NV10TCL_TX_FORMAT_WRAP_S_CLAMP_TO_EDGE                                       0x03000000
1837 #define    NV10TCL_TX_FORMAT_WRAP_S_CLAMP_TO_BORDER                                     0x04000000
1838 #define    NV10TCL_TX_FORMAT_WRAP_S_CLAMP                                               0x05000000
1839 #define   NV10TCL_TX_FORMAT_WRAP_T_SHIFT                                                28
1840 #define   NV10TCL_TX_FORMAT_WRAP_T_MASK                                                 0xf0000000
1841 #define    NV10TCL_TX_FORMAT_WRAP_T_REPEAT                                              0x10000000
1842 #define    NV10TCL_TX_FORMAT_WRAP_T_MIRRORED_REPEAT                                     0x20000000
1843 #define    NV10TCL_TX_FORMAT_WRAP_T_CLAMP_TO_EDGE                                       0x30000000
1844 #define    NV10TCL_TX_FORMAT_WRAP_T_CLAMP_TO_BORDER                                     0x40000000
1845 #define    NV10TCL_TX_FORMAT_WRAP_T_CLAMP                                               0x50000000
1846 #define  NV10TCL_TX_ENABLE(x)                                                           (0x00000228+((x)*4))
1847 #define  NV10TCL_TX_ENABLE__SIZE                                                        0x00000002
1848 #define   NV10TCL_TX_ENABLE_ANISOTROPY_SHIFT                                            4
1849 #define   NV10TCL_TX_ENABLE_ANISOTROPY_MASK                                             0x00000030
1850 #define   NV10TCL_TX_ENABLE_MIPMAP_MAX_LOD_SHIFT                                        14
1851 #define   NV10TCL_TX_ENABLE_MIPMAP_MAX_LOD_MASK                                         0x0003c000
1852 #define   NV10TCL_TX_ENABLE_MIPMAP_MIN_LOD_SHIFT                                        26
1853 #define   NV10TCL_TX_ENABLE_MIPMAP_MIN_LOD_MASK                                         0x3c000000
1854 #define   NV10TCL_TX_ENABLE_ENABLE                                                      (1 << 30)
1855 #define  NV10TCL_TX_NPOT_PITCH(x)                                                       (0x00000230+((x)*4))
1856 #define  NV10TCL_TX_NPOT_PITCH__SIZE                                                    0x00000002
1857 #define   NV10TCL_TX_NPOT_PITCH_PITCH_SHIFT                                             16
1858 #define   NV10TCL_TX_NPOT_PITCH_PITCH_MASK                                              0xffff0000
1859 #define  NV10TCL_TX_NPOT_SIZE(x)                                                        (0x00000240+((x)*4))
1860 #define  NV10TCL_TX_NPOT_SIZE__SIZE                                                     0x00000002
1861 #define   NV10TCL_TX_NPOT_SIZE_H_SHIFT                                                  0
1862 #define   NV10TCL_TX_NPOT_SIZE_H_MASK                                                   0x0000ffff
1863 #define   NV10TCL_TX_NPOT_SIZE_W_SHIFT                                                  16
1864 #define   NV10TCL_TX_NPOT_SIZE_W_MASK                                                   0xffff0000
1865 #define  NV10TCL_TX_FILTER(x)                                                           (0x00000248+((x)*4))
1866 #define  NV10TCL_TX_FILTER__SIZE                                                        0x00000002
1867 #define   NV10TCL_TX_FILTER_LOD_BIAS_SHIFT                                              8
1868 #define   NV10TCL_TX_FILTER_LOD_BIAS_MASK                                               0x00000f00
1869 #define   NV10TCL_TX_FILTER_MINIFY_SHIFT                                                24
1870 #define   NV10TCL_TX_FILTER_MINIFY_MASK                                                 0x0f000000
1871 #define    NV10TCL_TX_FILTER_MINIFY_NEAREST                                             0x01000000
1872 #define    NV10TCL_TX_FILTER_MINIFY_LINEAR                                              0x02000000
1873 #define    NV10TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST                              0x03000000
1874 #define    NV10TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST                               0x04000000
1875 #define    NV10TCL_TX_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR                               0x05000000
1876 #define    NV10TCL_TX_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR                                0x06000000
1877 #define   NV10TCL_TX_FILTER_MAGNIFY_SHIFT                                               28
1878 #define   NV10TCL_TX_FILTER_MAGNIFY_MASK                                                0xf0000000
1879 #define    NV10TCL_TX_FILTER_MAGNIFY_NEAREST                                            0x10000000
1880 #define    NV10TCL_TX_FILTER_MAGNIFY_LINEAR                                             0x20000000
1881 #define  NV10TCL_TX_PALETTE_OFFSET(x)                                                   (0x00000250+((x)*4))
1882 #define  NV10TCL_TX_PALETTE_OFFSET__SIZE                                                0x00000002
1883 #define  NV10TCL_RC_IN_ALPHA(x)                                                         (0x00000260+((x)*4))
1884 #define  NV10TCL_RC_IN_ALPHA__SIZE                                                      0x00000002
1885 #define   NV10TCL_RC_IN_ALPHA_D_INPUT_SHIFT                                             0
1886 #define   NV10TCL_RC_IN_ALPHA_D_INPUT_MASK                                              0x0000000f
1887 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_ZERO                                             0x00000000
1888 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR0_NV                               0x00000001
1889 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR1_NV                               0x00000002
1890 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_FOG                                              0x00000003
1891 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_PRIMARY_COLOR_NV                                 0x00000004
1892 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_SECONDARY_COLOR_NV                               0x00000005
1893 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE0_ARB                                     0x00000008
1894 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE1_ARB                                     0x00000009
1895 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0_NV                                        0x0000000c
1896 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE1_NV                                        0x0000000d
1897 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                   0x0000000e
1898 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_E_TIMES_F_NV                                     0x0000000f
1899 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE2_ARB                                     0x0000000a
1900 #define    NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE3_ARB                                     0x0000000b
1901 #define   NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE                                         (1 <<  4)
1902 #define    NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_BLUE                                   0x00000000
1903 #define    NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_ALPHA                                  0x00000010
1904 #define   NV10TCL_RC_IN_ALPHA_D_MAPPING_SHIFT                                           5
1905 #define   NV10TCL_RC_IN_ALPHA_D_MAPPING_MASK                                            0x000000e0
1906 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_IDENTITY_NV                           0x00000000
1907 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_INVERT_NV                             0x00000020
1908 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NORMAL_NV                               0x00000040
1909 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NEGATE_NV                               0x00000060
1910 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NORMAL_NV                            0x00000080
1911 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NEGATE_NV                            0x000000a0
1912 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_IDENTITY_NV                             0x000000c0
1913 #define    NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_NEGATE_NV                               0x000000e0
1914 #define   NV10TCL_RC_IN_ALPHA_C_INPUT_SHIFT                                             8
1915 #define   NV10TCL_RC_IN_ALPHA_C_INPUT_MASK                                              0x00000f00
1916 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_ZERO                                             0x00000000
1917 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR0_NV                               0x00000100
1918 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR1_NV                               0x00000200
1919 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_FOG                                              0x00000300
1920 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_PRIMARY_COLOR_NV                                 0x00000400
1921 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_SECONDARY_COLOR_NV                               0x00000500
1922 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE0_ARB                                     0x00000800
1923 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE1_ARB                                     0x00000900
1924 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0_NV                                        0x00000c00
1925 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE1_NV                                        0x00000d00
1926 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                   0x00000e00
1927 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_E_TIMES_F_NV                                     0x00000f00
1928 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE2_ARB                                     0x00000a00
1929 #define    NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE3_ARB                                     0x00000b00
1930 #define   NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE                                         (1 << 12)
1931 #define    NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_BLUE                                   0x00000000
1932 #define    NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_ALPHA                                  0x00001000
1933 #define   NV10TCL_RC_IN_ALPHA_C_MAPPING_SHIFT                                           13
1934 #define   NV10TCL_RC_IN_ALPHA_C_MAPPING_MASK                                            0x0000e000
1935 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_IDENTITY_NV                           0x00000000
1936 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_INVERT_NV                             0x00002000
1937 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NORMAL_NV                               0x00004000
1938 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NEGATE_NV                               0x00006000
1939 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NORMAL_NV                            0x00008000
1940 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NEGATE_NV                            0x0000a000
1941 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_IDENTITY_NV                             0x0000c000
1942 #define    NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_NEGATE_NV                               0x0000e000
1943 #define   NV10TCL_RC_IN_ALPHA_B_INPUT_SHIFT                                             16
1944 #define   NV10TCL_RC_IN_ALPHA_B_INPUT_MASK                                              0x000f0000
1945 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_ZERO                                             0x00000000
1946 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR0_NV                               0x00010000
1947 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR1_NV                               0x00020000
1948 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_FOG                                              0x00030000
1949 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_PRIMARY_COLOR_NV                                 0x00040000
1950 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_SECONDARY_COLOR_NV                               0x00050000
1951 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE0_ARB                                     0x00080000
1952 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE1_ARB                                     0x00090000
1953 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0_NV                                        0x000c0000
1954 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE1_NV                                        0x000d0000
1955 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                   0x000e0000
1956 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_E_TIMES_F_NV                                     0x000f0000
1957 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE2_ARB                                     0x000a0000
1958 #define    NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE3_ARB                                     0x000b0000
1959 #define   NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE                                         (1 << 20)
1960 #define    NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_BLUE                                   0x00000000
1961 #define    NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_ALPHA                                  0x00100000
1962 #define   NV10TCL_RC_IN_ALPHA_B_MAPPING_SHIFT                                           21
1963 #define   NV10TCL_RC_IN_ALPHA_B_MAPPING_MASK                                            0x00e00000
1964 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_IDENTITY_NV                           0x00000000
1965 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_INVERT_NV                             0x00200000
1966 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NORMAL_NV                               0x00400000
1967 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NEGATE_NV                               0x00600000
1968 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NORMAL_NV                            0x00800000
1969 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NEGATE_NV                            0x00a00000
1970 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_IDENTITY_NV                             0x00c00000
1971 #define    NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_NEGATE_NV                               0x00e00000
1972 #define   NV10TCL_RC_IN_ALPHA_A_INPUT_SHIFT                                             24
1973 #define   NV10TCL_RC_IN_ALPHA_A_INPUT_MASK                                              0x0f000000
1974 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_ZERO                                             0x00000000
1975 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR0_NV                               0x01000000
1976 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR1_NV                               0x02000000
1977 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_FOG                                              0x03000000
1978 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_PRIMARY_COLOR_NV                                 0x04000000
1979 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_SECONDARY_COLOR_NV                               0x05000000
1980 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE0_ARB                                     0x08000000
1981 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE1_ARB                                     0x09000000
1982 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0_NV                                        0x0c000000
1983 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE1_NV                                        0x0d000000
1984 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                   0x0e000000
1985 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_E_TIMES_F_NV                                     0x0f000000
1986 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE2_ARB                                     0x0a000000
1987 #define    NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE3_ARB                                     0x0b000000
1988 #define   NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE                                         (1 << 28)
1989 #define    NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_BLUE                                   0x00000000
1990 #define    NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_ALPHA                                  0x10000000
1991 #define   NV10TCL_RC_IN_ALPHA_A_MAPPING_SHIFT                                           29
1992 #define   NV10TCL_RC_IN_ALPHA_A_MAPPING_MASK                                            0xe0000000
1993 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_IDENTITY_NV                           0x00000000
1994 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_INVERT_NV                             0x20000000
1995 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NORMAL_NV                               0x40000000
1996 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NEGATE_NV                               0x60000000
1997 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NORMAL_NV                            0x80000000
1998 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NEGATE_NV                            0xa0000000
1999 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_IDENTITY_NV                             0xc0000000
2000 #define    NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_NEGATE_NV                               0xe0000000
2001 #define  NV10TCL_RC_IN_RGB(x)                                                           (0x00000268+((x)*4))
2002 #define  NV10TCL_RC_IN_RGB__SIZE                                                        0x00000002
2003 #define   NV10TCL_RC_IN_RGB_D_INPUT_SHIFT                                               0
2004 #define   NV10TCL_RC_IN_RGB_D_INPUT_MASK                                                0x0000000f
2005 #define    NV10TCL_RC_IN_RGB_D_INPUT_ZERO                                               0x00000000
2006 #define    NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR0_NV                                 0x00000001
2007 #define    NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR1_NV                                 0x00000002
2008 #define    NV10TCL_RC_IN_RGB_D_INPUT_FOG                                                0x00000003
2009 #define    NV10TCL_RC_IN_RGB_D_INPUT_PRIMARY_COLOR_NV                                   0x00000004
2010 #define    NV10TCL_RC_IN_RGB_D_INPUT_SECONDARY_COLOR_NV                                 0x00000005
2011 #define    NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE0_ARB                                       0x00000008
2012 #define    NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE1_ARB                                       0x00000009
2013 #define    NV10TCL_RC_IN_RGB_D_INPUT_SPARE0_NV                                          0x0000000c
2014 #define    NV10TCL_RC_IN_RGB_D_INPUT_SPARE1_NV                                          0x0000000d
2015 #define    NV10TCL_RC_IN_RGB_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x0000000e
2016 #define    NV10TCL_RC_IN_RGB_D_INPUT_E_TIMES_F_NV                                       0x0000000f
2017 #define    NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE2_ARB                                       0x0000000a
2018 #define    NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE3_ARB                                       0x0000000b
2019 #define   NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE                                           (1 <<  4)
2020 #define    NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_RGB                                      0x00000000
2021 #define    NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_ALPHA                                    0x00000010
2022 #define   NV10TCL_RC_IN_RGB_D_MAPPING_SHIFT                                             5
2023 #define   NV10TCL_RC_IN_RGB_D_MAPPING_MASK                                              0x000000e0
2024 #define    NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2025 #define    NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_INVERT_NV                               0x00000020
2026 #define    NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NORMAL_NV                                 0x00000040
2027 #define    NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NEGATE_NV                                 0x00000060
2028 #define    NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NORMAL_NV                              0x00000080
2029 #define    NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NEGATE_NV                              0x000000a0
2030 #define    NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_IDENTITY_NV                               0x000000c0
2031 #define    NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_NEGATE_NV                                 0x000000e0
2032 #define   NV10TCL_RC_IN_RGB_C_INPUT_SHIFT                                               8
2033 #define   NV10TCL_RC_IN_RGB_C_INPUT_MASK                                                0x00000f00
2034 #define    NV10TCL_RC_IN_RGB_C_INPUT_ZERO                                               0x00000000
2035 #define    NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR0_NV                                 0x00000100
2036 #define    NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR1_NV                                 0x00000200
2037 #define    NV10TCL_RC_IN_RGB_C_INPUT_FOG                                                0x00000300
2038 #define    NV10TCL_RC_IN_RGB_C_INPUT_PRIMARY_COLOR_NV                                   0x00000400
2039 #define    NV10TCL_RC_IN_RGB_C_INPUT_SECONDARY_COLOR_NV                                 0x00000500
2040 #define    NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE0_ARB                                       0x00000800
2041 #define    NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE1_ARB                                       0x00000900
2042 #define    NV10TCL_RC_IN_RGB_C_INPUT_SPARE0_NV                                          0x00000c00
2043 #define    NV10TCL_RC_IN_RGB_C_INPUT_SPARE1_NV                                          0x00000d00
2044 #define    NV10TCL_RC_IN_RGB_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x00000e00
2045 #define    NV10TCL_RC_IN_RGB_C_INPUT_E_TIMES_F_NV                                       0x00000f00
2046 #define    NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE2_ARB                                       0x00000a00
2047 #define    NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE3_ARB                                       0x00000b00
2048 #define   NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE                                           (1 << 12)
2049 #define    NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_RGB                                      0x00000000
2050 #define    NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_ALPHA                                    0x00001000
2051 #define   NV10TCL_RC_IN_RGB_C_MAPPING_SHIFT                                             13
2052 #define   NV10TCL_RC_IN_RGB_C_MAPPING_MASK                                              0x0000e000
2053 #define    NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2054 #define    NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_INVERT_NV                               0x00002000
2055 #define    NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NORMAL_NV                                 0x00004000
2056 #define    NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NEGATE_NV                                 0x00006000
2057 #define    NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NORMAL_NV                              0x00008000
2058 #define    NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NEGATE_NV                              0x0000a000
2059 #define    NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_IDENTITY_NV                               0x0000c000
2060 #define    NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_NEGATE_NV                                 0x0000e000
2061 #define   NV10TCL_RC_IN_RGB_B_INPUT_SHIFT                                               16
2062 #define   NV10TCL_RC_IN_RGB_B_INPUT_MASK                                                0x000f0000
2063 #define    NV10TCL_RC_IN_RGB_B_INPUT_ZERO                                               0x00000000
2064 #define    NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR0_NV                                 0x00010000
2065 #define    NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR1_NV                                 0x00020000
2066 #define    NV10TCL_RC_IN_RGB_B_INPUT_FOG                                                0x00030000
2067 #define    NV10TCL_RC_IN_RGB_B_INPUT_PRIMARY_COLOR_NV                                   0x00040000
2068 #define    NV10TCL_RC_IN_RGB_B_INPUT_SECONDARY_COLOR_NV                                 0x00050000
2069 #define    NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE0_ARB                                       0x00080000
2070 #define    NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE1_ARB                                       0x00090000
2071 #define    NV10TCL_RC_IN_RGB_B_INPUT_SPARE0_NV                                          0x000c0000
2072 #define    NV10TCL_RC_IN_RGB_B_INPUT_SPARE1_NV                                          0x000d0000
2073 #define    NV10TCL_RC_IN_RGB_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x000e0000
2074 #define    NV10TCL_RC_IN_RGB_B_INPUT_E_TIMES_F_NV                                       0x000f0000
2075 #define    NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE2_ARB                                       0x000a0000
2076 #define    NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE3_ARB                                       0x000b0000
2077 #define   NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE                                           (1 << 20)
2078 #define    NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_RGB                                      0x00000000
2079 #define    NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_ALPHA                                    0x00100000
2080 #define   NV10TCL_RC_IN_RGB_B_MAPPING_SHIFT                                             21
2081 #define   NV10TCL_RC_IN_RGB_B_MAPPING_MASK                                              0x00e00000
2082 #define    NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2083 #define    NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_INVERT_NV                               0x00200000
2084 #define    NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NORMAL_NV                                 0x00400000
2085 #define    NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NEGATE_NV                                 0x00600000
2086 #define    NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NORMAL_NV                              0x00800000
2087 #define    NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NEGATE_NV                              0x00a00000
2088 #define    NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_IDENTITY_NV                               0x00c00000
2089 #define    NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_NEGATE_NV                                 0x00e00000
2090 #define   NV10TCL_RC_IN_RGB_A_INPUT_SHIFT                                               24
2091 #define   NV10TCL_RC_IN_RGB_A_INPUT_MASK                                                0x0f000000
2092 #define    NV10TCL_RC_IN_RGB_A_INPUT_ZERO                                               0x00000000
2093 #define    NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR0_NV                                 0x01000000
2094 #define    NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR1_NV                                 0x02000000
2095 #define    NV10TCL_RC_IN_RGB_A_INPUT_FOG                                                0x03000000
2096 #define    NV10TCL_RC_IN_RGB_A_INPUT_PRIMARY_COLOR_NV                                   0x04000000
2097 #define    NV10TCL_RC_IN_RGB_A_INPUT_SECONDARY_COLOR_NV                                 0x05000000
2098 #define    NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE0_ARB                                       0x08000000
2099 #define    NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE1_ARB                                       0x09000000
2100 #define    NV10TCL_RC_IN_RGB_A_INPUT_SPARE0_NV                                          0x0c000000
2101 #define    NV10TCL_RC_IN_RGB_A_INPUT_SPARE1_NV                                          0x0d000000
2102 #define    NV10TCL_RC_IN_RGB_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV                     0x0e000000
2103 #define    NV10TCL_RC_IN_RGB_A_INPUT_E_TIMES_F_NV                                       0x0f000000
2104 #define    NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE2_ARB                                       0x0a000000
2105 #define    NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE3_ARB                                       0x0b000000
2106 #define   NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE                                           (1 << 28)
2107 #define    NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_RGB                                      0x00000000
2108 #define    NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_ALPHA                                    0x10000000
2109 #define   NV10TCL_RC_IN_RGB_A_MAPPING_SHIFT                                             29
2110 #define   NV10TCL_RC_IN_RGB_A_MAPPING_MASK                                              0xe0000000
2111 #define    NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_IDENTITY_NV                             0x00000000
2112 #define    NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_INVERT_NV                               0x20000000
2113 #define    NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NORMAL_NV                                 0x40000000
2114 #define    NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NEGATE_NV                                 0x60000000
2115 #define    NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NORMAL_NV                              0x80000000
2116 #define    NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NEGATE_NV                              0xa0000000
2117 #define    NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_IDENTITY_NV                               0xc0000000
2118 #define    NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_NEGATE_NV                                 0xe0000000
2119 #define  NV10TCL_RC_COLOR(x)                                                            (0x00000270+((x)*4))
2120 #define  NV10TCL_RC_COLOR__SIZE