#include <vector>
#include "math/color.h"
Go to the source code of this file.
|
| namespace | Rnd |
| | The rendering engine.
|
|
| int | DrawVSyncCB (int nCause) |
| | Count one vertical blank in gVCount.
|
◆ DrawVSyncCB()
| int DrawVSyncCB |
( |
int | nCause | ) |
|
Count one vertical blank in gVCount.
GfxDevice::InitDisplayMode() installs it through sceGsSyncVCallback(). The body increments the counter, runs the kernel's ExitHandler() sequence (sync, ei), and returns 0. ExitHandler() is MIPS inline assembly and assembles only with the PlayStation 2 toolchain.
- Parameters
-
| nCause | The interrupt cause the kernel passes, unused. |
- Returns
- 0.
- Ghidra address:
- NTSC-U/C: 0x0049fea0
- Ghidra address:
- PAL: 0x004ddf28
◆ kGifBufferQuadwords
| int kGifBufferQuadwords = 0x1e0 |
|
constexpr |
Quadwords of the packet buffer a caller may fill before it has to be submitted.
◆ kGsRegisterCount
| int kGsRegisterCount = 128 |
|
constexpr |
GS registers the device shadows, the whole register address space.
◆ gVCount
Vertical blanks counted since start-up.
DrawVSyncCB() increments it. SwapBuffers() busy-waits on it, reloading it on every pass.
- Ghidra address:
- NTSC-U/C: 0x006f2f20
- Ghidra address:
- PAL: 0x00736970
◆ g_vu1MicrocodeChain
DMA chain that uploads the VU1 microcode, the start of the .vutext section.
The chain and the microprogram it uploads are DVP assembly. The microprogram enters at VU address 0x3c0 to initialise, 0x000 and 0x4ce for textured and untextured faces, 0x1c2 for edges, and 0x258 for sprites. InitDisplayMode() sends the chain on the VIF1 channel. The name is inferred.
- Ghidra address:
- NTSC-U/C: 0x00664ab0
- Ghidra address:
- PAL: 0x006a5640
◆ g_vu0MicrocodeChain
DMA chain at the end of .vutext that uploads the VU0 microcode.
The chain and the microprogram it uploads are DVP assembly. InitDisplayMode() sends the chain on the VIF0 channel. The name is inferred.
- Ghidra address:
- NTSC-U/C: 0x00666de0
- Ghidra address:
- PAL: 0x006a7970