yet another PlayStationPortable Documentation

11  3D Graphics Processing


images/ge_block.jpg
index

11.1  GE Command Format


Each command word is divided into two parts, a 8-bit command and a 24-bit argument. The command is in the upper part of the word, and the argument in the lower. The argument can be either integer of a special kind of float that the GE supports (described below).
index

11.2  GE Floats


Floats processed in the command-stream are 24 bits instead of 32 that are used by the CPU. Conversion from 32 to 24 bits is done by shifting the value down 8 bits, losing the least significant bits of the mantissa.
index

11.3  Pointers


Some pointers use a shared register when loading addresses called BASE. This register must be written BEFORE you write to the designated register. All these registers are marked with (BASE) after the summary. Other pointers only use 28 bits of information, and their top bits are referred to as the '4 most significant bits' in pointer, which reflects bits 24-27, not 28-31 which could perhaps be believed from common terminology.
index

11.4  Enabling Registers


Any command or bit that has 'Enable' in the name implies that setting the first bit (or the bit itself) enables the feature, and no ON/OFF-states are documented.
index

11.5  GE Command List



num name description
0x00 NOP No Operation
0x01 VADDR Vertex List (BASE)
0x02 IADDR Index List (BASE)
0x03    
0x04 PRIM Primitive Kick
0x05 BEZIER Bezier Patch Kick
0x06 SPLINE Spline Surface Kick
0x07 BBOX Bounding Box
0x08 JUMP Jump To New Address (BASE)
0x09 BJUMP Conditional Jump (BASE)
0x0A CALL Call Address (BASE)
0x0B RET Return From Call
0x0C END Stop Execution
0x0D    
0x0E SIGNAL Raise Signal Interrupt
0x0F FINISH Complete Rendering
0x10 BASE Base Address Register
0x11    
0x12 VTYPE Vertex Type
0x13 ??? Offset Address (BASE)
0x14 ??? Origin Address (BASE)
0x15 REGION1 Draw Region Start
0x16 REGION2 Draw Region End
0x17 LTE Lighting Enable
0x18 LTE0 Light 0 Enable
0x19 LTE1 Light 1 Enable
0x1A LTE2 Light 2 Enable
0x1B LTE3 Light 3 Enable
0x1C CPE Clip Plane Enable
0x1D BCE Backface Culling Enable
0x1E TME Texture Mapping Enable
0x1F FGE Fog Enable
0x20 DTE Dither Enable
0x21 ABE Alpha Blend Enable
0x22 ATE Alpha Test Enable
0x23 ZTE Depth Test Enable
0x24 STE Stencil Test Enable
0x25 AAE Anitaliasing Enable
0x26 PCE Patch Cull Enable
0x27 CTE Color Test Enable
0x28 LOE Logical Operation Enable
0x29    
0x2A BOFS Bone Matrix Offset
0x2B BONE Bone Matrix Upload
0x2C MW0 Morph Weight 0
0x2D MW1 Morph Weight 1
0x2E MW2 Morph Weight 2
0x2F MW3 Morph Weight 3
0x30 MW4 Morph Weight 4
0x31 MW5 Morph Weight 5
0x32 MW6 Morph Weight 6
0x33 MW7 Morph Weight 7
0x34    
0x35    
0x36 PSUB Patch Subdivision
0x37 PPRIM Patch Primitive
0x38 PFACE Patch Front Face
0x39    
0x3A WMS World Matrix Select
0x3B WORLD World Matrix Upload
0x3C VMS View Matrix Select
0x3D VIEW View Matrix upload
0x3E PMS Projection matrix Select
0x3F PROJ Projection Matrix upload
0x40 TMS Texture Matrix Select
0x41 TMATRIX Texture Matrix Upload
0x42 XSCALE Viewport Width Scale
0x43 YSCALE Viewport Height Scale
0x44 ZSCALE Depth Scale
0x45 XPOS Viewport X Position
0x46 YPOS Viewport Y Position
0x47 ZPOS Depth Position
0x48 USCALE Texture Scale U
0x49 VSCALE Texture Scale V
0x4A UOFFSET Texture Offset U
0x4B VOFFSET Texture Offset V
0x4C OFFSETX Viewport offset (X)
0x4D OFFSETY Viewport offset (Y)
0x4E    
0x4F    
0x50 SHADE Shade Model
0x51 RNORM Reverse Face Normals Enable
0x52    
0x53 CMAT Color Material
0x54 EMC Emissive Model Color
0x55 AMC Ambient Model Color
0x56 DMC Diffuse Model Color
0x57 SMC Specular Model Color
0x58 AMA Ambient Model Alpha
0x59    
0x5A    
0x5B SPOW Specular Power
0x5C ALC Ambient Light Color
0x5D ALA Ambient Light Alpha
0x5E LMODE Light Model
0x5F LT0 Light Type 0
0x60 LT1 Light Type 1
0x61 LT2 Light Type 2
0x62 LT3 Light Type 3
0x63 LXP0 Light X Position 0
0x64 LYP0 Light Y Position 0
0x65 LZP0 Light Z Position 0
0x66 LXP1 Light X Position 1
0x67 LYP1 Light Y Position 1
0x68 LZP1 Light Z Position 1
0x69 LXP2 Light X Position 2
0x6A LYP2 Light Y Position 2
0x6B LZP2 Light Z Position 2
0x6C LXP3 Light X Position 3
0x6D LYP3 Light Y Position 3
0x6E LZP3 Light Z Position 3
0x6F LXD0 Light X Direction 0
0x70 LYD0 Light Y Direction 0
0x71 LZD0 Light Z Direction 0
0x72 LXD1 Light X Direction 1
0x73 LYD1 Light Y Direction 1
0x74 LZD1 Light Z Direction 1
0x75 LXD2 Light X Direction 2
0x76 LYD2 Light Y Direction 2
0x77 LZD2 Light Z Direction 2
0x78 LXD3 Light X Direction 3
0x79 LYD3 Light Y Direction 3
0x7A LZD3 Light Z Direction 3
0x7B LCA0 Light Constant Attenuation 0
0x7C LLA0 Light Linear Attenuation 0
0x7D LQA0 Light Quadratic Attenuation 0
0x7E LCA1 Light Constant Attenuation 1
0x7F LLA1 Light Linear Attenuation 1
0x80 LQA1 Light Quadratic Attenuation 1
0x81 LCA2 Light Constant Attenuation 2
0x82 LLA2 Light Linear Attenuation 2
0x83 LQA2 Light Quadratic Attenuation 2
0x84 LCA3 Light Constant Attenuation 3
0x85 LLA3 Light Linear Attenuation 3
0x86 LQA3 Light Quadratic Attenuation 3
0x87 ??? Spot light 0 exponent
0x88 ??? Spot light 1 exponent
0x89 ??? Spot light 2 exponent
0x8A ??? Spot light 3 exponent
0x8B ??? Spot light 0 cutoff
0x8C ??? Spot light 1 cutoff
0x8D ??? Spot light 2 cutoff
0x8E ??? Spot light 3 cutoff
0x8F ALC0 Ambient Light Color 0
0x90 DLC0 Diffuse Light Color 0
0x91 SLC0 Specular Light Color 0
0x92 ALC1 Ambient Light Color 1
0x93 DLC1 Diffuse Light Color 1
0x94 SLC1 Specular Light Color 1
0x95 ALC2 Ambient Light Color 2
0x96 DLC2 Diffuse Light Color 2
0x97 SLC2 Specular Light Color 2
0x98 ALC3 Ambient Light Color 3
0x99 DLC3 Diffuse Light Color 3
0x9A SLC3 Specular Light Color 3
0x9B FFACE Front Face Culling Order
0x9C FBP Frame Buffer Pointer
0x9D FBW Frame Buffer Width
0x9E ZBP Depth Buffer Pointer
0x9F ZBW Depth Buffer Width
0xA0 TBP0 Texture Buffer Pointer 0
0xA1 TBP1 Texture Buffer Pointer 1
0xA2 TBP2 Texture Buffer Pointer 2
0xA3 TBP3 Texture Buffer Pointer 3
0xA4 TBP4 Texture Buffer Pointer 4
0xA5 TBP5 Texture Buffer Pointer 5
0xA6 TBP6 Texture Buffer Pointer 6
0xA7 TBP7 Texture Buffer Pointer 7
0xA8 TBW0 Texture Buffer Width 0
0xA9 TBW1 Texture Buffer Width 1
0xAA TBW2 Texture Buffer Width 2
0xAB TBW3 Texture Buffer Width 3
0xAC TBW4 Texture Buffer Width 4
0xAD TBW5 Texture Buffer Width 5
0xAE TBW6 Texture Buffer Width 6
0xAF TBW7 Texture Buffer Width 7
0xB0 CBP CLUT Buffer Pointer
0xB1 CBPH CLUT Buffer Pointer H
0xB2 TRXSBP Transmission Source Buffer Pointer
0xB3 TRXSBW Transmission Source Buffer Width
0xB4 TRXDBP Transmission Destination Buffer Pointer
0xB5 TRXDBW Transmission Destination Buffer Width
0xB6    
0xB7    
0xB8 TSIZE0 Texture Size Level 0
0xB9 TSIZE1 Texture Size Level 1
0xBA TSIZE2 Texture Size Level 2
0xBB TSIZE3 Texture Size Level 3
0xBC TSIZE4 Texture Size Level 4
0xBD TSIZE5 Texture Size Level 5
0xBE TSIZE6 Texture Size Level 6
0xBF TSIZE7 Texture Size Level 7
0xC0 TMAP Texture Projection Map Mode + Texture Map Mode
0xC1   Texture Environment Map Matrix
0xC2 TMODE Texture Mode
0xC3 TPSM Texture Pixel Storage Mode
0xC4 CLOAD CLUT Load
0xC5 CMODE CLUT Mode
0xC6 TFLT Texture Filter
0xC7 TWRAP Texture Wrapping
0xC8 TBIAS Texture Level Bias (???)
0xC9 TFUNC Texture Function
0xCA TEC Texture Environment Color
0xCB TFLUSH Texture Flush
0xCC TSYNC Texture Sync
0xCD FFAR Fog Far (???)
0xCE FDIST Fog Range
0xCF FCOL Fog Color
0xD0 TSLOPE Texture Slope
0xD1    
0xD2 PSM Frame Buffer Pixel Storage Mode
0xD3 CLEAR Clear Flags
0xD4 SCISSOR1 Scissor Region Start
0xD5 SCISSOR2 Scissor Region End
0xD6 NEARZ Near Depth Range
0xD7 FARZ Far Depth Range
0xD8 CTST Color Test Function
0xD9 CREF Color Reference
0xDA CMSK Color Mask
0xDB ATST Alpha Test
0xDC STST Stencil Test
0xDD SOP Stencil Operations
0xDE ZTST Depth Test Function
0xDF ALPHA Alpha Blend
0xE0 SFIX Source Fix Color
0xE1 DFIX Destination Fix Color
0xE2 DTH0 Dither Matrix Row 0
0xE3 DTH1 Dither Matrix Row 1
0xE4 DTH2 Dither Matrix Row 2
0xE5 DTH3 Dither Matrix Row 3
0xE6 LOP Logical Operation
0xE7 ZMSK Depth Mask
0xE8 PMSKC Pixel Mask Color
0xE9 PMSKA Pixel Mask Alpha
0xEA TRXKICK Transmission Kick
0xEB TRXSPOS Transfer Source Position
0xEC TRXDPOS Transfer Destination Position
0xED    
0xEE TRXSIZE Transfer Size
0xEF    
0xF0    
0xF1    
0xF2    
0xF3    
0xF4    
0xF5    
0xF6    
0xF7    
0xF8    
0xF9    
0xFA    
0xFB    
0xFC    
0xFD    
0xFE    
0xFF    
index

