Mario Kart 64
Loading...
Searching...
No Matches
gbi.h File Reference
#include <PR/ultratypes.h>
Include dependency graph for gbi.h:

Go to the source code of this file.

Macros

#define G_SPNOOP   0 /* handle 0 gracefully */
 
#define G_MTX   1
 
#define G_RESERVED0   2 /* not implemeted */
 
#define G_MOVEMEM   3 /* move a block of memory (up to 4 words) to dmem */
 
#define G_VTX   4
 
#define G_RESERVED1   5 /* not implemeted */
 
#define G_DL   6
 
#define G_RESERVED2   7 /* not implemeted */
 
#define G_RESERVED3   8 /* not implemeted */
 
#define G_SPRITE2D_BASE   9 /* sprite command */
 
#define G_IMMFIRST   -65
 
#define G_TRI1   (G_IMMFIRST - 0)
 
#define G_CULLDL   (G_IMMFIRST - 1)
 
#define G_POPMTX   (G_IMMFIRST - 2)
 
#define G_MOVEWORD   (G_IMMFIRST - 3)
 
#define G_TEXTURE   (G_IMMFIRST - 4)
 
#define G_SETOTHERMODE_H   (G_IMMFIRST - 5)
 
#define G_SETOTHERMODE_L   (G_IMMFIRST - 6)
 
#define G_ENDDL   (G_IMMFIRST - 7)
 
#define G_SETGEOMETRYMODE   (G_IMMFIRST - 8)
 
#define G_CLEARGEOMETRYMODE   (G_IMMFIRST - 9)
 
#define G_LINE3D   (G_IMMFIRST - 10)
 
#define G_RDPHALF_1   (G_IMMFIRST - 11)
 
#define G_RDPHALF_2   (G_IMMFIRST - 12)
 
#define G_RDPHALF_CONT   (G_IMMFIRST - 13)
 
#define G_SPRITE2D_SCALEFLIP   (G_IMMFIRST - 1)
 
#define G_SPRITE2D_DRAW   (G_IMMFIRST - 2)
 
#define G_NOOP   0xc0 /* 0 */
 
#define G_SETCIMG   0xff /* -1 */
 
#define G_SETZIMG   0xfe /* -2 */
 
#define G_SETTIMG   0xfd /* -3 */
 
#define G_SETCOMBINE   0xfc /* -4 */
 
#define G_SETENVCOLOR   0xfb /* -5 */
 
#define G_SETPRIMCOLOR   0xfa /* -6 */
 
#define G_SETBLENDCOLOR   0xf9 /* -7 */
 
#define G_SETFOGCOLOR   0xf8 /* -8 */
 
#define G_SETFILLCOLOR   0xf7 /* -9 */
 
#define G_FILLRECT   0xf6 /* -10 */
 
#define G_SETTILE   0xf5 /* -11 */
 
#define G_LOADTILE   0xf4 /* -12 */
 
#define G_LOADBLOCK   0xf3 /* -13 */
 
#define G_SETTILESIZE   0xf2 /* -14 */
 
#define G_LOADTLUT   0xf0 /* -16 */
 
#define G_RDPSETOTHERMODE   0xef /* -17 */
 
#define G_SETPRIMDEPTH   0xee /* -18 */
 
#define G_SETSCISSOR   0xed /* -19 */
 
#define G_SETCONVERT   0xec /* -20 */
 
#define G_SETKEYR   0xeb /* -21 */
 
#define G_SETKEYGB   0xea /* -22 */
 
#define G_RDPFULLSYNC   0xe9 /* -23 */
 
#define G_RDPTILESYNC   0xe8 /* -24 */
 
#define G_RDPPIPESYNC   0xe7 /* -25 */
 
#define G_RDPLOADSYNC   0xe6 /* -26 */
 
#define G_TEXRECTFLIP   0xe5 /* -27 */
 
#define G_TEXRECT   0xe4 /* -28 */
 
#define G_TRI_FILL   0xc8 /* fill triangle: 11001000 */
 
#define G_TRI_SHADE   0xcc /* shade triangle: 11001100 */
 
#define G_TRI_TXTR   0xca /* texture triangle: 11001010 */
 
#define G_TRI_SHADE_TXTR   0xce /* shade, texture triangle: 11001110 */
 
#define G_TRI_FILL_ZBUFF   0xc9 /* fill, zbuff triangle: 11001001 */
 
#define G_TRI_SHADE_ZBUFF   0xcd /* shade, zbuff triangle: 11001101 */
 
#define G_TRI_TXTR_ZBUFF   0xcb /* texture, zbuff triangle: 11001011 */
 
#define G_TRI_SHADE_TXTR_ZBUFF   0xcf /* shade, txtr, zbuff trngl: 11001111 */
 
#define G_RDP_TRI_FILL_MASK   0x08
 
#define G_RDP_TRI_SHADE_MASK   0x04
 
#define G_RDP_TRI_TXTR_MASK   0x02
 
#define G_RDP_TRI_ZBUFF_MASK   0x01
 
#define BOWTIE_VAL   0
 
#define G_RDP_ADDR_FIXUP   3 /* |RDP cmds| <= this, do addr fixup */
 
#define GDMACMD(x)   (x)
 
#define GIMMCMD(x)   (G_IMMFIRST - (x))
 
#define GRDPCMD(x)   (0xff - (x))
 
#define G_DMACMDSIZ   128
 
#define G_IMMCMDSIZ   64
 
#define G_RDPCMDSIZ   64
 
#define G_TEXTURE_IMAGE_FRAC   2
 
#define G_TEXTURE_SCALE_FRAC   16
 
#define G_SCALE_FRAC   8
 
#define G_ROTATE_FRAC   16
 
#define G_MAXFBZ   0x3fff /* 3b exp, 11b mantissa */
 
#define GPACK_RGBA5551(r, g, b, a)   ((((r) << 8) & 0xf800) | (((g) << 3) & 0x7c0) | (((b) >> 2) & 0x3e) | ((a) & 0x1))
 
#define GPACK_ZDZ(z, dz)   ((z) << 2 | (dz))
 
#define G_MTX_MODELVIEW   0x00 /* matrix types */
 
#define G_MTX_PROJECTION   0x01
 
#define G_MTX_MUL   0x00 /* concat or load */
 
#define G_MTX_LOAD   0x02
 
#define G_MTX_NOPUSH   0x00 /* push or not */
 
#define G_MTX_PUSH   0x04
 
#define G_ZBUFFER   0x00000001
 
#define G_SHADE   0x00000004 /* enable Gouraud interp */
 
#define G_TEXTURE_ENABLE   0x00000002 /* Microcode use only */
 
#define G_SHADING_SMOOTH   0x00000200 /* flat or smooth shaded */
 
#define G_CULL_FRONT   0x00001000
 
#define G_CULL_BACK   0x00002000
 
#define G_CULL_BOTH   0x00003000 /* To make code cleaner */
 
#define G_FOG   0x00010000
 
#define G_LIGHTING   0x00020000
 
#define G_TEXTURE_GEN   0x00040000
 
#define G_TEXTURE_GEN_LINEAR   0x00080000
 
#define G_LOD   0x00100000 /* NOT IMPLEMENTED */
 
#define G_CLIPPING   0x00000000
 
#define G_IM_FMT_RGBA   0
 
#define G_IM_FMT_YUV   1
 
#define G_IM_FMT_CI   2
 
#define G_IM_FMT_IA   3
 
#define G_IM_FMT_I   4
 
#define G_IM_SIZ_4b   0
 
#define G_IM_SIZ_8b   1
 
#define G_IM_SIZ_16b   2
 
#define G_IM_SIZ_32b   3
 
#define G_IM_SIZ_DD   5
 
#define G_IM_SIZ_4b_BYTES   0
 
#define G_IM_SIZ_4b_TILE_BYTES   G_IM_SIZ_4b_BYTES
 
#define G_IM_SIZ_4b_LINE_BYTES   G_IM_SIZ_4b_BYTES
 
#define G_IM_SIZ_8b_BYTES   1
 
#define G_IM_SIZ_8b_TILE_BYTES   G_IM_SIZ_8b_BYTES
 
#define G_IM_SIZ_8b_LINE_BYTES   G_IM_SIZ_8b_BYTES
 
#define G_IM_SIZ_16b_BYTES   2
 
#define G_IM_SIZ_16b_TILE_BYTES   G_IM_SIZ_16b_BYTES
 
#define G_IM_SIZ_16b_LINE_BYTES   G_IM_SIZ_16b_BYTES
 
#define G_IM_SIZ_32b_BYTES   4
 
#define G_IM_SIZ_32b_TILE_BYTES   2
 
#define G_IM_SIZ_32b_LINE_BYTES   2
 
#define G_IM_SIZ_4b_LOAD_BLOCK   G_IM_SIZ_16b
 
#define G_IM_SIZ_8b_LOAD_BLOCK   G_IM_SIZ_16b
 
#define G_IM_SIZ_16b_LOAD_BLOCK   G_IM_SIZ_16b
 
#define G_IM_SIZ_32b_LOAD_BLOCK   G_IM_SIZ_32b
 
#define G_IM_SIZ_4b_SHIFT   2
 
#define G_IM_SIZ_8b_SHIFT   1
 
#define G_IM_SIZ_16b_SHIFT   0
 
#define G_IM_SIZ_32b_SHIFT   0
 
#define G_IM_SIZ_4b_INCR   3
 
#define G_IM_SIZ_8b_INCR   1
 
#define G_IM_SIZ_16b_INCR   0
 
#define G_IM_SIZ_32b_INCR   0
 
#define G_CCMUX_COMBINED   0
 
#define G_CCMUX_TEXEL0   1
 
#define G_CCMUX_TEXEL1   2
 
#define G_CCMUX_PRIMITIVE   3
 
#define G_CCMUX_SHADE   4
 
#define G_CCMUX_ENVIRONMENT   5
 
#define G_CCMUX_CENTER   6
 
#define G_CCMUX_SCALE   6
 
#define G_CCMUX_COMBINED_ALPHA   7
 
#define G_CCMUX_TEXEL0_ALPHA   8
 
#define G_CCMUX_TEXEL1_ALPHA   9
 
#define G_CCMUX_PRIMITIVE_ALPHA   10
 
#define G_CCMUX_SHADE_ALPHA   11
 
#define G_CCMUX_ENV_ALPHA   12
 
#define G_CCMUX_LOD_FRACTION   13
 
#define G_CCMUX_PRIM_LOD_FRAC   14
 
#define G_CCMUX_NOISE   7
 
#define G_CCMUX_K4   7
 
#define G_CCMUX_K5   15
 
#define G_CCMUX_1   6
 
#define G_CCMUX_0   31
 
#define G_ACMUX_COMBINED   0
 
#define G_ACMUX_TEXEL0   1
 
#define G_ACMUX_TEXEL1   2
 
#define G_ACMUX_PRIMITIVE   3
 
#define G_ACMUX_SHADE   4
 
#define G_ACMUX_ENVIRONMENT   5
 
#define G_ACMUX_LOD_FRACTION   0
 
#define G_ACMUX_PRIM_LOD_FRAC   6
 
#define G_ACMUX_1   6
 
#define G_ACMUX_0   7
 
#define G_CC_PRIMITIVE   0, 0, 0, PRIMITIVE, 0, 0, 0, PRIMITIVE
 
#define G_CC_SHADE   0, 0, 0, SHADE, 0, 0, 0, SHADE
 
#define G_CC_MODULATEI   TEXEL0, 0, SHADE, 0, 0, 0, 0, SHADE
 
#define G_CC_MODULATEIDECALA   TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0
 
#define G_CC_MODULATEIFADE   TEXEL0, 0, SHADE, 0, 0, 0, 0, ENVIRONMENT
 
#define G_CC_MODULATERGB   G_CC_MODULATEI
 
#define G_CC_MODULATERGBDECALA   G_CC_MODULATEIDECALA
 
#define G_CC_MODULATERGBFADE   G_CC_MODULATEIFADE
 
#define G_CC_MODULATEIA   TEXEL0, 0, SHADE, 0, TEXEL0, 0, SHADE, 0
 
#define G_CC_MODULATEIFADEA   TEXEL0, 0, SHADE, 0, TEXEL0, 0, ENVIRONMENT, 0
 
#define G_CC_MODULATEFADE   TEXEL0, 0, SHADE, 0, ENVIRONMENT, 0, TEXEL0, 0
 
#define G_CC_MODULATERGBA   G_CC_MODULATEIA
 
