Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / mesa / src / gallium / drivers / nvfx / nv30-40_3d.xml.h
bloba705a6bd3f2cfd5a50b9d82e1dd76242ef5ff8a6
1 #ifndef NV30_40_3D_XML
2 #define NV30_40_3D_XML
4 /* Autogenerated file, DO NOT EDIT manually!
6 This file was generated by the rules-ng-ng headergen tool in this git repository:
7 http://0x04.net/cgit/index.cgi/rules-ng-ng
8 git clone git://0x04.net/rules-ng-ng
10 The rules-ng-ng source files this header was generated from are:
11 - nv30-40_3d.xml ( 31709 bytes, from 2010-09-05 08:00:50)
12 - copyright.xml ( 6503 bytes, from 2010-04-10 23:15:50)
13 - nv_3ddefs.xml ( 15391 bytes, from 2010-09-05 08:00:46)
14 - nv_defs.xml ( 4437 bytes, from 2010-08-05 19:38:53)
15 - nv_object.xml ( 10424 bytes, from 2010-08-05 19:38:53)
16 - nvchipsets.xml ( 2824 bytes, from 2010-08-05 19:38:53)
18 Copyright (C) 2006-2010 by the following authors:
19 - Artur Huillet <arthur.huillet@free.fr> (ahuillet)
20 - Ben Skeggs (darktama, darktama_)
21 - B. R. <koala_br@users.sourceforge.net> (koala_br)
22 - Carlos Martin <carlosmn@users.sf.net> (carlosmn)
23 - Christoph Bumiller <e0425955@student.tuwien.ac.at> (calim, chrisbmr)
24 - Dawid Gajownik <gajownik@users.sf.net> (gajownik)
25 - Dmitry Baryshkov
26 - Dmitry Eremin-Solenikov <lumag@users.sf.net> (lumag)
27 - EdB <edb_@users.sf.net> (edb_)
28 - Erik Waling <erikwailing@users.sf.net> (erikwaling)
29 - Francisco Jerez <currojerez@riseup.net> (curro, curro_, currojerez)
30 - imirkin <imirkin@users.sf.net> (imirkin)
31 - jb17bsome <jb17bsome@bellsouth.net> (jb17bsome)
32 - Jeremy Kolb <kjeremy@users.sf.net> (kjeremy)
33 - Laurent Carlier <lordheavym@gmail.com> (lordheavy)
34 - Luca Barbieri <luca@luca-barbieri.com> (lb, lb1)
35 - Maarten Maathuis <madman2003@gmail.com> (stillunknown)
36 - Marcin Koƛcielnicki <koriakin@0x04.net> (mwk, koriakin)
37 - Mark Carey <mark.carey@gmail.com> (careym)
38 - Matthieu Castet <matthieu.castet@parrot.com> (mat-c)
39 - nvidiaman <nvidiaman@users.sf.net> (nvidiaman)
40 - Patrice Mandin <mandin.patrice@orange.fr> (pmandin, pmdata)
41 - Pekka Paalanen <pq@iki.fi> (pq, ppaalanen)
42 - Peter Popov <ironpeter@users.sf.net> (ironpeter)
43 - Richard Hughes <hughsient@users.sf.net> (hughsient)
44 - Rudi Cilibrasi <cilibrar@users.sf.net> (cilibrar)
45 - Serge Martin
46 - Simon Raffeiner
47 - Stephane Loeuillet <leroutier@users.sf.net> (leroutier)
48 - Stephane Marchesin <stephane.marchesin@gmail.com> (marcheu)
49 - sturmflut <sturmflut@users.sf.net> (sturmflut)
50 - Sylvain Munaut <tnt@246tNt.com>
51 - Victor Stinner <victor.stinner@haypocalc.com> (haypo)
52 - Wladmir van der Laan <laanwj@gmail.com> (miathan6)
53 - Younes Manton <younes.m@gmail.com> (ymanton)
55 Permission is hereby granted, free of charge, to any person obtaining
56 a copy of this software and associated documentation files (the
57 "Software"), to deal in the Software without restriction, including
58 without limitation the rights to use, copy, modify, merge, publish,
59 distribute, sublicense, and/or sell copies of the Software, and to
60 permit persons to whom the Software is furnished to do so, subject to
61 the following conditions:
63 The above copyright notice and this permission notice (including the
64 next paragraph) shall be included in all copies or substantial
65 portions of the Software.
67 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
68 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
69 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
70 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
71 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
72 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
73 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
78 #define NV30_3D_DMA_NOTIFY 0x00000180
80 #define NV30_3D_DMA_TEXTURE0 0x00000184
82 #define NV30_3D_DMA_TEXTURE1 0x00000188
84 #define NV30_3D_DMA_COLOR1 0x0000018c
86 #define NV30_3D_DMA_UNK190 0x00000190
88 #define NV30_3D_DMA_COLOR0 0x00000194
90 #define NV30_3D_DMA_ZETA 0x00000198
92 #define NV30_3D_DMA_VTXBUF0 0x0000019c
94 #define NV30_3D_DMA_VTXBUF1 0x000001a0
96 #define NV30_3D_DMA_FENCE 0x000001a4
98 #define NV30_3D_DMA_QUERY 0x000001a8
100 #define NV30_3D_DMA_UNK1AC 0x000001ac
102 #define NV30_3D_DMA_UNK1B0 0x000001b0
104 #define NV40_3D_DMA_COLOR2 0x000001b4
106 #define NV40_3D_DMA_COLOR3 0x000001b8
108 #define NV30_3D_RT_HORIZ 0x00000200
109 #define NV30_3D_RT_HORIZ_X__MASK 0x0000ffff
110 #define NV30_3D_RT_HORIZ_X__SHIFT 0
111 #define NV30_3D_RT_HORIZ_W__MASK 0xffff0000
112 #define NV30_3D_RT_HORIZ_W__SHIFT 16
114 #define NV30_3D_RT_VERT 0x00000204
115 #define NV30_3D_RT_VERT_Y__MASK 0x0000ffff
116 #define NV30_3D_RT_VERT_Y__SHIFT 0
117 #define NV30_3D_RT_VERT_H__MASK 0xffff0000
118 #define NV30_3D_RT_VERT_H__SHIFT 16
120 #define NV30_3D_RT_FORMAT 0x00000208
121 #define NV30_3D_RT_FORMAT_COLOR__MASK 0x0000001f
122 #define NV30_3D_RT_FORMAT_COLOR__SHIFT 0
123 #define NV30_3D_RT_FORMAT_COLOR_R5G6B5 0x00000003
124 #define NV30_3D_RT_FORMAT_COLOR_X8R8G8B8 0x00000005
125 #define NV30_3D_RT_FORMAT_COLOR_A8R8G8B8 0x00000008
126 #define NV30_3D_RT_FORMAT_COLOR_B8 0x00000009
127 #define NV30_3D_RT_FORMAT_COLOR_A16B16G16R16_FLOAT 0x0000000b
128 #define NV30_3D_RT_FORMAT_COLOR_A32B32G32R32_FLOAT 0x0000000c
129 #define NV30_3D_RT_FORMAT_COLOR_R32_FLOAT 0x0000000d
130 #define NV30_3D_RT_FORMAT_COLOR_UNK0D 0x0000000d
131 #define NV30_3D_RT_FORMAT_COLOR_X8B8G8R8 0x0000000f
132 #define NV30_3D_RT_FORMAT_COLOR_A8B8G8R8 0x00000010
133 #define NV30_3D_RT_FORMAT_ZETA__MASK 0x000000e0
134 #define NV30_3D_RT_FORMAT_ZETA__SHIFT 5
135 #define NV30_3D_RT_FORMAT_ZETA_Z16 0x00000020
136 #define NV30_3D_RT_FORMAT_ZETA_Z24S8 0x00000040
137 #define NV30_3D_RT_FORMAT_TYPE__MASK 0x00000f00
138 #define NV30_3D_RT_FORMAT_TYPE__SHIFT 8
139 #define NV30_3D_RT_FORMAT_TYPE_LINEAR 0x00000100
140 #define NV30_3D_RT_FORMAT_TYPE_SWIZZLED 0x00000200
141 #define NV30_3D_RT_FORMAT_LOG2_WIDTH__MASK 0x00ff0000
142 #define NV30_3D_RT_FORMAT_LOG2_WIDTH__SHIFT 16
143 #define NV30_3D_RT_FORMAT_LOG2_HEIGHT__MASK 0xff000000
144 #define NV30_3D_RT_FORMAT_LOG2_HEIGHT__SHIFT 24
146 #define NV30_3D_COLOR0_PITCH 0x0000020c
147 #define NV30_3D_COLOR0_PITCH_COLOR0__MASK 0x0000ffff
148 #define NV30_3D_COLOR0_PITCH_COLOR0__SHIFT 0
149 #define NV30_3D_COLOR0_PITCH_ZETA__MASK 0xffff0000
150 #define NV30_3D_COLOR0_PITCH_ZETA__SHIFT 16
152 #define NV40_3D_COLOR0_PITCH 0x0000020c
154 #define NV30_3D_COLOR0_OFFSET 0x00000210
156 #define NV30_3D_ZETA_OFFSET 0x00000214
158 #define NV30_3D_COLOR1_OFFSET 0x00000218
160 #define NV30_3D_COLOR1_PITCH 0x0000021c
162 #define NV30_3D_RT_ENABLE 0x00000220
163 #define NV30_3D_RT_ENABLE_COLOR0 0x00000001
164 #define NV30_3D_RT_ENABLE_COLOR1 0x00000002
165 #define NV40_3D_RT_ENABLE_COLOR2 0x00000004
166 #define NV40_3D_RT_ENABLE_COLOR3 0x00000008
167 #define NV30_3D_RT_ENABLE_MRT 0x00000010
169 #define NV40_3D_ZETA_PITCH 0x0000022c
171 #define NV30_3D_LMA_DEPTH_PITCH 0x0000022c
173 #define NV30_3D_LMA_DEPTH_OFFSET 0x00000230
175 #define NV30_3D_TEX_UNITS_ENABLE 0x0000023c
176 #define NV30_3D_TEX_UNITS_ENABLE_TX0 0x00000001
177 #define NV30_3D_TEX_UNITS_ENABLE_TX1 0x00000002
178 #define NV30_3D_TEX_UNITS_ENABLE_TX2 0x00000004
179 #define NV30_3D_TEX_UNITS_ENABLE_TX3 0x00000008
180 #define NV30_3D_TEX_UNITS_ENABLE_TX4 0x00000010
181 #define NV30_3D_TEX_UNITS_ENABLE_TX5 0x00000020
182 #define NV30_3D_TEX_UNITS_ENABLE_TX6 0x00000040
183 #define NV30_3D_TEX_UNITS_ENABLE_TX7 0x00000080
185 #define NV30_3D_TEX_MATRIX_ENABLE(i0) (0x00000240 + 0x4*(i0))
186 #define NV30_3D_TEX_MATRIX_ENABLE__ESIZE 0x00000004
187 #define NV30_3D_TEX_MATRIX_ENABLE__LEN 0x00000008
189 #define NV40_3D_COLOR2_PITCH 0x00000280
191 #define NV40_3D_COLOR3_PITCH 0x00000284
193 #define NV40_3D_COLOR2_OFFSET 0x00000288
195 #define NV40_3D_COLOR3_OFFSET 0x0000028c
197 #define NV30_3D_VIEWPORT_TX_ORIGIN 0x000002b8
198 #define NV30_3D_VIEWPORT_TX_ORIGIN_X__MASK 0x0000ffff
199 #define NV30_3D_VIEWPORT_TX_ORIGIN_X__SHIFT 0
200 #define NV30_3D_VIEWPORT_TX_ORIGIN_Y__MASK 0xffff0000
201 #define NV30_3D_VIEWPORT_TX_ORIGIN_Y__SHIFT 16
203 #define NV30_3D_VIEWPORT_CLIP_MODE 0x000002bc
205 #define NV30_3D_VIEWPORT_CLIP_HORIZ(i0) (0x000002c0 + 0x8*(i0))
206 #define NV30_3D_VIEWPORT_CLIP_HORIZ__ESIZE 0x00000008
207 #define NV30_3D_VIEWPORT_CLIP_HORIZ__LEN 0x00000008
208 #define NV30_3D_VIEWPORT_CLIP_HORIZ_L__MASK 0x0000ffff
209 #define NV30_3D_VIEWPORT_CLIP_HORIZ_L__SHIFT 0
210 #define NV30_3D_VIEWPORT_CLIP_HORIZ_R__MASK 0xffff0000
211 #define NV30_3D_VIEWPORT_CLIP_HORIZ_R__SHIFT 16
213 #define NV30_3D_VIEWPORT_CLIP_VERT(i0) (0x000002c4 + 0x8*(i0))
214 #define NV30_3D_VIEWPORT_CLIP_VERT__ESIZE 0x00000008
215 #define NV30_3D_VIEWPORT_CLIP_VERT__LEN 0x00000008
216 #define NV30_3D_VIEWPORT_CLIP_VERT_T__MASK 0x0000ffff
217 #define NV30_3D_VIEWPORT_CLIP_VERT_T__SHIFT 0
218 #define NV30_3D_VIEWPORT_CLIP_VERT_D__MASK 0xffff0000
219 #define NV30_3D_VIEWPORT_CLIP_VERT_D__SHIFT 16
221 #define NV30_3D_DITHER_ENABLE 0x00000300
223 #define NV30_3D_ALPHA_FUNC_ENABLE 0x00000304
225 #define NV30_3D_ALPHA_FUNC_FUNC 0x00000308
226 #define NV30_3D_ALPHA_FUNC_FUNC_NEVER 0x00000200
227 #define NV30_3D_ALPHA_FUNC_FUNC_LESS 0x00000201
228 #define NV30_3D_ALPHA_FUNC_FUNC_EQUAL 0x00000202
229 #define NV30_3D_ALPHA_FUNC_FUNC_LEQUAL 0x00000203
230 #define NV30_3D_ALPHA_FUNC_FUNC_GREATER 0x00000204
231 #define NV30_3D_ALPHA_FUNC_FUNC_NOTEQUAL 0x00000205
232 #define NV30_3D_ALPHA_FUNC_FUNC_GEQUAL 0x00000206
233 #define NV30_3D_ALPHA_FUNC_FUNC_ALWAYS 0x00000207
235 #define NV30_3D_ALPHA_FUNC_REF 0x0000030c
237 #define NV30_3D_BLEND_FUNC_ENABLE 0x00000310
239 #define NV30_3D_BLEND_FUNC_SRC 0x00000314
240 #define NV30_3D_BLEND_FUNC_SRC_RGB__MASK 0x0000ffff
241 #define NV30_3D_BLEND_FUNC_SRC_RGB__SHIFT 0
242 #define NV30_3D_BLEND_FUNC_SRC_RGB_ZERO 0x00000000
243 #define NV30_3D_BLEND_FUNC_SRC_RGB_ONE 0x00000001
244 #define NV30_3D_BLEND_FUNC_SRC_RGB_SRC_COLOR 0x00000300
245 #define NV30_3D_BLEND_FUNC_SRC_RGB_ONE_MINUS_SRC_COLOR 0x00000301
246 #define NV30_3D_BLEND_FUNC_SRC_RGB_SRC_ALPHA 0x00000302
247 #define NV30_3D_BLEND_FUNC_SRC_RGB_ONE_MINUS_SRC_ALPHA 0x00000303
248 #define NV30_3D_BLEND_FUNC_SRC_RGB_DST_ALPHA 0x00000304
249 #define NV30_3D_BLEND_FUNC_SRC_RGB_ONE_MINUS_DST_ALPHA 0x00000305
250 #define NV30_3D_BLEND_FUNC_SRC_RGB_DST_COLOR 0x00000306
251 #define NV30_3D_BLEND_FUNC_SRC_RGB_ONE_MINUS_DST_COLOR 0x00000307
252 #define NV30_3D_BLEND_FUNC_SRC_RGB_SRC_ALPHA_SATURATE 0x00000308
253 #define NV30_3D_BLEND_FUNC_SRC_RGB_CONSTANT_COLOR 0x00008001
254 #define NV30_3D_BLEND_FUNC_SRC_RGB_ONE_MINUS_CONSTANT_COLOR 0x00008002
255 #define NV30_3D_BLEND_FUNC_SRC_RGB_CONSTANT_ALPHA 0x00008003
256 #define NV30_3D_BLEND_FUNC_SRC_RGB_ONE_MINUS_CONSTANT_ALPHA 0x00008004
257 #define NV30_3D_BLEND_FUNC_SRC_ALPHA__MASK 0xffff0000
258 #define NV30_3D_BLEND_FUNC_SRC_ALPHA__SHIFT 16
259 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_ZERO 0x00000000
260 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_ONE 0x00010000
261 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_SRC_COLOR 0x03000000
262 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_SRC_COLOR 0x03010000
263 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_SRC_ALPHA 0x03020000
264 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_SRC_ALPHA 0x03030000
265 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_DST_ALPHA 0x03040000
266 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_DST_ALPHA 0x03050000
267 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_DST_COLOR 0x03060000
268 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_DST_COLOR 0x03070000
269 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_SRC_ALPHA_SATURATE 0x03080000
270 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_CONSTANT_COLOR 0x80010000
271 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_CONSTANT_COLOR 0x80020000
272 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_CONSTANT_ALPHA 0x80030000
273 #define NV30_3D_BLEND_FUNC_SRC_ALPHA_ONE_MINUS_CONSTANT_ALPHA 0x80040000
275 #define NV30_3D_BLEND_FUNC_DST 0x00000318
276 #define NV30_3D_BLEND_FUNC_DST_RGB__MASK 0x0000ffff
277 #define NV30_3D_BLEND_FUNC_DST_RGB__SHIFT 0
278 #define NV30_3D_BLEND_FUNC_DST_RGB_ZERO 0x00000000
279 #define NV30_3D_BLEND_FUNC_DST_RGB_ONE 0x00000001
280 #define NV30_3D_BLEND_FUNC_DST_RGB_SRC_COLOR 0x00000300
281 #define NV30_3D_BLEND_FUNC_DST_RGB_ONE_MINUS_SRC_COLOR 0x00000301
282 #define NV30_3D_BLEND_FUNC_DST_RGB_SRC_ALPHA 0x00000302
283 #define NV30_3D_BLEND_FUNC_DST_RGB_ONE_MINUS_SRC_ALPHA 0x00000303
284 #define NV30_3D_BLEND_FUNC_DST_RGB_DST_ALPHA 0x00000304
285 #define NV30_3D_BLEND_FUNC_DST_RGB_ONE_MINUS_DST_ALPHA 0x00000305
286 #define NV30_3D_BLEND_FUNC_DST_RGB_DST_COLOR 0x00000306
287 #define NV30_3D_BLEND_FUNC_DST_RGB_ONE_MINUS_DST_COLOR 0x00000307
288 #define NV30_3D_BLEND_FUNC_DST_RGB_SRC_ALPHA_SATURATE 0x00000308
289 #define NV30_3D_BLEND_FUNC_DST_RGB_CONSTANT_COLOR 0x00008001
290 #define NV30_3D_BLEND_FUNC_DST_RGB_ONE_MINUS_CONSTANT_COLOR 0x00008002
291 #define NV30_3D_BLEND_FUNC_DST_RGB_CONSTANT_ALPHA 0x00008003
292 #define NV30_3D_BLEND_FUNC_DST_RGB_ONE_MINUS_CONSTANT_ALPHA 0x00008004
293 #define NV30_3D_BLEND_FUNC_DST_ALPHA__MASK 0xffff0000
294 #define NV30_3D_BLEND_FUNC_DST_ALPHA__SHIFT 16
295 #define NV30_3D_BLEND_FUNC_DST_ALPHA_ZERO 0x00000000
296 #define NV30_3D_BLEND_FUNC_DST_ALPHA_ONE 0x00010000
297 #define NV30_3D_BLEND_FUNC_DST_ALPHA_SRC_COLOR 0x03000000
298 #define NV30_3D_BLEND_FUNC_DST_ALPHA_ONE_MINUS_SRC_COLOR 0x03010000
299 #define NV30_3D_BLEND_FUNC_DST_ALPHA_SRC_ALPHA 0x03020000
300 #define NV30_3D_BLEND_FUNC_DST_ALPHA_ONE_MINUS_SRC_ALPHA 0x03030000
301 #define NV30_3D_BLEND_FUNC_DST_ALPHA_DST_ALPHA 0x03040000
302 #define NV30_3D_BLEND_FUNC_DST_ALPHA_ONE_MINUS_DST_ALPHA 0x03050000
303 #define NV30_3D_BLEND_FUNC_DST_ALPHA_DST_COLOR 0x03060000
304 #define NV30_3D_BLEND_FUNC_DST_ALPHA_ONE_MINUS_DST_COLOR 0x03070000
305 #define NV30_3D_BLEND_FUNC_DST_ALPHA_SRC_ALPHA_SATURATE 0x03080000
306 #define NV30_3D_BLEND_FUNC_DST_ALPHA_CONSTANT_COLOR 0x80010000
307 #define NV30_3D_BLEND_FUNC_DST_ALPHA_ONE_MINUS_CONSTANT_COLOR 0x80020000
308 #define NV30_3D_BLEND_FUNC_DST_ALPHA_CONSTANT_ALPHA 0x80030000
309 #define NV30_3D_BLEND_FUNC_DST_ALPHA_ONE_MINUS_CONSTANT_ALPHA 0x80040000
311 #define NV30_3D_BLEND_COLOR 0x0000031c
312 #define NV30_3D_BLEND_COLOR_B__MASK 0x000000ff
313 #define NV30_3D_BLEND_COLOR_B__SHIFT 0
314 #define NV30_3D_BLEND_COLOR_G__MASK 0x0000ff00
315 #define NV30_3D_BLEND_COLOR_G__SHIFT 8
316 #define NV30_3D_BLEND_COLOR_R__MASK 0x00ff0000
317 #define NV30_3D_BLEND_COLOR_R__SHIFT 16
318 #define NV30_3D_BLEND_COLOR_A__MASK 0xff000000
319 #define NV30_3D_BLEND_COLOR_A__SHIFT 24
321 #define NV30_3D_BLEND_EQUATION 0x00000320
322 #define NV30_3D_BLEND_EQUATION_FUNC_ADD 0x00008006
323 #define NV30_3D_BLEND_EQUATION_MIN 0x00008007
324 #define NV30_3D_BLEND_EQUATION_MAX 0x00008008
325 #define NV30_3D_BLEND_EQUATION_FUNC_SUBTRACT 0x0000800a
326 #define NV30_3D_BLEND_EQUATION_FUNC_REVERSE_SUBTRACT 0x0000800b
328 #define NV40_3D_BLEND_EQUATION 0x00000320
329 #define NV40_3D_BLEND_EQUATION_RGB__MASK 0x0000ffff
330 #define NV40_3D_BLEND_EQUATION_RGB__SHIFT 0
331 #define NV40_3D_BLEND_EQUATION_RGB_FUNC_ADD 0x00008006
332 #define NV40_3D_BLEND_EQUATION_RGB_MIN 0x00008007
333 #define NV40_3D_BLEND_EQUATION_RGB_MAX 0x00008008
334 #define NV40_3D_BLEND_EQUATION_RGB_FUNC_SUBTRACT 0x0000800a
335 #define NV40_3D_BLEND_EQUATION_RGB_FUNC_REVERSE_SUBTRACT 0x0000800b
336 #define NV40_3D_BLEND_EQUATION_ALPHA__MASK 0xffff0000
337 #define NV40_3D_BLEND_EQUATION_ALPHA__SHIFT 16
338 #define NV40_3D_BLEND_EQUATION_ALPHA_FUNC_ADD 0x80060000
339 #define NV40_3D_BLEND_EQUATION_ALPHA_MIN 0x80070000
340 #define NV40_3D_BLEND_EQUATION_ALPHA_MAX 0x80080000
341 #define NV40_3D_BLEND_EQUATION_ALPHA_FUNC_SUBTRACT 0x800a0000
342 #define NV40_3D_BLEND_EQUATION_ALPHA_FUNC_REVERSE_SUBTRACT 0x800b0000
344 #define NV30_3D_COLOR_MASK 0x00000324
345 #define NV30_3D_COLOR_MASK_B 0x000000ff
346 #define NV30_3D_COLOR_MASK_G 0x0000ff00
347 #define NV30_3D_COLOR_MASK_R 0x00ff0000
348 #define NV30_3D_COLOR_MASK_A 0xff000000
350 #define NV30_3D_STENCIL(i0) (0x00000328 + 0x20*(i0))
351 #define NV30_3D_STENCIL__ESIZE 0x00000020
352 #define NV30_3D_STENCIL__LEN 0x00000002
354 #define NV30_3D_STENCIL_ENABLE(i0) (0x00000328 + 0x20*(i0))
356 #define NV30_3D_STENCIL_MASK(i0) (0x0000032c + 0x20*(i0))
358 #define NV30_3D_STENCIL_FUNC_FUNC(i0) (0x00000330 + 0x20*(i0))
359 #define NV30_3D_STENCIL_FUNC_FUNC_NEVER 0x00000200
360 #define NV30_3D_STENCIL_FUNC_FUNC_LESS 0x00000201
361 #define NV30_3D_STENCIL_FUNC_FUNC_EQUAL 0x00000202
362 #define NV30_3D_STENCIL_FUNC_FUNC_LEQUAL 0x00000203
363 #define NV30_3D_STENCIL_FUNC_FUNC_GREATER 0x00000204
364 #define NV30_3D_STENCIL_FUNC_FUNC_NOTEQUAL 0x00000205
365 #define NV30_3D_STENCIL_FUNC_FUNC_GEQUAL 0x00000206
366 #define NV30_3D_STENCIL_FUNC_FUNC_ALWAYS 0x00000207
368 #define NV30_3D_STENCIL_FUNC_REF(i0) (0x00000334 + 0x20*(i0))
370 #define NV30_3D_STENCIL_FUNC_MASK(i0) (0x00000338 + 0x20*(i0))
372 #define NV30_3D_STENCIL_OP_FAIL(i0) (0x0000033c + 0x20*(i0))
373 #define NV30_3D_STENCIL_OP_FAIL_ZERO 0x00000000
374 #define NV30_3D_STENCIL_OP_FAIL_INVERT 0x0000150a
375 #define NV30_3D_STENCIL_OP_FAIL_KEEP 0x00001e00
376 #define NV30_3D_STENCIL_OP_FAIL_REPLACE 0x00001e01
377 #define NV30_3D_STENCIL_OP_FAIL_INCR 0x00001e02
378 #define NV30_3D_STENCIL_OP_FAIL_DECR 0x00001e03
379 #define NV30_3D_STENCIL_OP_FAIL_INCR_WRAP 0x00008507
380 #define NV30_3D_STENCIL_OP_FAIL_DECR_WRAP 0x00008508
382 #define NV30_3D_STENCIL_OP_ZFAIL(i0) (0x00000340 + 0x20*(i0))
383 #define NV30_3D_STENCIL_OP_ZFAIL_ZERO 0x00000000
384 #define NV30_3D_STENCIL_OP_ZFAIL_INVERT 0x0000150a
385 #define NV30_3D_STENCIL_OP_ZFAIL_KEEP 0x00001e00
386 #define NV30_3D_STENCIL_OP_ZFAIL_REPLACE 0x00001e01
387 #define NV30_3D_STENCIL_OP_ZFAIL_INCR 0x00001e02
388 #define NV30_3D_STENCIL_OP_ZFAIL_DECR 0x00001e03
389 #define NV30_3D_STENCIL_OP_ZFAIL_INCR_WRAP 0x00008507
390 #define NV30_3D_STENCIL_OP_ZFAIL_DECR_WRAP 0x00008508
392 #define NV30_3D_STENCIL_OP_ZPASS(i0) (0x00000344 + 0x20*(i0))
393 #define NV30_3D_STENCIL_OP_ZPASS_ZERO 0x00000000
394 #define NV30_3D_STENCIL_OP_ZPASS_INVERT 0x0000150a
395 #define NV30_3D_STENCIL_OP_ZPASS_KEEP 0x00001e00
396 #define NV30_3D_STENCIL_OP_ZPASS_REPLACE 0x00001e01
397 #define NV30_3D_STENCIL_OP_ZPASS_INCR 0x00001e02
398 #define NV30_3D_STENCIL_OP_ZPASS_DECR 0x00001e03
399 #define NV30_3D_STENCIL_OP_ZPASS_INCR_WRAP 0x00008507
400 #define NV30_3D_STENCIL_OP_ZPASS_DECR_WRAP 0x00008508
402 #define NV30_3D_SHADE_MODEL 0x00000368
403 #define NV30_3D_SHADE_MODEL_FLAT 0x00001d00
404 #define NV30_3D_SHADE_MODEL_SMOOTH 0x00001d01
406 #define NV30_3D_FOG_ENABLE 0x0000036c
408 #define NV30_3D_FOG_COLOR 0x00000370
409 #define NV30_3D_FOG_COLOR_R__MASK 0x000000ff
410 #define NV30_3D_FOG_COLOR_R__SHIFT 0
411 #define NV30_3D_FOG_COLOR_G__MASK 0x0000ff00
412 #define NV30_3D_FOG_COLOR_G__SHIFT 8
413 #define NV30_3D_FOG_COLOR_B__MASK 0x00ff0000
414 #define NV30_3D_FOG_COLOR_B__SHIFT 16
415 #define NV30_3D_FOG_COLOR_A__MASK 0xff000000
416 #define NV30_3D_FOG_COLOR_A__SHIFT 24
418 #define NV40_3D_MRT_COLOR_MASK 0x00000370
419 #define NV40_3D_MRT_COLOR_MASK_BUFFER1_A 0x00000010
420 #define NV40_3D_MRT_COLOR_MASK_BUFFER1_R 0x00000020
421 #define NV40_3D_MRT_COLOR_MASK_BUFFER1_G 0x00000040
422 #define NV40_3D_MRT_COLOR_MASK_BUFFER1_B 0x00000080
423 #define NV40_3D_MRT_COLOR_MASK_BUFFER2_A 0x00000100
424 #define NV40_3D_MRT_COLOR_MASK_BUFFER2_R 0x00000200
425 #define NV40_3D_MRT_COLOR_MASK_BUFFER2_G 0x00000400
426 #define NV40_3D_MRT_COLOR_MASK_BUFFER2_B 0x00000800
427 #define NV40_3D_MRT_COLOR_MASK_BUFFER3_A 0x00001000
428 #define NV40_3D_MRT_COLOR_MASK_BUFFER3_R 0x00002000
429 #define NV40_3D_MRT_COLOR_MASK_BUFFER3_G 0x00004000
430 #define NV40_3D_MRT_COLOR_MASK_BUFFER3_B 0x00008000
432 #define NV30_3D_COLOR_LOGIC_OP_ENABLE 0x00000374
434 #define NV30_3D_COLOR_LOGIC_OP_OP 0x00000378
435 #define NV30_3D_COLOR_LOGIC_OP_OP_CLEAR 0x00001500
436 #define NV30_3D_COLOR_LOGIC_OP_OP_AND 0x00001501
437 #define NV30_3D_COLOR_LOGIC_OP_OP_AND_REVERSE 0x00001502
438 #define NV30_3D_COLOR_LOGIC_OP_OP_COPY 0x00001503
439 #define NV30_3D_COLOR_LOGIC_OP_OP_AND_INVERTED 0x00001504
440 #define NV30_3D_COLOR_LOGIC_OP_OP_NOOP 0x00001505
441 #define NV30_3D_COLOR_LOGIC_OP_OP_XOR 0x00001506
442 #define NV30_3D_COLOR_LOGIC_OP_OP_OR 0x00001507
443 #define NV30_3D_COLOR_LOGIC_OP_OP_NOR 0x00001508
444 #define NV30_3D_COLOR_LOGIC_OP_OP_EQUIV 0x00001509
445 #define NV30_3D_COLOR_LOGIC_OP_OP_INVERT 0x0000150a
446 #define NV30_3D_COLOR_LOGIC_OP_OP_OR_REVERSE 0x0000150b
447 #define NV30_3D_COLOR_LOGIC_OP_OP_COPY_INVERTED 0x0000150c
448 #define NV30_3D_COLOR_LOGIC_OP_OP_OR_INVERTED 0x0000150d
449 #define NV30_3D_COLOR_LOGIC_OP_OP_NAND 0x0000150e
450 #define NV30_3D_COLOR_LOGIC_OP_OP_SET 0x0000150f
452 #define NV30_3D_NORMALIZE_ENABLE 0x0000037c
454 #define NV30_3D_COLOR_MATERIAL 0x00000390
455 #define NV30_3D_COLOR_MATERIAL_FRONT_EMISSION_ENABLE 0x00000001
456 #define NV30_3D_COLOR_MATERIAL_FRONT_AMBIENT_ENABLE 0x00000004
457 #define NV30_3D_COLOR_MATERIAL_FRONT_DIFFUSE_ENABLE 0x00000010
458 #define NV30_3D_COLOR_MATERIAL_FRONT_SPECULAR_ENABLE 0x00000040
459 #define NV30_3D_COLOR_MATERIAL_BACK_EMISSION_ENABLE 0x00000100
460 #define NV30_3D_COLOR_MATERIAL_BACK_AMBIENT_ENABLE 0x00000400
461 #define NV30_3D_COLOR_MATERIAL_BACK_DIFFUSE_ENABLE 0x00001000
462 #define NV30_3D_COLOR_MATERIAL_BACK_SPECULAR_ENABLE 0x00004000
464 #define NV30_3D_DEPTH_RANGE_NEAR 0x00000394
466 #define NV30_3D_DEPTH_RANGE_FAR 0x00000398
468 #define NV30_3D_COLOR_MATERIAL_FRONT 0x000003a0
471 #define NV30_3D_COLOR_MATERIAL_FRONT_R 0x000003a0
473 #define NV30_3D_COLOR_MATERIAL_FRONT_G 0x000003a4
475 #define NV30_3D_COLOR_MATERIAL_FRONT_B 0x000003a8
477 #define NV30_3D_COLOR_MATERIAL_FRONT_A 0x000003ac
479 #define NV40_3D_MIPMAP_ROUNDING 0x000003b0
480 #define NV40_3D_MIPMAP_ROUNDING_MODE__MASK 0x00100000
481 #define NV40_3D_MIPMAP_ROUNDING_MODE__SHIFT 20
482 #define NV40_3D_MIPMAP_ROUNDING_MODE_UP 0x00000000
483 #define NV40_3D_MIPMAP_ROUNDING_MODE_DOWN 0x00100000
485 #define NV30_3D_LINE_WIDTH 0x000003b8
487 #define NV30_3D_LINE_SMOOTH_ENABLE 0x000003bc
491 #define NV30_3D_TEX_GEN_MODE(i0, i1) (0x00000400 + 0x10*(i0) + 0x4*(i1))
492 #define NV30_3D_TEX_GEN_MODE__ESIZE 0x00000004
493 #define NV30_3D_TEX_GEN_MODE__LEN 0x00000004
494 #define NV30_3D_TEX_GEN_MODE_FALSE 0x00000000
495 #define NV30_3D_TEX_GEN_MODE_EYE_LINEAR 0x00002400
496 #define NV30_3D_TEX_GEN_MODE_OBJECT_LINEAR 0x00002401
497 #define NV30_3D_TEX_GEN_MODE_SPHERE_MAP 0x00002402
498 #define NV30_3D_TEX_GEN_MODE_NORMAL_MAP 0x00008511
499 #define NV30_3D_TEX_GEN_MODE_REFLECTION_MAP 0x00008512
501 #define NV30_3D_MODELVIEW_MATRIX(i0) (0x00000480 + 0x4*(i0))
502 #define NV30_3D_MODELVIEW_MATRIX__ESIZE 0x00000004
503 #define NV30_3D_MODELVIEW_MATRIX__LEN 0x00000010
505 #define NV30_3D_INVERSE_MODELVIEW_MATRIX(i0) (0x00000580 + 0x4*(i0))
506 #define NV30_3D_INVERSE_MODELVIEW_MATRIX__ESIZE 0x00000004
507 #define NV30_3D_INVERSE_MODELVIEW_MATRIX__LEN 0x0000000c
509 #define NV30_3D_PROJECTION_MATRIX(i0) (0x00000680 + 0x4*(i0))
510 #define NV30_3D_PROJECTION_MATRIX__ESIZE 0x00000004
511 #define NV30_3D_PROJECTION_MATRIX__LEN 0x00000010
514 #define NV30_3D_TEX_MATRIX(i0, i1) (0x000006c0 + 0x40*(i0) + 0x4*(i1))
515 #define NV30_3D_TEX_MATRIX__ESIZE 0x00000004
516 #define NV30_3D_TEX_MATRIX__LEN 0x00000010
518 #define NV30_3D_SCISSOR_HORIZ 0x000008c0
519 #define NV30_3D_SCISSOR_HORIZ_X__MASK 0x0000ffff
520 #define NV30_3D_SCISSOR_HORIZ_X__SHIFT 0
521 #define NV30_3D_SCISSOR_HORIZ_W__MASK 0xffff0000
522 #define NV30_3D_SCISSOR_HORIZ_W__SHIFT 16
524 #define NV30_3D_SCISSOR_VERT 0x000008c4
525 #define NV30_3D_SCISSOR_VERT_Y__MASK 0x0000ffff
526 #define NV30_3D_SCISSOR_VERT_Y__SHIFT 0
527 #define NV30_3D_SCISSOR_VERT_H__MASK 0xffff0000
528 #define NV30_3D_SCISSOR_VERT_H__SHIFT 16
530 #define NV30_3D_FOG_COORD_DIST 0x000008c8
532 #define NV30_3D_FOG_MODE 0x000008cc
534 #define NV30_3D_FOG_EQUATION_CONSTANT 0x000008d0
536 #define NV30_3D_FOG_EQUATION_LINEAR 0x000008d4
538 #define NV30_3D_FOG_EQUATION_QUADRATIC 0x000008d8
540 #define NV30_3D_FP_ACTIVE_PROGRAM 0x000008e4
541 #define NV30_3D_FP_ACTIVE_PROGRAM_DMA0 0x00000001
542 #define NV30_3D_FP_ACTIVE_PROGRAM_DMA1 0x00000002
543 #define NV30_3D_FP_ACTIVE_PROGRAM_OFFSET__MASK 0xfffffffc
544 #define NV30_3D_FP_ACTIVE_PROGRAM_OFFSET__SHIFT 2
547 #define NV30_3D_RC_COLOR0 0x000008ec
548 #define NV30_3D_RC_COLOR0_B__MASK 0x000000ff
549 #define NV30_3D_RC_COLOR0_B__SHIFT 0
550 #define NV30_3D_RC_COLOR0_G__MASK 0x0000ff00
551 #define NV30_3D_RC_COLOR0_G__SHIFT 8
552 #define NV30_3D_RC_COLOR0_R__MASK 0x00ff0000
553 #define NV30_3D_RC_COLOR0_R__SHIFT 16
554 #define NV30_3D_RC_COLOR0_A__MASK 0xff000000
555 #define NV30_3D_RC_COLOR0_A__SHIFT 24
557 #define NV30_3D_RC_COLOR1 0x000008f0
558 #define NV30_3D_RC_COLOR1_B__MASK 0x000000ff
559 #define NV30_3D_RC_COLOR1_B__SHIFT 0
560 #define NV30_3D_RC_COLOR1_G__MASK 0x0000ff00
561 #define NV30_3D_RC_COLOR1_G__SHIFT 8
562 #define NV30_3D_RC_COLOR1_R__MASK 0x00ff0000
563 #define NV30_3D_RC_COLOR1_R__SHIFT 16
564 #define NV30_3D_RC_COLOR1_A__MASK 0xff000000
565 #define NV30_3D_RC_COLOR1_A__SHIFT 24
567 #define NV30_3D_RC_FINAL0 0x000008f4
568 #define NV30_3D_RC_FINAL0_D_INPUT__MASK 0x0000000f
569 #define NV30_3D_RC_FINAL0_D_INPUT__SHIFT 0
570 #define NV30_3D_RC_FINAL0_D_INPUT_ZERO 0x00000000
571 #define NV30_3D_RC_FINAL0_D_INPUT_CONSTANT_COLOR0 0x00000001
572 #define NV30_3D_RC_FINAL0_D_INPUT_CONSTANT_COLOR1 0x00000002
573 #define NV30_3D_RC_FINAL0_D_INPUT_FOG 0x00000003
574 #define NV30_3D_RC_FINAL0_D_INPUT_PRIMARY_COLOR 0x00000004
575 #define NV30_3D_RC_FINAL0_D_INPUT_SECONDARY_COLOR 0x00000005
576 #define NV30_3D_RC_FINAL0_D_INPUT_TEXTURE0 0x00000008
577 #define NV30_3D_RC_FINAL0_D_INPUT_TEXTURE1 0x00000009
578 #define NV30_3D_RC_FINAL0_D_INPUT_TEXTURE2 0x0000000a
579 #define NV30_3D_RC_FINAL0_D_INPUT_TEXTURE3 0x0000000b
580 #define NV30_3D_RC_FINAL0_D_INPUT_SPARE0 0x0000000c
581 #define NV30_3D_RC_FINAL0_D_INPUT_SPARE1 0x0000000d
582 #define NV30_3D_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
583 #define NV30_3D_RC_FINAL0_D_INPUT_E_TIMES_F 0x0000000f
584 #define NV30_3D_RC_FINAL0_D_COMPONENT_USAGE__MASK 0x00000010
585 #define NV30_3D_RC_FINAL0_D_COMPONENT_USAGE__SHIFT 4
586 #define NV30_3D_RC_FINAL0_D_COMPONENT_USAGE_RGB 0x00000000
587 #define NV30_3D_RC_FINAL0_D_COMPONENT_USAGE_ALPHA 0x00000010
588 #define NV30_3D_RC_FINAL0_D_MAPPING__MASK 0x000000e0
589 #define NV30_3D_RC_FINAL0_D_MAPPING__SHIFT 5
590 #define NV30_3D_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
591 #define NV30_3D_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT 0x00000020
592 #define NV30_3D_RC_FINAL0_D_MAPPING_EXPAND_NORMAL 0x00000040
593 #define NV30_3D_RC_FINAL0_D_MAPPING_EXPAND_NEGATE 0x00000060
594 #define NV30_3D_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
595 #define NV30_3D_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
596 #define NV30_3D_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY 0x000000c0
597 #define NV30_3D_RC_FINAL0_D_MAPPING_SIGNED_NEGATE 0x000000e0
598 #define NV30_3D_RC_FINAL0_C_INPUT__MASK 0x00000f00
599 #define NV30_3D_RC_FINAL0_C_INPUT__SHIFT 8
600 #define NV30_3D_RC_FINAL0_C_INPUT_ZERO 0x00000000
601 #define NV30_3D_RC_FINAL0_C_INPUT_CONSTANT_COLOR0 0x00000100
602 #define NV30_3D_RC_FINAL0_C_INPUT_CONSTANT_COLOR1 0x00000200
603 #define NV30_3D_RC_FINAL0_C_INPUT_FOG 0x00000300
604 #define NV30_3D_RC_FINAL0_C_INPUT_PRIMARY_COLOR 0x00000400
605 #define NV30_3D_RC_FINAL0_C_INPUT_SECONDARY_COLOR 0x00000500
606 #define NV30_3D_RC_FINAL0_C_INPUT_TEXTURE0 0x00000800
607 #define NV30_3D_RC_FINAL0_C_INPUT_TEXTURE1 0x00000900
608 #define NV30_3D_RC_FINAL0_C_INPUT_TEXTURE2 0x00000a00
609 #define NV30_3D_RC_FINAL0_C_INPUT_TEXTURE3 0x00000b00
610 #define NV30_3D_RC_FINAL0_C_INPUT_SPARE0 0x00000c00
611 #define NV30_3D_RC_FINAL0_C_INPUT_SPARE1 0x00000d00
612 #define NV30_3D_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
613 #define NV30_3D_RC_FINAL0_C_INPUT_E_TIMES_F 0x00000f00
614 #define NV30_3D_RC_FINAL0_C_COMPONENT_USAGE__MASK 0x00001000
615 #define NV30_3D_RC_FINAL0_C_COMPONENT_USAGE__SHIFT 12
616 #define NV30_3D_RC_FINAL0_C_COMPONENT_USAGE_RGB 0x00000000
617 #define NV30_3D_RC_FINAL0_C_COMPONENT_USAGE_ALPHA 0x00001000
618 #define NV30_3D_RC_FINAL0_C_MAPPING__MASK 0x0000e000
619 #define NV30_3D_RC_FINAL0_C_MAPPING__SHIFT 13
620 #define NV30_3D_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
621 #define NV30_3D_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT 0x00002000
622 #define NV30_3D_RC_FINAL0_C_MAPPING_EXPAND_NORMAL 0x00004000
623 #define NV30_3D_RC_FINAL0_C_MAPPING_EXPAND_NEGATE 0x00006000
624 #define NV30_3D_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
625 #define NV30_3D_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
626 #define NV30_3D_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY 0x0000c000
627 #define NV30_3D_RC_FINAL0_C_MAPPING_SIGNED_NEGATE 0x0000e000
628 #define NV30_3D_RC_FINAL0_B_INPUT__MASK 0x000f0000
629 #define NV30_3D_RC_FINAL0_B_INPUT__SHIFT 16
630 #define NV30_3D_RC_FINAL0_B_INPUT_ZERO 0x00000000
631 #define NV30_3D_RC_FINAL0_B_INPUT_CONSTANT_COLOR0 0x00010000
632 #define NV30_3D_RC_FINAL0_B_INPUT_CONSTANT_COLOR1 0x00020000
633 #define NV30_3D_RC_FINAL0_B_INPUT_FOG 0x00030000
634 #define NV30_3D_RC_FINAL0_B_INPUT_PRIMARY_COLOR 0x00040000
635 #define NV30_3D_RC_FINAL0_B_INPUT_SECONDARY_COLOR 0x00050000
636 #define NV30_3D_RC_FINAL0_B_INPUT_TEXTURE0 0x00080000
637 #define NV30_3D_RC_FINAL0_B_INPUT_TEXTURE1 0x00090000
638 #define NV30_3D_RC_FINAL0_B_INPUT_TEXTURE2 0x000a0000
639 #define NV30_3D_RC_FINAL0_B_INPUT_TEXTURE3 0x000b0000
640 #define NV30_3D_RC_FINAL0_B_INPUT_SPARE0 0x000c0000
641 #define NV30_3D_RC_FINAL0_B_INPUT_SPARE1 0x000d0000
642 #define NV30_3D_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
643 #define NV30_3D_RC_FINAL0_B_INPUT_E_TIMES_F 0x000f0000
644 #define NV30_3D_RC_FINAL0_B_COMPONENT_USAGE__MASK 0x00100000
645 #define NV30_3D_RC_FINAL0_B_COMPONENT_USAGE__SHIFT 20
646 #define NV30_3D_RC_FINAL0_B_COMPONENT_USAGE_RGB 0x00000000
647 #define NV30_3D_RC_FINAL0_B_COMPONENT_USAGE_ALPHA 0x00100000
648 #define NV30_3D_RC_FINAL0_B_MAPPING__MASK 0x00e00000
649 #define NV30_3D_RC_FINAL0_B_MAPPING__SHIFT 21
650 #define NV30_3D_RC_FINAL0_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
651 #define NV30_3D_RC_FINAL0_B_MAPPING_UNSIGNED_INVERT 0x00200000
652 #define NV30_3D_RC_FINAL0_B_MAPPING_EXPAND_NORMAL 0x00400000
653 #define NV30_3D_RC_FINAL0_B_MAPPING_EXPAND_NEGATE 0x00600000
654 #define NV30_3D_RC_FINAL0_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
655 #define NV30_3D_RC_FINAL0_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
656 #define NV30_3D_RC_FINAL0_B_MAPPING_SIGNED_IDENTITY 0x00c00000
657 #define NV30_3D_RC_FINAL0_B_MAPPING_SIGNED_NEGATE 0x00e00000
658 #define NV30_3D_RC_FINAL0_A_INPUT__MASK 0x0f000000
659 #define NV30_3D_RC_FINAL0_A_INPUT__SHIFT 24
660 #define NV30_3D_RC_FINAL0_A_INPUT_ZERO 0x00000000
661 #define NV30_3D_RC_FINAL0_A_INPUT_CONSTANT_COLOR0 0x01000000
662 #define NV30_3D_RC_FINAL0_A_INPUT_CONSTANT_COLOR1 0x02000000
663 #define NV30_3D_RC_FINAL0_A_INPUT_FOG 0x03000000
664 #define NV30_3D_RC_FINAL0_A_INPUT_PRIMARY_COLOR 0x04000000
665 #define NV30_3D_RC_FINAL0_A_INPUT_SECONDARY_COLOR 0x05000000
666 #define NV30_3D_RC_FINAL0_A_INPUT_TEXTURE0 0x08000000
667 #define NV30_3D_RC_FINAL0_A_INPUT_TEXTURE1 0x09000000
668 #define NV30_3D_RC_FINAL0_A_INPUT_TEXTURE2 0x0a000000
669 #define NV30_3D_RC_FINAL0_A_INPUT_TEXTURE3 0x0b000000
670 #define NV30_3D_RC_FINAL0_A_INPUT_SPARE0 0x0c000000
671 #define NV30_3D_RC_FINAL0_A_INPUT_SPARE1 0x0d000000
672 #define NV30_3D_RC_FINAL0_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
673 #define NV30_3D_RC_FINAL0_A_INPUT_E_TIMES_F 0x0f000000
674 #define NV30_3D_RC_FINAL0_A_COMPONENT_USAGE__MASK 0x10000000
675 #define NV30_3D_RC_FINAL0_A_COMPONENT_USAGE__SHIFT 28
676 #define NV30_3D_RC_FINAL0_A_COMPONENT_USAGE_RGB 0x00000000
677 #define NV30_3D_RC_FINAL0_A_COMPONENT_USAGE_ALPHA 0x10000000
678 #define NV30_3D_RC_FINAL0_A_MAPPING__MASK 0xe0000000
679 #define NV30_3D_RC_FINAL0_A_MAPPING__SHIFT 29
680 #define NV30_3D_RC_FINAL0_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
681 #define NV30_3D_RC_FINAL0_A_MAPPING_UNSIGNED_INVERT 0x20000000
682 #define NV30_3D_RC_FINAL0_A_MAPPING_EXPAND_NORMAL 0x40000000
683 #define NV30_3D_RC_FINAL0_A_MAPPING_EXPAND_NEGATE 0x60000000
684 #define NV30_3D_RC_FINAL0_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
685 #define NV30_3D_RC_FINAL0_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
686 #define NV30_3D_RC_FINAL0_A_MAPPING_SIGNED_IDENTITY 0xc0000000
687 #define NV30_3D_RC_FINAL0_A_MAPPING_SIGNED_NEGATE 0xe0000000
689 #define NV30_3D_RC_FINAL1 0x000008f8
690 #define NV30_3D_RC_FINAL1_COLOR_SUM_CLAMP 0x00000080
691 #define NV30_3D_RC_FINAL1_G_INPUT__MASK 0x00000f00
692 #define NV30_3D_RC_FINAL1_G_INPUT__SHIFT 8
693 #define NV30_3D_RC_FINAL1_G_INPUT_ZERO 0x00000000
694 #define NV30_3D_RC_FINAL1_G_INPUT_CONSTANT_COLOR0 0x00000100
695 #define NV30_3D_RC_FINAL1_G_INPUT_CONSTANT_COLOR1 0x00000200
696 #define NV30_3D_RC_FINAL1_G_INPUT_FOG 0x00000300
697 #define NV30_3D_RC_FINAL1_G_INPUT_PRIMARY_COLOR 0x00000400
698 #define NV30_3D_RC_FINAL1_G_INPUT_SECONDARY_COLOR 0x00000500
699 #define NV30_3D_RC_FINAL1_G_INPUT_TEXTURE0 0x00000800
700 #define NV30_3D_RC_FINAL1_G_INPUT_TEXTURE1 0x00000900
701 #define NV30_3D_RC_FINAL1_G_INPUT_TEXTURE2 0x00000a00
702 #define NV30_3D_RC_FINAL1_G_INPUT_TEXTURE3 0x00000b00
703 #define NV30_3D_RC_FINAL1_G_INPUT_SPARE0 0x00000c00
704 #define NV30_3D_RC_FINAL1_G_INPUT_SPARE1 0x00000d00
705 #define NV30_3D_RC_FINAL1_G_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
706 #define NV30_3D_RC_FINAL1_G_INPUT_E_TIMES_F 0x00000f00
707 #define NV30_3D_RC_FINAL1_G_COMPONENT_USAGE__MASK 0x00001000
708 #define NV30_3D_RC_FINAL1_G_COMPONENT_USAGE__SHIFT 12
709 #define NV30_3D_RC_FINAL1_G_COMPONENT_USAGE_RGB 0x00000000
710 #define NV30_3D_RC_FINAL1_G_COMPONENT_USAGE_ALPHA 0x00001000
711 #define NV30_3D_RC_FINAL1_G_MAPPING__MASK 0x0000e000
712 #define NV30_3D_RC_FINAL1_G_MAPPING__SHIFT 13
713 #define NV30_3D_RC_FINAL1_G_MAPPING_UNSIGNED_IDENTITY 0x00000000
714 #define NV30_3D_RC_FINAL1_G_MAPPING_UNSIGNED_INVERT 0x00002000
715 #define NV30_3D_RC_FINAL1_G_MAPPING_EXPAND_NORMAL 0x00004000
716 #define NV30_3D_RC_FINAL1_G_MAPPING_EXPAND_NEGATE 0x00006000
717 #define NV30_3D_RC_FINAL1_G_MAPPING_HALF_BIAS_NORMAL 0x00008000
718 #define NV30_3D_RC_FINAL1_G_MAPPING_HALF_BIAS_NEGATE 0x0000a000
719 #define NV30_3D_RC_FINAL1_G_MAPPING_SIGNED_IDENTITY 0x0000c000
720 #define NV30_3D_RC_FINAL1_G_MAPPING_SIGNED_NEGATE 0x0000e000
721 #define NV30_3D_RC_FINAL1_F_INPUT__MASK 0x000f0000
722 #define NV30_3D_RC_FINAL1_F_INPUT__SHIFT 16
723 #define NV30_3D_RC_FINAL1_F_INPUT_ZERO 0x00000000
724 #define NV30_3D_RC_FINAL1_F_INPUT_CONSTANT_COLOR0 0x00010000
725 #define NV30_3D_RC_FINAL1_F_INPUT_CONSTANT_COLOR1 0x00020000
726 #define NV30_3D_RC_FINAL1_F_INPUT_FOG 0x00030000
727 #define NV30_3D_RC_FINAL1_F_INPUT_PRIMARY_COLOR 0x00040000
728 #define NV30_3D_RC_FINAL1_F_INPUT_SECONDARY_COLOR 0x00050000
729 #define NV30_3D_RC_FINAL1_F_INPUT_TEXTURE0 0x00080000
730 #define NV30_3D_RC_FINAL1_F_INPUT_TEXTURE1 0x00090000
731 #define NV30_3D_RC_FINAL1_F_INPUT_TEXTURE2 0x000a0000
732 #define NV30_3D_RC_FINAL1_F_INPUT_TEXTURE3 0x000b0000
733 #define NV30_3D_RC_FINAL1_F_INPUT_SPARE0 0x000c0000
734 #define NV30_3D_RC_FINAL1_F_INPUT_SPARE1 0x000d0000
735 #define NV30_3D_RC_FINAL1_F_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
736 #define NV30_3D_RC_FINAL1_F_INPUT_E_TIMES_F 0x000f0000
737 #define NV30_3D_RC_FINAL1_F_COMPONENT_USAGE__MASK 0x00100000
738 #define NV30_3D_RC_FINAL1_F_COMPONENT_USAGE__SHIFT 20
739 #define NV30_3D_RC_FINAL1_F_COMPONENT_USAGE_RGB 0x00000000
740 #define NV30_3D_RC_FINAL1_F_COMPONENT_USAGE_ALPHA 0x00100000
741 #define NV30_3D_RC_FINAL1_F_MAPPING__MASK 0x00e00000
742 #define NV30_3D_RC_FINAL1_F_MAPPING__SHIFT 21
743 #define NV30_3D_RC_FINAL1_F_MAPPING_UNSIGNED_IDENTITY 0x00000000
744 #define NV30_3D_RC_FINAL1_F_MAPPING_UNSIGNED_INVERT 0x00200000
745 #define NV30_3D_RC_FINAL1_F_MAPPING_EXPAND_NORMAL 0x00400000
746 #define NV30_3D_RC_FINAL1_F_MAPPING_EXPAND_NEGATE 0x00600000
747 #define NV30_3D_RC_FINAL1_F_MAPPING_HALF_BIAS_NORMAL 0x00800000
748 #define NV30_3D_RC_FINAL1_F_MAPPING_HALF_BIAS_NEGATE 0x00a00000
749 #define NV30_3D_RC_FINAL1_F_MAPPING_SIGNED_IDENTITY 0x00c00000
750 #define NV30_3D_RC_FINAL1_F_MAPPING_SIGNED_NEGATE 0x00e00000
751 #define NV30_3D_RC_FINAL1_E_INPUT__MASK 0x0f000000
752 #define NV30_3D_RC_FINAL1_E_INPUT__SHIFT 24
753 #define NV30_3D_RC_FINAL1_E_INPUT_ZERO 0x00000000
754 #define NV30_3D_RC_FINAL1_E_INPUT_CONSTANT_COLOR0 0x01000000
755 #define NV30_3D_RC_FINAL1_E_INPUT_CONSTANT_COLOR1 0x02000000
756 #define NV30_3D_RC_FINAL1_E_INPUT_FOG 0x03000000
757 #define NV30_3D_RC_FINAL1_E_INPUT_PRIMARY_COLOR 0x04000000
758 #define NV30_3D_RC_FINAL1_E_INPUT_SECONDARY_COLOR 0x05000000
759 #define NV30_3D_RC_FINAL1_E_INPUT_TEXTURE0 0x08000000
760 #define NV30_3D_RC_FINAL1_E_INPUT_TEXTURE1 0x09000000
761 #define NV30_3D_RC_FINAL1_E_INPUT_TEXTURE2 0x0a000000
762 #define NV30_3D_RC_FINAL1_E_INPUT_TEXTURE3 0x0b000000
763 #define NV30_3D_RC_FINAL1_E_INPUT_SPARE0 0x0c000000
764 #define NV30_3D_RC_FINAL1_E_INPUT_SPARE1 0x0d000000
765 #define NV30_3D_RC_FINAL1_E_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
766 #define NV30_3D_RC_FINAL1_E_INPUT_E_TIMES_F 0x0f000000
767 #define NV30_3D_RC_FINAL1_E_COMPONENT_USAGE__MASK 0x10000000
768 #define NV30_3D_RC_FINAL1_E_COMPONENT_USAGE__SHIFT 28
769 #define NV30_3D_RC_FINAL1_E_COMPONENT_USAGE_RGB 0x00000000
770 #define NV30_3D_RC_FINAL1_E_COMPONENT_USAGE_ALPHA 0x10000000
771 #define NV30_3D_RC_FINAL1_E_MAPPING__MASK 0xe0000000
772 #define NV30_3D_RC_FINAL1_E_MAPPING__SHIFT 29
773 #define NV30_3D_RC_FINAL1_E_MAPPING_UNSIGNED_IDENTITY 0x00000000
774 #define NV30_3D_RC_FINAL1_E_MAPPING_UNSIGNED_INVERT 0x20000000
775 #define NV30_3D_RC_FINAL1_E_MAPPING_EXPAND_NORMAL 0x40000000
776 #define NV30_3D_RC_FINAL1_E_MAPPING_EXPAND_NEGATE 0x60000000
777 #define NV30_3D_RC_FINAL1_E_MAPPING_HALF_BIAS_NORMAL 0x80000000
778 #define NV30_3D_RC_FINAL1_E_MAPPING_HALF_BIAS_NEGATE 0xa0000000
779 #define NV30_3D_RC_FINAL1_E_MAPPING_SIGNED_IDENTITY 0xc0000000
780 #define NV30_3D_RC_FINAL1_E_MAPPING_SIGNED_NEGATE 0xe0000000
782 #define NV30_3D_RC_ENABLE 0x000008fc
783 #define NV30_3D_RC_ENABLE_NUM_COMBINERS__MASK 0x0000000f
784 #define NV30_3D_RC_ENABLE_NUM_COMBINERS__SHIFT 0
785 #define NV30_3D_RC_ENABLE_STAGE_CONSTANT_COLOR0 0x0000f000
786 #define NV30_3D_RC_ENABLE_STAGE_CONSTANT_COLOR1 0x000f0000
789 #define NV30_3D_RC_IN_ALPHA(i0) (0x00000900 + 0x20*(i0))
790 #define NV30_3D_RC_IN_ALPHA_D_INPUT__MASK 0x0000000f
791 #define NV30_3D_RC_IN_ALPHA_D_INPUT__SHIFT 0
792 #define NV30_3D_RC_IN_ALPHA_D_INPUT_ZERO 0x00000000
793 #define NV30_3D_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR0 0x00000001
794 #define NV30_3D_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR1 0x00000002
795 #define NV30_3D_RC_IN_ALPHA_D_INPUT_FOG 0x00000003
796 #define NV30_3D_RC_IN_ALPHA_D_INPUT_PRIMARY_COLOR 0x00000004
797 #define NV30_3D_RC_IN_ALPHA_D_INPUT_SECONDARY_COLOR 0x00000005
798 #define NV30_3D_RC_IN_ALPHA_D_INPUT_TEXTURE0 0x00000008
799 #define NV30_3D_RC_IN_ALPHA_D_INPUT_TEXTURE1 0x00000009
800 #define NV30_3D_RC_IN_ALPHA_D_INPUT_TEXTURE2 0x0000000a
801 #define NV30_3D_RC_IN_ALPHA_D_INPUT_TEXTURE3 0x0000000b
802 #define NV30_3D_RC_IN_ALPHA_D_INPUT_SPARE0 0x0000000c
803 #define NV30_3D_RC_IN_ALPHA_D_INPUT_SPARE1 0x0000000d
804 #define NV30_3D_RC_IN_ALPHA_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
805 #define NV30_3D_RC_IN_ALPHA_D_INPUT_E_TIMES_F 0x0000000f
806 #define NV30_3D_RC_IN_ALPHA_D_COMPONENT_USAGE__MASK 0x00000010
807 #define NV30_3D_RC_IN_ALPHA_D_COMPONENT_USAGE__SHIFT 4
808 #define NV30_3D_RC_IN_ALPHA_D_COMPONENT_USAGE_BLUE 0x00000000
809 #define NV30_3D_RC_IN_ALPHA_D_COMPONENT_USAGE_ALPHA 0x00000010
810 #define NV30_3D_RC_IN_ALPHA_D_MAPPING__MASK 0x000000e0
811 #define NV30_3D_RC_IN_ALPHA_D_MAPPING__SHIFT 5
812 #define NV30_3D_RC_IN_ALPHA_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
813 #define NV30_3D_RC_IN_ALPHA_D_MAPPING_UNSIGNED_INVERT 0x00000020
814 #define NV30_3D_RC_IN_ALPHA_D_MAPPING_EXPAND_NORMAL 0x00000040
815 #define NV30_3D_RC_IN_ALPHA_D_MAPPING_EXPAND_NEGATE 0x00000060
816 #define NV30_3D_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
817 #define NV30_3D_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
818 #define NV30_3D_RC_IN_ALPHA_D_MAPPING_SIGNED_IDENTITY 0x000000c0
819 #define NV30_3D_RC_IN_ALPHA_D_MAPPING_SIGNED_NEGATE 0x000000e0
820 #define NV30_3D_RC_IN_ALPHA_C_INPUT__MASK 0x00000f00
821 #define NV30_3D_RC_IN_ALPHA_C_INPUT__SHIFT 8
822 #define NV30_3D_RC_IN_ALPHA_C_INPUT_ZERO 0x00000000
823 #define NV30_3D_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR0 0x00000100
824 #define NV30_3D_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR1 0x00000200
825 #define NV30_3D_RC_IN_ALPHA_C_INPUT_FOG 0x00000300
826 #define NV30_3D_RC_IN_ALPHA_C_INPUT_PRIMARY_COLOR 0x00000400
827 #define NV30_3D_RC_IN_ALPHA_C_INPUT_SECONDARY_COLOR 0x00000500
828 #define NV30_3D_RC_IN_ALPHA_C_INPUT_TEXTURE0 0x00000800
829 #define NV30_3D_RC_IN_ALPHA_C_INPUT_TEXTURE1 0x00000900
830 #define NV30_3D_RC_IN_ALPHA_C_INPUT_TEXTURE2 0x00000a00
831 #define NV30_3D_RC_IN_ALPHA_C_INPUT_TEXTURE3 0x00000b00
832 #define NV30_3D_RC_IN_ALPHA_C_INPUT_SPARE0 0x00000c00
833 #define NV30_3D_RC_IN_ALPHA_C_INPUT_SPARE1 0x00000d00
834 #define NV30_3D_RC_IN_ALPHA_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
835 #define NV30_3D_RC_IN_ALPHA_C_INPUT_E_TIMES_F 0x00000f00
836 #define NV30_3D_RC_IN_ALPHA_C_COMPONENT_USAGE__MASK 0x00001000
837 #define NV30_3D_RC_IN_ALPHA_C_COMPONENT_USAGE__SHIFT 12
838 #define NV30_3D_RC_IN_ALPHA_C_COMPONENT_USAGE_BLUE 0x00000000
839 #define NV30_3D_RC_IN_ALPHA_C_COMPONENT_USAGE_ALPHA 0x00001000
840 #define NV30_3D_RC_IN_ALPHA_C_MAPPING__MASK 0x0000e000
841 #define NV30_3D_RC_IN_ALPHA_C_MAPPING__SHIFT 13
842 #define NV30_3D_RC_IN_ALPHA_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
843 #define NV30_3D_RC_IN_ALPHA_C_MAPPING_UNSIGNED_INVERT 0x00002000
844 #define NV30_3D_RC_IN_ALPHA_C_MAPPING_EXPAND_NORMAL 0x00004000
845 #define NV30_3D_RC_IN_ALPHA_C_MAPPING_EXPAND_NEGATE 0x00006000
846 #define NV30_3D_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
847 #define NV30_3D_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
848 #define NV30_3D_RC_IN_ALPHA_C_MAPPING_SIGNED_IDENTITY 0x0000c000
849 #define NV30_3D_RC_IN_ALPHA_C_MAPPING_SIGNED_NEGATE 0x0000e000
850 #define NV30_3D_RC_IN_ALPHA_B_INPUT__MASK 0x000f0000
851 #define NV30_3D_RC_IN_ALPHA_B_INPUT__SHIFT 16
852 #define NV30_3D_RC_IN_ALPHA_B_INPUT_ZERO 0x00000000
853 #define NV30_3D_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR0 0x00010000
854 #define NV30_3D_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR1 0x00020000
855 #define NV30_3D_RC_IN_ALPHA_B_INPUT_FOG 0x00030000
856 #define NV30_3D_RC_IN_ALPHA_B_INPUT_PRIMARY_COLOR 0x00040000
857 #define NV30_3D_RC_IN_ALPHA_B_INPUT_SECONDARY_COLOR 0x00050000
858 #define NV30_3D_RC_IN_ALPHA_B_INPUT_TEXTURE0 0x00080000
859 #define NV30_3D_RC_IN_ALPHA_B_INPUT_TEXTURE1 0x00090000
860 #define NV30_3D_RC_IN_ALPHA_B_INPUT_TEXTURE2 0x000a0000
861 #define NV30_3D_RC_IN_ALPHA_B_INPUT_TEXTURE3 0x000b0000
862 #define NV30_3D_RC_IN_ALPHA_B_INPUT_SPARE0 0x000c0000
863 #define NV30_3D_RC_IN_ALPHA_B_INPUT_SPARE1 0x000d0000
864 #define NV30_3D_RC_IN_ALPHA_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
865 #define NV30_3D_RC_IN_ALPHA_B_INPUT_E_TIMES_F 0x000f0000
866 #define NV30_3D_RC_IN_ALPHA_B_COMPONENT_USAGE__MASK 0x00100000
867 #define NV30_3D_RC_IN_ALPHA_B_COMPONENT_USAGE__SHIFT 20
868 #define NV30_3D_RC_IN_ALPHA_B_COMPONENT_USAGE_BLUE 0x00000000
869 #define NV30_3D_RC_IN_ALPHA_B_COMPONENT_USAGE_ALPHA 0x00100000
870 #define NV30_3D_RC_IN_ALPHA_B_MAPPING__MASK 0x00e00000
871 #define NV30_3D_RC_IN_ALPHA_B_MAPPING__SHIFT 21
872 #define NV30_3D_RC_IN_ALPHA_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
873 #define NV30_3D_RC_IN_ALPHA_B_MAPPING_UNSIGNED_INVERT 0x00200000
874 #define NV30_3D_RC_IN_ALPHA_B_MAPPING_EXPAND_NORMAL 0x00400000
875 #define NV30_3D_RC_IN_ALPHA_B_MAPPING_EXPAND_NEGATE 0x00600000
876 #define NV30_3D_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
877 #define NV30_3D_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
878 #define NV30_3D_RC_IN_ALPHA_B_MAPPING_SIGNED_IDENTITY 0x00c00000
879 #define NV30_3D_RC_IN_ALPHA_B_MAPPING_SIGNED_NEGATE 0x00e00000
880 #define NV30_3D_RC_IN_ALPHA_A_INPUT__MASK 0x0f000000
881 #define NV30_3D_RC_IN_ALPHA_A_INPUT__SHIFT 24
882 #define NV30_3D_RC_IN_ALPHA_A_INPUT_ZERO 0x00000000
883 #define NV30_3D_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR0 0x01000000
884 #define NV30_3D_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR1 0x02000000
885 #define NV30_3D_RC_IN_ALPHA_A_INPUT_FOG 0x03000000
886 #define NV30_3D_RC_IN_ALPHA_A_INPUT_PRIMARY_COLOR 0x04000000
887 #define NV30_3D_RC_IN_ALPHA_A_INPUT_SECONDARY_COLOR 0x05000000
888 #define NV30_3D_RC_IN_ALPHA_A_INPUT_TEXTURE0 0x08000000
889 #define NV30_3D_RC_IN_ALPHA_A_INPUT_TEXTURE1 0x09000000
890 #define NV30_3D_RC_IN_ALPHA_A_INPUT_TEXTURE2 0x0a000000
891 #define NV30_3D_RC_IN_ALPHA_A_INPUT_TEXTURE3 0x0b000000
892 #define NV30_3D_RC_IN_ALPHA_A_INPUT_SPARE0 0x0c000000
893 #define NV30_3D_RC_IN_ALPHA_A_INPUT_SPARE1 0x0d000000
894 #define NV30_3D_RC_IN_ALPHA_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
895 #define NV30_3D_RC_IN_ALPHA_A_INPUT_E_TIMES_F 0x0f000000
896 #define NV30_3D_RC_IN_ALPHA_A_COMPONENT_USAGE__MASK 0x10000000
897 #define NV30_3D_RC_IN_ALPHA_A_COMPONENT_USAGE__SHIFT 28
898 #define NV30_3D_RC_IN_ALPHA_A_COMPONENT_USAGE_BLUE 0x00000000
899 #define NV30_3D_RC_IN_ALPHA_A_COMPONENT_USAGE_ALPHA 0x10000000
900 #define NV30_3D_RC_IN_ALPHA_A_MAPPING__MASK 0xe0000000
901 #define NV30_3D_RC_IN_ALPHA_A_MAPPING__SHIFT 29
902 #define NV30_3D_RC_IN_ALPHA_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
903 #define NV30_3D_RC_IN_ALPHA_A_MAPPING_UNSIGNED_INVERT 0x20000000
904 #define NV30_3D_RC_IN_ALPHA_A_MAPPING_EXPAND_NORMAL 0x40000000
905 #define NV30_3D_RC_IN_ALPHA_A_MAPPING_EXPAND_NEGATE 0x60000000
906 #define NV30_3D_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
907 #define NV30_3D_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
908 #define NV30_3D_RC_IN_ALPHA_A_MAPPING_SIGNED_IDENTITY 0xc0000000
909 #define NV30_3D_RC_IN_ALPHA_A_MAPPING_SIGNED_NEGATE 0xe0000000
911 #define NV30_3D_RC_IN_RGB(i0) (0x00000904 + 0x20*(i0))
912 #define NV30_3D_RC_IN_RGB_D_INPUT__MASK 0x0000000f
913 #define NV30_3D_RC_IN_RGB_D_INPUT__SHIFT 0
914 #define NV30_3D_RC_IN_RGB_D_INPUT_ZERO 0x00000000
915 #define NV30_3D_RC_IN_RGB_D_INPUT_CONSTANT_COLOR0 0x00000001
916 #define NV30_3D_RC_IN_RGB_D_INPUT_CONSTANT_COLOR1 0x00000002
917 #define NV30_3D_RC_IN_RGB_D_INPUT_FOG 0x00000003
918 #define NV30_3D_RC_IN_RGB_D_INPUT_PRIMARY_COLOR 0x00000004
919 #define NV30_3D_RC_IN_RGB_D_INPUT_SECONDARY_COLOR 0x00000005
920 #define NV30_3D_RC_IN_RGB_D_INPUT_TEXTURE0 0x00000008
921 #define NV30_3D_RC_IN_RGB_D_INPUT_TEXTURE1 0x00000009
922 #define NV30_3D_RC_IN_RGB_D_INPUT_TEXTURE2 0x0000000a
923 #define NV30_3D_RC_IN_RGB_D_INPUT_TEXTURE3 0x0000000b
924 #define NV30_3D_RC_IN_RGB_D_INPUT_SPARE0 0x0000000c
925 #define NV30_3D_RC_IN_RGB_D_INPUT_SPARE1 0x0000000d
926 #define NV30_3D_RC_IN_RGB_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
927 #define NV30_3D_RC_IN_RGB_D_INPUT_E_TIMES_F 0x0000000f
928 #define NV30_3D_RC_IN_RGB_D_COMPONENT_USAGE__MASK 0x00000010
929 #define NV30_3D_RC_IN_RGB_D_COMPONENT_USAGE__SHIFT 4
930 #define NV30_3D_RC_IN_RGB_D_COMPONENT_USAGE_RGB 0x00000000
931 #define NV30_3D_RC_IN_RGB_D_COMPONENT_USAGE_ALPHA 0x00000010
932 #define NV30_3D_RC_IN_RGB_D_MAPPING__MASK 0x000000e0
933 #define NV30_3D_RC_IN_RGB_D_MAPPING__SHIFT 5
934 #define NV30_3D_RC_IN_RGB_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
935 #define NV30_3D_RC_IN_RGB_D_MAPPING_UNSIGNED_INVERT 0x00000020
936 #define NV30_3D_RC_IN_RGB_D_MAPPING_EXPAND_NORMAL 0x00000040
937 #define NV30_3D_RC_IN_RGB_D_MAPPING_EXPAND_NEGATE 0x00000060
938 #define NV30_3D_RC_IN_RGB_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
939 #define NV30_3D_RC_IN_RGB_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
940 #define NV30_3D_RC_IN_RGB_D_MAPPING_SIGNED_IDENTITY 0x000000c0
941 #define NV30_3D_RC_IN_RGB_D_MAPPING_SIGNED_NEGATE 0x000000e0
942 #define NV30_3D_RC_IN_RGB_C_INPUT__MASK 0x00000f00
943 #define NV30_3D_RC_IN_RGB_C_INPUT__SHIFT 8
944 #define NV30_3D_RC_IN_RGB_C_INPUT_ZERO 0x00000000
945 #define NV30_3D_RC_IN_RGB_C_INPUT_CONSTANT_COLOR0 0x00000100
946 #define NV30_3D_RC_IN_RGB_C_INPUT_CONSTANT_COLOR1 0x00000200
947 #define NV30_3D_RC_IN_RGB_C_INPUT_FOG 0x00000300
948 #define NV30_3D_RC_IN_RGB_C_INPUT_PRIMARY_COLOR 0x00000400
949 #define NV30_3D_RC_IN_RGB_C_INPUT_SECONDARY_COLOR 0x00000500
950 #define NV30_3D_RC_IN_RGB_C_INPUT_TEXTURE0 0x00000800
951 #define NV30_3D_RC_IN_RGB_C_INPUT_TEXTURE1 0x00000900
952 #define NV30_3D_RC_IN_RGB_C_INPUT_TEXTURE2 0x00000a00
953 #define NV30_3D_RC_IN_RGB_C_INPUT_TEXTURE3 0x00000b00
954 #define NV30_3D_RC_IN_RGB_C_INPUT_SPARE0 0x00000c00
955 #define NV30_3D_RC_IN_RGB_C_INPUT_SPARE1 0x00000d00
956 #define NV30_3D_RC_IN_RGB_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
957 #define NV30_3D_RC_IN_RGB_C_INPUT_E_TIMES_F 0x00000f00
958 #define NV30_3D_RC_IN_RGB_C_COMPONENT_USAGE__MASK 0x00001000
959 #define NV30_3D_RC_IN_RGB_C_COMPONENT_USAGE__SHIFT 12
960 #define NV30_3D_RC_IN_RGB_C_COMPONENT_USAGE_RGB 0x00000000
961 #define NV30_3D_RC_IN_RGB_C_COMPONENT_USAGE_ALPHA 0x00001000
962 #define NV30_3D_RC_IN_RGB_C_MAPPING__MASK 0x0000e000
963 #define NV30_3D_RC_IN_RGB_C_MAPPING__SHIFT 13
964 #define NV30_3D_RC_IN_RGB_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
965 #define NV30_3D_RC_IN_RGB_C_MAPPING_UNSIGNED_INVERT 0x00002000
966 #define NV30_3D_RC_IN_RGB_C_MAPPING_EXPAND_NORMAL 0x00004000
967 #define NV30_3D_RC_IN_RGB_C_MAPPING_EXPAND_NEGATE 0x00006000
968 #define NV30_3D_RC_IN_RGB_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
969 #define NV30_3D_RC_IN_RGB_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
970 #define NV30_3D_RC_IN_RGB_C_MAPPING_SIGNED_IDENTITY 0x0000c000
971 #define NV30_3D_RC_IN_RGB_C_MAPPING_SIGNED_NEGATE 0x0000e000
972 #define NV30_3D_RC_IN_RGB_B_INPUT__MASK 0x000f0000
973 #define NV30_3D_RC_IN_RGB_B_INPUT__SHIFT 16
974 #define NV30_3D_RC_IN_RGB_B_INPUT_ZERO 0x00000000
975 #define NV30_3D_RC_IN_RGB_B_INPUT_CONSTANT_COLOR0 0x00010000
976 #define NV30_3D_RC_IN_RGB_B_INPUT_CONSTANT_COLOR1 0x00020000
977 #define NV30_3D_RC_IN_RGB_B_INPUT_FOG 0x00030000
978 #define NV30_3D_RC_IN_RGB_B_INPUT_PRIMARY_COLOR 0x00040000
979 #define NV30_3D_RC_IN_RGB_B_INPUT_SECONDARY_COLOR 0x00050000
980 #define NV30_3D_RC_IN_RGB_B_INPUT_TEXTURE0 0x00080000
981 #define NV30_3D_RC_IN_RGB_B_INPUT_TEXTURE1 0x00090000
982 #define NV30_3D_RC_IN_RGB_B_INPUT_TEXTURE2 0x000a0000
983 #define NV30_3D_RC_IN_RGB_B_INPUT_TEXTURE3 0x000b0000
984 #define NV30_3D_RC_IN_RGB_B_INPUT_SPARE0 0x000c0000
985 #define NV30_3D_RC_IN_RGB_B_INPUT_SPARE1 0x000d0000
986 #define NV30_3D_RC_IN_RGB_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
987 #define NV30_3D_RC_IN_RGB_B_INPUT_E_TIMES_F 0x000f0000
988 #define NV30_3D_RC_IN_RGB_B_COMPONENT_USAGE__MASK 0x00100000
989 #define NV30_3D_RC_IN_RGB_B_COMPONENT_USAGE__SHIFT 20
990 #define NV30_3D_RC_IN_RGB_B_COMPONENT_USAGE_RGB 0x00000000
991 #define NV30_3D_RC_IN_RGB_B_COMPONENT_USAGE_ALPHA 0x00100000
992 #define NV30_3D_RC_IN_RGB_B_MAPPING__MASK 0x00e00000
993 #define NV30_3D_RC_IN_RGB_B_MAPPING__SHIFT 21
994 #define NV30_3D_RC_IN_RGB_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
995 #define NV30_3D_RC_IN_RGB_B_MAPPING_UNSIGNED_INVERT 0x00200000
996 #define NV30_3D_RC_IN_RGB_B_MAPPING_EXPAND_NORMAL 0x00400000
997 #define NV30_3D_RC_IN_RGB_B_MAPPING_EXPAND_NEGATE 0x00600000
998 #define NV30_3D_RC_IN_RGB_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
999 #define NV30_3D_RC_IN_RGB_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
1000 #define NV30_3D_RC_IN_RGB_B_MAPPING_SIGNED_IDENTITY 0x00c00000
1001 #define NV30_3D_RC_IN_RGB_B_MAPPING_SIGNED_NEGATE 0x00e00000
1002 #define NV30_3D_RC_IN_RGB_A_INPUT__MASK 0x0f000000
1003 #define NV30_3D_RC_IN_RGB_A_INPUT__SHIFT 24
1004 #define NV30_3D_RC_IN_RGB_A_INPUT_ZERO 0x00000000
1005 #define NV30_3D_RC_IN_RGB_A_INPUT_CONSTANT_COLOR0 0x01000000
1006 #define NV30_3D_RC_IN_RGB_A_INPUT_CONSTANT_COLOR1 0x02000000
1007 #define NV30_3D_RC_IN_RGB_A_INPUT_FOG 0x03000000
1008 #define NV30_3D_RC_IN_RGB_A_INPUT_PRIMARY_COLOR 0x04000000
1009 #define NV30_3D_RC_IN_RGB_A_INPUT_SECONDARY_COLOR 0x05000000
1010 #define NV30_3D_RC_IN_RGB_A_INPUT_TEXTURE0 0x08000000
1011 #define NV30_3D_RC_IN_RGB_A_INPUT_TEXTURE1 0x09000000
1012 #define NV30_3D_RC_IN_RGB_A_INPUT_TEXTURE2 0x0a000000
1013 #define NV30_3D_RC_IN_RGB_A_INPUT_TEXTURE3 0x0b000000
1014 #define NV30_3D_RC_IN_RGB_A_INPUT_SPARE0 0x0c000000
1015 #define NV30_3D_RC_IN_RGB_A_INPUT_SPARE1 0x0d000000
1016 #define NV30_3D_RC_IN_RGB_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
1017 #define NV30_3D_RC_IN_RGB_A_INPUT_E_TIMES_F 0x0f000000
1018 #define NV30_3D_RC_IN_RGB_A_COMPONENT_USAGE__MASK 0x10000000
1019 #define NV30_3D_RC_IN_RGB_A_COMPONENT_USAGE__SHIFT 28
1020 #define NV30_3D_RC_IN_RGB_A_COMPONENT_USAGE_RGB 0x00000000
1021 #define NV30_3D_RC_IN_RGB_A_COMPONENT_USAGE_ALPHA 0x10000000
1022 #define NV30_3D_RC_IN_RGB_A_MAPPING__MASK 0xe0000000
1023 #define NV30_3D_RC_IN_RGB_A_MAPPING__SHIFT 29
1024 #define NV30_3D_RC_IN_RGB_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
1025 #define NV30_3D_RC_IN_RGB_A_MAPPING_UNSIGNED_INVERT 0x20000000
1026 #define NV30_3D_RC_IN_RGB_A_MAPPING_EXPAND_NORMAL 0x40000000
1027 #define NV30_3D_RC_IN_RGB_A_MAPPING_EXPAND_NEGATE 0x60000000
1028 #define NV30_3D_RC_IN_RGB_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
1029 #define NV30_3D_RC_IN_RGB_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
1030 #define NV30_3D_RC_IN_RGB_A_MAPPING_SIGNED_IDENTITY 0xc0000000
1031 #define NV30_3D_RC_IN_RGB_A_MAPPING_SIGNED_NEGATE 0xe0000000
1033 #define NV30_3D_RC_CONSTANT_COLOR0(i0) (0x00000908 + 0x20*(i0))
1034 #define NV30_3D_RC_CONSTANT_COLOR0_B__MASK 0x000000ff
1035 #define NV30_3D_RC_CONSTANT_COLOR0_B__SHIFT 0
1036 #define NV30_3D_RC_CONSTANT_COLOR0_G__MASK 0x0000ff00
1037 #define NV30_3D_RC_CONSTANT_COLOR0_G__SHIFT 8
1038 #define NV30_3D_RC_CONSTANT_COLOR0_R__MASK 0x00ff0000
1039 #define NV30_3D_RC_CONSTANT_COLOR0_R__SHIFT 16
1040 #define NV30_3D_RC_CONSTANT_COLOR0_A__MASK 0xff000000
1041 #define NV30_3D_RC_CONSTANT_COLOR0_A__SHIFT 24
1043 #define NV30_3D_RC_CONSTANT_COLOR1(i0) (0x0000090c + 0x20*(i0))
1044 #define NV30_3D_RC_CONSTANT_COLOR1_B__MASK 0x000000ff
1045 #define NV30_3D_RC_CONSTANT_COLOR1_B__SHIFT 0
1046 #define NV30_3D_RC_CONSTANT_COLOR1_G__MASK 0x0000ff00
1047 #define NV30_3D_RC_CONSTANT_COLOR1_G__SHIFT 8
1048 #define NV30_3D_RC_CONSTANT_COLOR1_R__MASK 0x00ff0000
1049 #define NV30_3D_RC_CONSTANT_COLOR1_R__SHIFT 16
1050 #define NV30_3D_RC_CONSTANT_COLOR1_A__MASK 0xff000000
1051 #define NV30_3D_RC_CONSTANT_COLOR1_A__SHIFT 24
1053 #define NV30_3D_RC_OUT_ALPHA(i0) (0x00000910 + 0x20*(i0))
1054 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT__MASK 0x0000000f
1055 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT__SHIFT 0
1056 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_ZERO 0x00000000
1057 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
1058 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
1059 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_FOG 0x00000003
1060 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_PRIMARY_COLOR 0x00000004
1061 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_SECONDARY_COLOR 0x00000005
1062 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE0 0x00000008
1063 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE1 0x00000009
1064 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE2 0x0000000a
1065 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE3 0x0000000b
1066 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_SPARE0 0x0000000c
1067 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_SPARE1 0x0000000d
1068 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
1069 #define NV30_3D_RC_OUT_ALPHA_CD_OUTPUT_E_TIMES_F 0x0000000f
1070 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT__MASK 0x000000f0
1071 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT__SHIFT 4
1072 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_ZERO 0x00000000
1073 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
1074 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
1075 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_FOG 0x00000030
1076 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_PRIMARY_COLOR 0x00000040
1077 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_SECONDARY_COLOR 0x00000050
1078 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE0 0x00000080
1079 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE1 0x00000090
1080 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE2 0x000000a0
1081 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE3 0x000000b0
1082 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_SPARE0 0x000000c0
1083 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_SPARE1 0x000000d0
1084 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
1085 #define NV30_3D_RC_OUT_ALPHA_AB_OUTPUT_E_TIMES_F 0x000000f0
1086 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT__MASK 0x00000f00
1087 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT__SHIFT 8
1088 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_ZERO 0x00000000
1089 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
1090 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
1091 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_FOG 0x00000300
1092 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
1093 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
1094 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE0 0x00000800
1095 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE1 0x00000900
1096 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE2 0x00000a00
1097 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE3 0x00000b00
1098 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0 0x00000c00
1099 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_SPARE1 0x00000d00
1100 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
1101 #define NV30_3D_RC_OUT_ALPHA_SUM_OUTPUT_E_TIMES_F 0x00000f00
1102 #define NV30_3D_RC_OUT_ALPHA_CD_DOT_PRODUCT 0x00001000
1103 #define NV30_3D_RC_OUT_ALPHA_AB_DOT_PRODUCT 0x00002000
1104 #define NV30_3D_RC_OUT_ALPHA_MUX_SUM 0x00004000
1105 #define NV30_3D_RC_OUT_ALPHA_BIAS__MASK 0x00008000
1106 #define NV30_3D_RC_OUT_ALPHA_BIAS__SHIFT 15
1107 #define NV30_3D_RC_OUT_ALPHA_BIAS_NONE 0x00000000
1108 #define NV30_3D_RC_OUT_ALPHA_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
1109 #define NV30_3D_RC_OUT_ALPHA_SCALE__MASK 0x00030000
1110 #define NV30_3D_RC_OUT_ALPHA_SCALE__SHIFT 16
1111 #define NV30_3D_RC_OUT_ALPHA_SCALE_NONE 0x00000000
1112 #define NV30_3D_RC_OUT_ALPHA_SCALE_SCALE_BY_TWO 0x00010000
1113 #define NV30_3D_RC_OUT_ALPHA_SCALE_SCALE_BY_FOUR 0x00020000
1114 #define NV30_3D_RC_OUT_ALPHA_SCALE_SCALE_BY_ONE_HALF 0x00030000
1116 #define NV30_3D_RC_OUT_RGB(i0) (0x00000914 + 0x20*(i0))
1117 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT__MASK 0x0000000f
1118 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT__SHIFT 0
1119 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_ZERO 0x00000000
1120 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
1121 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
1122 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_FOG 0x00000003
1123 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_PRIMARY_COLOR 0x00000004
1124 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_SECONDARY_COLOR 0x00000005
1125 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_TEXTURE0 0x00000008
1126 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_TEXTURE1 0x00000009
1127 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_TEXTURE2 0x0000000a
1128 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_TEXTURE3 0x0000000b
1129 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_SPARE0 0x0000000c
1130 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_SPARE1 0x0000000d
1131 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
1132 #define NV30_3D_RC_OUT_RGB_CD_OUTPUT_E_TIMES_F 0x0000000f
1133 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT__MASK 0x000000f0
1134 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT__SHIFT 4
1135 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_ZERO 0x00000000
1136 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
1137 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
1138 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_FOG 0x00000030
1139 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_PRIMARY_COLOR 0x00000040
1140 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_SECONDARY_COLOR 0x00000050
1141 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_TEXTURE0 0x00000080
1142 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_TEXTURE1 0x00000090
1143 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_TEXTURE2 0x000000a0
1144 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_TEXTURE3 0x000000b0
1145 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_SPARE0 0x000000c0
1146 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_SPARE1 0x000000d0
1147 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
1148 #define NV30_3D_RC_OUT_RGB_AB_OUTPUT_E_TIMES_F 0x000000f0
1149 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT__MASK 0x00000f00
1150 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT__SHIFT 8
1151 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_ZERO 0x00000000
1152 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
1153 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
1154 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_FOG 0x00000300
1155 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
1156 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
1157 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_TEXTURE0 0x00000800
1158 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_TEXTURE1 0x00000900
1159 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_TEXTURE2 0x00000a00
1160 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_TEXTURE3 0x00000b00
1161 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_SPARE0 0x00000c00
1162 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_SPARE1 0x00000d00
1163 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
1164 #define NV30_3D_RC_OUT_RGB_SUM_OUTPUT_E_TIMES_F 0x00000f00
1165 #define NV30_3D_RC_OUT_RGB_CD_DOT_PRODUCT 0x00001000
1166 #define NV30_3D_RC_OUT_RGB_AB_DOT_PRODUCT 0x00002000
1167 #define NV30_3D_RC_OUT_RGB_MUX_SUM 0x00004000
1168 #define NV30_3D_RC_OUT_RGB_BIAS__MASK 0x00008000
1169 #define NV30_3D_RC_OUT_RGB_BIAS__SHIFT 15
1170 #define NV30_3D_RC_OUT_RGB_BIAS_NONE 0x00000000
1171 #define NV30_3D_RC_OUT_RGB_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
1172 #define NV30_3D_RC_OUT_RGB_SCALE__MASK 0x00030000
1173 #define NV30_3D_RC_OUT_RGB_SCALE__SHIFT 16
1174 #define NV30_3D_RC_OUT_RGB_SCALE_NONE 0x00000000
1175 #define NV30_3D_RC_OUT_RGB_SCALE_SCALE_BY_TWO 0x00010000
1176 #define NV30_3D_RC_OUT_RGB_SCALE_SCALE_BY_FOUR 0x00020000
1177 #define NV30_3D_RC_OUT_RGB_SCALE_SCALE_BY_ONE_HALF 0x00030000
1179 #define NV30_3D_VIEWPORT_HORIZ 0x00000a00
1180 #define NV30_3D_VIEWPORT_HORIZ_X__MASK 0x0000ffff
1181 #define NV30_3D_VIEWPORT_HORIZ_X__SHIFT 0
1182 #define NV30_3D_VIEWPORT_HORIZ_W__MASK 0xffff0000
1183 #define NV30_3D_VIEWPORT_HORIZ_W__SHIFT 16
1185 #define NV30_3D_VIEWPORT_VERT 0x00000a04
1186 #define NV30_3D_VIEWPORT_VERT_Y__MASK 0x0000ffff
1187 #define NV30_3D_VIEWPORT_VERT_Y__SHIFT 0
1188 #define NV30_3D_VIEWPORT_VERT_H__MASK 0xffff0000
1189 #define NV30_3D_VIEWPORT_VERT_H__SHIFT 16
1191 #define NV30_3D_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION 0x00000a10
1194 #define NV30_3D_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_R 0x00000a10
1196 #define NV30_3D_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_G 0x00000a14
1198 #define NV30_3D_LIGHT_MODEL_FRONT_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_B 0x00000a18
1200 #define NV30_3D_VIEWPORT_TRANSLATE 0x00000a20
1203 #define NV30_3D_VIEWPORT_TRANSLATE_X 0x00000a20
1205 #define NV30_3D_VIEWPORT_TRANSLATE_Y 0x00000a24
1207 #define NV30_3D_VIEWPORT_TRANSLATE_Z 0x00000a28
1209 #define NV30_3D_VIEWPORT_TRANSLATE_W 0x00000a2c
1211 #define NV30_3D_VIEWPORT_SCALE 0x00000a30
1214 #define NV30_3D_VIEWPORT_SCALE_X 0x00000a30
1216 #define NV30_3D_VIEWPORT_SCALE_Y 0x00000a34
1218 #define NV30_3D_VIEWPORT_SCALE_Z 0x00000a38
1220 #define NV30_3D_VIEWPORT_SCALE_W 0x00000a3c
1222 #define NV30_3D_POLYGON_OFFSET_POINT_ENABLE 0x00000a60
1224 #define NV30_3D_POLYGON_OFFSET_LINE_ENABLE 0x00000a64
1226 #define NV30_3D_POLYGON_OFFSET_FILL_ENABLE 0x00000a68
1228 #define NV30_3D_DEPTH_FUNC 0x00000a6c
1229 #define NV30_3D_DEPTH_FUNC_NEVER 0x00000200
1230 #define NV30_3D_DEPTH_FUNC_LESS 0x00000201
1231 #define NV30_3D_DEPTH_FUNC_EQUAL 0x00000202
1232 #define NV30_3D_DEPTH_FUNC_LEQUAL 0x00000203
1233 #define NV30_3D_DEPTH_FUNC_GREATER 0x00000204
1234 #define NV30_3D_DEPTH_FUNC_NOTEQUAL 0x00000205
1235 #define NV30_3D_DEPTH_FUNC_GEQUAL 0x00000206
1236 #define NV30_3D_DEPTH_FUNC_ALWAYS 0x00000207
1238 #define NV30_3D_DEPTH_WRITE_ENABLE 0x00000a70
1240 #define NV30_3D_DEPTH_TEST_ENABLE 0x00000a74
1242 #define NV30_3D_POLYGON_OFFSET_FACTOR 0x00000a78
1244 #define NV30_3D_POLYGON_OFFSET_UNITS 0x00000a7c
1246 #define NV30_3D_VTX_ATTR_3I_XY(i0) (0x00000a80 + 0x8*(i0))
1247 #define NV30_3D_VTX_ATTR_3I_XY__ESIZE 0x00000008
1248 #define NV30_3D_VTX_ATTR_3I_XY__LEN 0x00000010
1249 #define NV30_3D_VTX_ATTR_3I_XY_X__MASK 0x0000ffff
1250 #define NV30_3D_VTX_ATTR_3I_XY_X__SHIFT 0
1251 #define NV30_3D_VTX_ATTR_3I_XY_Y__MASK 0xffff0000
1252 #define NV30_3D_VTX_ATTR_3I_XY_Y__SHIFT 16
1254 #define NV30_3D_VTX_ATTR_3I_Z(i0) (0x00000a84 + 0x8*(i0))
1255 #define NV30_3D_VTX_ATTR_3I_Z__ESIZE 0x00000008
1256 #define NV30_3D_VTX_ATTR_3I_Z__LEN 0x00000010
1257 #define NV30_3D_VTX_ATTR_3I_Z_Z__MASK 0x0000ffff
1258 #define NV30_3D_VTX_ATTR_3I_Z_Z__SHIFT 0
1260 #define NV30_3D_TEX_FILTER_OPTIMIZATION(i0) (0x00000b00 + 0x4*(i0))
1261 #define NV30_3D_TEX_FILTER_OPTIMIZATION__ESIZE 0x00000004
1262 #define NV30_3D_TEX_FILTER_OPTIMIZATION__LEN 0x00000004
1263 #define NV40_3D_TEX_FILTER_OPTIMIZATION_TRILINEAR__MASK 0x0000001f
1264 #define NV40_3D_TEX_FILTER_OPTIMIZATION_TRILINEAR__SHIFT 0
1265 #define NV40_3D_TEX_FILTER_OPTIMIZATION_TRILINEAR_OFF 0x00000000
1266 #define NV40_3D_TEX_FILTER_OPTIMIZATION_TRILINEAR_HIGH_QUALITY 0x00000004
1267 #define NV40_3D_TEX_FILTER_OPTIMIZATION_TRILINEAR_QUALITY 0x00000006
1268 #define NV40_3D_TEX_FILTER_OPTIMIZATION_TRILINEAR_PERFORMANCE 0x00000008
1269 #define NV40_3D_TEX_FILTER_OPTIMIZATION_TRILINEAR_HIGH_PERFORMANCE 0x00000018
1270 #define NV40_3D_TEX_FILTER_OPTIMIZATION_ANISO_SAMPLE__MASK 0x000001c0
1271 #define NV40_3D_TEX_FILTER_OPTIMIZATION_ANISO_SAMPLE__SHIFT 6
1272 #define NV40_3D_TEX_FILTER_OPTIMIZATION_ANISO_SAMPLE_OFF 0x00000000
1273 #define NV40_3D_TEX_FILTER_OPTIMIZATION_ANISO_SAMPLE_HIGH_QUALITY 0x000000c0
1274 #define NV40_3D_TEX_FILTER_OPTIMIZATION_ANISO_SAMPLE_QUALITY 0x000001c0
1275 #define NV40_3D_TEX_FILTER_OPTIMIZATION_ANISO_SAMPLE_PERFORMANCE 0x00000140
1276 #define NV40_3D_TEX_FILTER_OPTIMIZATION_UNKNOWN__MASK 0x00007c00
1277 #define NV40_3D_TEX_FILTER_OPTIMIZATION_UNKNOWN__SHIFT 10
1278 #define NV40_3D_TEX_FILTER_OPTIMIZATION_UNKNOWN_OFF 0x00000000
1279 #define NV40_3D_TEX_FILTER_OPTIMIZATION_UNKNOWN_PARTIAL 0x00002c00
1280 #define NV40_3D_TEX_FILTER_OPTIMIZATION_UNKNOWN_FULL 0x00007c00
1282 #define NV40_3D_UNK0B40(i0) (0x00000b40 + 0x4*(i0))
1283 #define NV40_3D_UNK0B40__ESIZE 0x00000004
1284 #define NV40_3D_UNK0B40__LEN 0x00000008
1286 #define NV30_3D_VP_UPLOAD_INST(i0) (0x00000b80 + 0x4*(i0))
1287 #define NV30_3D_VP_UPLOAD_INST__ESIZE 0x00000004
1288 #define NV30_3D_VP_UPLOAD_INST__LEN 0x00000004
1291 #define NV30_3D_TEX_CLIP_PLANE(i0) (0x00000e00 + 0x10*(i0))
1294 #define NV30_3D_TEX_CLIP_PLANE_X(i0) (0x00000e00 + 0x10*(i0))
1296 #define NV30_3D_TEX_CLIP_PLANE_Y(i0) (0x00000e04 + 0x10*(i0))
1298 #define NV30_3D_TEX_CLIP_PLANE_Z(i0) (0x00000e08 + 0x10*(i0))
1300 #define NV30_3D_TEX_CLIP_PLANE_W(i0) (0x00000e0c + 0x10*(i0))
1302 #define NV30_3D_LIGHT 0x00001000
1305 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT(i0) (0x00001000 + 0x40*(i0))
1308 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_R(i0) (0x00001000 + 0x40*(i0))
1310 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_G(i0) (0x00001004 + 0x40*(i0))
1312 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_AMBIENT_B(i0) (0x00001008 + 0x40*(i0))
1314 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE(i0) (0x0000100c + 0x40*(i0))
1317 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_R(i0) (0x0000100c + 0x40*(i0))
1319 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_G(i0) (0x00001010 + 0x40*(i0))
1321 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_DIFFUSE_B(i0) (0x00001014 + 0x40*(i0))
1323 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR(i0) (0x00001018 + 0x40*(i0))
1326 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_R(i0) (0x00001018 + 0x40*(i0))
1328 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_G(i0) (0x0000101c + 0x40*(i0))
1330 #define NV30_3D_LIGHT_FRONT_SIDE_PRODUCT_SPECULAR_B(i0) (0x00001020 + 0x40*(i0))
1332 #define NV30_3D_LIGHT_UNK24(i0) (0x00001024 + 0x40*(i0))
1334 #define NV30_3D_LIGHT_HALF_VECTOR(i0) (0x00001028 + 0x40*(i0))
1337 #define NV30_3D_LIGHT_HALF_VECTOR_X(i0) (0x00001028 + 0x40*(i0))
1339 #define NV30_3D_LIGHT_HALF_VECTOR_Y(i0) (0x0000102c + 0x40*(i0))
1341 #define NV30_3D_LIGHT_HALF_VECTOR_Z(i0) (0x00001030 + 0x40*(i0))
1343 #define NV30_3D_LIGHT_DIRECTION(i0) (0x00001034 + 0x40*(i0))
1346 #define NV30_3D_LIGHT_DIRECTION_X(i0) (0x00001034 + 0x40*(i0))
1348 #define NV30_3D_LIGHT_DIRECTION_Y(i0) (0x00001038 + 0x40*(i0))
1350 #define NV30_3D_LIGHT_DIRECTION_Z(i0) (0x0000103c + 0x40*(i0))
1353 #define NV30_3D_LIGHT_SPOT_CUTOFF_A(i0) (0x00001200 + 0x40*(i0))
1355 #define NV30_3D_LIGHT_SPOT_CUTOFF_B(i0) (0x00001204 + 0x40*(i0))
1357 #define NV30_3D_LIGHT_SPOT_CUTOFF_C(i0) (0x00001208 + 0x40*(i0))
1359 #define NV30_3D_LIGHT_SPOT_DIR(i0) (0x0000120c + 0x40*(i0))
1362 #define NV30_3D_LIGHT_SPOT_DIR_X(i0) (0x0000120c + 0x40*(i0))
1364 #define NV30_3D_LIGHT_SPOT_DIR_Y(i0) (0x00001210 + 0x40*(i0))
1366 #define NV30_3D_LIGHT_SPOT_DIR_Z(i0) (0x00001214 + 0x40*(i0))
1368 #define NV30_3D_LIGHT_SPOT_CUTOFF_D(i0) (0x00001218 + 0x40*(i0))
1370 #define NV30_3D_LIGHT_POSITION(i0) (0x0000121c + 0x40*(i0))
1373 #define NV30_3D_LIGHT_POSITION_X(i0) (0x0000121c + 0x40*(i0))
1375 #define NV30_3D_LIGHT_POSITION_Y(i0) (0x00001220 + 0x40*(i0))
1377 #define NV30_3D_LIGHT_POSITION_Z(i0) (0x00001224 + 0x40*(i0))
1379 #define NV30_3D_LIGHT_ATTENUATION(i0) (0x00001228 + 0x40*(i0))
1381 #define NV30_3D_LIGHT_ATTENUATION_CONSTANT(i0) (0x00001228 + 0x40*(i0))
1383 #define NV30_3D_LIGHT_ATTENUATION_LINEAR(i0) (0x0000122c + 0x40*(i0))
1385 #define NV30_3D_LIGHT_ATTENUATION_QUADRATIC(i0) (0x00001230 + 0x40*(i0))
1387 #define NV30_3D_FRONT_MATERIAL_SHININESS(i0) (0x00001400 + 0x4*(i0))
1388 #define NV30_3D_FRONT_MATERIAL_SHININESS__ESIZE 0x00000004
1389 #define NV30_3D_FRONT_MATERIAL_SHININESS__LEN 0x00000006
1391 #define NV30_3D_ENABLED_LIGHTS 0x00001420
1393 #define NV30_3D_VERTEX_TWO_SIDE_ENABLE 0x0000142c
1395 #define NV30_3D_FP_REG_CONTROL 0x00001450
1396 #define NV30_3D_FP_REG_CONTROL_UNK0__MASK 0x0000ffff
1397 #define NV30_3D_FP_REG_CONTROL_UNK0__SHIFT 0
1398 #define NV30_3D_FP_REG_CONTROL_UNK1__MASK 0xffff0000
1399 #define NV30_3D_FP_REG_CONTROL_UNK1__SHIFT 16
1401 #define NV30_3D_FLATSHADE_FIRST 0x00001454
1403 #define NV30_3D_EDGEFLAG 0x0000145c
1404 #define NV30_3D_EDGEFLAG_ENABLE 0x00000001
1406 #define NV30_3D_VP_CLIP_PLANES_ENABLE 0x00001478
1407 #define NV30_3D_VP_CLIP_PLANES_ENABLE_PLANE0 0x00000002
1408 #define NV30_3D_VP_CLIP_PLANES_ENABLE_PLANE1 0x00000020
1409 #define NV30_3D_VP_CLIP_PLANES_ENABLE_PLANE2 0x00000200
1410 #define NV30_3D_VP_CLIP_PLANES_ENABLE_PLANE3 0x00002000
1411 #define NV30_3D_VP_CLIP_PLANES_ENABLE_PLANE4 0x00020000
1412 #define NV30_3D_VP_CLIP_PLANES_ENABLE_PLANE5 0x00200000
1414 #define NV30_3D_POLYGON_STIPPLE_ENABLE 0x0000147c
1416 #define NV30_3D_POLYGON_STIPPLE_PATTERN(i0) (0x00001480 + 0x4*(i0))
1417 #define NV30_3D_POLYGON_STIPPLE_PATTERN__ESIZE 0x00000004
1418 #define NV30_3D_POLYGON_STIPPLE_PATTERN__LEN 0x00000020
1420 #define NV30_3D_VTX_ATTR_3F(i0) (0x00001500 + 0x10*(i0))
1421 #define NV30_3D_VTX_ATTR_3F__ESIZE 0x00000010
1422 #define NV30_3D_VTX_ATTR_3F__LEN 0x00000010
1425 #define NV30_3D_VTX_ATTR_3F_X(i0) (0x00001500 + 0x10*(i0))
1427 #define NV30_3D_VTX_ATTR_3F_Y(i0) (0x00001504 + 0x10*(i0))
1429 #define NV30_3D_VTX_ATTR_3F_Z(i0) (0x00001508 + 0x10*(i0))
1432 #define NV30_3D_VP_CLIP_PLANE(i0, i1) (0x00001600 + 0x10*(i0) + 0x4*(i1))
1433 #define NV30_3D_VP_CLIP_PLANE__ESIZE 0x00000004
1434 #define NV30_3D_VP_CLIP_PLANE__LEN 0x00000004
1436 #define NV30_3D_VTXBUF(i0) (0x00001680 + 0x4*(i0))
1437 #define NV30_3D_VTXBUF__ESIZE 0x00000004
1438 #define NV30_3D_VTXBUF__LEN 0x00000010
1439 #define NV30_3D_VTXBUF_OFFSET__MASK 0x0fffffff
1440 #define NV30_3D_VTXBUF_OFFSET__SHIFT 0
1441 #define NV30_3D_VTXBUF_DMA1 0x80000000
1443 #define NV40_3D_VTX_CACHE_INVALIDATE 0x00001714
1445 #define NV30_3D_VTXFMT(i0) (0x00001740 + 0x4*(i0))
1446 #define NV30_3D_VTXFMT__ESIZE 0x00000004
1447 #define NV30_3D_VTXFMT__LEN 0x00000010
1448 #define NV30_3D_VTXFMT_TYPE__MASK 0x0000000f
1449 #define NV30_3D_VTXFMT_TYPE__SHIFT 0
1450 #define NV30_3D_VTXFMT_TYPE_B8G8R8A8_UNORM 0x00000000
1451 #define NV30_3D_VTXFMT_TYPE_V16_SNORM 0x00000001
1452 #define NV30_3D_VTXFMT_TYPE_V32_FLOAT 0x00000002
1453 #define NV30_3D_VTXFMT_TYPE_V16_FLOAT 0x00000003
1454 #define NV30_3D_VTXFMT_TYPE_U8_UNORM 0x00000004
1455 #define NV30_3D_VTXFMT_TYPE_V16_SSCALED 0x00000005
1456 #define NV30_3D_VTXFMT_TYPE_U8_USCALED 0x00000007
1457 #define NV30_3D_VTXFMT_SIZE__MASK 0x000000f0
1458 #define NV30_3D_VTXFMT_SIZE__SHIFT 4
1459 #define NV30_3D_VTXFMT_STRIDE__MASK 0x0000ff00
1460 #define NV30_3D_VTXFMT_STRIDE__SHIFT 8
1462 #define NV30_3D_LIGHT_MODEL_BACK_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION 0x000017a0
1465 #define NV30_3D_LIGHT_MODEL_BACK_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_R 0x000017a0
1467 #define NV30_3D_LIGHT_MODEL_BACK_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_G 0x000017a4
1469 #define NV30_3D_LIGHT_MODEL_BACK_SIDE_PRODUCT_AMBIENT_PLUS_EMISSION_B 0x000017a8
1471 #define NV30_3D_COLOR_MATERIAL_BACK 0x000017b0
1474 #define NV30_3D_COLOR_MATERIAL_BACK_R 0x000017b0
1476 #define NV30_3D_COLOR_MATERIAL_BACK_G 0x000017b4
1478 #define NV30_3D_COLOR_MATERIAL_BACK_B 0x000017b8
1480 #define NV30_3D_COLOR_MATERIAL_BACK_A 0x000017bc
1482 #define NV30_3D_QUERY_RESET 0x000017c8
1484 #define NV30_3D_QUERY_ENABLE 0x000017cc
1486 #define NV30_3D_QUERY_GET 0x00001800
1487 #define NV30_3D_QUERY_GET_OFFSET__MASK 0x00ffffff
1488 #define NV30_3D_QUERY_GET_OFFSET__SHIFT 0
1489 #define NV30_3D_QUERY_GET_UNK24__MASK 0xff000000
1490 #define NV30_3D_QUERY_GET_UNK24__SHIFT 24
1492 #define NV30_3D_VERTEX_BEGIN_END 0x00001808
1493 #define NV30_3D_VERTEX_BEGIN_END_STOP 0x00000000
1494 #define NV30_3D_VERTEX_BEGIN_END_POINTS 0x00000001
1495 #define NV30_3D_VERTEX_BEGIN_END_LINES 0x00000002
1496 #define NV30_3D_VERTEX_BEGIN_END_LINE_LOOP 0x00000003
1497 #define NV30_3D_VERTEX_BEGIN_END_LINE_STRIP 0x00000004
1498 #define NV30_3D_VERTEX_BEGIN_END_TRIANGLES 0x00000005
1499 #define NV30_3D_VERTEX_BEGIN_END_TRIANGLE_STRIP 0x00000006
1500 #define NV30_3D_VERTEX_BEGIN_END_TRIANGLE_FAN 0x00000007
1501 #define NV30_3D_VERTEX_BEGIN_END_QUADS 0x00000008
1502 #define NV30_3D_VERTEX_BEGIN_END_QUAD_STRIP 0x00000009
1503 #define NV30_3D_VERTEX_BEGIN_END_POLYGON 0x0000000a
1505 #define NV30_3D_VB_ELEMENT_U16 0x0000180c
1506 #define NV30_3D_VB_ELEMENT_U16_0__MASK 0x0000ffff
1507 #define NV30_3D_VB_ELEMENT_U16_0__SHIFT 0
1508 #define NV30_3D_VB_ELEMENT_U16_1__MASK 0xffff0000
1509 #define NV30_3D_VB_ELEMENT_U16_1__SHIFT 16
1511 #define NV30_3D_VB_ELEMENT_U32 0x00001810
1513 #define NV30_3D_VB_VERTEX_BATCH 0x00001814
1514 #define NV30_3D_VB_VERTEX_BATCH_OFFSET__MASK 0x00ffffff
1515 #define NV30_3D_VB_VERTEX_BATCH_OFFSET__SHIFT 0
1516 #define NV30_3D_VB_VERTEX_BATCH_COUNT__MASK 0xff000000
1517 #define NV30_3D_VB_VERTEX_BATCH_COUNT__SHIFT 24
1519 #define NV30_3D_VERTEX_DATA 0x00001818
1521 #define NV30_3D_IDXBUF_OFFSET 0x0000181c
1523 #define NV30_3D_IDXBUF_FORMAT 0x00001820
1524 #define NV30_3D_IDXBUF_FORMAT_DMA1 0x00000001
1525 #define NV30_3D_IDXBUF_FORMAT_TYPE__MASK 0x000000f0
1526 #define NV30_3D_IDXBUF_FORMAT_TYPE__SHIFT 4
1527 #define NV30_3D_IDXBUF_FORMAT_TYPE_U32 0x00000000
1528 #define NV30_3D_IDXBUF_FORMAT_TYPE_U16 0x00000010
1530 #define NV30_3D_VB_INDEX_BATCH 0x00001824
1531 #define NV30_3D_VB_INDEX_BATCH_START__MASK 0x00ffffff
1532 #define NV30_3D_VB_INDEX_BATCH_START__SHIFT 0
1533 #define NV30_3D_VB_INDEX_BATCH_COUNT__MASK 0xff000000
1534 #define NV30_3D_VB_INDEX_BATCH_COUNT__SHIFT 24
1536 #define NV30_3D_POLYGON_MODE_FRONT 0x00001828
1537 #define NV30_3D_POLYGON_MODE_FRONT_POINT 0x00001b00
1538 #define NV30_3D_POLYGON_MODE_FRONT_LINE 0x00001b01
1539 #define NV30_3D_POLYGON_MODE_FRONT_FILL 0x00001b02
1541 #define NV30_3D_POLYGON_MODE_BACK 0x0000182c
1542 #define NV30_3D_POLYGON_MODE_BACK_POINT 0x00001b00
1543 #define NV30_3D_POLYGON_MODE_BACK_LINE 0x00001b01
1544 #define NV30_3D_POLYGON_MODE_BACK_FILL 0x00001b02
1546 #define NV30_3D_CULL_FACE 0x00001830
1547 #define NV30_3D_CULL_FACE_FRONT 0x00000404
1548 #define NV30_3D_CULL_FACE_BACK 0x00000405
1549 #define NV30_3D_CULL_FACE_FRONT_AND_BACK 0x00000408
1551 #define NV30_3D_FRONT_FACE 0x00001834
1552 #define NV30_3D_FRONT_FACE_CW 0x00000900
1553 #define NV30_3D_FRONT_FACE_CCW 0x00000901
1555 #define NV30_3D_POLYGON_SMOOTH_ENABLE 0x00001838
1557 #define NV30_3D_CULL_FACE_ENABLE 0x0000183c
1559 #define NV30_3D_TEX_PALETTE_OFFSET(i0) (0x00001840 + 0x4*(i0))
1560 #define NV30_3D_TEX_PALETTE_OFFSET__ESIZE 0x00000004
1561 #define NV30_3D_TEX_PALETTE_OFFSET__LEN 0x00000008
1563 #define NV40_3D_TEX_SIZE1(i0) (0x00001840 + 0x4*(i0))
1564 #define NV40_3D_TEX_SIZE1__ESIZE 0x00000004
1565 #define NV40_3D_TEX_SIZE1__LEN 0x00000008
1566 #define NV40_3D_TEX_SIZE1_DEPTH__MASK 0xfff00000
1567 #define NV40_3D_TEX_SIZE1_DEPTH__SHIFT 20
1568 #define NV40_3D_TEX_SIZE1_PITCH__MASK 0x0000ffff
1569 #define NV40_3D_TEX_SIZE1_PITCH__SHIFT 0
1571 #define NV30_3D_VTX_ATTR_2F(i0) (0x00001880 + 0x8*(i0))
1572 #define NV30_3D_VTX_ATTR_2F__ESIZE 0x00000008
1573 #define NV30_3D_VTX_ATTR_2F__LEN 0x00000010
1576 #define NV30_3D_VTX_ATTR_2F_X(i0) (0x00001880 + 0x8*(i0))
1578 #define NV30_3D_VTX_ATTR_2F_Y(i0) (0x00001884 + 0x8*(i0))
1580 #define NV30_3D_VTX_ATTR_2I(i0) (0x00001900 + 0x4*(i0))
1581 #define NV30_3D_VTX_ATTR_2I__ESIZE 0x00000004
1582 #define NV30_3D_VTX_ATTR_2I__LEN 0x00000010
1583 #define NV30_3D_VTX_ATTR_2I_X__MASK 0x0000ffff
1584 #define NV30_3D_VTX_ATTR_2I_X__SHIFT 0
1585 #define NV30_3D_VTX_ATTR_2I_Y__MASK 0xffff0000
1586 #define NV30_3D_VTX_ATTR_2I_Y__SHIFT 16
1588 #define NV30_3D_VTX_ATTR_4UB(i0) (0x00001940 + 0x4*(i0))
1589 #define NV30_3D_VTX_ATTR_4UB__ESIZE 0x00000004
1590 #define NV30_3D_VTX_ATTR_4UB__LEN 0x00000010
1591 #define NV30_3D_VTX_ATTR_4UB_X__MASK 0x000000ff
1592 #define NV30_3D_VTX_ATTR_4UB_X__SHIFT 0
1593 #define NV30_3D_VTX_ATTR_4UB_Y__MASK 0x0000ff00
1594 #define NV30_3D_VTX_ATTR_4UB_Y__SHIFT 8
1595 #define NV30_3D_VTX_ATTR_4UB_Z__MASK 0x00ff0000
1596 #define NV30_3D_VTX_ATTR_4UB_Z__SHIFT 16
1597 #define NV30_3D_VTX_ATTR_4UB_W__MASK 0xff000000
1598 #define NV30_3D_VTX_ATTR_4UB_W__SHIFT 24
1600 #define NV30_3D_VTX_ATTR_4I(i0) (0x00001980 + 0x8*(i0))
1601 #define NV30_3D_VTX_ATTR_4I__ESIZE 0x00000008
1602 #define NV30_3D_VTX_ATTR_4I__LEN 0x00000010
1604 #define NV30_3D_VTX_ATTR_4I_XY(i0) (0x00001980 + 0x8*(i0))
1605 #define NV30_3D_VTX_ATTR_4I_XY_X__MASK 0x0000ffff
1606 #define NV30_3D_VTX_ATTR_4I_XY_X__SHIFT 0
1607 #define NV30_3D_VTX_ATTR_4I_XY_Y__MASK 0xffff0000
1608 #define NV30_3D_VTX_ATTR_4I_XY_Y__SHIFT 16
1610 #define NV30_3D_VTX_ATTR_4I_ZW(i0) (0x00001984 + 0x8*(i0))
1611 #define NV30_3D_VTX_ATTR_4I_ZW_Z__MASK 0x0000ffff
1612 #define NV30_3D_VTX_ATTR_4I_ZW_Z__SHIFT 0
1613 #define NV30_3D_VTX_ATTR_4I_ZW_W__MASK 0xffff0000
1614 #define NV30_3D_VTX_ATTR_4I_ZW_W__SHIFT 16
1616 #define NV30_3D_TEX_OFFSET(i0) (0x00001a00 + 0x20*(i0))
1617 #define NV30_3D_TEX_OFFSET__ESIZE 0x00000020
1618 #define NV30_3D_TEX_OFFSET__LEN 0x00000008
1620 #define NV30_3D_TEX_FORMAT(i0) (0x00001a04 + 0x20*(i0))
1621 #define NV30_3D_TEX_FORMAT__ESIZE 0x00000020
1622 #define NV30_3D_TEX_FORMAT__LEN 0x00000008
1623 #define NV30_3D_TEX_FORMAT_DMA0 0x00000001
1624 #define NV30_3D_TEX_FORMAT_DMA1 0x00000002
1625 #define NV30_3D_TEX_FORMAT_CUBIC 0x00000004
1626 #define NV30_3D_TEX_FORMAT_NO_BORDER 0x00000008
1627 #define NV30_3D_TEX_FORMAT_DIMS__MASK 0x000000f0
1628 #define NV30_3D_TEX_FORMAT_DIMS__SHIFT 4
1629 #define NV30_3D_TEX_FORMAT_DIMS_1D 0x00000010
1630 #define NV30_3D_TEX_FORMAT_DIMS_2D 0x00000020
1631 #define NV30_3D_TEX_FORMAT_DIMS_3D 0x00000030
1632 #define NV30_3D_TEX_FORMAT_FORMAT__MASK 0x0000ff00
1633 #define NV30_3D_TEX_FORMAT_FORMAT__SHIFT 8
1634 #define NV30_3D_TEX_FORMAT_FORMAT_L8 0x00000000
1635 #define NV30_3D_TEX_FORMAT_FORMAT_I8 0x00000100
1636 #define NV30_3D_TEX_FORMAT_FORMAT_A1R5G5B5 0x00000200
1637 #define NV30_3D_TEX_FORMAT_FORMAT_A4R4G4B4 0x00000400
1638 #define NV30_3D_TEX_FORMAT_FORMAT_R5G6B5 0x00000500
1639 #define NV30_3D_TEX_FORMAT_FORMAT_A8R8G8B8 0x00000600
1640 #define NV30_3D_TEX_FORMAT_FORMAT_X8R8G8B8 0x00000700
1641 #define NV30_3D_TEX_FORMAT_FORMAT_INDEX8 0x00000b00
1642 #define NV30_3D_TEX_FORMAT_FORMAT_DXT1 0x00000c00
1643 #define NV30_3D_TEX_FORMAT_FORMAT_DXT3 0x00000e00
1644 #define NV30_3D_TEX_FORMAT_FORMAT_DXT5 0x00000f00
1645 #define NV30_3D_TEX_FORMAT_FORMAT_A1R5G5B5_RECT 0x00001000
1646 #define NV30_3D_TEX_FORMAT_FORMAT_R5G6B5_RECT 0x00001100
1647 #define NV30_3D_TEX_FORMAT_FORMAT_A8R8G8B8_RECT 0x00001200
1648 #define NV30_3D_TEX_FORMAT_FORMAT_L8_RECT 0x00001300
1649 #define NV30_3D_TEX_FORMAT_FORMAT_DSDT8_RECT 0x00001700
1650 #define NV30_3D_TEX_FORMAT_FORMAT_A8L8 0x00001a00
1651 #define NV30_3D_TEX_FORMAT_FORMAT_I8_RECT 0x00001b00
1652 #define NV30_3D_TEX_FORMAT_FORMAT_A4R4G4B4_RECT 0x00001d00
1653 #define NV30_3D_TEX_FORMAT_FORMAT_R8G8B8_RECT 0x00001e00
1654 #define NV30_3D_TEX_FORMAT_FORMAT_A8L8_RECT 0x00002000
1655 #define NV30_3D_TEX_FORMAT_FORMAT_Z24 0x00002a00
1656 #define NV30_3D_TEX_FORMAT_FORMAT_Z24_RECT 0x00002b00
1657 #define NV30_3D_TEX_FORMAT_FORMAT_Z16 0x00002c00
1658 #define NV30_3D_TEX_FORMAT_FORMAT_Z16_RECT 0x00002d00
1659 #define NV30_3D_TEX_FORMAT_FORMAT_DSDT8 0x00002800
1660 #define NV30_3D_TEX_FORMAT_FORMAT_HILO16 0x00003300
1661 #define NV30_3D_TEX_FORMAT_FORMAT_HILO16_RECT 0x00003600
1662 #define NV30_3D_TEX_FORMAT_FORMAT_HILO8 0x00004400
1663 #define NV30_3D_TEX_FORMAT_FORMAT_SIGNED_HILO8 0x00004500
1664 #define NV30_3D_TEX_FORMAT_FORMAT_HILO8_RECT 0x00004600
1665 #define NV30_3D_TEX_FORMAT_FORMAT_SIGNED_HILO8_RECT 0x00004700
1666 #define NV30_3D_TEX_FORMAT_FORMAT_A16 0x00003200
1667 #define NV30_3D_TEX_FORMAT_FORMAT_A16_RECT 0x00003500
1668 #define NV30_3D_TEX_FORMAT_FORMAT_UNK3F 0x00003f00
1669 #define NV30_3D_TEX_FORMAT_FORMAT_FLOAT_RGBA16_NV 0x00004a00
1670 #define NV30_3D_TEX_FORMAT_FORMAT_FLOAT_RGBA32_NV 0x00004b00
1671 #define NV30_3D_TEX_FORMAT_FORMAT_FLOAT_R32_NV 0x00004c00
1672 #define NV40_3D_TEX_FORMAT_FORMAT__MASK 0x00001f00
1673 #define NV40_3D_TEX_FORMAT_FORMAT__SHIFT 8
1674 #define NV40_3D_TEX_FORMAT_FORMAT_L8 0x00000100
1675 #define NV40_3D_TEX_FORMAT_FORMAT_A1R5G5B5 0x00000200
1676 #define NV40_3D_TEX_FORMAT_FORMAT_A4R4G4B4 0x00000300
1677 #define NV40_3D_TEX_FORMAT_FORMAT_R5G6B5 0x00000400
1678 #define NV40_3D_TEX_FORMAT_FORMAT_A8R8G8B8 0x00000500
1679 #define NV40_3D_TEX_FORMAT_FORMAT_DXT1 0x00000600
1680 #define NV40_3D_TEX_FORMAT_FORMAT_DXT3 0x00000700
1681 #define NV40_3D_TEX_FORMAT_FORMAT_DXT5 0x00000800
1682 #define NV40_3D_TEX_FORMAT_FORMAT_A8L8 0x00000b00
1683 #define NV40_3D_TEX_FORMAT_FORMAT_Z24 0x00001000
1684 #define NV40_3D_TEX_FORMAT_FORMAT_Z16 0x00001200
1685 #define NV40_3D_TEX_FORMAT_FORMAT_A16 0x00001400
1686 #define NV40_3D_TEX_FORMAT_FORMAT_A16L16 0x00001500
1687 #define NV40_3D_TEX_FORMAT_FORMAT_HILO8 0x00001800
1688 #define NV40_3D_TEX_FORMAT_FORMAT_RGBA16F 0x00001a00
1689 #define NV40_3D_TEX_FORMAT_FORMAT_RGBA32F 0x00001b00
1690 #define NV40_3D_TEX_FORMAT_LINEAR 0x00002000
1691 #define NV40_3D_TEX_FORMAT_RECT 0x00004000
1692 #define NV40_3D_TEX_FORMAT_MIPMAP_COUNT__MASK 0x000f0000
1693 #define NV40_3D_TEX_FORMAT_MIPMAP_COUNT__SHIFT 16
1694 #define NV30_3D_TEX_FORMAT_MIPMAP 0x00080000
1695 #define NV30_3D_TEX_FORMAT_BASE_SIZE_U__MASK 0x00f00000
1696 #define NV30_3D_TEX_FORMAT_BASE_SIZE_U__SHIFT 20
1697 #define NV30_3D_TEX_FORMAT_BASE_SIZE_V__MASK 0x0f000000
1698 #define NV30_3D_TEX_FORMAT_BASE_SIZE_V__SHIFT 24
1699 #define NV30_3D_TEX_FORMAT_BASE_SIZE_W__MASK 0xf0000000
1700 #define NV30_3D_TEX_FORMAT_BASE_SIZE_W__SHIFT 28
1702 #define NV30_3D_TEX_WRAP(i0) (0x00001a08 + 0x20*(i0))
1703 #define NV30_3D_TEX_WRAP__ESIZE 0x00000020
1704 #define NV30_3D_TEX_WRAP__LEN 0x00000008
1705 #define NV30_3D_TEX_WRAP_S__MASK 0x000000ff
1706 #define NV30_3D_TEX_WRAP_S__SHIFT 0
1707 #define NV30_3D_TEX_WRAP_S_REPEAT 0x00000001
1708 #define NV30_3D_TEX_WRAP_S_MIRRORED_REPEAT 0x00000002
1709 #define NV30_3D_TEX_WRAP_S_CLAMP_TO_EDGE 0x00000003
1710 #define NV30_3D_TEX_WRAP_S_CLAMP_TO_BORDER 0x00000004
1711 #define NV30_3D_TEX_WRAP_S_CLAMP 0x00000005
1712 #define NV40_3D_TEX_WRAP_S_MIRROR_CLAMP_TO_EDGE 0x00000006
1713 #define NV40_3D_TEX_WRAP_S_MIRROR_CLAMP_TO_BORDER 0x00000007
1714 #define NV40_3D_TEX_WRAP_S_MIRROR_CLAMP 0x00000008
1715 #define NV40_3D_TEX_WRAP_ANISO_MIP_FILTER_OPTIMIZATION__MASK 0x00000070
1716 #define NV40_3D_TEX_WRAP_ANISO_MIP_FILTER_OPTIMIZATION__SHIFT 4
1717 #define NV40_3D_TEX_WRAP_ANISO_MIP_FILTER_OPTIMIZATION_OFF 0x00000000
1718 #define NV40_3D_TEX_WRAP_ANISO_MIP_FILTER_OPTIMIZATION_QUALITY 0x00000020
1719 #define NV40_3D_TEX_WRAP_ANISO_MIP_FILTER_OPTIMIZATION_PERFORMANCE 0x00000030
1720 #define NV40_3D_TEX_WRAP_ANISO_MIP_FILTER_OPTIMIZATION_HIGH_PERFORMANCE 0x00000070
1721 #define NV30_3D_TEX_WRAP_T__MASK 0x00000f00
1722 #define NV30_3D_TEX_WRAP_T__SHIFT 8
1723 #define NV30_3D_TEX_WRAP_T_REPEAT 0x00000100
1724 #define NV30_3D_TEX_WRAP_T_MIRRORED_REPEAT 0x00000200
1725 #define NV30_3D_TEX_WRAP_T_CLAMP_TO_EDGE 0x00000300
1726 #define NV30_3D_TEX_WRAP_T_CLAMP_TO_BORDER 0x00000400
1727 #define NV30_3D_TEX_WRAP_T_CLAMP 0x00000500
1728 #define NV40_3D_TEX_WRAP_T_MIRROR_CLAMP_TO_EDGE 0x00000600
1729 #define NV40_3D_TEX_WRAP_T_MIRROR_CLAMP_TO_BORDER 0x00000700
1730 #define NV40_3D_TEX_WRAP_T_MIRROR_CLAMP 0x00000800
1731 #define NV30_3D_TEX_WRAP_EXPAND_NORMAL 0x0000f000
1732 #define NV30_3D_TEX_WRAP_R__MASK 0x000f0000
1733 #define NV30_3D_TEX_WRAP_R__SHIFT 16
1734 #define NV30_3D_TEX_WRAP_R_REPEAT 0x00010000
1735 #define NV30_3D_TEX_WRAP_R_MIRRORED_REPEAT 0x00020000
1736 #define NV30_3D_TEX_WRAP_R_CLAMP_TO_EDGE 0x00030000
1737 #define NV30_3D_TEX_WRAP_R_CLAMP_TO_BORDER 0x00040000
1738 #define NV30_3D_TEX_WRAP_R_CLAMP 0x00050000
1739 #define NV40_3D_TEX_WRAP_R_MIRROR_CLAMP_TO_EDGE 0x00060000
1740 #define NV40_3D_TEX_WRAP_R_MIRROR_CLAMP_TO_BORDER 0x00070000
1741 #define NV40_3D_TEX_WRAP_R_MIRROR_CLAMP 0x00080000
1742 #define NV40_3D_TEX_WRAP_GAMMA_DECREASE_FILTER__MASK 0x00f00000
1743 #define NV40_3D_TEX_WRAP_GAMMA_DECREASE_FILTER__SHIFT 20
1744 #define NV40_3D_TEX_WRAP_GAMMA_DECREASE_FILTER_NONE 0x00000000
1745 #define NV40_3D_TEX_WRAP_GAMMA_DECREASE_FILTER_RED 0x00100000
1746 #define NV40_3D_TEX_WRAP_GAMMA_DECREASE_FILTER_GREEN 0x00200000
1747 #define NV40_3D_TEX_WRAP_GAMMA_DECREASE_FILTER_BLUE 0x00400000
1748 #define NV40_3D_TEX_WRAP_GAMMA_DECREASE_FILTER_ALL 0x00f00000
1749 #define NV30_3D_TEX_WRAP_RCOMP__MASK 0xf0000000
1750 #define NV30_3D_TEX_WRAP_RCOMP__SHIFT 28
1751 #define NV30_3D_TEX_WRAP_RCOMP_NEVER 0x00000000
1752 #define NV30_3D_TEX_WRAP_RCOMP_GREATER 0x10000000
1753 #define NV30_3D_TEX_WRAP_RCOMP_EQUAL 0x20000000
1754 #define NV30_3D_TEX_WRAP_RCOMP_GEQUAL 0x30000000
1755 #define NV30_3D_TEX_WRAP_RCOMP_LESS 0x40000000
1756 #define NV30_3D_TEX_WRAP_RCOMP_NOTEQUAL 0x50000000
1757 #define NV30_3D_TEX_WRAP_RCOMP_LEQUAL 0x60000000
1758 #define NV30_3D_TEX_WRAP_RCOMP_ALWAYS 0x70000000
1760 #define NV30_3D_TEX_ENABLE(i0) (0x00001a0c + 0x20*(i0))
1761 #define NV30_3D_TEX_ENABLE__ESIZE 0x00000020
1762 #define NV30_3D_TEX_ENABLE__LEN 0x00000008
1763 #define NV30_3D_TEX_ENABLE_ANISO__MASK 0x00000030
1764 #define NV30_3D_TEX_ENABLE_ANISO__SHIFT 4
1765 #define NV30_3D_TEX_ENABLE_ANISO_NONE 0x00000000
1766 #define NV30_3D_TEX_ENABLE_ANISO_2X 0x00000010
1767 #define NV30_3D_TEX_ENABLE_ANISO_4X 0x00000020
1768 #define NV30_3D_TEX_ENABLE_ANISO_8X 0x00000030
1769 #define NV40_3D_TEX_ENABLE_ANISO__MASK 0x000000f0
1770 #define NV40_3D_TEX_ENABLE_ANISO__SHIFT 4
1771 #define NV40_3D_TEX_ENABLE_ANISO_NONE 0x00000000
1772 #define NV40_3D_TEX_ENABLE_ANISO_2X 0x00000010
1773 #define NV40_3D_TEX_ENABLE_ANISO_4X 0x00000020
1774 #define NV40_3D_TEX_ENABLE_ANISO_6X 0x00000030
1775 #define NV40_3D_TEX_ENABLE_ANISO_8X 0x00000040
1776 #define NV40_3D_TEX_ENABLE_ANISO_10X 0x00000050
1777 #define NV40_3D_TEX_ENABLE_ANISO_12X 0x00000060
1778 #define NV40_3D_TEX_ENABLE_ANISO_16X 0x00000070
1779 #define NV30_3D_TEX_ENABLE_MIPMAP_MAX_LOD__MASK 0x0003c000
1780 #define NV30_3D_TEX_ENABLE_MIPMAP_MAX_LOD__SHIFT 14
1781 #define NV40_3D_TEX_ENABLE_MIPMAP_MAX_LOD__MASK 0x00038000
1782 #define NV40_3D_TEX_ENABLE_MIPMAP_MAX_LOD__SHIFT 15
1783 #define NV30_3D_TEX_ENABLE_MIPMAP_MIN_LOD__MASK 0x3c000000
1784 #define NV30_3D_TEX_ENABLE_MIPMAP_MIN_LOD__SHIFT 26
1785 #define NV40_3D_TEX_ENABLE_MIPMAP_MIN_LOD__MASK 0x38000000
1786 #define NV40_3D_TEX_ENABLE_MIPMAP_MIN_LOD__SHIFT 27
1787 #define NV30_3D_TEX_ENABLE_ENABLE 0x40000000
1788 #define NV40_3D_TEX_ENABLE_ENABLE 0x80000000
1790 #define NV30_3D_TEX_SWIZZLE(i0) (0x00001a10 + 0x20*(i0))
1791 #define NV30_3D_TEX_SWIZZLE__ESIZE 0x00000020
1792 #define NV30_3D_TEX_SWIZZLE__LEN 0x00000008
1793 #define NV30_3D_TEX_SWIZZLE_S1_W__MASK 0x00000003
1794 #define NV30_3D_TEX_SWIZZLE_S1_W__SHIFT 0
1795 #define NV30_3D_TEX_SWIZZLE_S1_W_W 0x00000000
1796 #define NV30_3D_TEX_SWIZZLE_S1_W_Z 0x00000001
1797 #define NV30_3D_TEX_SWIZZLE_S1_W_Y 0x00000002
1798 #define NV30_3D_TEX_SWIZZLE_S1_W_X 0x00000003
1799 #define NV30_3D_TEX_SWIZZLE_S1_Z__MASK 0x0000000c
1800 #define NV30_3D_TEX_SWIZZLE_S1_Z__SHIFT 2
1801 #define NV30_3D_TEX_SWIZZLE_S1_Z_W 0x00000000
1802 #define NV30_3D_TEX_SWIZZLE_S1_Z_Z 0x00000004
1803 #define NV30_3D_TEX_SWIZZLE_S1_Z_Y 0x00000008
1804 #define NV30_3D_TEX_SWIZZLE_S1_Z_X 0x0000000c
1805 #define NV30_3D_TEX_SWIZZLE_S1_Y__MASK 0x00000030
1806 #define NV30_3D_TEX_SWIZZLE_S1_Y__SHIFT 4
1807 #define NV30_3D_TEX_SWIZZLE_S1_Y_W 0x00000000
1808 #define NV30_3D_TEX_SWIZZLE_S1_Y_Z 0x00000010
1809 #define NV30_3D_TEX_SWIZZLE_S1_Y_Y 0x00000020
1810 #define NV30_3D_TEX_SWIZZLE_S1_Y_X 0x00000030
1811 #define NV30_3D_TEX_SWIZZLE_S1_X__MASK 0x000000c0
1812 #define NV30_3D_TEX_SWIZZLE_S1_X__SHIFT 6
1813 #define NV30_3D_TEX_SWIZZLE_S1_X_W 0x00000000
1814 #define NV30_3D_TEX_SWIZZLE_S1_X_Z 0x00000040
1815 #define NV30_3D_TEX_SWIZZLE_S1_X_Y 0x00000080
1816 #define NV30_3D_TEX_SWIZZLE_S1_X_X 0x000000c0
1817 #define NV30_3D_TEX_SWIZZLE_S0_W__MASK 0x00000300
1818 #define NV30_3D_TEX_SWIZZLE_S0_W__SHIFT 8
1819 #define NV30_3D_TEX_SWIZZLE_S0_W_ZERO 0x00000000
1820 #define NV30_3D_TEX_SWIZZLE_S0_W_ONE 0x00000100
1821 #define NV30_3D_TEX_SWIZZLE_S0_W_S1 0x00000200
1822 #define NV30_3D_TEX_SWIZZLE_S0_Z__MASK 0x00000c00
1823 #define NV30_3D_TEX_SWIZZLE_S0_Z__SHIFT 10
1824 #define NV30_3D_TEX_SWIZZLE_S0_Z_ZERO 0x00000000
1825 #define NV30_3D_TEX_SWIZZLE_S0_Z_ONE 0x00000400
1826 #define NV30_3D_TEX_SWIZZLE_S0_Z_S1 0x00000800
1827 #define NV30_3D_TEX_SWIZZLE_S0_Y__MASK 0x00003000
1828 #define NV30_3D_TEX_SWIZZLE_S0_Y__SHIFT 12
1829 #define NV30_3D_TEX_SWIZZLE_S0_Y_ZERO 0x00000000
1830 #define NV30_3D_TEX_SWIZZLE_S0_Y_ONE 0x00001000
1831 #define NV30_3D_TEX_SWIZZLE_S0_Y_S1 0x00002000
1832 #define NV30_3D_TEX_SWIZZLE_S0_X__MASK 0x0000c000
1833 #define NV30_3D_TEX_SWIZZLE_S0_X__SHIFT 14
1834 #define NV30_3D_TEX_SWIZZLE_S0_X_ZERO 0x00000000
1835 #define NV30_3D_TEX_SWIZZLE_S0_X_ONE 0x00004000
1836 #define NV30_3D_TEX_SWIZZLE_S0_X_S1 0x00008000
1837 #define NV30_3D_TEX_SWIZZLE_RECT_PITCH__MASK 0xffff0000
1838 #define NV30_3D_TEX_SWIZZLE_RECT_PITCH__SHIFT 16
1840 #define NV30_3D_TEX_FILTER(i0) (0x00001a14 + 0x20*(i0))
1841 #define NV30_3D_TEX_FILTER__ESIZE 0x00000020
1842 #define NV30_3D_TEX_FILTER__LEN 0x00000008
1843 #define NV30_3D_TEX_FILTER_LOD_BIAS__MASK 0x00000f00
1844 #define NV30_3D_TEX_FILTER_LOD_BIAS__SHIFT 8
1845 #define NV30_3D_TEX_FILTER_MIN__MASK 0x000f0000
1846 #define NV30_3D_TEX_FILTER_MIN__SHIFT 16
1847 #define NV30_3D_TEX_FILTER_MIN_NEAREST 0x00010000
1848 #define NV30_3D_TEX_FILTER_MIN_LINEAR 0x00020000
1849 #define NV30_3D_TEX_FILTER_MIN_NEAREST_MIPMAP_NEAREST 0x00030000
1850 #define NV30_3D_TEX_FILTER_MIN_LINEAR_MIPMAP_NEAREST 0x00040000
1851 #define NV30_3D_TEX_FILTER_MIN_NEAREST_MIPMAP_LINEAR 0x00050000
1852 #define NV30_3D_TEX_FILTER_MIN_LINEAR_MIPMAP_LINEAR 0x00060000
1853 #define NV30_3D_TEX_FILTER_MAG__MASK 0x0f000000
1854 #define NV30_3D_TEX_FILTER_MAG__SHIFT 24
1855 #define NV30_3D_TEX_FILTER_MAG_NEAREST 0x01000000
1856 #define NV30_3D_TEX_FILTER_MAG_LINEAR 0x02000000
1857 #define NV30_3D_TEX_FILTER_SIGNED_BLUE 0x10000000
1858 #define NV30_3D_TEX_FILTER_SIGNED_GREEN 0x20000000
1859 #define NV30_3D_TEX_FILTER_SIGNED_RED 0x40000000
1860 #define NV30_3D_TEX_FILTER_SIGNED_ALPHA 0x80000000
1862 #define NV30_3D_TEX_NPOT_SIZE(i0) (0x00001a18 + 0x20*(i0))
1863 #define NV30_3D_TEX_NPOT_SIZE__ESIZE 0x00000020
1864 #define NV30_3D_TEX_NPOT_SIZE__LEN 0x00000008
1865 #define NV30_3D_TEX_NPOT_SIZE_H__MASK 0x0000ffff
1866 #define NV30_3D_TEX_NPOT_SIZE_H__SHIFT 0
1867 #define NV30_3D_TEX_NPOT_SIZE_W__MASK 0xffff0000
1868 #define NV30_3D_TEX_NPOT_SIZE_W__SHIFT 16
1870 #define NV30_3D_TEX_BORDER_COLOR(i0) (0x00001a1c + 0x20*(i0))
1871 #define NV30_3D_TEX_BORDER_COLOR__ESIZE 0x00000020
1872 #define NV30_3D_TEX_BORDER_COLOR__LEN 0x00000008
1873 #define NV30_3D_TEX_BORDER_COLOR_B__MASK 0x000000ff
1874 #define NV30_3D_TEX_BORDER_COLOR_B__SHIFT 0
1875 #define NV30_3D_TEX_BORDER_COLOR_G__MASK 0x0000ff00
1876 #define NV30_3D_TEX_BORDER_COLOR_G__SHIFT 8
1877 #define NV30_3D_TEX_BORDER_COLOR_R__MASK 0x00ff0000
1878 #define NV30_3D_TEX_BORDER_COLOR_R__SHIFT 16
1879 #define NV30_3D_TEX_BORDER_COLOR_A__MASK 0xff000000
1880 #define NV30_3D_TEX_BORDER_COLOR_A__SHIFT 24
1882 #define NV30_3D_VTX_ATTR_4F(i0) (0x00001c00 + 0x10*(i0))
1883 #define NV30_3D_VTX_ATTR_4F__ESIZE 0x00000010
1884 #define NV30_3D_VTX_ATTR_4F__LEN 0x00000010
1887 #define NV30_3D_VTX_ATTR_4F_X(i0) (0x00001c00 + 0x10*(i0))
1889 #define NV30_3D_VTX_ATTR_4F_Y(i0) (0x00001c04 + 0x10*(i0))
1891 #define NV30_3D_VTX_ATTR_4F_Z(i0) (0x00001c08 + 0x10*(i0))
1893 #define NV30_3D_VTX_ATTR_4F_W(i0) (0x00001c0c + 0x10*(i0))
1895 #define NV30_3D_FP_CONTROL 0x00001d60
1896 #define NV30_3D_FP_CONTROL_USED_REGS_MINUS1_DIV2__MASK 0x0000000f
1897 #define NV30_3D_FP_CONTROL_USED_REGS_MINUS1_DIV2__SHIFT 0
1898 #define NV30_3D_FP_CONTROL_USES_KIL 0x00000080
1899 #define NV40_3D_FP_CONTROL_KIL 0x00000080
1900 #define NV40_3D_FP_CONTROL_TEMP_COUNT__MASK 0xff000000
1901 #define NV40_3D_FP_CONTROL_TEMP_COUNT__SHIFT 24
1903 #define NV30_3D_DEPTH_CONTROL 0x00001d78
1904 #define NV30_3D_DEPTH_CONTROL_CLAMP 0x000000f0
1906 #define NV30_3D_MULTISAMPLE_CONTROL 0x00001d7c
1907 #define NV30_3D_MULTISAMPLE_CONTROL_ENABLE 0x00000001
1908 #define NV30_3D_MULTISAMPLE_CONTROL_SAMPLE_ALPHA_TO_COVERAGE 0x00000010
1909 #define NV30_3D_MULTISAMPLE_CONTROL_SAMPLE_ALPHA_TO_ONE 0x00000100
1910 #define NV30_3D_MULTISAMPLE_CONTROL_SAMPLE_COVERAGE__MASK 0xffff0000
1911 #define NV30_3D_MULTISAMPLE_CONTROL_SAMPLE_COVERAGE__SHIFT 16
1913 #define NV30_3D_COORD_CONVENTIONS 0x00001d88
1914 #define NV30_3D_COORD_CONVENTIONS_HEIGHT__MASK 0x00000fff
1915 #define NV30_3D_COORD_CONVENTIONS_HEIGHT__SHIFT 0
1916 #define NV30_3D_COORD_CONVENTIONS_ORIGIN__MASK 0x00001000
1917 #define NV30_3D_COORD_CONVENTIONS_ORIGIN__SHIFT 12
1918 #define NV30_3D_COORD_CONVENTIONS_ORIGIN_NORMAL 0x00000000
1919 #define NV30_3D_COORD_CONVENTIONS_ORIGIN_INVERTED 0x00001000
1920 #define NV30_3D_COORD_CONVENTIONS_CENTER__MASK 0x00010000
1921 #define NV30_3D_COORD_CONVENTIONS_CENTER__SHIFT 16
1922 #define NV30_3D_COORD_CONVENTIONS_CENTER_HALF_INTEGER 0x00000000
1923 #define NV30_3D_COORD_CONVENTIONS_CENTER_INTEGER 0x00010000
1925 #define NV30_3D_CLEAR_DEPTH_VALUE 0x00001d8c
1927 #define NV30_3D_CLEAR_COLOR_VALUE 0x00001d90
1928 #define NV30_3D_CLEAR_COLOR_VALUE_B__MASK 0x000000ff
1929 #define NV30_3D_CLEAR_COLOR_VALUE_B__SHIFT 0
1930 #define NV30_3D_CLEAR_COLOR_VALUE_G__MASK 0x0000ff00
1931 #define NV30_3D_CLEAR_COLOR_VALUE_G__SHIFT 8
1932 #define NV30_3D_CLEAR_COLOR_VALUE_R__MASK 0x00ff0000
1933 #define NV30_3D_CLEAR_COLOR_VALUE_R__SHIFT 16
1934 #define NV30_3D_CLEAR_COLOR_VALUE_A__MASK 0xff000000
1935 #define NV30_3D_CLEAR_COLOR_VALUE_A__SHIFT 24
1937 #define NV30_3D_CLEAR_BUFFERS 0x00001d94
1938 #define NV30_3D_CLEAR_BUFFERS_DEPTH 0x00000001
1939 #define NV30_3D_CLEAR_BUFFERS_STENCIL 0x00000002
1940 #define NV30_3D_CLEAR_BUFFERS_COLOR_R 0x00000010
1941 #define NV30_3D_CLEAR_BUFFERS_COLOR_G 0x00000020
1942 #define NV30_3D_CLEAR_BUFFERS_COLOR_B 0x00000040
1943 #define NV30_3D_CLEAR_BUFFERS_COLOR_A 0x00000080
1945 #define NV30_3D_DO_VERTICES 0x00001dac
1947 #define NV30_3D_LINE_STIPPLE_ENABLE 0x00001db4
1949 #define NV30_3D_LINE_STIPPLE_PATTERN 0x00001db8
1950 #define NV30_3D_LINE_STIPPLE_PATTERN_FACTOR__MASK 0x0000ffff
1951 #define NV30_3D_LINE_STIPPLE_PATTERN_FACTOR__SHIFT 0
1952 #define NV30_3D_LINE_STIPPLE_PATTERN_PATTERN__MASK 0xffff0000
1953 #define NV30_3D_LINE_STIPPLE_PATTERN_PATTERN__SHIFT 16
1955 #define NV30_3D_BACK_MATERIAL_SHININESS(i0) (0x00001e20 + 0x4*(i0))
1956 #define NV30_3D_BACK_MATERIAL_SHININESS__ESIZE 0x00000004
1957 #define NV30_3D_BACK_MATERIAL_SHININESS__LEN 0x00000006
1959 #define NV30_3D_VTX_ATTR_1F(i0) (0x00001e40 + 0x4*(i0))
1960 #define NV30_3D_VTX_ATTR_1F__ESIZE 0x00000004
1961 #define NV30_3D_VTX_ATTR_1F__LEN 0x00000010
1963 #define NV30_3D_ENGINE 0x00001e94
1964 #define NV30_3D_ENGINE_FP 0x00000001
1965 #define NV30_3D_ENGINE_VP 0x00000002
1966 #define NV30_3D_ENGINE_FIXED 0x00000004
1968 #define NV30_3D_VP_UPLOAD_FROM_ID 0x00001e9c
1970 #define NV30_3D_VP_START_FROM_ID 0x00001ea0
1972 #define NV30_3D_POINT_PARAMETERS(i0) (0x00001ec0 + 0x4*(i0))
1973 #define NV30_3D_POINT_PARAMETERS__ESIZE 0x00000004
1974 #define NV30_3D_POINT_PARAMETERS__LEN 0x00000008
1976 #define NV30_3D_POINT_SIZE 0x00001ee0
1978 #define NV30_3D_POINT_PARAMETERS_ENABLE 0x00001ee4
1980 #define NV30_3D_POINT_SPRITE 0x00001ee8
1981 #define NV30_3D_POINT_SPRITE_ENABLE 0x00000001
1982 #define NV30_3D_POINT_SPRITE_R_MODE__MASK 0x00000006
1983 #define NV30_3D_POINT_SPRITE_R_MODE__SHIFT 1
1984 #define NV30_3D_POINT_SPRITE_R_MODE_ZERO 0x00000000
1985 #define NV30_3D_POINT_SPRITE_R_MODE_R 0x00000002
1986 #define NV30_3D_POINT_SPRITE_R_MODE_S 0x00000004
1987 #define NV30_3D_POINT_SPRITE_COORD_REPLACE_0 0x00000100
1988 #define NV30_3D_POINT_SPRITE_COORD_REPLACE_1 0x00000200
1989 #define NV30_3D_POINT_SPRITE_COORD_REPLACE_2 0x00000400
1990 #define NV30_3D_POINT_SPRITE_COORD_REPLACE_3 0x00000800
1991 #define NV30_3D_POINT_SPRITE_COORD_REPLACE_4 0x00001000
1992 #define NV30_3D_POINT_SPRITE_COORD_REPLACE_5 0x00002000
1993 #define NV30_3D_POINT_SPRITE_COORD_REPLACE_6 0x00004000
1994 #define NV30_3D_POINT_SPRITE_COORD_REPLACE_7 0x00008000
1996 #define NV30_3D_VP_UPLOAD_CONST_ID 0x00001efc
1998 #define NV30_3D_VP_UPLOAD_CONST(i0) (0x00001f00 + 0x10*(i0))
1999 #define NV30_3D_VP_UPLOAD_CONST__ESIZE 0x00000010
2000 #define NV30_3D_VP_UPLOAD_CONST__LEN 0x00000004
2003 #define NV30_3D_VP_UPLOAD_CONST_X(i0) (0x00001f00 + 0x10*(i0))
2005 #define NV30_3D_VP_UPLOAD_CONST_Y(i0) (0x00001f04 + 0x10*(i0))
2007 #define NV30_3D_VP_UPLOAD_CONST_Z(i0) (0x00001f08 + 0x10*(i0))
2009 #define NV30_3D_VP_UPLOAD_CONST_W(i0) (0x00001f0c + 0x10*(i0))
2011 #define NV30_3D_UNK1F80(i0) (0x00001f80 + 0x4*(i0))
2012 #define NV30_3D_UNK1F80__ESIZE 0x00000004
2013 #define NV30_3D_UNK1F80__LEN 0x00000010
2015 #define NV40_3D_TEX_CACHE_CTL 0x00001fd8
2017 #define NV40_3D_VP_ATTRIB_EN 0x00001ff0
2019 #define NV40_3D_VP_RESULT_EN 0x00001ff4
2022 #endif /* NV30_40_3D_XML */