11.5.1  VADDR


0x01 4 w VADDR - Vertex List (BASE)
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer

index

11.5.2  IADDR


0x02 4 w IADDR - Index List (BASE)
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer

index

11.5.3  PRIM


0x04 4 w PRIM - Primitive Kick
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-18   Primitive type
   
000 Points
001 Lines
010 Line Strips
011 Triangles
100 Triangle Strips
101 Triangle Fans
110 Sprites (2D Rectangles)
0-15   Number of vertices to kick (0-65535)

index

11.5.4  BEZIER


0x05 4 w BEZIER - Bezier Patch Kick
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   V Count
0-7   U Count

index

11.5.5  SPLINE


0x06 4 w SPLINE - Spline Surface Kick
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
18-19   V Edges
   
00 Close/Close
01 Open/Close
10 Close/Open
11 Open/Open
16-17   U Edges
   
00 Close/Close
01 Open/Close
10 Close/Open
11 Open/Open
8-15   V Count
0-7   U Count

index

11.5.6  BBOX


0x07 4 w BBOX - Bounding Box
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-15   Number of vertices to test for conditional rendering (0-65535)

index

11.5.7  JUMP


0x08 4 w JUMP - Jump To New Address (BASE)
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer

index

11.5.8  BJUMP


0x09 4 w BJUMP - Conditional Jump (BASE)
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer

