PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
gs_gp.h File Reference
#include <tamtypes.h>
+ Include dependency graph for gs_gp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GS_REG_PRIM   0x00
 
#define GS_REG_RGBAQ   0x01
 
#define GS_REG_ST   0x02
 
#define GS_REG_UV   0x03
 
#define GS_REG_XYZF2   0x04
 
#define GS_REG_XYZ2   0x05
 
#define GS_REG_TEX0   0x06
 
#define GS_REG_TEX0_1   0x06
 
#define GS_REG_TEX0_2   0x07
 
#define GS_REG_CLAMP   0x08
 
#define GS_REG_CLAMP_1   0x08
 
#define GS_REG_CLAMP_2   0x09
 
#define GS_REG_FOG   0x0A
 
#define GS_REG_XYZF3   0x0C
 
#define GS_REG_XYZ3   0x0D
 
#define GS_REG_TEX1   0x14
 
#define GS_REG_TEX1_1   0x14
 
#define GS_REG_TEX1_2   0x15
 
#define GS_REG_TEX2   0x16
 
#define GS_REG_TEX2_1   0x16
 
#define GS_REG_TEX2_2   0x17
 
#define GS_REG_XYOFFSET   0x18
 
#define GS_REG_XYOFFSET_1   0x18
 
#define GS_REG_XYOFFSET_2   0x19
 
#define GS_REG_PRMODECONT   0x1A
 
#define GS_REG_PRMODE   0x1B
 
#define GS_REG_TEXCLUT   0x1C
 
#define GS_REG_SCANMSK   0x22
 
#define GS_REG_MIPTBP1   0x34
 
#define GS_REG_MIPTBP1_1   0x34
 
#define GS_REG_MIPTBP1_2   0x35
 
#define GS_REG_MIPTBP2   0x36
 
#define GS_REG_MIPTBP2_1   0x36
 
#define GS_REG_MIPTBP2_2   0x37
 
#define GS_REG_TEXA   0x3B
 
#define GS_REG_FOGCOL   0x3D
 
#define GS_REG_TEXFLUSH   0x3F
 
#define GS_REG_SCISSOR   0x40
 
#define GS_REG_SCISSOR_1   0x40
 
#define GS_REG_SCISSOR_2   0x41
 
#define GS_REG_ALPHA   0x42
 
#define GS_REG_ALPHA_1   0x42
 
#define GS_REG_ALPHA_2   0x43
 
#define GS_REG_DIMX   0x44
 
#define GS_REG_DTHE   0x45
 
#define GS_REG_COLCLAMP   0x46
 
#define GS_REG_TEST   0x47
 
#define GS_REG_TEST_1   0x47
 
#define GS_REG_TEST_2   0x48
 
#define GS_REG_PABE   0x49
 
#define GS_REG_FBA   0x4A
 
#define GS_REG_FBA_1   0x4A
 
#define GS_REG_FBA_2   0x4B
 
#define GS_REG_FRAME   0x4C
 
#define GS_REG_FRAME_1   0x4C
 
#define GS_REG_FRAME_2   0x4D
 
#define GS_REG_ZBUF   0x4E
 
#define GS_REG_ZBUF_1   0x4E
 
#define GS_REG_ZBUF_2   0x4F
 
#define GS_REG_BITBLTBUF   0x50
 
#define GS_REG_TRXPOS   0x51
 
#define GS_REG_TRXREG   0x52
 
#define GS_REG_TRXDIR   0x53
 
#define GS_REG_HWREG   0x54
 
#define GS_REG_SIGNAL   0x60
 
#define GS_REG_FINISH   0x61
 
#define GS_REG_LABEL   0x62
 
#define GS_REG_NOP   0x7F
 
#define GS_PRIM_POINT   0x00
 
#define GS_PRIM_LINE   0x01
 
#define GS_PRIM_LINE_STRIP   0x02
 
#define GS_PRIM_TRIANGLE   0x03
 
#define GS_PRIM_TRIANGLE_STRIP   0x04
 
#define GS_PRIM_TRIANGLE_FAN   0x05
 
#define GS_PRIM_SPRITE   0x06
 
#define GS_DISABLE   0x00
 
#define GS_ENABLE   0x01
 
#define GS_SET_ALPHA(A, B, C, D, ALPHA)
 
#define GS_SET_BITBLTBUF(SBA, SBW, SPSM, DBA, DBW, DPSM)
 
#define GS_SET_CLAMP(WMS, WMT, MINU, MAXU, MINV, MAXV)
 
#define GS_SET_COLCLAMP(CLAMP)   (u64)((CLAMP)&0x00000001)
 
#define GS_SET_DIMX(D00, D01, D02, D03, D10, D11, D12, D13, D20, D21, D22, D23, D30, D31, D32, D33)
 
#define GS_SET_DTHE(ENABLE)   (u64)((ENABLE)&0x00000001)
 