#define G_CC_MODULATERGBFADEA   G_CC_MODULATEIFADEA
 
#define G_CC_MODULATEI_PRIM   TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, PRIMITIVE
 
#define G_CC_MODULATEIA_PRIM   TEXEL0, 0, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, 0
 
#define G_CC_MODULATEIDECALA_PRIM   TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, TEXEL0
 
#define G_CC_MODULATERGB_PRIM   G_CC_MODULATEI_PRIM
 
#define G_CC_MODULATERGBA_PRIM   G_CC_MODULATEIA_PRIM
 
#define G_CC_MODULATERGBDECALA_PRIM   G_CC_MODULATEIDECALA_PRIM
 
#define G_CC_FADE   SHADE, 0, ENVIRONMENT, 0, SHADE, 0, ENVIRONMENT, 0
 
#define G_CC_FADEA   TEXEL0, 0, ENVIRONMENT, 0, TEXEL0, 0, ENVIRONMENT, 0
 
#define G_CC_DECALRGB   0, 0, 0, TEXEL0, 0, 0, 0, SHADE
 
#define G_CC_DECALRGBA   0, 0, 0, TEXEL0, 0, 0, 0, TEXEL0
 
#define G_CC_DECALFADE   0, 0, 0, TEXEL0, 0, 0, 0, ENVIRONMENT
 
#define G_CC_DECALFADEA   0, 0, 0, TEXEL0, TEXEL0, 0, ENVIRONMENT, 0
 
#define G_CC_BLENDI   ENVIRONMENT, SHADE, TEXEL0, SHADE, 0, 0, 0, SHADE
 
#define G_CC_BLENDIA   ENVIRONMENT, SHADE, TEXEL0, SHADE, TEXEL0, 0, SHADE, 0
 
#define G_CC_BLENDIDECALA   ENVIRONMENT, SHADE, TEXEL0, SHADE, 0, 0, 0, TEXEL0
 
#define G_CC_BLENDRGBA   TEXEL0, SHADE, TEXEL0_ALPHA, SHADE, 0, 0, 0, SHADE
 
#define G_CC_BLENDRGBDECALA   TEXEL0, SHADE, TEXEL0_ALPHA, SHADE, 0, 0, 0, TEXEL0
 
#define G_CC_BLENDRGBFADEA   TEXEL0, SHADE, TEXEL0_ALPHA, SHADE, 0, 0, 0, ENVIRONMENT
 
#define G_CC_ADDRGB   TEXEL0, 0, TEXEL0, SHADE, 0, 0, 0, SHADE
 
#define G_CC_ADDRGBDECALA   TEXEL0, 0, TEXEL0, SHADE, 0, 0, 0, TEXEL0
 
#define G_CC_ADDRGBFADE   TEXEL0, 0, TEXEL0, SHADE, 0, 0, 0, ENVIRONMENT
 
#define G_CC_REFLECTRGB   ENVIRONMENT, 0, TEXEL0, SHADE, 0, 0, 0, SHADE
 
#define G_CC_REFLECTRGBDECALA   ENVIRONMENT, 0, TEXEL0, SHADE, 0, 0, 0, TEXEL0
 
#define G_CC_HILITERGB   PRIMITIVE, SHADE, TEXEL0, SHADE, 0, 0, 0, SHADE
 
#define G_CC_HILITERGBA   PRIMITIVE, SHADE, TEXEL0, SHADE, PRIMITIVE, SHADE, TEXEL0, SHADE
 
#define G_CC_HILITERGBDECALA   PRIMITIVE, SHADE, TEXEL0, SHADE, 0, 0, 0, TEXEL0
 
#define G_CC_SHADEDECALA   0, 0, 0, SHADE, 0, 0, 0, TEXEL0
 
#define G_CC_SHADEFADEA   0, 0, 0, SHADE, 0, 0, 0, ENVIRONMENT
 
#define G_CC_BLENDPE   PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, TEXEL0, 0, SHADE, 0
 
#define G_CC_BLENDPEDECALA   PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, 0, 0, 0, TEXEL0
 
#define _G_CC_BLENDPE   ENVIRONMENT, PRIMITIVE, TEXEL0, PRIMITIVE, TEXEL0, 0, SHADE, 0
 
#define _G_CC_BLENDPEDECALA   ENVIRONMENT, PRIMITIVE, TEXEL0, PRIMITIVE, 0, 0, 0, TEXEL0
 
#define _G_CC_TWOCOLORTEX   PRIMITIVE, SHADE, TEXEL0, SHADE, 0, 0, 0, SHADE
 
#define _G_CC_SPARSEST   PRIMITIVE, TEXEL0, LOD_FRACTION, TEXEL0, PRIMITIVE, TEXEL0, LOD_FRACTION, TEXEL0
 
#define G_CC_TEMPLERP   TEXEL1, TEXEL0, PRIM_LOD_FRAC, TEXEL0, TEXEL1, TEXEL0, PRIM_LOD_FRAC, TEXEL0
 
#define G_CC_TRILERP   TEXEL1, TEXEL0, LOD_FRACTION, TEXEL0, TEXEL1, TEXEL0, LOD_FRACTION, TEXEL0
 
#define G_CC_INTERFERENCE   TEXEL0, 0, TEXEL1, 0, TEXEL0, 0, TEXEL1, 0
 
#define G_CC_1CYUV2RGB   TEXEL0, K4, K5, TEXEL0, 0, 0, 0, SHADE
 
#define G_CC_YUV2RGB   TEXEL1, K4, K5, TEXEL1, 0, 0, 0, 0
 
#define G_CC_PASS2   0, 0, 0, COMBINED, 0, 0, 0, COMBINED
 
#define G_CC_MODULATEI2   COMBINED, 0, SHADE, 0, 0, 0, 0, SHADE
 
#define G_CC_MODULATEIA2   COMBINED, 0, SHADE, 0, COMBINED, 0, SHADE, 0
 
#define G_CC_MODULATERGB2   G_CC_MODULATEI2
 
#define G_CC_MODULATERGBA2   G_CC_MODULATEIA2
 
#define G_CC_MODULATEI_PRIM2   COMBINED, 0, PRIMITIVE, 0, 0, 0, 0, PRIMITIVE
 
#define G_CC_MODULATEIA_PRIM2   COMBINED, 0, PRIMITIVE, 0, COMBINED, 0, PRIMITIVE, 0
 
#define G_CC_MODULATERGB_PRIM2   G_CC_MODULATEI_PRIM2
 
#define G_CC_MODULATERGBA_PRIM2   G_CC_MODULATEIA_PRIM2
 
#define G_CC_DECALRGB2   0, 0, 0, COMBINED, 0, 0, 0, SHADE
 
#define G_CC_BLENDI2   ENVIRONMENT, SHADE, COMBINED, SHADE, 0, 0, 0, SHADE
 
#define G_CC_BLENDIA2   ENVIRONMENT, SHADE, COMBINED, SHADE, COMBINED, 0, SHADE, 0
 
#define G_CC_CHROMA_KEY2   TEXEL0, CENTER, SCALE, 0, 0, 0, 0, 0
 
#define G_CC_HILITERGB2   ENVIRONMENT, COMBINED, TEXEL0, COMBINED, 0, 0, 0, SHADE
 
#define G_CC_HILITERGBA2   ENVIRONMENT, COMBINED, TEXEL0, COMBINED, ENVIRONMENT, COMBINED, TEXEL0, COMBINED
 
#define G_CC_HILITERGBDECALA2   ENVIRONMENT, COMBINED, TEXEL0, COMBINED, 0, 0, 0, TEXEL0
 
#define G_CC_HILITERGBPASSA2   ENVIRONMENT, COMBINED, TEXEL0, COMBINED, 0, 0, 0, COMBINED
 
#define G_MDSFT_ALPHACOMPARE   0
 
#define G_MDSFT_ZSRCSEL   2
 
#define G_MDSFT_RENDERMODE   3
 
#define G_MDSFT_BLENDER   16
 
#define G_MDSFT_BLENDMASK   0 /* unsupported */
 
#define G_MDSFT_ALPHADITHER   4
 
#define G_MDSFT_RGBDITHER   6
 
#define G_MDSFT_COMBKEY   8
 
#define G_MDSFT_TEXTCONV   9
 
#define G_MDSFT_TEXTFILT   12
 
#define G_MDSFT_TEXTLUT   14
 
#define G_MDSFT_TEXTLOD   16
 
#define G_MDSFT_TEXTDETAIL   17
 
#define G_MDSFT_TEXTPERSP   19
 
#define G_MDSFT_CYCLETYPE   20
 
#define G_MDSFT_COLORDITHER   22 /* unsupported in HW 2.0 */
 
#define G_MDSFT_PIPELINE   23
 
#define G_PM_1PRIMITIVE   (1 << G_MDSFT_PIPELINE)
 
#define G_PM_NPRIMITIVE   (0 << G_MDSFT_PIPELINE)
 
#define G_CYC_1CYCLE   (0 << G_MDSFT_CYCLETYPE)
 
#define G_CYC_2CYCLE   (1 << G_MDSFT_CYCLETYPE)
 
#define G_CYC_COPY   (2 << G_MDSFT_CYCLETYPE)
 
#define G_CYC_FILL   (3 << G_MDSFT_CYCLETYPE)
 
#define G_TP_NONE   (0 << G_MDSFT_TEXTPERSP)
 
#define G_TP_PERSP   (1 << G_MDSFT_TEXTPERSP)
 
#define G_TD_CLAMP   (0 << G_MDSFT_TEXTDETAIL)
 
#define G_TD_SHARPEN   (1 << G_MDSFT_TEXTDETAIL)
 
#define G_TD_DETAIL   (2 << G_MDSFT_TEXTDETAIL)
 
#define G_TL_TILE   (0 << G_MDSFT_TEXTLOD)
 
#define G_TL_LOD   (1 << G_MDSFT_TEXTLOD)
 
#define G_TT_NONE   (0 << G_MDSFT_TEXTLUT)
 
#define G_TT_RGBA16   (2 << G_MDSFT_TEXTLUT)
 
#define G_TT_IA16   (3 << G_MDSFT_TEXTLUT)
 
#define G_TF_POINT   (0 << G_MDSFT_TEXTFILT)
 
#define G_TF_AVERAGE   (3 << G_MDSFT_TEXTFILT)
 
#define G_TF_BILERP   (2 << G_MDSFT_TEXTFILT)
 
#define G_TC_CONV   (0 << G_MDSFT_TEXTCONV)
 
#define G_TC_FILTCONV   (5 << G_MDSFT_TEXTCONV)
 
#define G_TC_FILT   (6 << G_MDSFT_TEXTCONV)
 
#define G_CK_NONE   (0 << G_MDSFT_COMBKEY)
 
#define G_CK_KEY   (1 << G_MDSFT_COMBKEY)
 
#define G_CD_MAGICSQ   (0 << G_MDSFT_RGBDITHER)
 
#define G_CD_BAYER   (1 << G_MDSFT_RGBDITHER)
 
#define G_CD_NOISE   (2 << G_MDSFT_RGBDITHER)
 
#define G_CD_DISABLE   (3 << G_MDSFT_RGBDITHER)
 
#define G_CD_ENABLE   G_CD_NOISE /* HW 1.0 compatibility mode */
 
#define G_AD_PATTERN   (0 << G_MDSFT_ALPHADITHER)
 
#define G_AD_NOTPATTERN   (1 << G_MDSFT_ALPHADITHER)
 
#define G_AD_NOISE   (2 << G_MDSFT_ALPHADITHER)
 
#define G_AD_DISABLE   (3 << G_MDSFT_ALPHADITHER)
 
#define G_AC_NONE   (0 << G_MDSFT_ALPHACOMPARE)
 
#define G_AC_THRESHOLD   (1 << G_MDSFT_ALPHACOMPARE)
 
#define G_AC_DITHER   (3 << G_MDSFT_ALPHACOMPARE)
 
#define G_ZS_PIXEL   (0 << G_MDSFT_ZSRCSEL)
 
#define G_ZS_PRIM   (1 << G_MDSFT_ZSRCSEL)
 
#define AA_EN   0x8
 
#define Z_CMP   0x10
 
#define Z_UPD   0x20
 
#define IM_RD   0x40
 
#define CLR_ON_CVG   0x80
 
#define CVG_DST_CLAMP   0
 
#define CVG_DST_WRAP   0x100
 
#define CVG_DST_FULL   0x200
 
#define CVG_DST_SAVE   0x300
 
#define ZMODE_OPA   0
 
#define ZMODE_INTER   0x400
 