index

11.5.9  CALL


0x0A 4 w CALL - Call Address (BASE)
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer

index

11.5.10  RET


0x0B 4 w RET - Return From Call
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description

index

11.5.11  END


0x0C 4 w END - Stop Execution
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description

index

11.5.12  SIGNAL


0x0E 4 w SIGNAL - Raise Signal Interrupt
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Signal index to trigger
0-15   Argument to pass to signal handler

index

11.5.13  FINISH


0x0F 4 w FINISH - Complete Rendering
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description

index

11.5.14  BASE


0x10 4 w BASE Base Address Register
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits for address (28 bits total)

index

11.5.15  VTYPE


0x12 4 w VTYPE - Vertex Type
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
23   Bypass Transform Pipeline
   
0 Transformed Coordinates
1 Raw Coordinates
18-20   Number of vertices (Morphing)
    000-111: 1-8 vertices
14-16   Number of weights (Skinning)
    000-111: 1-8 weights
11-12   Index Format
   
00 Not using indices
01 8-bit
10 16-bit
11  
9-10   Weight Format
   
00 Not present in vertex
01 8-bit fixed
10 16-bit fixed
11 32-bit floats
7-8   Position Format (3 values XYZ)
   
00 Not present in vertex
01 8-bit fixed
10 16-bit fixed
11 32-bit floats
5-6   Normal Format (3 values XYZ)
   
00 Not present in vertex
01 8-bit fixed
10 16-bit fixed
11 32-bit floats
2-4   Color Format (1 value)
   
000 Not present in vertex
001  
010  
011  
100 16-bit BGR-5650
101 16-bit ABGR-5551
110 16-bit ABGR-4444
111 32-bit ABGR-8888
0-1   Texture Format (2 values ST/UV)
   
00 Not present in vertex
01 8-bit fixed
10 16-bit fixed
11 32-bit floats

index

11.5.16  REGION1


0x15 4 w REGION1 - Draw Region Start
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
10-19   Y Start
0-9   X Start

index

11.5.17  REGION2


0x16 4 w REGION2 - Draw Region End
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
10-19   Y End (y + height)-1
0-9   X End (x + width)-1

index

11.5.18  BOFS


0x2a 4 w BOFS - Bone Matrix Offset
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Bone Matrix Offset (*)

*) Offset is in values, so each matrix is offset by 3*4 values
index

11.5.19  BONE


0x2b 4 w BONE - Bone Matrix Upload
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Matrix Value (GE Float)

Write 3x4 times to upload full bone matrix
index

11.5.20  MW0