#define GS_SET_FBA(ALPHA)   (u64)((ALPHA)&0x00000001)
 
#define GS_SET_FINISH(A)   (u64)((A)&0xFFFFFFFF)
 
#define GS_SET_FOG(FOG)   (u64)((FOG)&0x000000FF) << 56
 
#define GS_SET_FOGCOL(R, G, B)
 
#define GS_SET_FRAME(FBA, FBW, PSM, FMSK)
 
#define GS_SET_FMSK16(R, G, B, A)
 
#define GS_SET_HWREG(A)   (u64)((A)&0xFFFFFFFFFFFFFFFF)
 
#define GS_SET_LABEL(ID, MSK)    (u64)((ID)&0xFFFFFFFF) << 0 | (u64)((MSK)&0xFFFFFFFF) << 32
 
#define GS_SET_MIPTBP1(TBA1, TBW1, TBA2, TBW2, TBA3, TBW3)
 
#define GS_SET_MIPTBP2(TBA4, TBW4, TBA5, TBW5, TBA6, TBW6)
 
#define GS_SET_NOP(A)   (u64)((A)&0xFFFFFFFF)
 
#define GS_SET_PABE(ENABLE)   (u64)((ENABLE)&0x00000001)
 
#define GS_SET_PRIM(PRIM, IIP, TME, FGE, ABE, AA1, FST, CTXT, FIX)
 
#define GS_SET_PRMODE(IIP, TME, FGE, ABE, AA1, FST, CTXT, FIX)
 
#define GS_SET_PRMODECONT(CTRL)   (u64)((CTRL)&0x00000001)
 
#define GS_SET_RGBAQ(R, G, B, A, Q)
 
#define GS_SET_SCANMSK(MSK)   (u64)((MSK)&0x00000003)
 
#define GS_SET_SCISSOR(X0, X1, Y0, Y1)
 
#define GS_SET_SIGNAL(ID, MSK)    (u64)((ID)&0xFFFFFFFF) << 0 | (u64)((MSK)&0xFFFFFFFF) << 32
 
#define GS_SET_ST(S, T)    (u64)((S)&0xFFFFFFFF) << 0 | (u64)((T)&0xFFFFFFFF) << 32
 
#define GS_SET_TEST(ATEN, ATMETH, ATREF, ATFAIL, DATEN, DATMD, ZTEN, ZTMETH)
 
#define GS_SET_TEX0_SMALL(TBA, TBW, PSM, TW, TH, TCC, TFNCT)
 
#define GS_SET_TEX0(TBA, TBW, PSM, TW, TH, TCC, TFNCT, CBA, CPSM, CSM, CSA, CLD)
 
#define GS_SET_TEX1(LCM, MXL, MMAG, MMIN, MTBA, L, K)
 
#define GS_SET_TEX2(PSM, CBA, CPSM, CSM, CSA, CLD)
 
#define GS_SET_TEXA(A0, AM, A1)
 
#define GS_SET_TEXCLUT(CBW, CU, CV)
 
#define GS_SET_TRXDIR(DIR)   (u64)((DIR)&0x00000003)
 
#define GS_SET_TEXFLUSH(A)   (u64)((A)&0xFFFFFFFF)
 
#define GS_SET_TRXPOS(SX, SY, DX, DY, DIR)
 
#define GS_SET_TRXREG(W, H)    (u64)((W)&0x00000FFF) << 0 | (u64)((H)&0x00000FFF) << 32
 
#define GS_SET_UV(U, V)    (u64)((U)&0x00003FFF) << 0 | (u64)((V)&0x00003FFF) << 16
 
#define GS_SET_XYOFFSET(X, Y)    (u64)((X)&0x0000FFFF) << 0 | (u64)((Y)&0x0000FFFF) << 32
 
#define GS_SET_XYZ(X, Y, Z)
 
#define GS_SET_XYZF(X, Y, Z, F)
 
#define GS_SET_ZBUF(ZBA, ZSM, ZMSK)
 

Detailed Description

GS General Purpose Registers

Definition in file gs_gp.h.

Macro Definition Documentation

◆ GS_REG_PRIM

#define GS_REG_PRIM   0x00

Drawing primitive setting.

Definition at line 13 of file gs_gp.h.

◆ GS_REG_RGBAQ

#define GS_REG_RGBAQ   0x01

Vertex color setting.

Definition at line 15 of file gs_gp.h.

◆ GS_REG_ST

#define GS_REG_ST   0x02

Specification of vertex texture coordinates.

Definition at line 17 of file gs_gp.h.

◆ GS_REG_UV

#define GS_REG_UV   0x03

Specification of vertex texture coordinates.

Definition at line 19 of file gs_gp.h.

◆ GS_REG_XYZF2

#define GS_REG_XYZF2   0x04

Setting for vertex coordinate values.

Definition at line 21 of file gs_gp.h.