#define ZMODE_XLU   0x800
 
#define ZMODE_DEC   0xc00
 
#define CVG_X_ALPHA   0x1000
 
#define ALPHA_CVG_SEL   0x2000
 
#define FORCE_BL   0x4000
 
#define TEX_EDGE   0x0000 /* used to be 0x8000 */
 
#define G_BL_CLR_IN   0
 
#define G_BL_CLR_MEM   1
 
#define G_BL_CLR_BL   2
 
#define G_BL_CLR_FOG   3
 
#define G_BL_1MA   0
 
#define G_BL_A_MEM   1
 
#define G_BL_A_IN   0
 
#define G_BL_A_FOG   1
 
#define G_BL_A_SHADE   2
 
#define G_BL_1   2
 
#define G_BL_0   3
 
#define GBL_c1(m1a, m1b, m2a, m2b)   (m1a) << 30 | (m1b) << 26 | (m2a) << 22 | (m2b) << 18
 
#define GBL_c2(m1a, m1b, m2a, m2b)   (m1a) << 28 | (m1b) << 24 | (m2a) << 20 | (m2b) << 16
 
#define RM_AA_ZB_OPA_SURF(clk)
 
#define RM_RA_ZB_OPA_SURF(clk)
 
#define RM_AA_ZB_XLU_SURF(clk)
 
#define RM_AA_ZB_OPA_DECAL(clk)
 
#define RM_RA_ZB_OPA_DECAL(clk)
 
#define RM_AA_ZB_XLU_DECAL(clk)
 
#define RM_AA_ZB_OPA_INTER(clk)
 
#define RM_RA_ZB_OPA_INTER(clk)
 
#define RM_AA_ZB_XLU_INTER(clk)
 
#define RM_AA_ZB_XLU_LINE(clk)
 
#define RM_AA_ZB_DEC_LINE(clk)
 
#define RM_AA_ZB_TEX_EDGE(clk)
 
#define RM_AA_ZB_TEX_INTER(clk)
 
#define RM_AA_ZB_SUB_SURF(clk)
 
#define RM_AA_ZB_PCL_SURF(clk)
 
#define RM_AA_ZB_OPA_TERR(clk)
 
#define RM_AA_ZB_TEX_TERR(clk)
 
#define RM_AA_ZB_SUB_TERR(clk)
 
#define RM_AA_OPA_SURF(clk)
 
#define RM_RA_OPA_SURF(clk)    AA_EN | CVG_DST_CLAMP | ZMODE_OPA | ALPHA_CVG_SEL | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM)
 
#define RM_AA_XLU_SURF(clk)
 
#define RM_AA_XLU_LINE(clk)
 
#define RM_AA_DEC_LINE(clk)
 
#define RM_AA_TEX_EDGE(clk)
 
#define RM_AA_SUB_SURF(clk)
 
#define RM_AA_PCL_SURF(clk)    AA_EN | IM_RD | CVG_DST_CLAMP | ZMODE_OPA | G_AC_DITHER | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)
 
#define RM_AA_OPA_TERR(clk)
 
#define RM_AA_TEX_TERR(clk)
 
#define RM_AA_SUB_TERR(clk)
 
#define RM_ZB_OPA_SURF(clk)
 
#define RM_ZB_XLU_SURF(clk)    Z_CMP | IM_RD | CVG_DST_FULL | FORCE_BL | ZMODE_XLU | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)
 
#define RM_ZB_OPA_DECAL(clk)    Z_CMP | CVG_DST_FULL | ALPHA_CVG_SEL | ZMODE_DEC | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM)
 
#define RM_ZB_XLU_DECAL(clk)    Z_CMP | IM_RD | CVG_DST_FULL | FORCE_BL | ZMODE_DEC | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)
 
#define RM_ZB_CLD_SURF(clk)    Z_CMP | IM_RD | CVG_DST_SAVE | FORCE_BL | ZMODE_XLU | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)
 
#define RM_ZB_OVL_SURF(clk)    Z_CMP | IM_RD | CVG_DST_SAVE | FORCE_BL | ZMODE_DEC | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)
 
#define RM_ZB_PCL_SURF(clk)    Z_CMP | Z_UPD | CVG_DST_FULL | ZMODE_OPA | G_AC_DITHER | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)
 
#define RM_OPA_SURF(clk)   CVG_DST_CLAMP | FORCE_BL | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)
 
#define RM_XLU_SURF(clk)    IM_RD | CVG_DST_FULL | FORCE_BL | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)
 
#define RM_TEX_EDGE(clk)
 
#define RM_CLD_SURF(clk)    IM_RD | CVG_DST_SAVE | FORCE_BL | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)
 
#define RM_PCL_SURF(clk)    CVG_DST_FULL | FORCE_BL | ZMODE_OPA | G_AC_DITHER | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)
 
#define RM_ADD(clk)    IM_RD | CVG_DST_SAVE | FORCE_BL | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_A_FOG, G_BL_CLR_MEM, G_BL_1)
 
#define RM_NOOP(clk)   GBL_c##clk(0, 0, 0, 0)
 
#define RM_VISCVG(clk)   IM_RD | FORCE_BL | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_BL, G_BL_A_MEM)
 
#define RM_OPA_CI(clk)   CVG_DST_CLAMP | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)
 
#define RM_CUSTOM_AA_ZB_XLU_SURF(clk)   RM_AA_ZB_XLU_SURF(clk) | Z_UPD
 
#define G_RM_AA_ZB_OPA_SURF   RM_AA_ZB_OPA_SURF(1)
 
#define G_RM_AA_ZB_OPA_SURF2   RM_AA_ZB_OPA_SURF(2)
 
#define G_RM_AA_ZB_XLU_SURF   RM_AA_ZB_XLU_SURF(1)
 
#define G_RM_AA_ZB_XLU_SURF2   RM_AA_ZB_XLU_SURF(2)
 
#define G_RM_AA_ZB_OPA_DECAL   RM_AA_ZB_OPA_DECAL(1)
 
#define G_RM_AA_ZB_OPA_DECAL2   RM_AA_ZB_OPA_DECAL(2)
 
#define G_RM_AA_ZB_XLU_DECAL   RM_AA_ZB_XLU_DECAL(1)
 
#define G_RM_AA_ZB_XLU_DECAL2   RM_AA_ZB_XLU_DECAL(2)
 
#define G_RM_AA_ZB_OPA_INTER   RM_AA_ZB_OPA_INTER(1)
 
#define G_RM_AA_ZB_OPA_INTER2   RM_AA_ZB_OPA_INTER(2)
 
#define G_RM_AA_ZB_XLU_INTER   RM_AA_ZB_XLU_INTER(1)
 
#define G_RM_AA_ZB_XLU_INTER2   RM_AA_ZB_XLU_INTER(2)
 
#define G_RM_AA_ZB_XLU_LINE   RM_AA_ZB_XLU_LINE(1)
 
#define G_RM_AA_ZB_XLU_LINE2   RM_AA_ZB_XLU_LINE(2)
 
#define G_RM_AA_ZB_DEC_LINE   RM_AA_ZB_DEC_LINE(1)
 
#define G_RM_AA_ZB_DEC_LINE2   RM_AA_ZB_DEC_LINE(2)
 
#define G_RM_AA_ZB_TEX_EDGE   RM_AA_ZB_TEX_EDGE(1)
 
#define G_RM_AA_ZB_TEX_EDGE2   RM_AA_ZB_TEX_EDGE(2)
 
#define G_RM_AA_ZB_TEX_INTER   RM_AA_ZB_TEX_INTER(1)
 
#define G_RM_AA_ZB_TEX_INTER2   RM_AA_ZB_TEX_INTER(2)
 
#define G_RM_AA_ZB_SUB_SURF   RM_AA_ZB_SUB_SURF(1)
 
#define G_RM_AA_ZB_SUB_SURF2   RM_AA_ZB_SUB_SURF(2)
 
#define G_RM_AA_ZB_PCL_SURF   RM_AA_ZB_PCL_SURF(1)
 
#define G_RM_AA_ZB_PCL_SURF2   RM_AA_ZB_PCL_SURF(2)
 
#define G_RM_AA_ZB_OPA_TERR   RM_AA_ZB_OPA_TERR(1)
 
#define G_RM_AA_ZB_OPA_TERR2   RM_AA_ZB_OPA_TERR(2)
 
#define G_RM_AA_ZB_TEX_TERR   RM_AA_ZB_TEX_TERR(1)
 
#define G_RM_AA_ZB_TEX_TERR2   RM_AA_ZB_TEX_TERR(2)
 
#define G_RM_AA_ZB_SUB_TERR   RM_AA_ZB_SUB_TERR(1)
 
#define G_RM_AA_ZB_SUB_TERR2   RM_AA_ZB_SUB_TERR(2)
 
#define G_RM_RA_ZB_OPA_SURF   RM_RA_ZB_OPA_SURF(1)
 
#define G_RM_RA_ZB_OPA_SURF2   RM_RA_ZB_OPA_SURF(2)
 
#define G_RM_RA_ZB_OPA_DECAL   RM_RA_ZB_OPA_DECAL(1)
 
#define G_RM_RA_ZB_OPA_DECAL2   RM_RA_ZB_OPA_DECAL(2)
 
#define G_RM_RA_ZB_OPA_INTER   RM_RA_ZB_OPA_INTER(1)
 
#define G_RM_RA_ZB_OPA_INTER2   RM_RA_ZB_OPA_INTER(2)
 
#define G_RM_AA_OPA_SURF   RM_AA_OPA_SURF(1)
 
#define G_RM_AA_OPA_SURF2   RM_AA_OPA_SURF(2)
 
#define G_RM_AA_XLU_SURF   RM_AA_XLU_SURF(1)
 
#define G_RM_AA_XLU_SURF2   RM_AA_XLU_SURF(2)
 
#define G_RM_AA_XLU_LINE   RM_AA_XLU_LINE(1)
 
#define G_RM_AA_XLU_LINE2   RM_AA_XLU_LINE(2)
 
#define G_RM_AA_DEC_LINE   RM_AA_DEC_LINE(1)
 
#define G_RM_AA_DEC_LINE2   RM_AA_DEC_LINE(2)
 
#define G_RM_AA_TEX_EDGE   RM_AA_TEX_EDGE(1)
 
#define G_RM_AA_TEX_EDGE2   RM_AA_TEX_EDGE(2)
 
#define G_RM_AA_SUB_SURF   RM_AA_SUB_SURF(1)
 
#define G_RM_AA_SUB_SURF2   RM_AA_SUB_SURF(2)
 
#define G_RM_AA_PCL_SURF   RM_AA_PCL_SURF(1)
 
#define G_RM_AA_PCL_SURF2   RM_AA_PCL_SURF(2)
 
#define G_RM_AA_OPA_TERR   RM_AA_OPA_TERR(1)
 
#define G_RM_AA_OPA_TERR2   RM_AA_OPA_TERR(2)
 
#define G_RM_AA_TEX_TERR   RM_AA_TEX_TERR(1)
 
#define G_RM_AA_TEX_TERR2   RM_AA_TEX_TERR(2)
 
#define G_RM_AA_SUB_TERR   RM_AA_SUB_TERR(1)
 
#define G_RM_AA_SUB_TERR2   RM_AA_SUB_TERR(2)
 
#define G_RM_RA_OPA_SURF   RM_RA_OPA_SURF(1)
 
#define G_RM_RA_OPA_SURF2   RM_RA_OPA_SURF(2)
 
#define G_RM_ZB_OPA_SURF   RM_ZB_OPA_SURF(1)
 
#define G_RM_ZB_OPA_SURF2   RM_ZB_OPA_SURF(2)
 
#define G_RM_ZB_XLU_SURF   RM_ZB_XLU_SURF(1)
 
#define G_RM_ZB_XLU_SURF2   RM_ZB_XLU_SURF(2)
 
#define G_RM_ZB_OPA_DECAL   RM_ZB_OPA_DECAL(1)
 
#define G_RM_ZB_OPA_DECAL2   RM_ZB_OPA_DECAL(2)
 
#define G_RM_ZB_XLU_DECAL   RM_ZB_XLU_DECAL(1)
 
#define G_RM_ZB_XLU_DECAL2   RM_ZB_XLU_DECAL(2)
 
#define G_RM_ZB_CLD_SURF   RM_ZB_CLD_SURF(1)
 
#define G_RM_ZB_CLD_SURF2   RM_ZB_CLD_SURF(2)
 
#define G_RM_ZB_OVL_SURF   RM_ZB_OVL_SURF(1)
 