0x2c 4 w MW0 - Morph Weight 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Morph Value (GE float)

index

11.5.21  MW1


0x2d 4 w MW1 - Morph Weight 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Morph Value (GE float)

index

11.5.22  MW2


0x2e 4 w MW2 - Morph Weight 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Morph Value (GE float)

index

11.5.23  MW3


0x2f 4 w MW3 - Morph Weight 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Morph Value (GE float)

index

11.5.24  MW4


0x30 4 w MW4 - Morph Weight 4
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Morph Value (GE float)

index

11.5.25  MW5


0x31 4 w MW5 - Morph Weight 5
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Morph Value (GE float)

index

11.5.26  MW6


0x32 4 w MW6 - Morph Weight 6
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Morph Value (GE float)

index

11.5.27  MW7


0x33 4 w MW7 - Morph Weight 7
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Morph Value (GE float)

index

11.5.28  PSUB


0x36 4 w PSUB - Patch Subdivision
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   T Subdivision
0-7   S Subdivision

index

11.5.29  PPRIM


0x37 4 w PPRIM - Patch Primitive
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-1    
   
00 Triangles
01 Lines
10 Points
11  

index

11.5.30  PFACE


0x38 4 w PFACE - Patch Front Face
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0    
   
0 Clockwise
1 Counter-Clockwise

index

11.5.31  WORLD


0x3b 4 w WORLD - World Matrix Upload
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Matrix Value (GE Float)

Write 3*4 values for complete matrix
index

11.5.32  VIEW


0x3d 4 w VIEW - View Matrix upload
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Matrix Value (GE Float)

Write 3*4 values for complete matrix
index

11.5.33  PROJ


0x3f 4 w PROJ - Projection Matrix upload
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Matrix Value (GE Float)

Write 4*4 values for complete matrix
index

11.5.34  TMA


0x41 4 w TMATRIX - Texture Matrix Upload
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Matrix Value (GE Float)

Write 3*4 values for complete matrix
index

11.5.35  XSCALE


0x42 4 w XSCALE - Viewport Width Scale
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Scale Value (GE Float)

index

11.5.36  YSCALE


0x43 4 w YSCALE - Viewport Height Scale
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Scale Value (GE Float)

index

11.5.37  ZSCALE


0x44 4 w ZSCALE - Depth Scale
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Scale Value (GE Float)

index

11.5.38  XPOS


0x45 4 w XPOS - Viewport X Position
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Offset Value (GE Float)

index

11.5.39  YPOS


0x46 4 w YPOS - Viewport Y Position
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Offset Value (GE Float)

index

11.5.40  ZPOS


0x47 4 w ZPOS - Depth Position
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Offset Value (GE Float)

index

11.5.41  USCALE


0x48 4 w USCALE - Texture Scale U
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Scale Value (GE Float)

index

11.5.42  VSCALE


0x49 4 w VSCALE - Texture Scale V
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Scale Value (GE Float)

index

11.5.43  UOFFSET


0x4a 4 w UOFFSET - Texture Offset U
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Offset Value (GE Float)

index

11.5.44  VOFFSET


0x4b 4 w VOFFSET - Texture Offset V
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Offset Value (GE Float)

index

11.5.45  OFFSETX


0x4c 4 w OFFSETX - Viewport offset (X)
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   X Offset (12.4 fixed)

index

11.5.46  OFFSETY


0x4d 4 w OFFSETY - Viewport offset (Y)
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Y Offset (12.4 fixed)

index

11.5.47  SHADE


0x50 4 w SHADE - Shade Model
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0   Shading type
   
0 Flat
1 Smooth

index

11.5.48  CMAT


0x53 4 w CMAT - Color Material
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-2   Material flags (OR together)
   
000  
001 Ambient
010 Diffuse
011  
100 Specular
101  
110  
111  

index

11.5.49  EMC


0x54 4 w EMC - Emissive Model Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.50  AMC


0x55 4 w AMC - Ambient Model Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.51  DMC


0x56 4 w DMC - Diffuse Model Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.52  SMC


0x57 4 w SMC - Specular Model Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.53  AMA


0x58 4 w AMA - Ambient Model Alpha
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-7   Alpha Component

index

11.5.54  SPOW


0x5b 4 w SPOW - Specular Power
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Power (GE Float)

index

11.5.55  ALC


0x5c 4 w ALC - Ambient Light Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.56  ALA


0x5d 4 w ALA - Ambient Light Alpha
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-7   Alpha Component

index

11.5.57  LMODE


0x5e 4 w LMODE - Light Model
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0   Lighting model
   
0 Single color
1 Separate specular color

index

11.5.58  LT0


0x5f 4 w LT0 Light Type 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-9   Light Type
   
00 Directional Light
01 Point Light
10 Spot Light
11  
0-1   Light Components
   
00 Ambient & Diffuse
01 Diffuse & Specular
10 Unknown (diffuse color, affected by specular power)
11  

index

11.5.59  LT1


0x60 4 w LT1 Light Type 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-9   Light Type
   
00 Directional Light
01 Point Light
10 Spot Light
11  
0-1   Light Components
   
00 Ambient & Diffuse
01 Diffuse & Specular
10 Unknown (diffuse color, affected by specular power)
11  

index

11.5.60  LT2


0x61 4 w LT2 Light Type 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-9   Light Type
   