◆ GS_REG_XYZ2

#define GS_REG_XYZ2   0x05

Setting for vertex coordinate values.

Definition at line 23 of file gs_gp.h.

◆ GS_REG_TEX0

#define GS_REG_TEX0   0x06

Texture information setting.

Definition at line 25 of file gs_gp.h.

◆ GS_REG_TEX0_1

#define GS_REG_TEX0_1   0x06

Texture information setting. (Context 1)

Definition at line 27 of file gs_gp.h.

◆ GS_REG_TEX0_2

#define GS_REG_TEX0_2   0x07

Texture information setting. (Context 2)

Definition at line 29 of file gs_gp.h.

◆ GS_REG_CLAMP

#define GS_REG_CLAMP   0x08

Texture wrap mode.

Definition at line 31 of file gs_gp.h.

◆ GS_REG_CLAMP_1

#define GS_REG_CLAMP_1   0x08

Texture wrap mode. (Context 1)

Definition at line 33 of file gs_gp.h.

◆ GS_REG_CLAMP_2

#define GS_REG_CLAMP_2   0x09

Texture wrap mode. (Context 2)

Definition at line 35 of file gs_gp.h.

◆ GS_REG_FOG

#define GS_REG_FOG   0x0A

Vertex fog value setting.

Definition at line 37 of file gs_gp.h.

◆ GS_REG_XYZF3

#define GS_REG_XYZF3   0x0C

Setting for vertex coordinate values. (Without Drawing Kick)

Definition at line 39 of file gs_gp.h.

◆ GS_REG_XYZ3

#define GS_REG_XYZ3   0x0D

Setting for vertex coordinate values. (Without Drawing Kick)

Definition at line 41 of file gs_gp.h.

◆ GS_REG_TEX1

#define GS_REG_TEX1   0x14

Texture information setting.

Definition at line 43 of file gs_gp.h.

◆ GS_REG_TEX1_1

#define GS_REG_TEX1_1   0x14

Texture information setting. (Context 1)

Definition at line 45 of file gs_gp.h.

◆ GS_REG_TEX1_2

#define GS_REG_TEX1_2   0x15

Texture information setting. (Context 2)

Definition at line 47 of file gs_gp.h.

◆ GS_REG_TEX2

#define GS_REG_TEX2   0x16

Texture information setting.

Definition at line 49 of file gs_gp.h.

◆ GS_REG_TEX2_1

#define GS_REG_TEX2_1   0x16

Texture information setting. (Context 1)

Definition at line 51 of file gs_gp.h.

◆ GS_REG_TEX2_2

#define GS_REG_TEX2_2   0x17

Texture information setting. (Context 2)

Definition at line 53 of file gs_gp.h.

◆ GS_REG_XYOFFSET

#define GS_REG_XYOFFSET   0x18

Offset value setting.

Definition at line 55 of file gs_gp.h.

◆ GS_REG_XYOFFSET_1

#define GS_REG_XYOFFSET_1   0x18

Offset value setting. (Context 1)

Definition at line 57 of file gs_gp.h.

◆ GS_REG_XYOFFSET_2

#define GS_REG_XYOFFSET_2   0x19

Offset value setting. (Context 2)

Definition at line 59 of file gs_gp.h.

◆ GS_REG_PRMODECONT

#define GS_REG_PRMODECONT   0x1A

Specification of primitive attribute setting method.

Definition at line 61 of file gs_gp.h.

◆ GS_REG_PRMODE

#define GS_REG_PRMODE   0x1B

Setting for attributes of drawing primitives.

Definition at line 63 of file gs_gp.h.

◆ GS_REG_TEXCLUT

#define GS_REG_TEXCLUT   0x1C

Clut position specification.

Definition at line 65 of file gs_gp.h.

◆ GS_REG_SCANMSK

#define GS_REG_SCANMSK   0x22

Raster address mask setting.

Definition at line 67 of file gs_gp.h.

◆ GS_REG_MIPTBP1

#define GS_REG_MIPTBP1   0x34

Mipmap information setting for levels 1 - 3.

Definition at line 69 of file gs_gp.h.

◆ GS_REG_MIPTBP1_1

#define GS_REG_MIPTBP1_1   0x34

Mipmap information setting for levels 1 - 3. (Context 1)

Definition at line 71 of file gs_gp.h.

◆ GS_REG_MIPTBP1_2

#define GS_REG_MIPTBP1_2   0x35

Mipmap information setting for levels 1 - 3. (Context 2)

Definition at line 73 of file gs_gp.h.

◆ GS_REG_MIPTBP2

#define GS_REG_MIPTBP2   0x36

Mipmap information setting for levels 4 - 6.

Definition at line 75 of file gs_gp.h.

◆ GS_REG_MIPTBP2_1

#define GS_REG_MIPTBP2_1   0x36

Mipmap information setting for levels 4 - 6. (Context 1)