#define G_RM_ZB_OVL_SURF2   RM_ZB_OVL_SURF(2)
 
#define G_RM_ZB_PCL_SURF   RM_ZB_PCL_SURF(1)
 
#define G_RM_ZB_PCL_SURF2   RM_ZB_PCL_SURF(2)
 
#define G_RM_OPA_SURF   RM_OPA_SURF(1)
 
#define G_RM_OPA_SURF2   RM_OPA_SURF(2)
 
#define G_RM_XLU_SURF   RM_XLU_SURF(1)
 
#define G_RM_XLU_SURF2   RM_XLU_SURF(2)
 
#define G_RM_CLD_SURF   RM_CLD_SURF(1)
 
#define G_RM_CLD_SURF2   RM_CLD_SURF(2)
 
#define G_RM_TEX_EDGE   RM_TEX_EDGE(1)
 
#define G_RM_TEX_EDGE2   RM_TEX_EDGE(2)
 
#define G_RM_PCL_SURF   RM_PCL_SURF(1)
 
#define G_RM_PCL_SURF2   RM_PCL_SURF(2)
 
#define G_RM_ADD   RM_ADD(1)
 
#define G_RM_ADD2   RM_ADD(2)
 
#define G_RM_NOOP   RM_NOOP(1)
 
#define G_RM_NOOP2   RM_NOOP(2)
 
#define G_RM_VISCVG   RM_VISCVG(1)
 
#define G_RM_VISCVG2   RM_VISCVG(2)
 
#define G_RM_OPA_CI   RM_OPA_CI(1)
 
#define G_RM_OPA_CI2   RM_OPA_CI(2)
 
#define G_RM_CUSTOM_AA_ZB_XLU_SURF   RM_CUSTOM_AA_ZB_XLU_SURF(1)
 
#define G_RM_CUSTOM_AA_ZB_XLU_SURF2   RM_CUSTOM_AA_ZB_XLU_SURF(2)
 
#define G_RM_FOG_SHADE_A   GBL_c1(G_BL_CLR_FOG, G_BL_A_SHADE, G_BL_CLR_IN, G_BL_1MA)
 
#define G_RM_FOG_PRIM_A   GBL_c1(G_BL_CLR_FOG, G_BL_A_FOG, G_BL_CLR_IN, G_BL_1MA)
 
#define G_RM_PASS   GBL_c1(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)
 
#define G_CV_K0   175
 
#define G_CV_K1   -43
 
#define G_CV_K2   -89
 
#define G_CV_K3   222
 
#define G_CV_K4   114
 
#define G_CV_K5   42
 
#define G_SC_NON_INTERLACE   0
 
#define G_SC_ODD_INTERLACE   3
 
#define G_SC_EVEN_INTERLACE   2
 
#define G_DL_PUSH   0x00
 
#define G_DL_NOPUSH   0x01
 

Macro Definition Documentation

◆ _G_CC_BLENDPE

#define _G_CC_BLENDPE   ENVIRONMENT, PRIMITIVE, TEXEL0, PRIMITIVE, TEXEL0, 0, SHADE, 0

◆ _G_CC_BLENDPEDECALA

#define _G_CC_BLENDPEDECALA   ENVIRONMENT, PRIMITIVE, TEXEL0, PRIMITIVE, 0, 0, 0, TEXEL0

◆ _G_CC_SPARSEST

#define _G_CC_SPARSEST   PRIMITIVE, TEXEL0, LOD_FRACTION, TEXEL0, PRIMITIVE, TEXEL0, LOD_FRACTION, TEXEL0

◆ _G_CC_TWOCOLORTEX

#define _G_CC_TWOCOLORTEX   PRIMITIVE, SHADE, TEXEL0, SHADE, 0, 0, 0, SHADE

◆ AA_EN

#define AA_EN   0x8

◆ ALPHA_CVG_SEL

#define ALPHA_CVG_SEL   0x2000

◆ BOWTIE_VAL

#define BOWTIE_VAL   0

◆ CLR_ON_CVG

#define CLR_ON_CVG   0x80

◆ CVG_DST_CLAMP

#define CVG_DST_CLAMP   0

◆ CVG_DST_FULL

#define CVG_DST_FULL   0x200

◆ CVG_DST_SAVE

#define CVG_DST_SAVE   0x300

◆ CVG_DST_WRAP

#define CVG_DST_WRAP   0x100

◆ CVG_X_ALPHA

#define CVG_X_ALPHA   0x1000

◆ FORCE_BL

#define FORCE_BL   0x4000

◆ G_AC_DITHER

#define G_AC_DITHER   (3 << G_MDSFT_ALPHACOMPARE)

◆ G_AC_NONE

#define G_AC_NONE   (0 << G_MDSFT_ALPHACOMPARE)

◆ G_AC_THRESHOLD

#define G_AC_THRESHOLD   (1 << G_MDSFT_ALPHACOMPARE)

◆ G_ACMUX_0

#define G_ACMUX_0   7

◆ G_ACMUX_1

#define G_ACMUX_1   6

◆ G_ACMUX_COMBINED

#define G_ACMUX_COMBINED   0

◆ G_ACMUX_ENVIRONMENT

#define G_ACMUX_ENVIRONMENT   5

◆ G_ACMUX_LOD_FRACTION

#define G_ACMUX_LOD_FRACTION   0

◆ G_ACMUX_PRIM_LOD_FRAC

#define G_ACMUX_PRIM_LOD_FRAC   6

◆ G_ACMUX_PRIMITIVE

#define G_ACMUX_PRIMITIVE   3

◆ G_ACMUX_SHADE

#define G_ACMUX_SHADE   4

◆ G_ACMUX_TEXEL0

#define G_ACMUX_TEXEL0   1

◆ G_ACMUX_TEXEL1

#define G_ACMUX_TEXEL1   2

◆ G_AD_DISABLE

#define G_AD_DISABLE   (3 << G_MDSFT_ALPHADITHER)

◆ G_AD_NOISE

#define G_AD_NOISE   (2 << G_MDSFT_ALPHADITHER)

◆ G_AD_NOTPATTERN

#define G_AD_NOTPATTERN   (1 << G_MDSFT_ALPHADITHER)

◆ G_AD_PATTERN

#define G_AD_PATTERN   (0 << G_MDSFT_ALPHADITHER)

◆ G_BL_0

#define G_BL_0   3

◆ G_BL_1

#define G_BL_1   2

◆ G_BL_1MA

#define G_BL_1MA   0

◆ G_BL_A_FOG

#define G_BL_A_FOG   1

◆ G_BL_A_IN

#define G_BL_A_IN   0

◆ G_BL_A_MEM

#define G_BL_A_MEM   1

◆ G_BL_A_SHADE

#define G_BL_A_SHADE   2

◆ G_BL_CLR_BL

#define G_BL_CLR_BL   2

◆ G_BL_CLR_FOG

#define G_BL_CLR_FOG   3

◆ G_BL_CLR_IN

#define G_BL_CLR_IN   0

◆ G_BL_CLR_MEM

#define G_BL_CLR_MEM   1

◆ G_CC_1CYUV2RGB

#define G_CC_1CYUV2RGB   TEXEL0, K4, K5, TEXEL0, 0, 0, 0, SHADE

◆ G_CC_ADDRGB

#define G_CC_ADDRGB   TEXEL0, 0, TEXEL0, SHADE, 0, 0, 0, SHADE

◆ G_CC_ADDRGBDECALA

#define G_CC_ADDRGBDECALA   TEXEL0, 0, TEXEL0, SHADE, 0, 0, 0, TEXEL0

◆ G_CC_ADDRGBFADE

#define G_CC_ADDRGBFADE   TEXEL0, 0, TEXEL0, SHADE, 0, 0, 0, ENVIRONMENT

◆ G_CC_BLENDI

#define G_CC_BLENDI   ENVIRONMENT, SHADE, TEXEL0, SHADE, 0, 0, 0, SHADE

◆ G_CC_BLENDI2

#define G_CC_BLENDI2   ENVIRONMENT, SHADE, COMBINED, SHADE, 0, 0, 0, SHADE

◆ G_CC_BLENDIA

#define G_CC_BLENDIA   ENVIRONMENT, SHADE, TEXEL0, SHADE, TEXEL0, 0, SHADE, 0

◆ G_CC_BLENDIA2

#define G_CC_BLENDIA2   ENVIRONMENT, SHADE, COMBINED, SHADE, COMBINED, 0, SHADE, 0

◆ G_CC_BLENDIDECALA

#define G_CC_BLENDIDECALA   ENVIRONMENT, SHADE, TEXEL0, SHADE, 0, 0, 0, TEXEL0

◆ G_CC_BLENDPE

#define G_CC_BLENDPE   PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, TEXEL0, 0, SHADE, 0

◆ G_CC_BLENDPEDECALA

#define G_CC_BLENDPEDECALA   PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, 0, 0, 0, TEXEL0

◆ G_CC_BLENDRGBA

#define G_CC_BLENDRGBA   TEXEL0, SHADE, TEXEL0_ALPHA, SHADE, 0, 0, 0, SHADE

◆ G_CC_BLENDRGBDECALA

#define G_CC_BLENDRGBDECALA   TEXEL0, SHADE, TEXEL0_ALPHA, SHADE, 0, 0, 0, TEXEL0

◆ G_CC_BLENDRGBFADEA

#define G_CC_BLENDRGBFADEA   TEXEL0, SHADE, TEXEL0_ALPHA, SHADE, 0, 0, 0, ENVIRONMENT

◆ G_CC_CHROMA_KEY2

#define G_CC_CHROMA_KEY2   TEXEL0, CENTER, SCALE, 0, 0, 0, 0, 0

◆ G_CC_DECALFADE

#define G_CC_DECALFADE   0, 0, 0, TEXEL0, 0, 0, 0, ENVIRONMENT

◆ G_CC_DECALFADEA

#define G_CC_DECALFADEA   0, 0, 0, TEXEL0, TEXEL0, 0, ENVIRONMENT, 0

◆ G_CC_DECALRGB

#define G_CC_DECALRGB   0, 0, 0, TEXEL0, 0, 0, 0, SHADE

◆ G_CC_DECALRGB2

#define G_CC_DECALRGB2   0, 0, 0, COMBINED, 0, 0, 0, SHADE

◆ G_CC_DECALRGBA

#define G_CC_DECALRGBA   0, 0, 0, TEXEL0, 0, 0, 0, TEXEL0

◆ G_CC_FADE

#define G_CC_FADE   SHADE, 0, ENVIRONMENT, 0, SHADE, 0, ENVIRONMENT, 0

◆ G_CC_FADEA

#define G_CC_FADEA   TEXEL0, 0, ENVIRONMENT, 0, TEXEL0, 0, ENVIRONMENT, 0

◆ G_CC_HILITERGB

#define G_CC_HILITERGB   PRIMITIVE, SHADE, TEXEL0, SHADE, 0, 0, 0, SHADE

◆ G_CC_HILITERGB2

#define G_CC_HILITERGB2   ENVIRONMENT, COMBINED, TEXEL0, COMBINED, 0, 0, 0, SHADE

◆ G_CC_HILITERGBA

#define G_CC_HILITERGBA   PRIMITIVE, SHADE, TEXEL0, SHADE, PRIMITIVE, SHADE, TEXEL0, SHADE

◆ G_CC_HILITERGBA2

#define G_CC_HILITERGBA2   ENVIRONMENT, COMBINED, TEXEL0, COMBINED, ENVIRONMENT, COMBINED, TEXEL0, COMBINED

◆ G_CC_HILITERGBDECALA

#define G_CC_HILITERGBDECALA   PRIMITIVE, SHADE, TEXEL0, SHADE, 0, 0, 0, TEXEL0

◆ G_CC_HILITERGBDECALA2

#define G_CC_HILITERGBDECALA2   ENVIRONMENT, COMBINED, TEXEL0, COMBINED, 0, 0, 0, TEXEL0

◆ G_CC_HILITERGBPASSA2

#define G_CC_HILITERGBPASSA2   ENVIRONMENT, COMBINED, TEXEL0, COMBINED, 0, 0, 0, COMBINED

◆ G_CC_INTERFERENCE

#define G_CC_INTERFERENCE   TEXEL0, 0, TEXEL1, 0, TEXEL0, 0, TEXEL1, 0

◆ G_CC_MODULATEFADE

#define G_CC_MODULATEFADE   TEXEL0, 0, SHADE, 0, ENVIRONMENT, 0, TEXEL0, 0

◆ G_CC_MODULATEI