00 Directional Light
01 Point Light
10 Spot Light
11  
0-1   Light Components
   
00 Ambient & Diffuse
01 Diffuse & Specular
10 Unknown (diffuse color, affected by specular power)
11  

index

11.5.61  LT3


0x62 4 w LT3 Light Type 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-9   Light Type
   
00 Directional Light
01 Point Light
10 Spot Light
11  
0-1   Light Components
   
00 Ambient & Diffuse
01 Diffuse & Specular
10 Unknown (diffuse color, affected by specular power)
11  

index

11.5.62  LXP0


0x63 4 w LXP0 - Light X Position 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.63  LYP0


0x64 4 w LYP0 - Light Y Position 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.64  LZP0


0x65 4 w LZP0 - Light Z Position 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.65  LXP1


0x66 4 w LXP1 - Light X Position 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.66  LYP1


0x67 4 w LYP1 - Light Y Position 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.67  LZP1


0x68 4 w LZP1 - Light Z Position 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.68  LXP2


0x69 4 w LXP2 - Light X Position 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.69  LYP2


0x6a 4 w LYP2 - Light Y Position 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.70  LZP2


0x6b 4 w LZP2 - Light Z Position 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.71  LXP3


0x6c 4 w LXP3 - Light X Position 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.72  LYP3


0x6d 4 w LYP3 - Light Y Position 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.73  LZP3


0x6e 4 w LZP3 - Light Z Position 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.74  LXD0


0x6f 4 w LXD0 - Light X Direction 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.75  LYD0


0x70 4 w LYD0 - Light Y Direction 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.76  LZD0


0x71 4 w LZD0 - Light Z Direction 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.77  LXD1


0x72 4 w LXD1 - Light X Direction 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.78  LYD1


0x73 4 w LYD1 - Light Y Direction 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.79  LZD1


0x74 4 w LZD1 - Light Z Direction 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.80  LXD2


0x75 4 w LXD2 Light X Direction 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.81  LYD2


0x76 4 w LYD2 - Light Y Direction 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.82  LZD2


0x77 4 w LZD2 - Light Z Direction 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.83  LXD3


0x78 4 w LXD3 - Light X Direction 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.84  LYD3


0x79 4 w LYD3 - Light Y Direction 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.85  LZD3


0x7a 4 w LZD3 - Light Z Direction 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Vector Component (GE Float)

index

11.5.86  LCA0


0x7b 4 w LCA0 - Light Constant Attenuation 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.87  LLA0


0x7c 4 w LLA0 - Light Linear Attenuation 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.88  LQA0


0x7d 4 w LQA0 - Light Quadratic Attenuation 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.89  LCA1


0x7e 4 w LCA1 - Light Constant Attenuation 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.90  LLA1


0x7f 4 w LLA1 - Light Linear Attenuation 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.91  LQA1


0x80 4 w LQA1 - Light Quadratic Attenuation 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.92  LCA2


0x81 4 w LCA2 - Light Constant Attenuation 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.93  LLA2


0x82 4 w LLA2 - Light Linear Attenuation 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.94  LQA2


0x83 4 w LQA2 - Light Quadratic Attenuation 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.95  LCA3


0x84 4 w LCA3 - Light Constant Attenuation 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.96  LLA3


0x85 4 w LLA3 - Light Linear Attenuation 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.97  LQA3


0x86 4 w LQA3 - Light Quadratic Attenuation 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Attenuation Factor (GE Float)

index

11.5.98  ???


0x87 4 w ??? Spot light 0 exponent
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Spotlight exponent

index

11.5.99  ???


0x88 4 w ??? Spot light 1 exponent
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Spotlight exponent

index

11.5.100  ???


0x89 4 w ??? Spot light 2 exponent
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Spotlight exponent

index

11.5.101  ???


0x8a 4 w ??? Spot light 3 exponent
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Spotlight exponent

index

11.5.102  ???


0x8b 4 w ??? Spot light 0 cutoff
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Spotlight cutoff angle (cosine of angle)

index

11.5.103  ???


0x8c 4 w ??? Spot light 1 cutoff
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Spotlight cutoff angle (cosine of angle)

index

11.5.104  ???


0x8d 4 w ??? Spot light 2 cutoff
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Spotlight cutoff angle (cosine of angle)

index

11.5.105  ???


0x8e 4 w ??? Spot light 3 cutoff
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Spotlight cutoff angle (cosine of angle)

index

11.5.106  ALC0


0x8f 4 w ALC0 - Ambient Light Color 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.107  DLC0


0x90 4 w DLC0 - Diffuse Light Color 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.108  SLC0


0x91 4 w SLC0 - Specular Light Color 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.109  ALC1


0x92 4 w ALC1 - Ambient Light Color 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.110  DLC1


0x93 4 w DLC1 - Diffuse Light Color 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.111  SLC1


0x94 4 w SLC1 - Specular Light Color 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.112  ALC2


0x95 4 w ALC2 - Ambient Light Color 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.113  DLC2


0x96 4 w DLC2 - Diffuse Light Color 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.114  SLC2


0x97 4 w SLC2 - Specular Light Color 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.115  ALC3


0x98 4 w ALC3 - Ambient Light Color 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.116  DLC3


0x99 4 w DLC3 - Diffuse Light Color 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.117  SLC3


