Changes

467 bytes added ,  20:14, 28 February 2013
no edit summary
Line 71: Line 71:  
| 0x000F006E
 
| 0x000F006E
 
| u32
 
| u32
| This is used immediately after CmdID 0x000F011E, with the same input parameter value as CmdID 0x000F011E.
+
| See command set 0x000F0111.
 
|-
 
|-
 
| 0x809F0081
 
| 0x809F0081
Line 107: Line 107:  
| 0x000F0116
 
| 0x000F0116
 
| u32
 
| u32
| Unknown, this is used immediately after CmdID 0x000F011D.
+
| See command set 0x000F0111.
 
|-
 
|-
 
| 0x000F0117
 
| 0x000F0117
 
| u32
 
| u32
| Unknown, normally the input parameter is value 0x2.
+
| See command set 0x000F0111.
 
|-
 
|-
 
| 0x000F011C
 
| 0x000F011C
 
| Physical address>>3
 
| Physical address>>3
| Normally this address is located in VRAM. This command is used immediately after 0x000F0116.
+
| See command set 0x000F0111.
 
|-
 
|-
 
| 0x000F011D
 
| 0x000F011D
 
| Physical address>>3
 
| Physical address>>3
| This initializes the framebuffer address used for rendering, this framebuffer is used for the input framebuffer with [[GSP_Shared_Memory|GX command]] 3 and 4. This command is used immediately after CmdID 0x000F0117.
+
| See command set 0x000F0111.
 
|-
 
|-
 
| 0x000F011E
 
| 0x000F011E
 
| u32
 
| u32
| This sets the width and height for the framebuffer used for rendering. Therefore this is glViewport() with x=0 and y=0. This is used immediately after CmdID 0x000F011C.
+
| See command set 0x000F0111.
 
|-
 
|-
 
| 0x826F0200
 
| 0x826F0200
Line 204: Line 204:     
This command set initializes the projection matrix. This command set is used twice when beginning rendering for each screen. The framebuffer width used here for the main screen is 240, however this is 480 with stereoscopy enabled for the second time this command set is used.
 
This command set initializes the projection matrix. This command set is used twice when beginning rendering for each screen. The framebuffer width used here for the main screen is 240, however this is 480 with stereoscopy enabled for the second time this command set is used.
 +
 +
===== CmdID 0x000F0111 =====
 +
{| class="wikitable" border="1"
 +
!  Command Index
 +
!  CommandID
 +
!  Parameter
 +
!  Description
 +
|-
 +
| 0
 +
| 0x000F0111
 +
| Value 1
 +
|
 +
|-
 +
| 1
 +
| 0x000F0110
 +
| Value 1
 +
|
 +
|-
 +
| 2
 +
| 0x000F0117
 +
| Bits15-0 = unk, 31-16 = unk.
 +
| Unknown, normally the input parameter is value 0x2.
 +
|-
 +
| 3
 +
| 0x000F011D
 +
| Physical address>>3
 +
| This initializes the framebuffer address used for rendering, this framebuffer is used for the input framebuffer with [[GSP_Shared_Memory|GX command]] 3 and 4. This command is used immediately after CmdID 0x000F0117.
 +
|-
 +
| 4
 +
| 0x000F0116
 +
|
 +
| ?
 +
|-
 +
| 5
 +
| 0x000F011C
 +
| Physical address>>3
 +
| Unknown, normally this address is located in VRAM.
 +
|-
 +
| 6
 +
| 0x000F011E
 +
| u32
 +
| This sets the width and height for the framebuffer used for rendering. Therefore this is glViewport(), x/y are specified by CmdID 0x000F0068.
 +
|-
 +
| 7
 +
| 0x000F006E
 +
| Same input parameter value as CmdID 0x000F011E.
 +
|
 +
|}
 +
 +
This command set is normally used after the two 0x000F0041 command sets.
    
===== CmdID 0x00030107 =====
 
===== CmdID 0x00030107 =====