#define G_CC_MODULATEI   TEXEL0, 0, SHADE, 0, 0, 0, 0, SHADE

◆ G_CC_MODULATEI2

#define G_CC_MODULATEI2   COMBINED, 0, SHADE, 0, 0, 0, 0, SHADE

◆ G_CC_MODULATEI_PRIM

#define G_CC_MODULATEI_PRIM   TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, PRIMITIVE

◆ G_CC_MODULATEI_PRIM2

#define G_CC_MODULATEI_PRIM2   COMBINED, 0, PRIMITIVE, 0, 0, 0, 0, PRIMITIVE

◆ G_CC_MODULATEIA

#define G_CC_MODULATEIA   TEXEL0, 0, SHADE, 0, TEXEL0, 0, SHADE, 0

◆ G_CC_MODULATEIA2

#define G_CC_MODULATEIA2   COMBINED, 0, SHADE, 0, COMBINED, 0, SHADE, 0

◆ G_CC_MODULATEIA_PRIM

#define G_CC_MODULATEIA_PRIM   TEXEL0, 0, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, 0

◆ G_CC_MODULATEIA_PRIM2

#define G_CC_MODULATEIA_PRIM2   COMBINED, 0, PRIMITIVE, 0, COMBINED, 0, PRIMITIVE, 0

◆ G_CC_MODULATEIDECALA

#define G_CC_MODULATEIDECALA   TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0

◆ G_CC_MODULATEIDECALA_PRIM

#define G_CC_MODULATEIDECALA_PRIM   TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, TEXEL0

◆ G_CC_MODULATEIFADE

#define G_CC_MODULATEIFADE   TEXEL0, 0, SHADE, 0, 0, 0, 0, ENVIRONMENT

◆ G_CC_MODULATEIFADEA

#define G_CC_MODULATEIFADEA   TEXEL0, 0, SHADE, 0, TEXEL0, 0, ENVIRONMENT, 0

◆ G_CC_MODULATERGB

#define G_CC_MODULATERGB   G_CC_MODULATEI

◆ G_CC_MODULATERGB2

#define G_CC_MODULATERGB2   G_CC_MODULATEI2

◆ G_CC_MODULATERGB_PRIM

#define G_CC_MODULATERGB_PRIM   G_CC_MODULATEI_PRIM

◆ G_CC_MODULATERGB_PRIM2

#define G_CC_MODULATERGB_PRIM2   G_CC_MODULATEI_PRIM2

◆ G_CC_MODULATERGBA

#define G_CC_MODULATERGBA   G_CC_MODULATEIA

◆ G_CC_MODULATERGBA2

#define G_CC_MODULATERGBA2   G_CC_MODULATEIA2

◆ G_CC_MODULATERGBA_PRIM

#define G_CC_MODULATERGBA_PRIM   G_CC_MODULATEIA_PRIM

◆ G_CC_MODULATERGBA_PRIM2

#define G_CC_MODULATERGBA_PRIM2   G_CC_MODULATEIA_PRIM2

◆ G_CC_MODULATERGBDECALA

#define G_CC_MODULATERGBDECALA   G_CC_MODULATEIDECALA

◆ G_CC_MODULATERGBDECALA_PRIM

#define G_CC_MODULATERGBDECALA_PRIM   G_CC_MODULATEIDECALA_PRIM

◆ G_CC_MODULATERGBFADE

#define G_CC_MODULATERGBFADE   G_CC_MODULATEIFADE

◆ G_CC_MODULATERGBFADEA

#define G_CC_MODULATERGBFADEA   G_CC_MODULATEIFADEA

◆ G_CC_PASS2

#define G_CC_PASS2   0, 0, 0, COMBINED, 0, 0, 0, COMBINED

◆ G_CC_PRIMITIVE

#define G_CC_PRIMITIVE   0, 0, 0, PRIMITIVE, 0, 0, 0, PRIMITIVE

◆ G_CC_REFLECTRGB

#define G_CC_REFLECTRGB   ENVIRONMENT, 0, TEXEL0, SHADE, 0, 0, 0, SHADE

◆ G_CC_REFLECTRGBDECALA

#define G_CC_REFLECTRGBDECALA   ENVIRONMENT, 0, TEXEL0, SHADE, 0, 0, 0, TEXEL0

◆ G_CC_SHADE

#define G_CC_SHADE   0, 0, 0, SHADE, 0, 0, 0, SHADE

◆ G_CC_SHADEDECALA

#define G_CC_SHADEDECALA   0, 0, 0, SHADE, 0, 0, 0, TEXEL0

◆ G_CC_SHADEFADEA

#define G_CC_SHADEFADEA   0, 0, 0, SHADE, 0, 0, 0, ENVIRONMENT

◆ G_CC_TEMPLERP

#define G_CC_TEMPLERP   TEXEL1, TEXEL0, PRIM_LOD_FRAC, TEXEL0, TEXEL1, TEXEL0, PRIM_LOD_FRAC, TEXEL0

◆ G_CC_TRILERP

#define G_CC_TRILERP   TEXEL1, TEXEL0, LOD_FRACTION, TEXEL0, TEXEL1, TEXEL0, LOD_FRACTION, TEXEL0

◆ G_CC_YUV2RGB

#define G_CC_YUV2RGB   TEXEL1, K4, K5, TEXEL1, 0, 0, 0, 0

◆ G_CCMUX_0

#define G_CCMUX_0   31

◆ G_CCMUX_1

#define G_CCMUX_1   6

◆ G_CCMUX_CENTER

#define G_CCMUX_CENTER   6

◆ G_CCMUX_COMBINED

#define G_CCMUX_COMBINED   0

◆ G_CCMUX_COMBINED_ALPHA

#define G_CCMUX_COMBINED_ALPHA   7

◆ G_CCMUX_ENV_ALPHA

#define G_CCMUX_ENV_ALPHA   12

◆ G_CCMUX_ENVIRONMENT

#define G_CCMUX_ENVIRONMENT   5

◆ G_CCMUX_K4

#define G_CCMUX_K4   7

◆ G_CCMUX_K5

#define G_CCMUX_K5   15

◆ G_CCMUX_LOD_FRACTION

#define G_CCMUX_LOD_FRACTION   13

◆ G_CCMUX_NOISE

#define G_CCMUX_NOISE   7

◆ G_CCMUX_PRIM_LOD_FRAC

#define G_CCMUX_PRIM_LOD_FRAC   14

◆ G_CCMUX_PRIMITIVE

#define G_CCMUX_PRIMITIVE   3

◆ G_CCMUX_PRIMITIVE_ALPHA

#define G_CCMUX_PRIMITIVE_ALPHA   10

◆ G_CCMUX_SCALE

#define G_CCMUX_SCALE   6

◆ G_CCMUX_SHADE

#define G_CCMUX_SHADE   4

◆ G_CCMUX_SHADE_ALPHA

#define G_CCMUX_SHADE_ALPHA   11

◆ G_CCMUX_TEXEL0

#define G_CCMUX_TEXEL0   1

◆ G_CCMUX_TEXEL0_ALPHA

#define G_CCMUX_TEXEL0_ALPHA   8

◆ G_CCMUX_TEXEL1

#define G_CCMUX_TEXEL1   2

◆ G_CCMUX_TEXEL1_ALPHA

#define G_CCMUX_TEXEL1_ALPHA   9

◆ G_CD_BAYER

#define G_CD_BAYER   (1 << G_MDSFT_RGBDITHER)

◆ G_CD_DISABLE

#define G_CD_DISABLE   (3 << G_MDSFT_RGBDITHER)

◆ G_CD_ENABLE

#define G_CD_ENABLE   G_CD_NOISE /* HW 1.0 compatibility mode */

◆ G_CD_MAGICSQ

#define G_CD_MAGICSQ   (0 << G_MDSFT_RGBDITHER)

◆ G_CD_NOISE

#define G_CD_NOISE   (2 << G_MDSFT_RGBDITHER)

◆ G_CK_KEY

#define G_CK_KEY   (1 << G_MDSFT_COMBKEY)

◆ G_CK_NONE

#define G_CK_NONE   (0 << G_MDSFT_COMBKEY)

◆ G_CLEARGEOMETRYMODE

#define G_CLEARGEOMETRYMODE   (G_IMMFIRST - 9)

◆ G_CLIPPING

#define G_CLIPPING   0x00000000

◆ G_CULL_BACK

#define G_CULL_BACK   0x00002000

◆ G_CULL_BOTH

#define G_CULL_BOTH   0x00003000 /* To make code cleaner */

◆ G_CULL_FRONT

#define G_CULL_FRONT   0x00001000

◆ G_CULLDL

#define G_CULLDL   (G_IMMFIRST - 1)

◆ G_CV_K0

#define G_CV_K0   175

◆ G_CV_K1

#define G_CV_K1   -43

◆ G_CV_K2

#define G_CV_K2   -89

◆ G_CV_K3

#define G_CV_K3   222

◆ G_CV_K4

#define G_CV_K4   114

◆ G_CV_K5

#define G_CV_K5   42

◆ G_CYC_1CYCLE

#define G_CYC_1CYCLE   (0 << G_MDSFT_CYCLETYPE)

◆ G_CYC_2CYCLE

#define G_CYC_2CYCLE   (1 << G_MDSFT_CYCLETYPE)

◆ G_CYC_COPY

#define G_CYC_COPY   (2 << G_MDSFT_CYCLETYPE)

◆ G_CYC_FILL

#define G_CYC_FILL   (3 << G_MDSFT_CYCLETYPE)

◆ G_DL

#define G_DL   6

◆ G_DL_NOPUSH

#define G_DL_NOPUSH   0x01

◆ G_DL_PUSH

#define G_DL_PUSH   0x00

◆ G_DMACMDSIZ

#define G_DMACMDSIZ   128

◆ G_ENDDL

#define G_ENDDL   (G_IMMFIRST - 7)

◆ G_FILLRECT

#define G_FILLRECT   0xf6 /* -10 */

◆ G_FOG

#define G_FOG   0x00010000

◆ G_IM_FMT_CI

#define G_IM_FMT_CI   2

◆ G_IM_FMT_I

#define G_IM_FMT_I   4

◆ G_IM_FMT_IA

#define G_IM_FMT_IA   3

◆ G_IM_FMT_RGBA

#define G_IM_FMT_RGBA   0

◆ G_IM_FMT_YUV

#define G_IM_FMT_YUV   1

◆ G_IM_SIZ_16b

#define G_IM_SIZ_16b   2

◆ G_IM_SIZ_16b_BYTES

#define G_IM_SIZ_16b_BYTES   2

◆ G_IM_SIZ_16b_INCR

#define G_IM_SIZ_16b_INCR   0

◆ G_IM_SIZ_16b_LINE_BYTES

#define G_IM_SIZ_16b_LINE_BYTES   G_IM_SIZ_16b_BYTES

◆ G_IM_SIZ_16b_LOAD_BLOCK

#define G_IM_SIZ_16b_LOAD_BLOCK   G_IM_SIZ_16b

◆ G_IM_SIZ_16b_SHIFT

#define G_IM_SIZ_16b_SHIFT   0

◆ G_IM_SIZ_16b_TILE_BYTES

#define G_IM_SIZ_16b_TILE_BYTES   G_IM_SIZ_16b_BYTES

◆ G_IM_SIZ_32b

#define G_IM_SIZ_32b   3

◆ G_IM_SIZ_32b_BYTES

#define G_IM_SIZ_32b_BYTES   4

◆ G_IM_SIZ_32b_INCR

#define G_IM_SIZ_32b_INCR   0

◆ G_IM_SIZ_32b_LINE_BYTES

#define G_IM_SIZ_32b_LINE_BYTES   2

◆ G_IM_SIZ_32b_LOAD_BLOCK

#define G_IM_SIZ_32b_LOAD_BLOCK   G_IM_SIZ_32b

◆ G_IM_SIZ_32b_SHIFT

#define G_IM_SIZ_32b_SHIFT   0

◆ G_IM_SIZ_32b_TILE_BYTES

#define G_IM_SIZ_32b_TILE_BYTES   2

◆ G_IM_SIZ_4b

#define G_IM_SIZ_4b   0

◆ G_IM_SIZ_4b_BYTES

#define G_IM_SIZ_4b_BYTES   0

◆ G_IM_SIZ_4b_INCR

#define G_IM_SIZ_4b_INCR   3

◆ G_IM_SIZ_4b_LINE_BYTES

#define G_IM_SIZ_4b_LINE_BYTES   G_IM_SIZ_4b_BYTES

