fix up radeon span functions using latest r200 code from Brian,
[mesa.git] / src / mesa / drivers / dri / gamma / gamma_regs.h
1 /* $XFree86: xc/lib/GL/mesa/src/drv/gamma/gamma_regs.h,v 1.5 2002/02/22 21:33:02 dawes Exp $ */
2 /**************************************************************************
3
4 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
5 All Rights Reserved.
6
7 Permission is hereby granted, free of charge, to any person obtaining a
8 copy of this software and associated documentation files (the
9 "Software"), to deal in the Software without restriction, including
10 without limitation the rights to use, copy, modify, merge, publish,
11 distribute, sub license, and/or sell copies of the Software, and to
12 permit persons to whom the Software is furnished to do so, subject to
13 the following conditions:
14
15 The above copyright notice and this permission notice (including the
16 next paragraph) shall be included in all copies or substantial portions
17 of the Software.
18
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
22 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
23 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
27 **************************************************************************/
28
29 /*
30 * Authors:
31 * Kevin E. Martin <kevin@precisioninsight.com>
32 *
33 */
34
35 #ifndef _GAMMA_REGS_H_
36 #define _GAMMA_REGS_H_
37
38 #include "gamma_client.h"
39
40 /**************** MX FLAGS ****************/
41 /* FBReadMode */
42 #define FBReadSrcDisable 0x00000000
43 #define FBReadSrcEnable 0x00000200
44 #define FBReadDstDisable 0x00000000
45 #define FBReadDstEnable 0x00000400
46 #define FBDataTypeDefault 0x00000000
47 #define FBDataTypeColor 0x00008000
48 #define FBWindowOriginTop 0x00000000
49 #define FBWindowOriginBot 0x00010000
50 #define FBScanLineInt1 0x00000000
51 #define FBScanLineInt2 0x00800000
52 #define FBScanLineInt4 0x01000000
53 #define FBScanLineInt8 0x01800000
54 #define FBSrcAddrConst 0x00000000
55 #define FBSrcAddrIndex 0x10000000
56 #define FBSrcAddrCoord 0x20000000
57
58 /* LBReadMode */
59 #define LBPartialProdMask 0x000001ff
60 #define LBReadSrcDisable 0x00000000
61 #define LBReadSrcEnable 0x00000200
62 #define LBReadDstDisable 0x00000000
63 #define LBReadDstEnable 0x00000400
64 #define LBDataTypeDefault 0x00000000
65 #define LBDataTypeStencil 0x00010000
66 #define LBDataTypeDepth 0x00020000
67 #define LBWindowOriginTop 0x00000000
68 #define LBWindowOriginBot 0x00040000
69 #define LBScanLineInt1 0x00000000
70 #define LBScanLineInt2 0x00100000
71 #define LBScanLineInt4 0x00200000
72 #define LBScanLineInt8 0x00300000
73
74 /* ColorDDAMode */
75 #define ColorDDADisable 0x00000000
76 #define ColorDDAEnable 0x00000001
77 #define ColorDDAFlat 0x00000000
78 #define ColorDDAGouraud 0x00000002
79 #define ColorDDAShadingMask 0x00000002
80
81 /* AlphaTestMode */
82 #define AlphaTestModeDisable 0x00000000
83 #define AlphaTestModeEnable 0x00000001
84 #define AT_Never 0x00000000
85 #define AT_Less 0x00000002
86 #define AT_Equal 0x00000004
87 #define AT_LessEqual 0x00000006
88 #define AT_Greater 0x00000008
89 #define AT_NotEqual 0x0000000a
90 #define AT_GreaterEqual 0x0000000c
91 #define AT_Always 0x0000000e
92 #define AT_CompareMask 0x0000000e
93 #define AT_RefValueMask 0x00000ff0
94
95 /* AlphaBlendMode */
96 #define AlphaBlendModeDisable 0x00000000
97 #define AlphaBlendModeEnable 0x00000001
98 #define AB_Src_Zero 0x00000000
99 #define AB_Src_One 0x00000002
100 #define AB_Src_DstColor 0x00000004
101 #define AB_Src_OneMinusDstColor 0x00000006
102 #define AB_Src_SrcAlpha 0x00000008
103 #define AB_Src_OneMinusSrcAlpha 0x0000000a
104 #define AB_Src_DstAlpha 0x0000000c
105 #define AB_Src_OneMinusDstAlpha 0x0000000e
106 #define AB_Src_SrcAlphaSaturate 0x00000010
107 #define AB_SrcBlendMask 0x0000001e
108 #define AB_Dst_Zero 0x00000000
109 #define AB_Dst_One 0x00000020
110 #define AB_Dst_SrcColor 0x00000040
111 #define AB_Dst_OneMinusSrcColor 0x00000060
112 #define AB_Dst_SrcAlpha 0x00000080
113 #define AB_Dst_OneMinusSrcAlpha 0x000000a0
114 #define AB_Dst_DstAlpha 0x000000c0
115 #define AB_Dst_OneMinusDstAlpha 0x000000e0
116 #define AB_DstBlendMask 0x000000e0
117 #define AB_ColorFmt_8888 0x00000000
118 #define AB_ColorFmt_5555 0x00000100
119 #define AB_ColorFmt_4444 0x00000200
120 #define AB_ColorFmt_4444Front 0x00000300
121 #define AB_ColorFmt_4444Back 0x00000400
122 #define AB_ColorFmt_332Front 0x00000500
123 #define AB_ColorFmt_332Back 0x00000600
124 #define AB_ColorFmt_121Front 0x00000700
125 #define AB_ColorFmt_121Back 0x00000800
126 #define AB_ColorFmt_555Back 0x00000d00
127 #define AB_ColorFmt_CI8 0x00000e00
128 #define AB_ColorFmt_CI4 0x00000f00
129 #define AB_AlphaBufferPresent 0x00000000
130 #define AB_NoAlphaBufferPresent 0x00001000
131 #define AB_ColorOrder_BGR 0x00000000
132 #define AB_ColorOrder_RGB 0x00002000
133 #define AB_OpenGLType 0x00000000
134 #define AB_QuickDraw3DType 0x00004000
135 #define AB_AlphaDst_FBData 0x00000000
136 #define AB_AlphaDst_FBSourceData 0x00008000
137 #define AB_ColorConversionScale 0x00000000
138 #define AB_ColorConversionShift 0x00010000
139 #define AB_AlphaConversionScale 0x00000000
140 #define AB_AlphaConversionShift 0x00020000
141
142 /* AntialiasMode */
143 #define AntialiasModeDisable 0x00000000
144 #define AntialiasModeEnable 0x00000001
145
146 /* AreaStippleMode */
147 #define AreaStippleModeDisable 0x00000000
148 #define AreaStippleModeEnable 0x00000001
149 #define ASM_X32 0x00000008
150 #define ASM_Y32 0x00000040
151
152 /* DepthMode */
153 #define DepthModeDisable 0x00000000
154 #define DepthModeEnable 0x00000001
155 #define DM_WriteMask 0x00000002
156 #define DM_SourceFragment 0x00000000
157 #define DM_SourceLBData 0x00000004
158 #define DM_SourceDepthRegister 0x00000008
159 #define DM_SourceLBSourceData 0x0000000c
160 #define DM_SourceMask 0x0000000c
161 #define DM_Never 0x00000000
162 #define DM_Less 0x00000010
163 #define DM_Equal 0x00000020
164 #define DM_LessEqual 0x00000030
165 #define DM_Greater 0x00000040
166 #define DM_NotEqual 0x00000050
167 #define DM_GreaterEqual 0x00000060
168 #define DM_Always 0x00000070
169 #define DM_CompareMask 0x00000070
170
171 /* FBWriteMode */
172 #define FBWriteModeDisable 0x00000000
173 #define FBWriteModeEnable 0x00000001
174 #define FBW_UploadColorData 0x00000008
175
176 /* FogMode */
177 #define FogModeDisable 0x00000000
178 #define FogModeEnable 0x00000001
179
180 /* LBWriteMode */
181 #define LBWriteModeDisable 0x00000000
182 #define LBWriteModeEnable 0x00000001
183 #define LBW_UploadNone 0x00000000
184 #define LBW_UploadDepth 0x00000002
185 #define LBW_UploadStencil 0x00000004
186
187 /* LBRead/Write Format */
188 #define LBRF_DepthWidth15 0x03 /* only permedia */
189 #define LBRF_DepthWidth16 0x00
190 #define LBRF_DepthWidth24 0x01
191 #define LBRF_DepthWidth32 0x02
192 #define LBRF_StencilWidth0 (0 << 2)
193 #define LBRF_StencilWidth4 (1 << 2)
194 #define LBRF_StencilWidth8 (2 << 2)
195 #define LBRF_StencilPos16 (0 << 4)
196 #define LBRF_StencilPos20 (1 << 4)
197 #define LBRF_StencilPos24 (2 << 4)
198 #define LBRF_StencilPos28 (3 << 4)
199 #define LBRF_StencilPos32 (4 << 4)
200 #define LBRF_FrameCount0 (0 << 7)
201 #define LBRF_FrameCount4 (1 << 7)
202 #define LBRF_FrameCount8 (2 << 7)
203 #define LBRF_FrameCountPos16 (0 << 9)
204 #define LBRF_FrameCountPos20 (1 << 9)
205 #define LBRF_FrameCountPos24 (2 << 9)
206 #define LBRF_FrameCountPos28 (3 << 9)
207 #define LBRF_FrameCountPos32 (4 << 9)
208 #define LBRF_FrameCountPos36 (5 << 9)
209 #define LBRF_FrameCountPos40 (6 << 9)
210 #define LBRF_GIDWidth0 (0 << 12)
211 #define LBRF_GIDWidth4 (1 << 12)
212 #define LBRF_GIDPos16 (0 << 13)
213 #define LBRF_GIDPos20 (1 << 13)
214 #define LBRF_GIDPos24 (2 << 13)
215 #define LBRF_GIDPos28 (3 << 13)
216 #define LBRF_GIDPos32 (4 << 13)
217 #define LBRF_GIDPos36 (5 << 13)
218 #define LBRF_GIDPos40 (6 << 13)
219 #define LBRF_GIDPos44 (7 << 13)
220 #define LBRF_GIDPos48 (8 << 13)
221 #define LBRF_Compact32 (1 << 17)
222
223 /* StencilMode */
224 #define StencilDisable 0x00000000
225 #define StencilEnable 0x00000001
226
227 /* RouterMode */
228 #define R_Order_TextureDepth 0x00000000
229 #define R_Order_DepthTexture 0x00000001
230
231 /* ScissorMode */
232 #define UserScissorDisable 0x00000000
233 #define UserScissorEnable 0x00000001
234 #define ScreenScissorDisable 0x00000000
235 #define ScreenScissorEnable 0x00000002
236
237 /* DitherMode */
238 #define DitherModeDisable 0x00000000
239 #define DitherModeEnable 0x00000001
240 #define DM_DitherDisable 0x00000000
241 #define DM_DitherEnable 0x00000002
242 #define DM_ColorFmt_8888 0x00000000
243 #define DM_ColorFmt_5555 0x00000004
244 #define DM_ColorFmt_4444 0x00000008
245 #define DM_ColorFmt_4444Front 0x0000000c
246 #define DM_ColorFmt_4444Back 0x00000010
247 #define DM_ColorFmt_332Front 0x00000014
248 #define DM_ColorFmt_332Back 0x00000018
249 #define DM_ColorFmt_121Front 0x0000001c
250 #define DM_ColorFmt_121Back 0x00000020
251 #define DM_ColorFmt_555Back 0x00000024
252 #define DM_ColorFmt_CI8 0x00000028
253 #define DM_ColorFmt_CI4 0x0000002c
254 #define DM_XOffsetMask 0x000000c0
255 #define DM_YOffsetMask 0x00000300
256 #define DM_ColorOrder_BGR 0x00000000
257 #define DM_ColorOrder_RGB 0x00000400
258 #define DM_AlphaDitherDefault 0x00000000
259 #define DM_AlphaDitherNone 0x00004000
260 #define DM_Truncate 0x00000000
261 #define DM_Round 0x00008000
262
263 /* RasterizerMode */
264 #define RM_MirrorBitMask 0x00000001
265 #define RM_InvertBitMask 0x00000002
266 #define RM_FractionAdjNo 0x00000000
267 #define RM_FractionAdjZero 0x00000004
268 #define RM_FractionAdjHalf 0x00000008
269 #define RM_FractionAdjNearHalf 0x0000000c
270 #define RM_BiasCoordZero 0x00000000
271 #define RM_BiasCoordHalf 0x00000010
272 #define RM_BiasCoordNearHalf 0x00000020
273 #define RM_BitMaskByteSwap_ABCD 0x00000000
274 #define RM_BitMaskByteSwap_BADC 0x00000080
275 #define RM_BitMaskByteSwap_CDAB 0x00000100
276 #define RM_BitMaskByteSwap_DCBA 0x00000180
277 #define RM_BitMaskPacked 0x00000000
278 #define RM_BitMaskEveryScanline 0x00000200
279 #define RM_BitMaskOffsetMask 0x00007c00
280 #define RM_HostDataByteSwap_ABCD 0x00000000
281 #define RM_HostDataByteSwap_BADC 0x00008000
282 #define RM_HostDataByteSwap_CDAB 0x00010000
283 #define RM_HostDataByteSwap_DCBA 0x00018000
284 #define RM_SingleGLINT 0x00000000
285 #define RM_MultiGLINT 0x00020000
286 #define RM_YLimitsEnable 0x00040000
287
288 /* Window */
289 #define WindowDisable 0x00000000
290 #define WindowEnable 0x00000001
291 #define W_AlwaysPass 0x00000000
292 #define W_NeverPass 0x00000002
293 #define W_PassIfEqual 0x00000004
294 #define W_PassIfNotEqual 0x00000006
295 #define W_CompareMask 0x00000006
296 #define W_ForceLBUpdate 0x00000008
297 #define W_LBUpdateFromSource 0x00000000
298 #define W_LBUpdateFromRegisters 0x00000010
299 #define W_GIDMask 0x000001e0
300 #define W_FrameCountMask 0x0001fe00
301 #define W_StencilFCP 0x00020000
302 #define W_DepthFCP 0x00040000
303 #define W_OverrideWriteFiltering 0x00080000
304
305 /* TextureAddressMode */
306 #define TextureAddressModeDisable 0x00000000
307 #define TextureAddressModeEnable 0x00000001
308 #define TAM_SWrap_Clamp 0x00000000
309 #define TAM_SWrap_Repeat 0x00000002
310 #define TAM_SWrap_Mirror 0x00000004
311 #define TAM_SWrap_Mask 0x00000006
312 #define TAM_TWrap_Clamp 0x00000000
313 #define TAM_TWrap_Repeat 0x00000008
314 #define TAM_TWrap_Mirror 0x00000010
315 #define TAM_TWrap_Mask 0x00000018
316 #define TAM_Operation_2D 0x00000000
317 #define TAM_Operation_3D 0x00000020
318 #define TAM_InhibitDDAInit 0x00000040
319 #define TAM_LODDisable 0x00000000
320 #define TAM_LODEnable 0x00000080
321 #define TAM_DY_Disable 0x00000000
322 #define TAM_DY_Enable 0x00000100
323 #define TAM_WidthMask 0x00001e00
324 #define TAM_HeightMask 0x0001e000
325 #define TAM_TexMapType_1D 0x00000000
326 #define TAM_TexMapType_2D 0x00020000
327 #define TAM_TexMapType_Mask 0x00020000
328
329 /* TextureReadMode */
330 #define TextureReadModeDisable 0x00000000
331 #define TextureReadModeEnable 0x00000001
332 #define TRM_WidthMask 0x0000001e
333 #define TRM_HeightMask 0x000001e0
334 #define TRM_Depth1 0x00000000
335 #define TRM_Depth2 0x00000200
336 #define TRM_Depth4 0x00000400
337 #define TRM_Depth8 0x00000600
338 #define TRM_Depth16 0x00000800
339 #define TRM_Depth32 0x00000a00
340 #define TRM_DepthMask 0x00000e00
341 #define TRM_Border 0x00001000
342 #define TRM_Patch 0x00002000
343 #define TRM_Mag_Nearest 0x00000000
344 #define TRM_Mag_Linear 0x00004000
345 #define TRM_Mag_Mask 0x00004000
346 #define TRM_Min_Nearest 0x00000000
347 #define TRM_Min_Linear 0x00008000
348 #define TRM_Min_NearestMMNearest 0x00010000
349 #define TRM_Min_NearestMMLinear 0x00018000
350 #define TRM_Min_LinearMMNearest 0x00020000
351 #define TRM_Min_LinearMMLinear 0x00028000
352 #define TRM_Min_Mask 0x00038000
353 #define TRM_UWrap_Clamp 0x00000000
354 #define TRM_UWrap_Repeat 0x00040000
355 #define TRM_UWrap_Mirror 0x00080000
356 #define TRM_UWrap_Mask 0x000c0000
357 #define TRM_VWrap_Clamp 0x00000000
358 #define TRM_VWrap_Repeat 0x00100000
359 #define TRM_VWrap_Mirror 0x00200000
360 #define TRM_VWrap_Mask 0x00300000
361 #define TRM_TexMapType_1D 0x00000000
362 #define TRM_TexMapType_2D 0x00400000
363 #define TRM_TexMapType_Mask 0x00400000
364 #define TRM_MipMapDisable 0x00000000
365 #define TRM_MipMapEnable 0x00800000
366 #define TRM_PrimaryCacheDisable 0x00000000
367 #define TRM_PrimaryCacheEnable 0x01000000
368 #define TRM_FBSourceAddr_None 0x00000000
369 #define TRM_FBSourceAddr_Index 0x02000000
370 #define TRM_FBSourceAddr_Coord 0x04000000
371 #define TRM_BorderClamp 0x08000000
372
373 /* TextureColorMode */
374 #define TextureColorModeDisable 0x00000000
375 #define TextureColorModeEnable 0x00000001
376 #define TCM_Modulate 0x00000000
377 #define TCM_Decal 0x00000002
378 #define TCM_Blend 0x00000004
379 #define TCM_Replace 0x00000006
380 #define TCM_ApplicationMask 0x0000000e
381 #define TCM_OpenGLType 0x00000000
382 #define TCM_QuickDraw3DType 0x00000010
383 #define TCM_KdDDA_Disable 0x00000000
384 #define TCM_KdDDA_Enable 0x00000020
385 #define TCM_KsDDA_Disable 0x00000000
386 #define TCM_KsDDA_Enable 0x00000040
387 #define TCM_BaseFormat_Alpha 0x00000000
388 #define TCM_BaseFormat_Lum 0x00000080
389 #define TCM_BaseFormat_LumAlpha 0x00000100
390 #define TCM_BaseFormat_Intensity 0x00000180
391 #define TCM_BaseFormat_RGB 0x00000200
392 #define TCM_BaseFormat_RGBA 0x00000280
393 #define TCM_BaseFormatMask 0x00000380
394 #define TCM_LoadMode_None 0x00000000
395 #define TCM_LoadMode_Ks 0x00000400
396 #define TCM_LoadMode_Kd 0x00000800
397
398 /* TextureCacheControl */
399 #define TCC_Invalidate 0x00000001
400 #define TCC_Disable 0x00000000
401 #define TCC_Enable 0x00000002
402
403 /* TextureFilterMode */
404 #define TextureFilterModeDisable 0x00000000
405 #define TextureFilterModeEnable 0x00000001
406 #define TFM_AlphaMapEnable 0x00000002
407 #define TFM_AlphaMapSense 0x00000004
408
409 /* TextureFormat */
410 #define TF_LittleEndian 0x00000000
411 #define TF_BigEndian 0x00000001
412 #define TF_16Bit_565 0x00000000
413 #define TF_16Bit_555 0x00000002
414 #define TF_ColorOrder_BGR 0x00000000
415 #define TF_ColorOrder_RGB 0x00000004
416 #define TF_Compnents_1 0x00000000
417 #define TF_Compnents_2 0x00000008
418 #define TF_Compnents_3 0x00000010
419 #define TF_Compnents_4 0x00000018
420 #define TF_CompnentsMask 0x00000018
421 #define TF_OutputFmt_Texel 0x00000000
422 #define TF_OutputFmt_Color 0x00000020
423 #define TF_OutputFmt_BitMask 0x00000040
424 #define TF_OutputFmtMask 0x00000060
425 #define TF_MirrorEnable 0x00000080
426 #define TF_InvertEnable 0x00000100
427 #define TF_ByteSwapEnable 0x00000200
428 #define TF_LUTOffsetMask 0x0003fc00
429 #define TF_OneCompFmt_Lum 0x00000000
430 #define TF_OneCompFmt_Alpha 0x00040000
431 #define TF_OneCompFmt_Intensity 0x00080000
432 #define TF_OneCompFmt_Mask 0x000c0000
433 /**************** MX FLAGS ****************/
434
435 /************** GAMMA FLAGS ***************/
436 /* GeometryMode */
437 #define GM_TextureDisable 0x00000000
438 #define GM_TextureEnable 0x00000001
439 #define GM_FogDisable 0x00000000
440 #define GM_FogEnable 0x00000002
441 #define GM_FogLinear 0x00000000
442 #define GM_FogExp 0x00000004
443 #define GM_FogExpSquared 0x00000008
444 #define GM_FogMask 0x0000000C
445 #define GM_FrontPolyPoint 0x00000000
446 #define GM_FrontPolyLine 0x00000010
447 #define GM_FrontPolyFill 0x00000020
448 #define GM_BackPolyPoint 0x00000000
449 #define GM_BackPolyLine 0x00000040
450 #define GM_BackPolyFill 0x00000080
451 #define GM_FB_PolyMask 0x000000F0
452 #define GM_FrontFaceCW 0x00000000
453 #define GM_FrontFaceCCW 0x00000100
454 #define GM_FFMask 0x00000100
455 #define GM_PolyCullDisable 0x00000000
456 #define GM_PolyCullEnable 0x00000200
457 #define GM_PolyCullFront 0x00000000
458 #define GM_PolyCullBack 0x00000400
459 #define GM_PolyCullBoth 0x00000800
460 #define GM_PolyCullMask 0x00000c00
461 #define GM_ClipShortLinesDisable 0x00000000
462 #define GM_ClipShortLinesEnable 0x00001000
463 #define GM_ClipSmallTrisDisable 0x00000000
464 #define GM_ClipSmallTrisEnable 0x00002000
465 #define GM_RenderMode 0x00000000
466 #define GM_SelectMode 0x00004000
467 #define GM_FeedbackMode 0x00008000
468 #define GM_Feedback2D 0x00000000
469 #define GM_Feedback3D 0x00010000
470 #define GM_Feedback3DColor 0x00020000
471 #define GM_Feedback3DColorTexture 0x00030000
472 #define GM_Feedback4DColorTexture 0x00040000
473 #define GM_CullFaceNormDisable 0x00000000
474 #define GM_CullFaceNormEnable 0x00080000
475 #define GM_AutoFaceNormDisable 0x00000000
476 #define GM_AutoFaceNormEnable 0x00100000
477 #define GM_GouraudShading 0x00000000
478 #define GM_FlatShading 0x00200000
479 #define GM_ShadingMask 0x00200000
480 #define GM_UserClipNone 0x00000000
481 #define GM_UserClip0 0x00400000
482 #define GM_UserClip1 0x00800000
483 #define GM_UserClip2 0x01000000
484 #define GM_UserClip3 0x02000000
485 #define GM_UserClip4 0x04000000
486 #define GM_UserClip5 0x08000000
487 #define GM_PolyOffsetPointDisable 0x00000000
488 #define GM_PolyOffsetPointEnable 0x10000000
489 #define GM_PolyOffsetLineDisable 0x00000000
490 #define GM_PolyOffsetLineEnable 0x20000000
491 #define GM_PolyOffsetFillDisable 0x00000000
492 #define GM_PolyOffsetFillEnable 0x40000000
493 #define GM_InvertFaceNormCullDisable 0x00000000
494 #define GM_InvertFaceNormCullEnable 0x80000000
495
496 /* Begin */
497 #define B_AreaStippleDisable 0x00000000
498 #define B_AreaStippleEnable 0x00000001
499 #define B_LineStippleDisable 0x00000000
500 #define B_LineStippleEnable 0x00000002
501 #define B_AntiAliasDisable 0x00000000
502 #define B_AntiAliasEnable 0x00000100
503 #define B_TextureDisable 0x00000000
504 #define B_TextureEnable 0x00002000
505 #define B_FogDisable 0x00000000
506 #define B_FogEnable 0x00004000
507 #define B_SubPixelCorrectDisable 0x00000000
508 #define B_SubPixelCorrectEnable 0x00010000
509 #define B_PrimType_Null 0x00000000
510 #define B_PrimType_Points 0x10000000
511 #define B_PrimType_Lines 0x20000000
512 #define B_PrimType_LineLoop 0x30000000
513 #define B_PrimType_LineStrip 0x40000000
514 #define B_PrimType_Triangles 0x50000000
515 #define B_PrimType_TriangleStrip 0x60000000
516 #define B_PrimType_TriangleFan 0x70000000
517 #define B_PrimType_Quads 0x80000000
518 #define B_PrimType_QuadStrip 0x90000000
519 #define B_PrimType_Polygon 0xa0000000
520 #define B_PrimType_Mask 0xf0000000
521
522 /* EdgeFlag */
523 #define EdgeFlagDisable 0x00000000
524 #define EdgeFlagEnable 0x00000001
525
526 /* NormalizeMode */
527 #define NormalizeModeDisable 0x00000000
528 #define NormalizeModeEnable 0x00000001
529 #define FaceNormalDisable 0x00000000
530 #define FaceNormalEnable 0x00000002
531 #define InvertAutoFaceNormal 0x00000004
532
533 /* LightingMode */
534 #define LightingModeDisable 0x00000000
535 #define LightingModeEnable 0x00000001
536 #define LightingModeTwoSides 0x00000004
537 #define LightingModeLocalViewer 0x00000008
538 #define LightingModeSpecularEnable 0x00008000
539
540 /* Light0Mode */
541 #define Light0ModeDisable 0x00000000
542 #define Light0ModeEnable 0x00000001
543 #define Light0ModeSpotLight 0x00000002
544 #define Light0ModeAttenuation 0x00000004
545 #define Light0ModeLocal 0x00000008
546
547 /* Light0Mode */
548 #define Light1ModeDisable 0x00000000
549 #define Light1ModeEnable 0x00000001
550 #define Light1ModeSpotLight 0x00000002
551 #define Light1ModeAttenuation 0x00000004
552 #define Light1ModeLocal 0x00000008
553
554 /* ColorMaterialMode */
555 #define ColorMaterialModeDisable 0x00000000
556 #define ColorMaterialModeEnable 0x00000001
557 #define ColorMaterialModeFront 0x00000000
558 #define ColorMaterialModeBack 0x00000002
559 #define ColorMaterialModeFrontAndBack 0x00000004
560 #define ColorMaterialModeEmission 0x00000000
561 #define ColorMaterialModeAmbient 0x00000008
562 #define ColorMaterialModeDiffuse 0x00000010
563 #define ColorMaterialModeSpecular 0x00000018
564 #define ColorMaterialModeAmbAndDiff 0x00000020
565 #define ColorMaterialModeMask 0x0000003e
566
567 /* MaterialMode */
568 #define MaterialModeDisable 0x00000000
569 #define MaterialModeEnable 0x00000001
570 #define MaterialModeTwoSides 0x00000080
571
572 /* DeltaMode */
573 #define DM_Target300SX 0x00000000
574 #define DM_Target500TXMX 0x00000001
575 #define DM_Depth16 0x00000004
576 #define DM_Depth24 0x00000008
577 #define DM_Depth32 0x0000000c
578 #define DM_FogEnable 0x00000010
579 #define DM_TextureEnable 0x00000020
580 #define DM_SmoothShadingEnable 0x00000040
581 #define DM_DepthEnable 0x00000080
582 #define DM_SpecularEnable 0x00000100
583 #define DM_DiffuseEnable 0x00000200
584 #define DM_SubPixlCorrectionEnable 0x00000400
585 #define DM_DiamondExit 0x00000800
586 #define DM_NoDraw 0x00001000
587 #define DM_ClampEnable 0x00002000
588 #define DM_TextureParameterAsGiven 0x00000000
589 #define DM_TextureParameterClamped 0x00004000
590 #define DM_TextureParameterNormalized 0x00008000
591 #define DM_BiasCoords 0x00080000
592 #define DM_ColorDiffuse 0x00100000
593 #define DM_ColorSpecular 0x00200000
594 #define DM_FlatShadingMethod 0x00400000
595
596 /* PointMode */
597 #define PM_AntialiasDisable 0x00000000
598 #define PM_AntialiasEnable 0x00000001
599 #define PM_AntialiasQuality_4x4 0x00000000
600 #define PM_AntialiasQuality_8x8 0x00000002
601
602 /* LogicalOpMode */
603 #define LogicalOpModeDisable 0x00000000
604 #define LogicalOpModeEnable 0x00000001
605 #define LogicalOpModeMask 0x0000001e
606
607 /* LineMode */
608 #define LM_StippleDisable 0x00000000
609 #define LM_StippleEnable 0x00000001
610 #define LM_RepeatFactorMask 0x000003fe
611 #define LM_StippleMask 0x03fffc00
612 #define LM_MirrorDisable 0x00000000
613 #define LM_MirrorEnable 0x04000000
614 #define LM_AntialiasDisable 0x00000000
615 #define LM_AntialiasEnable 0x08000000
616 #define LM_AntialiasQuality_4x4 0x00000000
617 #define LM_AntialiasQuality_8x8 0x10000000
618
619 /* TriangleMode */
620 #define TM_AntialiasDisable 0x00000000
621 #define TM_AntialiasEnable 0x00000001
622 #define TM_AntialiasQuality_4x4 0x00000000
623 #define TM_AntialiasQuality_8x8 0x00000002
624 #define TM_UseTriPacketInterface 0x00000004
625
626 /* TransformMode */
627 #define XM_UseModelViewMatrix 0x00000001
628 #define XM_UseModelViewProjMatrix 0x00000002
629 #define XM_XformNormals 0x00000004
630 #define XM_XformFaceNormals 0x00000008
631 #define XM_XformTexture 0x00000010
632 #define XM_XMask 0x00000013
633 #define XM_TexGenModeS_None 0x00000000
634 #define XM_TexGenModeS_ObjLinear 0x00000020
635 #define XM_TexGenModeS_EyeLinear 0x00000040
636 #define XM_TexGenModeS_SphereMap 0x00000060
637 #define XM_TexGenModeT_None 0x00000000
638 #define XM_TexGenModeT_ObjLinear 0x00000080
639 #define XM_TexGenModeT_EyeLinear 0x00000100
640 #define XM_TexGenModeT_SphereMap 0x00000180
641 #define XM_TexGenModeR_None 0x00000000
642 #define XM_TexGenModeR_ObjLinear 0x00000200
643 #define XM_TexGenModeR_EyeLinear 0x00000400
644 #define XM_TexGenModeR_SphereMap 0x00000600
645 #define XM_TexGenModeQ_None 0x00000000
646 #define XM_TexGenModeQ_ObjLinear 0x00000800
647 #define XM_TexGenModeQ_EyeLinear 0x00001000
648 #define XM_TexGenModeQQSphereMap 0x00001800
649 #define XM_TexGenS 0x00002000
650 #define XM_TexGenT 0x00004000
651 #define XM_TexGenR 0x00008000
652 #define XM_TexGenQ 0x00010000
653
654 /* LightNMode */
655 #define LNM_Off 0x00000000
656 #define LNM_On 0x00000001
657 /************** GAMMA FLAGS ***************/
658
659 #endif /* _GAMMA_REGS_H_ */