0x9a 4 w SLC3 - Specular Light Color 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.118  FFACE


0x9b 4 w FFACE - Front Face Culling Order
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0   Culling Order
   
0 Clockwise primitives are visible
1 Counter-clockwise primitives are visible

index

11.5.119  FBP


0x9c 4 w FBP - Frame Buffer Pointer
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see FBW)

index

11.5.120  FBW


0x9d 4 w FBW - Frame Buffer Width
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   8 most significant bits of pointer (see FBP)
0-15   Buffer width in pixels

index

11.5.121  ZBP


0x9e 4 w ZBP - Depth Buffer Pointer
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see ZBW)

index

11.5.122  ZBW


0x9f 4 w ZBW - Depth Buffer Width
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   8 most significant bits of pointer (see ZBP)
0-15   Buffer width in pixels

index

11.5.123  TBP0


0xa0 4 w TBP0 - Texture Buffer Pointer 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TBW0)

index

11.5.124  TBP1


0xa1 4 w TBP1 - Texture Buffer Pointer 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TBW1)

index

11.5.125  TBP2


0xa2 4 w TBP2 - Texture Buffer Pointer 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TBW2)

index

11.5.126  TBP3


0xa3 4 w TBP3 - Texture Buffer Pointer 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TBW3)

index

11.5.127  TBP4


0xa4 4 w TBP4 - Texture Buffer Pointer 4
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TBW4)

index

11.5.128  TBP5


0xa5 4 w TBP5 - Texture Buffer Pointer 5
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TBW5)

index

11.5.129  TBP6


0xa6 4 w TBP6 - Texture Buffer Pointer 6
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TBW6)

index

11.5.130  TBP7


0xa7 4 w TBP7 - Texture Buffer Pointer 7
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TBW7)

index

11.5.131  TBW0


0xa8 4 w TBW0 - Texture Buffer Width 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits of pointer (see TBP0)
0-15   Buffer width in pixels

index

11.5.132  TBW1


0xa9 4 w TBW1 - Texture Buffer Width 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits of pointer (see TBP1)
0-15   Buffer width in pixels

index

11.5.133  TBW2


0xaa 4 w TBW2 - Texture Buffer Width 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits of pointer (see TBP2)
0-15   Buffer width in pixels

index

11.5.134  TBW3


0xab 4 w TBW3 - Texture Buffer Width 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits of pointer (see TBP3)
0-15   Buffer width in pixels

index

11.5.135  TBW4


0xac 4 w TBW4 - Texture Buffer Width 4
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits of pointer (see TBP4)
0-15   Buffer width in pixels

index

11.5.136  TBW5


0xad 4 w TBW5 - Texture Buffer Width 5
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits of pointer (see TBP5)
0-15   Buffer width in pixels

index

11.5.137  TBW6


0xae 4 w TBW6 - Texture Buffer Width 6
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits of pointer (see TBP6)
0-15   Buffer width in pixels

index

11.5.138  TBW7


0xaf 4 w TBW7 - Texture Buffer Width 7
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits of pointer (see TBP7)
0-15   Buffer width in pixels

index

11.5.139  CBP


0xb0 4 w CBP - CLUT Buffer Pointer
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see CBPH)

index

11.5.140  CBPH


0xb1 4 w CBPH - CLUT Buffer Pointer H
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   4 most significant bits of pointer (see CBP)

index

11.5.141  TRXSBP


0xb2 4 w TRXSBP - Transmission Source Buffer Pointer
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TRXSBW)

index

11.5.142  TRXSBW


0xb3 4 w TRXSBW - Transmission Source Buffer Width
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   8 most significant bits of pointer (see TRXSBP)
0-15   Source Buffer Width

index

11.5.143  TRXDBP


0xb4 4 w TRXDBP - Transmission Destination Buffer Pointer
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   24 least significant bits of pointer (see TRXDBW)

index

11.5.144  TRXDBW


0xb5 4 w TRXDBW - Transmission Destination Buffer Width
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   8 most significant bits of pointer (see TRXDBP)
0-15   Destination Buffer Width

index

11.5.145  TSIZE0


0xb8 4 w TSIZE0 - Texture Size Level 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   Height = 2^TH
0-7   Width = 2^TW

index

11.5.146  TSIZE1


0xb9 4 w TSIZE1 - Texture Size Level1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   Height = 2^TH
0-7   Width = 2^TW

index

11.5.147  TSIZE2


0xba 4 w TSIZE2 - Texture Size Level 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   Height = 2^TH
0-7   Width = 2^TW

index

11.5.148  TSIZE3


0xbb 4 w TSIZE3 - Texture Size Level 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   Height = 2^TH
0-7   Width = 2^TW

index

11.5.149  TSIZE4


0xbc 4 w TSIZE4 - Texture Size Level 4
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   Height = 2^TH
0-7   Width = 2^TW

index

11.5.150  TSIZE5


0xbd 4 w TSIZE5 - Texture Size Level 5
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   Height = 2^TH
0-7   Width = 2^TW

index

11.5.151  TSIZE6


0xbe 4 w TSIZE6 - Texture Size Level 6
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   Height = 2^TH
0-7   Width = 2^TW

index

11.5.152  TSIZE7


0xbf 4 w TSIZE7 - Texture Size Level 7
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-15   Height = 2^TH
0-7   Width = 2^TW