Definition at line 77 of file gs_gp.h.

◆ GS_REG_MIPTBP2_2

#define GS_REG_MIPTBP2_2   0x37

Mipmap information setting for levels 4 - 6. (Context 2)

Definition at line 79 of file gs_gp.h.

◆ GS_REG_TEXA

#define GS_REG_TEXA   0x3B

Texture alpha value setting.

Definition at line 81 of file gs_gp.h.

◆ GS_REG_FOGCOL

#define GS_REG_FOGCOL   0x3D

Distant fog color setting.

Definition at line 83 of file gs_gp.h.

◆ GS_REG_TEXFLUSH

#define GS_REG_TEXFLUSH   0x3F

Texture page buffer disabling.

Definition at line 85 of file gs_gp.h.

◆ GS_REG_SCISSOR

#define GS_REG_SCISSOR   0x40

Setting for scissoring area.

Definition at line 87 of file gs_gp.h.

◆ GS_REG_SCISSOR_1

#define GS_REG_SCISSOR_1   0x40

Setting for scissoring area. (Context 1)

Definition at line 89 of file gs_gp.h.

◆ GS_REG_SCISSOR_2

#define GS_REG_SCISSOR_2   0x41

Setting for scissoring area. (Context 2)

Definition at line 91 of file gs_gp.h.

◆ GS_REG_ALPHA

#define GS_REG_ALPHA   0x42

Alpha blending setting.

Definition at line 93 of file gs_gp.h.

◆ GS_REG_ALPHA_1

#define GS_REG_ALPHA_1   0x42

Alpha blending setting. (Context 1)

Definition at line 95 of file gs_gp.h.

◆ GS_REG_ALPHA_2

#define GS_REG_ALPHA_2   0x43

Alpha blending setting. (Context 2)

Definition at line 97 of file gs_gp.h.

◆ GS_REG_DIMX

#define GS_REG_DIMX   0x44

Dither matrix setting.

Definition at line 99 of file gs_gp.h.

◆ GS_REG_DTHE

#define GS_REG_DTHE   0x45

Dither control.

Definition at line 101 of file gs_gp.h.

◆ GS_REG_COLCLAMP

#define GS_REG_COLCLAMP   0x46

Color clamp control.

Definition at line 103 of file gs_gp.h.

◆ GS_REG_TEST

#define GS_REG_TEST   0x47

Pixel test control.

Definition at line 105 of file gs_gp.h.

◆ GS_REG_TEST_1

#define GS_REG_TEST_1   0x47

Pixel test control. (Context 1)

Definition at line 107 of file gs_gp.h.

◆ GS_REG_TEST_2

#define GS_REG_TEST_2   0x48

Pixel test control. (Context 2)

Definition at line 109 of file gs_gp.h.

◆ GS_REG_PABE

#define GS_REG_PABE   0x49

Alpha blending control in units of pixels.

Definition at line 111 of file gs_gp.h.

◆ GS_REG_FBA

#define GS_REG_FBA   0x4A

Alpha correction value.

Definition at line 113 of file gs_gp.h.

◆ GS_REG_FBA_1

#define GS_REG_FBA_1   0x4A

Alpha correction value. (Context 1)

Definition at line 115 of file gs_gp.h.

◆ GS_REG_FBA_2

#define GS_REG_FBA_2   0x4B

Alpha correction value. (Context 2)

Definition at line 117 of file gs_gp.h.

◆ GS_REG_FRAME

#define GS_REG_FRAME   0x4C

Frame buffer setting.

Definition at line 119 of file gs_gp.h.

◆ GS_REG_FRAME_1

#define GS_REG_FRAME_1   0x4C

Frame buffer setting. (Context 1)

Definition at line 121 of file gs_gp.h.

◆ GS_REG_FRAME_2

#define GS_REG_FRAME_2   0x4D

Frame buffer setting. (Context 2)

Definition at line 123 of file gs_gp.h.

◆ GS_REG_ZBUF

#define GS_REG_ZBUF   0x4E

Z-Buffer setting.

Definition at line 125 of file gs_gp.h.

◆ GS_REG_ZBUF_1

#define GS_REG_ZBUF_1   0x4E

Z-Buffer setting. (Context 1)

Definition at line 127 of file gs_gp.h.

◆ GS_REG_ZBUF_2

#define GS_REG_ZBUF_2   0x4F

Z-Buffer setting. (Context 2)

Definition at line 129 of file gs_gp.h.

◆ GS_REG_BITBLTBUF

#define GS_REG_BITBLTBUF   0x50

Setting for transmissions between buffers.

Definition at line 131 of file gs_gp.h.

◆ GS_REG_TRXPOS

#define GS_REG_TRXPOS   0x51

Specification of transmission area in buffers.

Definition at line 133 of file gs_gp.h.

◆ GS_REG_TRXREG

#define GS_REG_TRXREG   0x52

Specification of transmission area in buffers.

Definition at line 135 of file gs_gp.h.

◆ GS_REG_TRXDIR

#define GS_REG_TRXDIR   0x53

Activation of transmission area in buffers.

Definition at line 137 of file gs_gp.h.

◆ GS_REG_HWREG

#define GS_REG_HWREG   0x54

Data port for transmission between buffers.

Definition at line 139 of file gs_gp.h.

◆ GS_REG_SIGNAL

#define GS_REG_SIGNAL   0x60

Signal event occurence request.

Definition at line 141 of file gs_gp.h.

◆ GS_REG_FINISH

#define GS_REG_FINISH   0x61

Finish event occurence request.

Definition at line 143 of file gs_gp.h.

◆ GS_REG_LABEL

#define GS_REG_LABEL   0x62

Label event occurence request.

Definition at line 145 of file gs_gp.h.

◆ GS_REG_NOP

#define GS_REG_NOP   0x7F

GS No Operation

Definition at line 147 of file gs_gp.h.

◆ GS_PRIM_POINT

#define GS_PRIM_POINT   0x00

Point primitive

Definition at line 151 of file gs_gp.h.

◆ GS_PRIM_LINE

#define GS_PRIM_LINE   0x01

Line primitive

Definition at line 153 of file gs_gp.h.

◆ GS_PRIM_LINE_STRIP

#define GS_PRIM_LINE_STRIP   0x02

Line strip primitive

Definition at line 155 of file gs_gp.h.

◆ GS_PRIM_TRIANGLE

#define GS_PRIM_TRIANGLE   0x03

Triangle primitive

Definition at line 157 of file gs_gp.h.

◆ GS_PRIM_TRIANGLE_STRIP

#define GS_PRIM_TRIANGLE_STRIP   0x04

Triangle strip primitive

Definition at line 159 of file gs_gp.h.

◆ GS_PRIM_TRIANGLE_FAN

#define GS_PRIM_TRIANGLE_FAN   0x05

Triangle fan primitive

Definition at line 161 of file gs_gp.h.

◆ GS_PRIM_SPRITE

#define GS_PRIM_SPRITE   0x06

Sprite primitive

Definition at line 163 of file gs_gp.h.

◆ GS_DISABLE

#define GS_DISABLE   0x00

Definition at line 167 of file gs_gp.h.

◆ GS_ENABLE

#define GS_ENABLE   0x01

Definition at line 168 of file gs_gp.h.

◆ GS_SET_ALPHA

#define GS_SET_ALPHA (   A,
  B,
  C,
  D,
  ALPHA 
)
Value:
(u64)((A)&0x00000003) << 0 | (u64)((B)&0x00000003) << 2 | \
(u64)((C)&0x00000003) << 4 | (u64)((D)&0x00000003) << 6 | \
(u64)((ALPHA)&0x000000FF) << 32

Definition at line 170 of file gs_gp.h.

◆ GS_SET_BITBLTBUF

#define GS_SET_BITBLTBUF (   SBA,
  SBW,
  SPSM,
  DBA,
  DBW,
  DPSM 
)
Value:
(u64)((SBA)&0x00003FFF) << 0 | (u64)((SBW)&0x0000003F) << 16 | \
(u64)((SPSM)&0x0000003F) << 24 | (u64)((DBA)&0x00003FFF) << 32 | \
(u64)((DBW)&0x0000003F) << 48 | (u64)((DPSM)&0x0000003F) << 56

Definition at line 175 of file gs_gp.h.

◆ GS_SET_CLAMP

#define GS_SET_CLAMP (   WMS,
  WMT,
  MINU,
  MAXU,
  MINV,
  MAXV 
)
Value:
(u64)((WMS)&0x00000003) << 0 | (u64)((WMT)&0x00000003) << 2 | \
(u64)((MINU)&0x000003FF) << 4 | (u64)((MAXU)&0x000003FF) << 14 | \
(u64)((MINV)&0x000003FF) << 24 | (u64)((MAXV)&0x000003FF) << 34

Definition at line 180 of file gs_gp.h.

◆ GS_SET_COLCLAMP

#define GS_SET_COLCLAMP (   CLAMP)    (u64)((CLAMP)&0x00000001)

Definition at line 185 of file gs_gp.h.

◆ GS_SET_DIMX

#define GS_SET_DIMX (   D00,
  D01,
  D02,
  D03,
  D10,
  D11,
  D12,
  D13,
  D20,
  D21,
  D22,
  D23,
  D30,
  D31,
  D32,
  D33 
)
Value:
(u64)((D00)&0x00000003) << 0 | (u64)((D01)&0x00000003) << 4 | \
(u64)((D02)&0x00000003) << 8 | (u64)((D03)&0x00000003) << 12 | \
(u64)((D10)&0x00000003) << 16 | (u64)((D11)&0x00000003) << 20 | \
(u64)((D12)&0x00000003) << 24 | (u64)((D13)&0x00000003) << 28 | \
(u64)((D20)&0x00000003) << 32 | (u64)((D21)&0x00000003) << 36 | \
(u64)((D22)&0x00000003) << 40 | (u64)((D23)&0x00000003) << 44 | \
(u64)((D30)&0x00000003) << 48 | (u64)((D31)&0x00000003) << 52 | \
(u64)((D32)&0x00000003) << 56 | (u64)((D33)&0x00000003) << 60

