📄 gamma_regs.h
字号:
/* $XFree86: xc/lib/GL/mesa/src/drv/gamma/gamma_regs.h,v 1.5 2002/02/22 21:33:02 dawes Exp $ *//**************************************************************************Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.All Rights Reserved.Permission is hereby granted, free of charge, to any person obtaining acopy of this software and associated documentation files (the"Software"), to deal in the Software without restriction, includingwithout limitation the rights to use, copy, modify, merge, publish,distribute, sub license, and/or sell copies of the Software, and topermit persons to whom the Software is furnished to do so, subject tothe following conditions:The above copyright notice and this permission notice (including thenext paragraph) shall be included in all copies or substantial portionsof the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FORANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THESOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.**************************************************************************//* * Authors: * Kevin E. Martin <kevin@precisioninsight.com> * */#ifndef _GAMMA_REGS_H_#define _GAMMA_REGS_H_#include "gamma_client.h"/**************** MX FLAGS ****************//* FBReadMode */#define FBReadSrcDisable 0x00000000#define FBReadSrcEnable 0x00000200#define FBReadDstDisable 0x00000000#define FBReadDstEnable 0x00000400#define FBDataTypeDefault 0x00000000#define FBDataTypeColor 0x00008000#define FBWindowOriginTop 0x00000000#define FBWindowOriginBot 0x00010000#define FBScanLineInt1 0x00000000#define FBScanLineInt2 0x00800000#define FBScanLineInt4 0x01000000#define FBScanLineInt8 0x01800000#define FBSrcAddrConst 0x00000000#define FBSrcAddrIndex 0x10000000#define FBSrcAddrCoord 0x20000000/* LBReadMode */#define LBPartialProdMask 0x000001ff#define LBReadSrcDisable 0x00000000#define LBReadSrcEnable 0x00000200#define LBReadDstDisable 0x00000000#define LBReadDstEnable 0x00000400#define LBDataTypeDefault 0x00000000#define LBDataTypeStencil 0x00010000#define LBDataTypeDepth 0x00020000#define LBWindowOriginTop 0x00000000#define LBWindowOriginBot 0x00040000#define LBScanLineInt1 0x00000000#define LBScanLineInt2 0x00100000#define LBScanLineInt4 0x00200000#define LBScanLineInt8 0x00300000/* ColorDDAMode */#define ColorDDADisable 0x00000000#define ColorDDAEnable 0x00000001#define ColorDDAFlat 0x00000000#define ColorDDAGouraud 0x00000002#define ColorDDAShadingMask 0x00000002/* AlphaTestMode */#define AlphaTestModeDisable 0x00000000#define AlphaTestModeEnable 0x00000001#define AT_Never 0x00000000#define AT_Less 0x00000002#define AT_Equal 0x00000004#define AT_LessEqual 0x00000006#define AT_Greater 0x00000008#define AT_NotEqual 0x0000000a#define AT_GreaterEqual 0x0000000c#define AT_Always 0x0000000e#define AT_CompareMask 0x0000000e#define AT_RefValueMask 0x00000ff0/* AlphaBlendMode */#define AlphaBlendModeDisable 0x00000000#define AlphaBlendModeEnable 0x00000001#define AB_Src_Zero 0x00000000#define AB_Src_One 0x00000002#define AB_Src_DstColor 0x00000004#define AB_Src_OneMinusDstColor 0x00000006#define AB_Src_SrcAlpha 0x00000008#define AB_Src_OneMinusSrcAlpha 0x0000000a#define AB_Src_DstAlpha 0x0000000c#define AB_Src_OneMinusDstAlpha 0x0000000e#define AB_Src_SrcAlphaSaturate 0x00000010#define AB_SrcBlendMask 0x0000001e#define AB_Dst_Zero 0x00000000#define AB_Dst_One 0x00000020#define AB_Dst_SrcColor 0x00000040#define AB_Dst_OneMinusSrcColor 0x00000060#define AB_Dst_SrcAlpha 0x00000080#define AB_Dst_OneMinusSrcAlpha 0x000000a0#define AB_Dst_DstAlpha 0x000000c0#define AB_Dst_OneMinusDstAlpha 0x000000e0#define AB_DstBlendMask 0x000000e0#define AB_ColorFmt_8888 0x00000000#define AB_ColorFmt_5555 0x00000100#define AB_ColorFmt_4444 0x00000200#define AB_ColorFmt_4444Front 0x00000300#define AB_ColorFmt_4444Back 0x00000400#define AB_ColorFmt_332Front 0x00000500#define AB_ColorFmt_332Back 0x00000600#define AB_ColorFmt_121Front 0x00000700#define AB_ColorFmt_121Back 0x00000800#define AB_ColorFmt_555Back 0x00000d00#define AB_ColorFmt_CI8 0x00000e00#define AB_ColorFmt_CI4 0x00000f00#define AB_AlphaBufferPresent 0x00000000#define AB_NoAlphaBufferPresent 0x00001000#define AB_ColorOrder_BGR 0x00000000#define AB_ColorOrder_RGB 0x00002000#define AB_OpenGLType 0x00000000#define AB_QuickDraw3DType 0x00004000#define AB_AlphaDst_FBData 0x00000000#define AB_AlphaDst_FBSourceData 0x00008000#define AB_ColorConversionScale 0x00000000#define AB_ColorConversionShift 0x00010000#define AB_AlphaConversionScale 0x00000000#define AB_AlphaConversionShift 0x00020000/* AntialiasMode */#define AntialiasModeDisable 0x00000000#define AntialiasModeEnable 0x00000001/* AreaStippleMode */#define AreaStippleModeDisable 0x00000000#define AreaStippleModeEnable 0x00000001#define ASM_X32 0x00000008#define ASM_Y32 0x00000040/* DepthMode */#define DepthModeDisable 0x00000000#define DepthModeEnable 0x00000001#define DM_WriteMask 0x00000002#define DM_SourceFragment 0x00000000#define DM_SourceLBData 0x00000004#define DM_SourceDepthRegister 0x00000008#define DM_SourceLBSourceData 0x0000000c#define DM_SourceMask 0x0000000c#define DM_Never 0x00000000#define DM_Less 0x00000010#define DM_Equal 0x00000020#define DM_LessEqual 0x00000030#define DM_Greater 0x00000040#define DM_NotEqual 0x00000050#define DM_GreaterEqual 0x00000060#define DM_Always 0x00000070#define DM_CompareMask 0x00000070/* FBWriteMode */#define FBWriteModeDisable 0x00000000#define FBWriteModeEnable 0x00000001#define FBW_UploadColorData 0x00000008/* FogMode */#define FogModeDisable 0x00000000#define FogModeEnable 0x00000001/* LBWriteMode */#define LBWriteModeDisable 0x00000000#define LBWriteModeEnable 0x00000001#define LBW_UploadNone 0x00000000#define LBW_UploadDepth 0x00000002#define LBW_UploadStencil 0x00000004/* LBRead/Write Format */#define LBRF_DepthWidth15 0x03 /* only permedia */#define LBRF_DepthWidth16 0x00#define LBRF_DepthWidth24 0x01#define LBRF_DepthWidth32 0x02#define LBRF_StencilWidth0 (0 << 2)#define LBRF_StencilWidth4 (1 << 2)#define LBRF_StencilWidth8 (2 << 2)#define LBRF_StencilPos16 (0 << 4)#define LBRF_StencilPos20 (1 << 4)#define LBRF_StencilPos24 (2 << 4)#define LBRF_StencilPos28 (3 << 4)#define LBRF_StencilPos32 (4 << 4)#define LBRF_FrameCount0 (0 << 7)#define LBRF_FrameCount4 (1 << 7)#define LBRF_FrameCount8 (2 << 7)#define LBRF_FrameCountPos16 (0 << 9)#define LBRF_FrameCountPos20 (1 << 9)#define LBRF_FrameCountPos24 (2 << 9)#define LBRF_FrameCountPos28 (3 << 9)#define LBRF_FrameCountPos32 (4 << 9)#define LBRF_FrameCountPos36 (5 << 9)#define LBRF_FrameCountPos40 (6 << 9)#define LBRF_GIDWidth0 (0 << 12)#define LBRF_GIDWidth4 (1 << 12)#define LBRF_GIDPos16 (0 << 13)#define LBRF_GIDPos20 (1 << 13)#define LBRF_GIDPos24 (2 << 13)#define LBRF_GIDPos28 (3 << 13)#define LBRF_GIDPos32 (4 << 13)#define LBRF_GIDPos36 (5 << 13)#define LBRF_GIDPos40 (6 << 13)#define LBRF_GIDPos44 (7 << 13)#define LBRF_GIDPos48 (8 << 13)#define LBRF_Compact32 (1 << 17)/* StencilMode */#define StencilDisable 0x00000000#define StencilEnable 0x00000001/* RouterMode */#define R_Order_TextureDepth 0x00000000#define R_Order_DepthTexture 0x00000001/* ScissorMode */#define UserScissorDisable 0x00000000#define UserScissorEnable 0x00000001#define ScreenScissorDisable 0x00000000#define ScreenScissorEnable 0x00000002/* DitherMode */#define DitherModeDisable 0x00000000#define DitherModeEnable 0x00000001#define DM_DitherDisable 0x00000000#define DM_DitherEnable 0x00000002#define DM_ColorFmt_8888 0x00000000#define DM_ColorFmt_5555 0x00000004#define DM_ColorFmt_4444 0x00000008#define DM_ColorFmt_4444Front 0x0000000c#define DM_ColorFmt_4444Back 0x00000010#define DM_ColorFmt_332Front 0x00000014#define DM_ColorFmt_332Back 0x00000018#define DM_ColorFmt_121Front 0x0000001c#define DM_ColorFmt_121Back 0x00000020#define DM_ColorFmt_555Back 0x00000024#define DM_ColorFmt_CI8 0x00000028#define DM_ColorFmt_CI4 0x0000002c#define DM_XOffsetMask 0x000000c0#define DM_YOffsetMask 0x00000300#define DM_ColorOrder_BGR 0x00000000#define DM_ColorOrder_RGB 0x00000400#define DM_AlphaDitherDefault 0x00000000#define DM_AlphaDitherNone 0x00004000#define DM_Truncate 0x00000000#define DM_Round 0x00008000/* RasterizerMode */#define RM_MirrorBitMask 0x00000001#define RM_InvertBitMask 0x00000002#define RM_FractionAdjNo 0x00000000#define RM_FractionAdjZero 0x00000004#define RM_FractionAdjHalf 0x00000008#define RM_FractionAdjNearHalf 0x0000000c#define RM_BiasCoordZero 0x00000000#define RM_BiasCoordHalf 0x00000010#define RM_BiasCoordNearHalf 0x00000020#define RM_BitMaskByteSwap_ABCD 0x00000000#define RM_BitMaskByteSwap_BADC 0x00000080#define RM_BitMaskByteSwap_CDAB 0x00000100#define RM_BitMaskByteSwap_DCBA 0x00000180#define RM_BitMaskPacked 0x00000000#define RM_BitMaskEveryScanline 0x00000200#define RM_BitMaskOffsetMask 0x00007c00#define RM_HostDataByteSwap_ABCD 0x00000000#define RM_HostDataByteSwap_BADC 0x00008000#define RM_HostDataByteSwap_CDAB 0x00010000#define RM_HostDataByteSwap_DCBA 0x00018000#define RM_SingleGLINT 0x00000000#define RM_MultiGLINT 0x00020000#define RM_YLimitsEnable 0x00040000/* Window */#define WindowDisable 0x00000000#define WindowEnable 0x00000001#define W_AlwaysPass 0x00000000#define W_NeverPass 0x00000002#define W_PassIfEqual 0x00000004#define W_PassIfNotEqual 0x00000006#define W_CompareMask 0x00000006#define W_ForceLBUpdate 0x00000008#define W_LBUpdateFromSource 0x00000000#define W_LBUpdateFromRegisters 0x00000010#define W_GIDMask 0x000001e0#define W_FrameCountMask 0x0001fe00#define W_StencilFCP 0x00020000#define W_DepthFCP 0x00040000#define W_OverrideWriteFiltering 0x00080000/* TextureAddressMode */#define TextureAddressModeDisable 0x00000000#define TextureAddressModeEnable 0x00000001#define TAM_SWrap_Clamp 0x00000000#define TAM_SWrap_Repeat 0x00000002#define TAM_SWrap_Mirror 0x00000004#define TAM_SWrap_Mask 0x00000006#define TAM_TWrap_Clamp 0x00000000#define TAM_TWrap_Repeat 0x00000008#define TAM_TWrap_Mirror 0x00000010#define TAM_TWrap_Mask 0x00000018#define TAM_Operation_2D 0x00000000#define TAM_Operation_3D 0x00000020#define TAM_InhibitDDAInit 0x00000040#define TAM_LODDisable 0x00000000#define TAM_LODEnable 0x00000080#define TAM_DY_Disable 0x00000000#define TAM_DY_Enable 0x00000100#define TAM_WidthMask 0x00001e00#define TAM_HeightMask 0x0001e000#define TAM_TexMapType_1D 0x00000000#define TAM_TexMapType_2D 0x00020000#define TAM_TexMapType_Mask 0x00020000/* TextureReadMode */#define TextureReadModeDisable 0x00000000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -