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