Definition at line 187 of file gs_gp.h.

◆ GS_SET_DTHE

#define GS_SET_DTHE (   ENABLE)    (u64)((ENABLE)&0x00000001)

Definition at line 197 of file gs_gp.h.

◆ GS_SET_FBA

#define GS_SET_FBA (   ALPHA)    (u64)((ALPHA)&0x00000001)

Definition at line 199 of file gs_gp.h.

◆ GS_SET_FINISH

#define GS_SET_FINISH (   A)    (u64)((A)&0xFFFFFFFF)

Definition at line 201 of file gs_gp.h.

◆ GS_SET_FOG

#define GS_SET_FOG (   FOG)    (u64)((FOG)&0x000000FF) << 56

Definition at line 203 of file gs_gp.h.

◆ GS_SET_FOGCOL

#define GS_SET_FOGCOL (   R,
  G,
 
)
Value:
(u64)((R)&0x000000FF) << 0 | (u64)((G)&0x000000FF) << 8 | \
(u64)((B)&0x000000FF) << 16

Definition at line 205 of file gs_gp.h.

◆ GS_SET_FRAME

#define GS_SET_FRAME (   FBA,
  FBW,
  PSM,
  FMSK 
)
Value:
(u64)((FBA)&0x000001FF) << 0 | (u64)((FBW)&0x0000003F) << 16 | \
(u64)((PSM)&0x0000003F) << 24 | (u64)((FMSK)&0xFFFFFFFF) << 32

Definition at line 209 of file gs_gp.h.

◆ GS_SET_FMSK16

#define GS_SET_FMSK16 (   R,
  G,
  B,
 
)
Value:
(u32)((R)&0x0000001F) << 3 | (u32)((G)&0x0000001F) << 11 | \
(u32)((G)&0x0000001F) << 19 | (u32)((A)&0x00000001) << 31

Definition at line 214 of file gs_gp.h.

◆ GS_SET_HWREG

#define GS_SET_HWREG (   A)    (u64)((A)&0xFFFFFFFFFFFFFFFF)

Definition at line 218 of file gs_gp.h.

◆ GS_SET_LABEL

#define GS_SET_LABEL (   ID,
  MSK 
)     (u64)((ID)&0xFFFFFFFF) << 0 | (u64)((MSK)&0xFFFFFFFF) << 32

Definition at line 220 of file gs_gp.h.

◆ GS_SET_MIPTBP1

#define GS_SET_MIPTBP1 (   TBA1,
  TBW1,
  TBA2,
  TBW2,
  TBA3,
  TBW3 
)
Value:
(u64)((TBA1)&0x00003FFF) << 0 | (u64)((TBW1)&0x0000003F) << 14 | \
(u64)((TBA2)&0x00003FFF) << 20 | (u64)((TBW2)&0x0000003F) << 34 | \
(u64)((TBA3)&0x00003FFF) << 40 | (u64)((TBW3)&0x0000003F) << 54

Definition at line 223 of file gs_gp.h.

◆ GS_SET_MIPTBP2

#define GS_SET_MIPTBP2 (   TBA4,
  TBW4,
  TBA5,
  TBW5,
  TBA6,
  TBW6 
)
Value:
(u64)((TBA4)&0x00003FFF) << 0 | (u64)((TBW4)&0x0000003F) << 14 | \
(u64)((TBA5)&0x00003FFF) << 20 | (u64)((TBW5)&0x0000003F) << 34 | \
(u64)((TBA6)&0x00003FFF) << 40 | (u64)((TBW6)&0x0000003F) << 54

Definition at line 228 of file gs_gp.h.

◆ GS_SET_NOP

#define GS_SET_NOP (   A)    (u64)((A)&0xFFFFFFFF)

Definition at line 233 of file gs_gp.h.

◆ GS_SET_PABE

#define GS_SET_PABE (   ENABLE)    (u64)((ENABLE)&0x00000001)

Definition at line 235 of file gs_gp.h.

◆ GS_SET_PRIM

#define GS_SET_PRIM (   PRIM,
  IIP,
  TME,
  FGE,
  ABE,
  AA1,
  FST,
  CTXT,
  FIX 
)
Value:
(u64)((PRIM)&0x00000007) << 0 | (u64)((IIP)&0x00000001) << 3 | \
(u64)((TME)&0x00000001) << 4 | (u64)((FGE)&0x00000001) << 5 | \
(u64)((ABE)&0x00000001) << 6 | (u64)((AA1)&0x00000001) << 7 | \
(u64)((FST)&0x00000001) << 8 | (u64)((CTXT)&0x00000001) << 9 | \
(u64)((FIX)&0x00000001) << 10