index

11.5.153  TMAP


0xc0 4 w TMAP - Texture Projection Map Mode + Texture Map Mode
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-9   Texture Projection Map Mode
   
00 Position
01 Texture Coordinates
10 Normalized Normal
11 Normal
0-1   Texture Map Mode
   
00 Texture Coordinates (UV)
01 Texture Matrix
10 Environment Map
11  

index

11.5.154  ???


0xc1 4 w ??? Texture Environment Map Matrix
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-9   2nd column for matrix
0-1   1st Column for matrix

index

11.5.155  TMODE


0xc2 4 w TMODE - Texture Mode
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-20   Maximum mipmap level
8-15   ???
0   Swizzle Enable

index

11.5.156  TPSM


0xc3 4 w TPSM - Texture Pixel Storage Mode
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Pixel Storage Mode
   
0 16-bit BGR 5650
1 16-bit ABGR 5551
2 16-bit ABGR 4444
3 32-bit ABGR 8888
4 4-bit indexed
5 8-bit indexed
6 16-bit indexed
7 32-bit indexed
8 DXT1
9 DXT3
10 DXT5

index

11.5.157  CLOAD


0xc4 4 w CLOAD - CLUT Load
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Number of colors divided by 8

index

11.5.158  CMODE


0xc5 4 w CMODE - CLUT Mode
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   ???
8-15   mask
2-7   ???
0-1   CLUT Pixel Format
   
00 16-bit BGR 5650
01 16-bit ABGR 5551
10 16-bit ABGR 4444
11 32-bit ABGR 8888

index

11.5.159  TFLT


0xc6 4 w TFLT - Texture Filter
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-10   Magnifying filter
   
000 Nearest
001 Linear
010  
011  
100 Nearest; Mipmap Nearest
101 Linear; Mipmap Nearest
110 Nearest; Mipmap Linear
111 Linear; Mipmap Linear
0-2   Minifying filter

index

11.5.160  TWRAP


0xc7 4 w TWRAP - Texture Wrapping
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8   V Wrap Mode
   
0 Repeat
1 Clamp
0   U Wrap Mode

index

11.5.161  TBIAS


0xc8 4 w TBIAS - Texture Level Bias (???)
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Mipmap bias (signed)
0-15   ???

index

11.5.162  TFUNC


0xc9 4 w TFUNC - Texture Function
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16   Fragment Double Enable
   
0 Fragment color is untouched
1 Fragment color is doubled
8   Texture Color Component
   
0 Texture alpha is ignored
1 Texture alpha is read
0-2:   Texture Effect
   
000 Modulate
001 Decal
010 Blend
011 Replace
100 Add
101  
110  
111  

index

11.5.163  TEC


0xca 4 w TEC -.Texture Environment Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.164  TFLUSH


0xcb 4 w TFLUSH - Texture Flush
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description

Invalidate texture cache on texture change
index

11.5.165  TSYNC


0xcc 4 w TSYNC - Texture Sync
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description

Sync with texture transfer (see TRXKICK)
index

11.5.166  FDIST


0xce 4 w FDIST - Fog Range
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Range (GE Float)

index

11.5.167  FCOL


0xcf 4 w FCOL - Fog Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.168  TSLOPE


0xd0 4 w TSLOPE - Texture Slope
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Slope (GE Float)

index

11.5.169  PSM


0xd2 4 w PSM - Frame Buffer Pixel Storage Mode
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-1   Pixel Storage Mode
   
00 16-bit BGR 5650
01 16-bit ABGR 5551
10 16-bit ABGR 4444
11 32-bit ABGR 8888

index

11.5.170  CLEAR


0xd3 4 w CLEAR - Clear Flags
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-11   Clear flags (OR together)
   
000  
001 Clear Color Buffer
010 Clear Stencil/Alpha Buffer
011  
100 Clear Depth Buffer
101  
110  
111  
0   Clear enable

index

11.5.171  SCISSOR1


0xd4 4 w SCISSOR1 - Scissor Region Start
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
10-19   Y Start
0-9   X Start

index

11.5.172  SCISSOR2


0xd5 4 w SCISSOR2 - Scissor Region End
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
10-19   Y End
0-9   X End

index

11.5.173  NEARZ


0xd6 4 w NEARZ - Near Depth Range
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-15   Depth Value

index

11.5.174  FARZ


0xd7 4 w FARZ - Far Depth Range
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-15   Depth Value

index

11.5.175  CTST


0xd8 4 w CTST - Color Test Function
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-1   Color Function
   
00 Never pass pixel
01 Always pass pixel
10 Pass pixel if color matches
11 Pass pixel if color differs

index

11.5.176  CREF


0xd9 4 w CREF - Color Reference
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Color Reference Value

index

11.5.177  CMSK


0xda 4 w CMSK - Color Mask
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-23   Color Mask

index

11.5.178  ATST


0xdb 4 w ATST - Alpha Test
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Alpha Mask
8-15   Alpha Reference Value
0-2   Alpha Test Function
   
000 Never pass pixel
001 Always pass pixel
010 Pass pixel if match
011 Pass pixel if difference
100 Pass pixel if less
101 Pass pixel if less or equal
110 Pass pixel if greater
111 Pass pixel if greater or equal

index

11.5.179  STST