◆ G_IM_SIZ_4b_LOAD_BLOCK

#define G_IM_SIZ_4b_LOAD_BLOCK   G_IM_SIZ_16b

◆ G_IM_SIZ_4b_SHIFT

#define G_IM_SIZ_4b_SHIFT   2

◆ G_IM_SIZ_4b_TILE_BYTES

#define G_IM_SIZ_4b_TILE_BYTES   G_IM_SIZ_4b_BYTES

◆ G_IM_SIZ_8b

#define G_IM_SIZ_8b   1

◆ G_IM_SIZ_8b_BYTES

#define G_IM_SIZ_8b_BYTES   1

◆ G_IM_SIZ_8b_INCR

#define G_IM_SIZ_8b_INCR   1

◆ G_IM_SIZ_8b_LINE_BYTES

#define G_IM_SIZ_8b_LINE_BYTES   G_IM_SIZ_8b_BYTES

◆ G_IM_SIZ_8b_LOAD_BLOCK

#define G_IM_SIZ_8b_LOAD_BLOCK   G_IM_SIZ_16b

◆ G_IM_SIZ_8b_SHIFT

#define G_IM_SIZ_8b_SHIFT   1

◆ G_IM_SIZ_8b_TILE_BYTES

#define G_IM_SIZ_8b_TILE_BYTES   G_IM_SIZ_8b_BYTES

◆ G_IM_SIZ_DD

#define G_IM_SIZ_DD   5

◆ G_IMMCMDSIZ

#define G_IMMCMDSIZ   64

◆ G_IMMFIRST

#define G_IMMFIRST   -65

◆ G_LIGHTING

#define G_LIGHTING   0x00020000

◆ G_LINE3D

#define G_LINE3D   (G_IMMFIRST - 10)

◆ G_LOADBLOCK

#define G_LOADBLOCK   0xf3 /* -13 */

◆ G_LOADTILE

#define G_LOADTILE   0xf4 /* -12 */

◆ G_LOADTLUT

#define G_LOADTLUT   0xf0 /* -16 */

◆ G_LOD

#define G_LOD   0x00100000 /* NOT IMPLEMENTED */

◆ G_MAXFBZ

#define G_MAXFBZ   0x3fff /* 3b exp, 11b mantissa */

◆ G_MDSFT_ALPHACOMPARE

#define G_MDSFT_ALPHACOMPARE   0

◆ G_MDSFT_ALPHADITHER

#define G_MDSFT_ALPHADITHER   4

◆ G_MDSFT_BLENDER

#define G_MDSFT_BLENDER   16

◆ G_MDSFT_BLENDMASK

#define G_MDSFT_BLENDMASK   0 /* unsupported */

◆ G_MDSFT_COLORDITHER

#define G_MDSFT_COLORDITHER   22 /* unsupported in HW 2.0 */

◆ G_MDSFT_COMBKEY

#define G_MDSFT_COMBKEY   8

◆ G_MDSFT_CYCLETYPE

#define G_MDSFT_CYCLETYPE   20

◆ G_MDSFT_PIPELINE

#define G_MDSFT_PIPELINE   23

◆ G_MDSFT_RENDERMODE

#define G_MDSFT_RENDERMODE   3

◆ G_MDSFT_RGBDITHER

#define G_MDSFT_RGBDITHER   6

◆ G_MDSFT_TEXTCONV

#define G_MDSFT_TEXTCONV   9

◆ G_MDSFT_TEXTDETAIL

#define G_MDSFT_TEXTDETAIL   17

◆ G_MDSFT_TEXTFILT

#define G_MDSFT_TEXTFILT   12

◆ G_MDSFT_TEXTLOD

#define G_MDSFT_TEXTLOD   16

◆ G_MDSFT_TEXTLUT

#define G_MDSFT_TEXTLUT   14

◆ G_MDSFT_TEXTPERSP

#define G_MDSFT_TEXTPERSP   19

◆ G_MDSFT_ZSRCSEL

#define G_MDSFT_ZSRCSEL   2

◆ G_MOVEMEM

#define G_MOVEMEM   3 /* move a block of memory (up to 4 words) to dmem */

◆ G_MOVEWORD

#define G_MOVEWORD   (G_IMMFIRST - 3)

◆ G_MTX

#define G_MTX   1

◆ G_MTX_LOAD

#define G_MTX_LOAD   0x02

◆ G_MTX_MODELVIEW

#define G_MTX_MODELVIEW   0x00 /* matrix types */

◆ G_MTX_MUL

#define G_MTX_MUL   0x00 /* concat or load */

◆ G_MTX_NOPUSH

#define G_MTX_NOPUSH   0x00 /* push or not */

◆ G_MTX_PROJECTION

#define G_MTX_PROJECTION   0x01

◆ G_MTX_PUSH

#define G_MTX_PUSH   0x04

◆ G_NOOP

#define G_NOOP   0xc0 /* 0 */

◆ G_PM_1PRIMITIVE

#define G_PM_1PRIMITIVE   (1 << G_MDSFT_PIPELINE)

◆ G_PM_NPRIMITIVE

#define G_PM_NPRIMITIVE   (0 << G_MDSFT_PIPELINE)

◆ G_POPMTX

#define G_POPMTX   (G_IMMFIRST - 2)

◆ G_RDP_ADDR_FIXUP

#define G_RDP_ADDR_FIXUP   3 /* |RDP cmds| <= this, do addr fixup */

◆ G_RDP_TRI_FILL_MASK

#define G_RDP_TRI_FILL_MASK   0x08

◆ G_RDP_TRI_SHADE_MASK

#define G_RDP_TRI_SHADE_MASK   0x04

◆ G_RDP_TRI_TXTR_MASK

#define G_RDP_TRI_TXTR_MASK   0x02

◆ G_RDP_TRI_ZBUFF_MASK

#define G_RDP_TRI_ZBUFF_MASK   0x01

◆ G_RDPCMDSIZ

#define G_RDPCMDSIZ   64

◆ G_RDPFULLSYNC

#define G_RDPFULLSYNC   0xe9 /* -23 */

◆ G_RDPHALF_1

#define G_RDPHALF_1   (G_IMMFIRST - 11)

◆ G_RDPHALF_2

#define G_RDPHALF_2   (G_IMMFIRST - 12)

◆ G_RDPHALF_CONT

#define G_RDPHALF_CONT   (G_IMMFIRST - 13)

◆ G_RDPLOADSYNC

#define G_RDPLOADSYNC   0xe6 /* -26 */

◆ G_RDPPIPESYNC

#define G_RDPPIPESYNC   0xe7 /* -25 */

◆ G_RDPSETOTHERMODE

#define G_RDPSETOTHERMODE   0xef /* -17 */

◆ G_RDPTILESYNC

#define G_RDPTILESYNC   0xe8 /* -24 */

◆ G_RESERVED0

#define G_RESERVED0   2 /* not implemeted */

◆ G_RESERVED1

#define G_RESERVED1   5 /* not implemeted */

◆ G_RESERVED2

#define G_RESERVED2   7 /* not implemeted */

◆ G_RESERVED3

#define G_RESERVED3   8 /* not implemeted */

◆ G_RM_AA_DEC_LINE

#define G_RM_AA_DEC_LINE   RM_AA_DEC_LINE(1)

◆ G_RM_AA_DEC_LINE2

#define G_RM_AA_DEC_LINE2   RM_AA_DEC_LINE(2)

◆ G_RM_AA_OPA_SURF

#define G_RM_AA_OPA_SURF   RM_AA_OPA_SURF(1)

◆ G_RM_AA_OPA_SURF2

#define G_RM_AA_OPA_SURF2   RM_AA_OPA_SURF(2)

◆ G_RM_AA_OPA_TERR

#define G_RM_AA_OPA_TERR   RM_AA_OPA_TERR(1)

◆ G_RM_AA_OPA_TERR2

#define G_RM_AA_OPA_TERR2   RM_AA_OPA_TERR(2)

◆ G_RM_AA_PCL_SURF

#define G_RM_AA_PCL_SURF   RM_AA_PCL_SURF(1)

◆ G_RM_AA_PCL_SURF2

#define G_RM_AA_PCL_SURF2   RM_AA_PCL_SURF(2)

◆ G_RM_AA_SUB_SURF

#define G_RM_AA_SUB_SURF   RM_AA_SUB_SURF(1)

◆ G_RM_AA_SUB_SURF2

#define G_RM_AA_SUB_SURF2   RM_AA_SUB_SURF(2)

◆ G_RM_AA_SUB_TERR

#define G_RM_AA_SUB_TERR   RM_AA_SUB_TERR(1)

◆ G_RM_AA_SUB_TERR2

#define G_RM_AA_SUB_TERR2   RM_AA_SUB_TERR(2)

◆ G_RM_AA_TEX_EDGE

#define G_RM_AA_TEX_EDGE   RM_AA_TEX_EDGE(1)

◆ G_RM_AA_TEX_EDGE2

#define G_RM_AA_TEX_EDGE2   RM_AA_TEX_EDGE(2)

◆ G_RM_AA_TEX_TERR

#define G_RM_AA_TEX_TERR   RM_AA_TEX_TERR(1)

◆ G_RM_AA_TEX_TERR2

#define G_RM_AA_TEX_TERR2   RM_AA_TEX_TERR(2)

◆ G_RM_AA_XLU_LINE

#define G_RM_AA_XLU_LINE   RM_AA_XLU_LINE(1)

◆ G_RM_AA_XLU_LINE2

#define G_RM_AA_XLU_LINE2   RM_AA_XLU_LINE(2)

◆ G_RM_AA_XLU_SURF

#define G_RM_AA_XLU_SURF   RM_AA_XLU_SURF(1)

◆ G_RM_AA_XLU_SURF2

#define G_RM_AA_XLU_SURF2   RM_AA_XLU_SURF(2)

◆ G_RM_AA_ZB_DEC_LINE

#define G_RM_AA_ZB_DEC_LINE   RM_AA_ZB_DEC_LINE(1)

◆ G_RM_AA_ZB_DEC_LINE2

#define G_RM_AA_ZB_DEC_LINE2   RM_AA_ZB_DEC_LINE(2)

◆ G_RM_AA_ZB_OPA_DECAL

#define G_RM_AA_ZB_OPA_DECAL   RM_AA_ZB_OPA_DECAL(1)

◆ G_RM_AA_ZB_OPA_DECAL2

#define G_RM_AA_ZB_OPA_DECAL2   RM_AA_ZB_OPA_DECAL(2)

◆ G_RM_AA_ZB_OPA_INTER

#define G_RM_AA_ZB_OPA_INTER   RM_AA_ZB_OPA_INTER(1)

◆ G_RM_AA_ZB_OPA_INTER2

#define G_RM_AA_ZB_OPA_INTER2   RM_AA_ZB_OPA_INTER(2)

◆ G_RM_AA_ZB_OPA_SURF

#define G_RM_AA_ZB_OPA_SURF   RM_AA_ZB_OPA_SURF(1)

◆ G_RM_AA_ZB_OPA_SURF2

#define G_RM_AA_ZB_OPA_SURF2   RM_AA_ZB_OPA_SURF(2)

◆ G_RM_AA_ZB_OPA_TERR

#define G_RM_AA_ZB_OPA_TERR   RM_AA_ZB_OPA_TERR(1)

◆ G_RM_AA_ZB_OPA_TERR2

#define G_RM_AA_ZB_OPA_TERR2   RM_AA_ZB_OPA_TERR(2)

◆ G_RM_AA_ZB_PCL_SURF

#define G_RM_AA_ZB_PCL_SURF   RM_AA_ZB_PCL_SURF(1)

◆ G_RM_AA_ZB_PCL_SURF2

#define G_RM_AA_ZB_PCL_SURF2   RM_AA_ZB_PCL_SURF(2)

◆ G_RM_AA_ZB_SUB_SURF

#define G_RM_AA_ZB_SUB_SURF   RM_AA_ZB_SUB_SURF(1)

◆ G_RM_AA_ZB_SUB_SURF2

#define G_RM_AA_ZB_SUB_SURF2   RM_AA_ZB_SUB_SURF(2)

◆ G_RM_AA_ZB_SUB_TERR

#define G_RM_AA_ZB_SUB_TERR   RM_AA_ZB_SUB_TERR(1)

◆ G_RM_AA_ZB_SUB_TERR2

#define G_RM_AA_ZB_SUB_TERR2   RM_AA_ZB_SUB_TERR(2)

◆ G_RM_AA_ZB_TEX_EDGE