Definition at line 237 of file gs_gp.h.

◆ GS_SET_PRMODE

#define GS_SET_PRMODE (   IIP,
  TME,
  FGE,
  ABE,
  AA1,
  FST,
  CTXT,
  FIX 
)
Value:
(u64)((IIP)&0x00000001) << 3 | (u64)((TME)&0x00000001) << 4 | \
(u64)((FGE)&0x00000001) << 5 | (u64)((ABE)&0x00000001) << 6 | \
(u64)((AA1)&0x00000001) << 7 | (u64)((FST)&0x00000001) << 8 | \
(u64)((CTXT)&0x00000001) << 9 | (u64)((FIX)&0x00000001) << 10

Definition at line 244 of file gs_gp.h.

◆ GS_SET_PRMODECONT

#define GS_SET_PRMODECONT (   CTRL)    (u64)((CTRL)&0x00000001)

Definition at line 250 of file gs_gp.h.

◆ GS_SET_RGBAQ

#define GS_SET_RGBAQ (   R,
  G,
  B,
  A,
 
)
Value:
(u64)((R)&0x000000FF) << 0 | (u64)((G)&0x000000FF) << 8 | \
(u64)((B)&0x000000FF) << 16 | (u64)((A)&0x000000FF) << 24 | \
(u64)((Q)&0xFFFFFFFF) << 32

Definition at line 252 of file gs_gp.h.

◆ GS_SET_SCANMSK

#define GS_SET_SCANMSK (   MSK)    (u64)((MSK)&0x00000003)

Definition at line 257 of file gs_gp.h.

◆ GS_SET_SCISSOR

#define GS_SET_SCISSOR (   X0,
  X1,
  Y0,
  Y1 
)
Value:
(u64)((X0)&0x000007FF) << 0 | (u64)((X1)&0x000007FF) << 16 | \
(u64)((Y0)&0x000007FF) << 32 | (u64)((Y1)&0x000007FF) << 48

Definition at line 259 of file gs_gp.h.

◆ GS_SET_SIGNAL

#define GS_SET_SIGNAL (   ID,
  MSK 
)     (u64)((ID)&0xFFFFFFFF) << 0 | (u64)((MSK)&0xFFFFFFFF) << 32

Definition at line 263 of file gs_gp.h.

◆ GS_SET_ST

#define GS_SET_ST (   S,
 
)     (u64)((S)&0xFFFFFFFF) << 0 | (u64)((T)&0xFFFFFFFF) << 32

Definition at line 266 of file gs_gp.h.

◆ GS_SET_TEST

#define GS_SET_TEST (   ATEN,
  ATMETH,
  ATREF,
  ATFAIL,
  DATEN,
  DATMD,
  ZTEN,
  ZTMETH 
)
Value:
(u64)((ATEN)&0x00000001) << 0 | (u64)((ATMETH)&0x00000007) << 1 | \
(u64)((ATREF)&0x000000FF) << 4 | (u64)((ATFAIL)&0x00000003) << 12 | \
(u64)((DATEN)&0x00000001) << 14 | (u64)((DATMD)&0x00000001) << 15 | \
(u64)((ZTEN)&0x00000001) << 16 | (u64)((ZTMETH)&0x00000003) << 17

Definition at line 269 of file gs_gp.h.

◆ GS_SET_TEX0_SMALL

#define GS_SET_TEX0_SMALL (   TBA,
  TBW,
  PSM,
  TW,
  TH,
  TCC,
  TFNCT 
)
Value:
(u64)((TBA)&0x00003FFF) << 0 | (u64)((TBW)&0x0000003F) << 14 | \
(u64)((PSM)&0x0000003F) << 20 | (u64)((TW)&0x0000000F) << 26 | \
(u64)((TH)&0x0000000F) << 30 | (u64)((TCC)&0x00000001) << 34 | \
(u64)((TFNCT)&0x00000003) << 35

Definition at line 275 of file gs_gp.h.

◆ GS_SET_TEX0

#define GS_SET_TEX0 (   TBA,
  TBW,
  PSM,
  TW,
  TH,
  TCC,
  TFNCT,
  CBA,
  CPSM,
  CSM,
  CSA,
  CLD 
)
Value:
(u64)((TBA)&0x00003FFF) << 0 | (u64)((TBW)&0x0000003F) << 14 | \
(u64)((PSM)&0x0000003F) << 20 | (u64)((TW)&0x0000000F) << 26 | \
(u64)((TH)&0x0000000F) << 30 | (u64)((TCC)&0x00000001) << 34 | \
(u64)((TFNCT)&0x00000003) << 35 | (u64)((CBA)&0x00003FFF) << 37 | \
(u64)((CPSM)&0x0000000F) << 51 | (u64)((CSM)&0x00000001) << 55 | \
(u64)((CSA)&0x0000001F) << 56 | (u64)((CLD)&0x00000007) << 61