0xdc 4 w STST - Stencil Test
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Stencil Mask
8-15   Stencil Reference Value
0-2   Stencil Function
   
000 Never pass stencil test
001 Always pass stencil test
010 Pass test if match
011 Pass test if difference
100 Pass test if less
101 Pass test if less or equal
110 Pass test if greater
111 Pass test if greater or equal

index

11.5.180  SOP


0xdd 4 w SOP - Stencil Operations
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-18   Zfail Op
   
000 Keep stencil value
001 Zero stencil value
010 Replace stencil value
011 Invert stencil value
100 Increment stencil value
101 Decrement stencil value
110  
111  
8-11   Fail Op
0-3   Pass Op

index

11.5.181  ZTST


0xde 4 w ZTST - Depth Test Function
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-2   Function
   
000 Never pass pixel
001 Always pass pixel
010 Pass pixel when depth is equal
011 Pass pixel when depth is not equal
100 Pass pixel when depth is less
101 Pass pixel when depth is less or equal
110 Pass pixel when depth is greater
111 Pass pixel when depth is greater or equal

index

11.5.182  ALPHA


0xdf 4 w ALPHA - Alpha Blend
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
8-11   Destination Function
   
0000 Source Color
0001 One Minus Source Color
0010 Source Alpha
0011 One Minus Source Alpha
0100 Destination Color
0101 One Minus Destination Color
0110 Destination Alpha
0111 One Minus Destination Alpha
1000 Fix
1001  
1010  
1011  
1100  
1101  
1110  
1111  
4-7   Source Function
0-3   Blend Operation
   
000 Add
001 Subtract
010 Reverse Subtract
011 Minimum Value
100 Maximum Value
101 Absolute Value
110  
111  

index

11.5.183  SFIX


0xe0 4 w SFIX - Source Fix Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.184  DFIX


0xe1 4 w DFIX - Destination Fix Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Component
8-15   Green Component
0-7   Red Component

index

11.5.185  DTH0


0xe2 4 w DTH0 - Dither Matrix Row 0
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
12-15   Column 3
8-11   Column 2
4-7   Column 1
0-3   Column 0

index

11.5.186  DTH1


0xe3 4 w DTH1 - Dither Matrix Row 1
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
12-15   Column 3
8-11   Column 2
4-7   Column 1
0-3   Column 0

index

11.5.187  DTH2


0xe4 4 w DTH2 - Dither Matrix Row 2
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
12-15   Column 3
8-11   Column 2
4-7   Column 1
0-3   Column 0

index

11.5.188  DTH3


0xe5 4 w DTH3 - Dither Matrix Row 3
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
12-15   Column 3
8-11   Column 2
4-7   Column 1
0-3   Column 0

index

11.5.189  LOP


0xe6 4 w LOP - Logical Operation
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-3   Logic Op
   
0000 Clear
0001 And
0010 Reverse And
0011 Copy
0100 Inverted And
0101 No Operation
0110 Exclusive Or
0111 Or
1000 Negated Or
1001 Equivalence
1010 Inverted
1011 Reverse Or
1100 Inverted Copy
1101 Inverted Or
1110 Negated And
1111 Set

index

11.5.190  ZMSK


0xe7 4 w ZMSK - Depth Mask
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-15   Depth Write Mask

index

11.5.191  PMSKC


0xe8 4 w PMSKC - Pixel Mask Color
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
16-23   Blue Write Mask
8-15   Green Write Mask
0-7   Red Write Mask

index

11.5.192  PMSKA


0xe9 4 w PMSKA - Pixel Mask Alpha
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0-7   Alpha Write Mask

index

11.5.193  TRXKICK


0xea 4 w TRXKICK - Transmission Kick
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
0    
   
0 16-bit texel size
1 32-bit texel size

index

11.5.194  TRXSPOS


0xeb 4 w TRXSPOS - Transfer Source Position
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
10-19   Y Position
0-9   X Position

index

11.5.195  TRXDPOS


0xec 4 w TRXDPOS - Transfer Destination Position
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
10-19   Y Position
0-9   X Position

index

11.5.196  TRXSIZE


0xee 4 w TRXSIZE - Transfer Size
31 24 23 16 15 8 7 0
.... .... .... .... .... .... .... ....
bit(s)   description
10-19   Height = Transfer Height-1
0-9   Width = Transfer Width-1

index

11.6  Texture Cache


The texture cache is very important on the PSP (as it was on the PS2). From experiments it seems to be 8kB, so that means it's 64x32 in 32-bit, 64x64 in 16-bit, 128x64 in 8-bit and 128x128 in 4-bit (the sizes are qualified guesses by looking at the PS2). Ordering your draws so that locality in uv-coordinates is maximized will make sure your rendering is optimal. DXTn is decompressed into 32-bit when loaded into the cache, so what you gain in shrinking the texture-size, you lose in texture-cache. If you can, use 4- or 8-bit textures, which will allow a much larger area to be kept in the cache.
index

11.7  Memory Bandwidth


texture reads from user memory (mem range 0x08800000 - 0x01800000) have a bandwidth of 50MB/s texture reads from GE memory or VRAM (mem range 0x04000000 - 0x00200000) have a bandwidth of 500MB/s if you have a texture in user memory it is possible to load that texture to VRAM at a bandwidth of 150MB/s
index