#define G_RM_AA_ZB_TEX_EDGE   RM_AA_ZB_TEX_EDGE(1)

◆ G_RM_AA_ZB_TEX_EDGE2

#define G_RM_AA_ZB_TEX_EDGE2   RM_AA_ZB_TEX_EDGE(2)

◆ G_RM_AA_ZB_TEX_INTER

#define G_RM_AA_ZB_TEX_INTER   RM_AA_ZB_TEX_INTER(1)

◆ G_RM_AA_ZB_TEX_INTER2

#define G_RM_AA_ZB_TEX_INTER2   RM_AA_ZB_TEX_INTER(2)

◆ G_RM_AA_ZB_TEX_TERR

#define G_RM_AA_ZB_TEX_TERR   RM_AA_ZB_TEX_TERR(1)

◆ G_RM_AA_ZB_TEX_TERR2

#define G_RM_AA_ZB_TEX_TERR2   RM_AA_ZB_TEX_TERR(2)

◆ G_RM_AA_ZB_XLU_DECAL

#define G_RM_AA_ZB_XLU_DECAL   RM_AA_ZB_XLU_DECAL(1)

◆ G_RM_AA_ZB_XLU_DECAL2

#define G_RM_AA_ZB_XLU_DECAL2   RM_AA_ZB_XLU_DECAL(2)

◆ G_RM_AA_ZB_XLU_INTER

#define G_RM_AA_ZB_XLU_INTER   RM_AA_ZB_XLU_INTER(1)

◆ G_RM_AA_ZB_XLU_INTER2

#define G_RM_AA_ZB_XLU_INTER2   RM_AA_ZB_XLU_INTER(2)

◆ G_RM_AA_ZB_XLU_LINE

#define G_RM_AA_ZB_XLU_LINE   RM_AA_ZB_XLU_LINE(1)

◆ G_RM_AA_ZB_XLU_LINE2

#define G_RM_AA_ZB_XLU_LINE2   RM_AA_ZB_XLU_LINE(2)

◆ G_RM_AA_ZB_XLU_SURF

#define G_RM_AA_ZB_XLU_SURF   RM_AA_ZB_XLU_SURF(1)

◆ G_RM_AA_ZB_XLU_SURF2

#define G_RM_AA_ZB_XLU_SURF2   RM_AA_ZB_XLU_SURF(2)

◆ G_RM_ADD

#define G_RM_ADD   RM_ADD(1)

◆ G_RM_ADD2

#define G_RM_ADD2   RM_ADD(2)

◆ G_RM_CLD_SURF

#define G_RM_CLD_SURF   RM_CLD_SURF(1)

◆ G_RM_CLD_SURF2

#define G_RM_CLD_SURF2   RM_CLD_SURF(2)

◆ G_RM_CUSTOM_AA_ZB_XLU_SURF

#define G_RM_CUSTOM_AA_ZB_XLU_SURF   RM_CUSTOM_AA_ZB_XLU_SURF(1)

◆ G_RM_CUSTOM_AA_ZB_XLU_SURF2

#define G_RM_CUSTOM_AA_ZB_XLU_SURF2   RM_CUSTOM_AA_ZB_XLU_SURF(2)

◆ G_RM_FOG_PRIM_A

#define G_RM_FOG_PRIM_A   GBL_c1(G_BL_CLR_FOG, G_BL_A_FOG, G_BL_CLR_IN, G_BL_1MA)

◆ G_RM_FOG_SHADE_A

#define G_RM_FOG_SHADE_A   GBL_c1(G_BL_CLR_FOG, G_BL_A_SHADE, G_BL_CLR_IN, G_BL_1MA)

◆ G_RM_NOOP

#define G_RM_NOOP   RM_NOOP(1)

◆ G_RM_NOOP2

#define G_RM_NOOP2   RM_NOOP(2)

◆ G_RM_OPA_CI

#define G_RM_OPA_CI   RM_OPA_CI(1)

◆ G_RM_OPA_CI2

#define G_RM_OPA_CI2   RM_OPA_CI(2)

◆ G_RM_OPA_SURF

#define G_RM_OPA_SURF   RM_OPA_SURF(1)

◆ G_RM_OPA_SURF2

#define G_RM_OPA_SURF2   RM_OPA_SURF(2)

◆ G_RM_PASS

#define G_RM_PASS   GBL_c1(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)

◆ G_RM_PCL_SURF

#define G_RM_PCL_SURF   RM_PCL_SURF(1)

◆ G_RM_PCL_SURF2

#define G_RM_PCL_SURF2   RM_PCL_SURF(2)

◆ G_RM_RA_OPA_SURF

#define G_RM_RA_OPA_SURF   RM_RA_OPA_SURF(1)

◆ G_RM_RA_OPA_SURF2

#define G_RM_RA_OPA_SURF2   RM_RA_OPA_SURF(2)

◆ G_RM_RA_ZB_OPA_DECAL

#define G_RM_RA_ZB_OPA_DECAL   RM_RA_ZB_OPA_DECAL(1)

◆ G_RM_RA_ZB_OPA_DECAL2

#define G_RM_RA_ZB_OPA_DECAL2   RM_RA_ZB_OPA_DECAL(2)

◆ G_RM_RA_ZB_OPA_INTER

#define G_RM_RA_ZB_OPA_INTER   RM_RA_ZB_OPA_INTER(1)

◆ G_RM_RA_ZB_OPA_INTER2

#define G_RM_RA_ZB_OPA_INTER2   RM_RA_ZB_OPA_INTER(2)

◆ G_RM_RA_ZB_OPA_SURF

#define G_RM_RA_ZB_OPA_SURF   RM_RA_ZB_OPA_SURF(1)

◆ G_RM_RA_ZB_OPA_SURF2

#define G_RM_RA_ZB_OPA_SURF2   RM_RA_ZB_OPA_SURF(2)

◆ G_RM_TEX_EDGE

#define G_RM_TEX_EDGE   RM_TEX_EDGE(1)

◆ G_RM_TEX_EDGE2

#define G_RM_TEX_EDGE2   RM_TEX_EDGE(2)

◆ G_RM_VISCVG

#define G_RM_VISCVG   RM_VISCVG(1)

◆ G_RM_VISCVG2

#define G_RM_VISCVG2   RM_VISCVG(2)

◆ G_RM_XLU_SURF

#define G_RM_XLU_SURF   RM_XLU_SURF(1)

◆ G_RM_XLU_SURF2

#define G_RM_XLU_SURF2   RM_XLU_SURF(2)

◆ G_RM_ZB_CLD_SURF

#define G_RM_ZB_CLD_SURF   RM_ZB_CLD_SURF(1)

◆ G_RM_ZB_CLD_SURF2

#define G_RM_ZB_CLD_SURF2   RM_ZB_CLD_SURF(2)

◆ G_RM_ZB_OPA_DECAL

#define G_RM_ZB_OPA_DECAL   RM_ZB_OPA_DECAL(1)

◆ G_RM_ZB_OPA_DECAL2

#define G_RM_ZB_OPA_DECAL2   RM_ZB_OPA_DECAL(2)

◆ G_RM_ZB_OPA_SURF

#define G_RM_ZB_OPA_SURF   RM_ZB_OPA_SURF(1)

◆ G_RM_ZB_OPA_SURF2

#define G_RM_ZB_OPA_SURF2   RM_ZB_OPA_SURF(2)

◆ G_RM_ZB_OVL_SURF

#define G_RM_ZB_OVL_SURF   RM_ZB_OVL_SURF(1)

◆ G_RM_ZB_OVL_SURF2

#define G_RM_ZB_OVL_SURF2   RM_ZB_OVL_SURF(2)

◆ G_RM_ZB_PCL_SURF

#define G_RM_ZB_PCL_SURF   RM_ZB_PCL_SURF(1)

◆ G_RM_ZB_PCL_SURF2

#define G_RM_ZB_PCL_SURF2   RM_ZB_PCL_SURF(2)

◆ G_RM_ZB_XLU_DECAL

#define G_RM_ZB_XLU_DECAL   RM_ZB_XLU_DECAL(1)

◆ G_RM_ZB_XLU_DECAL2

#define G_RM_ZB_XLU_DECAL2   RM_ZB_XLU_DECAL(2)

◆ G_RM_ZB_XLU_SURF

#define G_RM_ZB_XLU_SURF   RM_ZB_XLU_SURF(1)

◆ G_RM_ZB_XLU_SURF2

#define G_RM_ZB_XLU_SURF2   RM_ZB_XLU_SURF(2)

◆ G_ROTATE_FRAC

#define G_ROTATE_FRAC   16

◆ G_SC_EVEN_INTERLACE

#define G_SC_EVEN_INTERLACE   2

◆ G_SC_NON_INTERLACE

#define G_SC_NON_INTERLACE   0

◆ G_SC_ODD_INTERLACE

#define G_SC_ODD_INTERLACE   3

◆ G_SCALE_FRAC

#define G_SCALE_FRAC   8

◆ G_SETBLENDCOLOR

#define G_SETBLENDCOLOR   0xf9 /* -7 */

◆ G_SETCIMG

#define G_SETCIMG   0xff /* -1 */

◆ G_SETCOMBINE

#define G_SETCOMBINE   0xfc /* -4 */

◆ G_SETCONVERT

#define G_SETCONVERT   0xec /* -20 */

◆ G_SETENVCOLOR

#define G_SETENVCOLOR   0xfb /* -5 */

◆ G_SETFILLCOLOR

#define G_SETFILLCOLOR   0xf7 /* -9 */

◆ G_SETFOGCOLOR

#define G_SETFOGCOLOR   0xf8 /* -8 */

◆ G_SETGEOMETRYMODE

#define G_SETGEOMETRYMODE   (G_IMMFIRST - 8)

◆ G_SETKEYGB

#define G_SETKEYGB   0xea /* -22 */

◆ G_SETKEYR

#define G_SETKEYR   0xeb /* -21 */

◆ G_SETOTHERMODE_H

#define G_SETOTHERMODE_H   (G_IMMFIRST - 5)

◆ G_SETOTHERMODE_L

#define G_SETOTHERMODE_L   (G_IMMFIRST - 6)

◆ G_SETPRIMCOLOR

#define G_SETPRIMCOLOR   0xfa /* -6 */

◆ G_SETPRIMDEPTH

#define G_SETPRIMDEPTH   0xee /* -18 */

◆ G_SETSCISSOR

#define G_SETSCISSOR   0xed /* -19 */

◆ G_SETTILE

#define G_SETTILE   0xf5 /* -11 */

◆ G_SETTILESIZE

#define G_SETTILESIZE   0xf2 /* -14 */

◆ G_SETTIMG

#define G_SETTIMG   0xfd /* -3 */

◆ G_SETZIMG

#define G_SETZIMG   0xfe /* -2 */

◆ G_SHADE

#define G_SHADE   0x00000004 /* enable Gouraud interp */

◆ G_SHADING_SMOOTH

#define G_SHADING_SMOOTH   0x00000200 /* flat or smooth shaded */

◆ G_SPNOOP

#define G_SPNOOP   0 /* handle 0 gracefully */

◆ G_SPRITE2D_BASE

#define G_SPRITE2D_BASE   9 /* sprite command */

◆ G_SPRITE2D_DRAW

#define G_SPRITE2D_DRAW   (G_IMMFIRST - 2)

◆ G_SPRITE2D_SCALEFLIP

#define G_SPRITE2D_SCALEFLIP   (G_IMMFIRST - 1)

◆ G_TC_CONV

#define G_TC_CONV   (0 << G_MDSFT_TEXTCONV)

◆ G_TC_FILT

#define G_TC_FILT   (6 << G_MDSFT_TEXTCONV)

◆ G_TC_FILTCONV

#define G_TC_FILTCONV   (5 << G_MDSFT_TEXTCONV)

◆ G_TD_CLAMP

#define G_TD_CLAMP   (0 << G_MDSFT_TEXTDETAIL)

◆ G_TD_DETAIL

#define G_TD_DETAIL   (2 << G_MDSFT_TEXTDETAIL)

◆ G_TD_SHARPEN

#define G_TD_SHARPEN   (1 << G_MDSFT_TEXTDETAIL)

◆ G_TEXRECT

#define G_TEXRECT   0xe4 /* -28 */

◆ G_TEXRECTFLIP

#define G_TEXRECTFLIP   0xe5 /* -27 */

◆ G_TEXTURE

#define G_TEXTURE   (G_IMMFIRST - 4)

◆ G_TEXTURE_ENABLE

#define G_TEXTURE_ENABLE   0x00000002 /* Microcode use only */