Definition at line 281 of file gs_gp.h.

◆ GS_SET_TEX1

#define GS_SET_TEX1 (   LCM,
  MXL,
  MMAG,
  MMIN,
  MTBA,
  L,
 
)
Value:
(u64)((LCM)&0x00000001) << 0 | (u64)((MXL)&0x00000007) << 2 | \
(u64)((MMAG)&0x00000001) << 5 | (u64)((MMIN)&0x00000007) << 6 | \
(u64)((MTBA)&0x00000001) << 9 | (u64)((L)&0x00000003) << 19 | \
(u64)((K)&0x00000FFF) << 32

Definition at line 289 of file gs_gp.h.

◆ GS_SET_TEX2

#define GS_SET_TEX2 (   PSM,
  CBA,
  CPSM,
  CSM,
  CSA,
  CLD 
)
Value:
(u64)((PSM)&0x0000003F) << 20 | (u64)((CBA)&0x00003FFF) << 37 | \
(u64)((CPSM)&0x0000000F) << 51 | (u64)((CSM)&0x00000001) << 55 | \
(u64)((CSA)&0x0000001F) << 56 | (u64)((CLD)&0x00000007) << 61

Definition at line 295 of file gs_gp.h.

◆ GS_SET_TEXA

#define GS_SET_TEXA (   A0,
  AM,
  A1 
)
Value:
(u64)((A0)&0x000000FF) << 0 | (u64)((AM)&0x00000001) << 15 | \
(u64)((A1)&0x000000FF) << 32

Definition at line 300 of file gs_gp.h.

◆ GS_SET_TEXCLUT

#define GS_SET_TEXCLUT (   CBW,
  CU,
  CV 
)
Value:
(u64)((CBW)&0x0000003F) << 0 | (u64)((CU)&0x0000003F) << 6 | \
(u64)((CV)&0x00000FFF) << 12

Definition at line 304 of file gs_gp.h.

◆ GS_SET_TRXDIR

#define GS_SET_TRXDIR (   DIR)    (u64)((DIR)&0x00000003)

Definition at line 308 of file gs_gp.h.

◆ GS_SET_TEXFLUSH

#define GS_SET_TEXFLUSH (   A)    (u64)((A)&0xFFFFFFFF)

Definition at line 310 of file gs_gp.h.

◆ GS_SET_TRXPOS

#define GS_SET_TRXPOS (   SX,
  SY,
  DX,
  DY,
  DIR 
)
Value:
(u64)((SX)&0x000007FF) << 0 | (u64)((SY)&0x000007FF) << 16 | \
(u64)((DX)&0x000007FF) << 32 | (u64)((DY)&0x000007FF) << 48 | \
(u64)((DIR)&0x00000003) << 59

Definition at line 312 of file gs_gp.h.

◆ GS_SET_TRXREG

#define GS_SET_TRXREG (   W,
 
)     (u64)((W)&0x00000FFF) << 0 | (u64)((H)&0x00000FFF) << 32

Definition at line 317 of file gs_gp.h.

◆ GS_SET_UV

#define GS_SET_UV (   U,
 
)     (u64)((U)&0x00003FFF) << 0 | (u64)((V)&0x00003FFF) << 16

Definition at line 320 of file gs_gp.h.

◆ GS_SET_XYOFFSET

#define GS_SET_XYOFFSET (   X,
 
)     (u64)((X)&0x0000FFFF) << 0 | (u64)((Y)&0x0000FFFF) << 32

Definition at line 323 of file gs_gp.h.

◆ GS_SET_XYZ

#define GS_SET_XYZ (   X,
  Y,
 
)
Value:
(u64)((X)&0x0000FFFF) << 0 | (u64)((Y)&0x0000FFFF) << 16 | \
(u64)((Z)&0xFFFFFFFF) << 32

Definition at line 326 of file gs_gp.h.

◆ GS_SET_XYZF

#define GS_SET_XYZF (   X,
  Y,
  Z,
 
)
Value:
(u64)((X)&0x0000FFFF) << 0 | (u64)((Y)&0x0000FFFF) << 16 | \
(u64)((Z)&0x00FFFFFF) << 32 | (u64)((F)&0x000000FF) << 56

Definition at line 330 of file gs_gp.h.

◆ GS_SET_ZBUF

#define GS_SET_ZBUF (   ZBA,
  ZSM,
  ZMSK 
)
Value:
(u64)((ZBA)&0x000001FF) << 0 | (u64)((ZSM)&0x0000000F) << 24 | \
(u64)((ZMSK)&0x00000001) << 32

Definition at line 334 of file gs_gp.h.