◆ G_TEXTURE_GEN

#define G_TEXTURE_GEN   0x00040000

◆ G_TEXTURE_GEN_LINEAR

#define G_TEXTURE_GEN_LINEAR   0x00080000

◆ G_TEXTURE_IMAGE_FRAC

#define G_TEXTURE_IMAGE_FRAC   2

◆ G_TEXTURE_SCALE_FRAC

#define G_TEXTURE_SCALE_FRAC   16

◆ G_TF_AVERAGE

#define G_TF_AVERAGE   (3 << G_MDSFT_TEXTFILT)

◆ G_TF_BILERP

#define G_TF_BILERP   (2 << G_MDSFT_TEXTFILT)

◆ G_TF_POINT

#define G_TF_POINT   (0 << G_MDSFT_TEXTFILT)

◆ G_TL_LOD

#define G_TL_LOD   (1 << G_MDSFT_TEXTLOD)

◆ G_TL_TILE

#define G_TL_TILE   (0 << G_MDSFT_TEXTLOD)

◆ G_TP_NONE

#define G_TP_NONE   (0 << G_MDSFT_TEXTPERSP)

◆ G_TP_PERSP

#define G_TP_PERSP   (1 << G_MDSFT_TEXTPERSP)

◆ G_TRI1

#define G_TRI1   (G_IMMFIRST - 0)

◆ G_TRI_FILL

#define G_TRI_FILL   0xc8 /* fill triangle: 11001000 */

◆ G_TRI_FILL_ZBUFF

#define G_TRI_FILL_ZBUFF   0xc9 /* fill, zbuff triangle: 11001001 */

◆ G_TRI_SHADE

#define G_TRI_SHADE   0xcc /* shade triangle: 11001100 */

◆ G_TRI_SHADE_TXTR

#define G_TRI_SHADE_TXTR   0xce /* shade, texture triangle: 11001110 */

◆ G_TRI_SHADE_TXTR_ZBUFF

#define G_TRI_SHADE_TXTR_ZBUFF   0xcf /* shade, txtr, zbuff trngl: 11001111 */

◆ G_TRI_SHADE_ZBUFF

#define G_TRI_SHADE_ZBUFF   0xcd /* shade, zbuff triangle: 11001101 */

◆ G_TRI_TXTR

#define G_TRI_TXTR   0xca /* texture triangle: 11001010 */

◆ G_TRI_TXTR_ZBUFF

#define G_TRI_TXTR_ZBUFF   0xcb /* texture, zbuff triangle: 11001011 */

◆ G_TT_IA16

#define G_TT_IA16   (3 << G_MDSFT_TEXTLUT)

◆ G_TT_NONE

#define G_TT_NONE   (0 << G_MDSFT_TEXTLUT)

◆ G_TT_RGBA16

#define G_TT_RGBA16   (2 << G_MDSFT_TEXTLUT)

◆ G_VTX

#define G_VTX   4

◆ G_ZBUFFER

#define G_ZBUFFER   0x00000001

◆ G_ZS_PIXEL

#define G_ZS_PIXEL   (0 << G_MDSFT_ZSRCSEL)

◆ G_ZS_PRIM

#define G_ZS_PRIM   (1 << G_MDSFT_ZSRCSEL)

◆ GBL_c1

#define GBL_c1 ( m1a,
m1b,
m2a,
m2b )   (m1a) << 30 | (m1b) << 26 | (m2a) << 22 | (m2b) << 18

◆ GBL_c2

#define GBL_c2 ( m1a,
m1b,
m2a,
m2b )   (m1a) << 28 | (m1b) << 24 | (m2a) << 20 | (m2b) << 16

◆ GDMACMD

#define GDMACMD ( x)    (x)

◆ GIMMCMD

#define GIMMCMD ( x)    (G_IMMFIRST - (x))

◆ GPACK_RGBA5551

#define GPACK_RGBA5551 ( r,
g,
b,
a )   ((((r) << 8) & 0xf800) | (((g) << 3) & 0x7c0) | (((b) >> 2) & 0x3e) | ((a) & 0x1))

◆ GPACK_ZDZ

#define GPACK_ZDZ ( z,
dz )   ((z) << 2 | (dz))

◆ GRDPCMD

#define GRDPCMD ( x)    (0xff - (x))

◆ IM_RD

#define IM_RD   0x40

◆ RM_AA_DEC_LINE

#define RM_AA_DEC_LINE ( clk)
Value:
#define G_BL_CLR_MEM
Definition gbi.h:700
#define CVG_X_ALPHA
Definition gbi.h:694
#define G_BL_A_IN
Definition gbi.h:705
#define FORCE_BL
Definition gbi.h:696
#define G_BL_1MA
Definition gbi.h:703
#define IM_RD
Definition gbi.h:684
#define ALPHA_CVG_SEL
Definition gbi.h:695
#define CVG_DST_FULL
Definition gbi.h:688
#define AA_EN
Definition gbi.h:681
#define G_BL_CLR_IN
Definition gbi.h:699
#define ZMODE_OPA
Definition gbi.h:690

◆ RM_AA_OPA_SURF

#define RM_AA_OPA_SURF ( clk)
Value:
#define CVG_DST_CLAMP
Definition gbi.h:686
#define G_BL_A_MEM
Definition gbi.h:704

◆ RM_AA_OPA_TERR

#define RM_AA_OPA_TERR ( clk)

◆ RM_AA_PCL_SURF

#define RM_AA_PCL_SURF ( clk)     AA_EN | IM_RD | CVG_DST_CLAMP | ZMODE_OPA | G_AC_DITHER | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)

◆ RM_AA_SUB_SURF

#define RM_AA_SUB_SURF ( clk)

◆ RM_AA_SUB_TERR

#define RM_AA_SUB_TERR ( clk)

◆ RM_AA_TEX_EDGE

#define RM_AA_TEX_EDGE ( clk)
Value:
#define TEX_EDGE
Definition gbi.h:697

◆ RM_AA_TEX_TERR

#define RM_AA_TEX_TERR ( clk)

◆ RM_AA_XLU_LINE

#define RM_AA_XLU_LINE ( clk)

◆ RM_AA_XLU_SURF

#define RM_AA_XLU_SURF ( clk)
Value:
#define CVG_DST_WRAP
Definition gbi.h:687
#define CLR_ON_CVG
Definition gbi.h:685

◆ RM_AA_ZB_DEC_LINE

#define RM_AA_ZB_DEC_LINE ( clk)
Value:
#define ZMODE_DEC
Definition gbi.h:693
#define Z_CMP
Definition gbi.h:682
#define CVG_DST_SAVE
Definition gbi.h:689

◆ RM_AA_ZB_OPA_DECAL

#define RM_AA_ZB_OPA_DECAL ( clk)

◆ RM_AA_ZB_OPA_INTER

#define RM_AA_ZB_OPA_INTER ( clk)
Value:
#define Z_UPD
Definition gbi.h:683
#define ZMODE_INTER
Definition gbi.h:691

◆ RM_AA_ZB_OPA_SURF

#define RM_AA_ZB_OPA_SURF ( clk)

◆ RM_AA_ZB_OPA_TERR

#define RM_AA_ZB_OPA_TERR ( clk)

◆ RM_AA_ZB_PCL_SURF

#define RM_AA_ZB_PCL_SURF ( clk)
Value:
#define G_AC_DITHER
Definition gbi.h:674

◆ RM_AA_ZB_SUB_SURF

#define RM_AA_ZB_SUB_SURF ( clk)

◆ RM_AA_ZB_SUB_TERR

#define RM_AA_ZB_SUB_TERR ( clk)

◆ RM_AA_ZB_TEX_EDGE

#define RM_AA_ZB_TEX_EDGE ( clk)

◆ RM_AA_ZB_TEX_INTER

#define RM_AA_ZB_TEX_INTER ( clk)

◆ RM_AA_ZB_TEX_TERR

#define RM_AA_ZB_TEX_TERR ( clk)

◆ RM_AA_ZB_XLU_DECAL

#define RM_AA_ZB_XLU_DECAL ( clk)

◆ RM_AA_ZB_XLU_INTER

#define RM_AA_ZB_XLU_INTER ( clk)

◆ RM_AA_ZB_XLU_LINE

#define RM_AA_ZB_XLU_LINE ( clk)
Value:
#define ZMODE_XLU
Definition gbi.h:692

◆ RM_AA_ZB_XLU_SURF

#define RM_AA_ZB_XLU_SURF ( clk)

◆ RM_ADD

#define RM_ADD ( clk)     IM_RD | CVG_DST_SAVE | FORCE_BL | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_A_FOG, G_BL_CLR_MEM, G_BL_1)

◆ RM_CLD_SURF

#define RM_CLD_SURF ( clk)     IM_RD | CVG_DST_SAVE | FORCE_BL | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)

◆ RM_CUSTOM_AA_ZB_XLU_SURF

#define RM_CUSTOM_AA_ZB_XLU_SURF ( clk)    RM_AA_ZB_XLU_SURF(clk) | Z_UPD

◆ RM_NOOP

#define RM_NOOP ( clk)    GBL_c##clk(0, 0, 0, 0)

◆ RM_OPA_CI

#define RM_OPA_CI ( clk)    CVG_DST_CLAMP | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)

◆ RM_OPA_SURF

#define RM_OPA_SURF ( clk)    CVG_DST_CLAMP | FORCE_BL | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)

◆ RM_PCL_SURF

#define RM_PCL_SURF ( clk)     CVG_DST_FULL | FORCE_BL | ZMODE_OPA | G_AC_DITHER | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)

◆ RM_RA_OPA_SURF

#define RM_RA_OPA_SURF ( clk)     AA_EN | CVG_DST_CLAMP | ZMODE_OPA | ALPHA_CVG_SEL | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM)

◆ RM_RA_ZB_OPA_DECAL

#define RM_RA_ZB_OPA_DECAL ( clk)

◆ RM_RA_ZB_OPA_INTER

#define RM_RA_ZB_OPA_INTER ( clk)

◆ RM_RA_ZB_OPA_SURF

#define RM_RA_ZB_OPA_SURF ( clk)

◆ RM_TEX_EDGE

#define RM_TEX_EDGE ( clk)
Value:
#define G_BL_0
Definition gbi.h:709
#define G_BL_1
Definition gbi.h:708

◆ RM_VISCVG

#define RM_VISCVG ( clk)    IM_RD | FORCE_BL | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_BL, G_BL_A_MEM)

◆ RM_XLU_SURF

#define RM_XLU_SURF ( clk)     IM_RD | CVG_DST_FULL | FORCE_BL | ZMODE_OPA | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)

◆ RM_ZB_CLD_SURF

#define RM_ZB_CLD_SURF ( clk)     Z_CMP | IM_RD | CVG_DST_SAVE | FORCE_BL | ZMODE_XLU | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)

◆ RM_ZB_OPA_DECAL

#define RM_ZB_OPA_DECAL ( clk)     Z_CMP | CVG_DST_FULL | ALPHA_CVG_SEL | ZMODE_DEC | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM)

◆ RM_ZB_OPA_SURF

#define RM_ZB_OPA_SURF ( clk)

◆ RM_ZB_OVL_SURF

#define RM_ZB_OVL_SURF ( clk)     Z_CMP | IM_RD | CVG_DST_SAVE | FORCE_BL | ZMODE_DEC | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)

◆ RM_ZB_PCL_SURF

#define RM_ZB_PCL_SURF ( clk)     Z_CMP | Z_UPD | CVG_DST_FULL | ZMODE_OPA | G_AC_DITHER | GBL_c##clk(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)

◆ RM_ZB_XLU_DECAL

#define RM_ZB_XLU_DECAL ( clk)     Z_CMP | IM_RD | CVG_DST_FULL | FORCE_BL | ZMODE_DEC | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)

◆ RM_ZB_XLU_SURF

#define RM_ZB_XLU_SURF ( clk)     Z_CMP | IM_RD | CVG_DST_FULL | FORCE_BL | ZMODE_XLU | GBL_c##clk(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)

◆ TEX_EDGE

#define TEX_EDGE   0x0000 /* used to be 0x8000 */

◆ Z_CMP

#define Z_CMP   0x10

◆ Z_UPD

#define Z_UPD   0x20

◆ ZMODE_DEC

#define ZMODE_DEC   0xc00

◆ ZMODE_INTER

#define ZMODE_INTER   0x400

◆ ZMODE_OPA

#define ZMODE_OPA   0

◆ ZMODE_XLU

#define ZMODE_XLU   0x800