diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-02-04 01:08:36 +0100 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-02-04 01:16:14 +0100 |
| commit | 8ab6ed4b494cadd3c5adab490f20debde57cd813 (patch) | |
| tree | 3e166954ef7a828bbb9970564606eb6b9eb4fe11 /Source/Core/VideoBackends/Software | |
| parent | 70f66ad32515bce6962e1961e186449e288c497b (diff) | |
SWCommandProcessor: fix the CPReg structure fields
This structure fields should match byte-to-byte the layout of MMIO registers:
it is addressed using the MMIO reg address when doing a CP MMIO read. This was
unfortunately not the case, causing CP reads to be mostly broken with the
software renderer.
Diffstat (limited to 'Source/Core/VideoBackends/Software')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWCommandProcessor.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Software/SWCommandProcessor.h b/Source/Core/VideoBackends/Software/SWCommandProcessor.h index 51cde8dbae..c2381a2d36 100644 --- a/Source/Core/VideoBackends/Software/SWCommandProcessor.h +++ b/Source/Core/VideoBackends/Software/SWCommandProcessor.h @@ -98,14 +98,15 @@ namespace SWCommandProcessor UCPStatusReg status; // 0x00 UCPCtrlReg ctrl; // 0x02 UCPClearReg clear; // 0x04 - u32 unk0; // 0x06 - u32 unk1; // 0x0a + u32 unk0; // 0x08 + u16 unk1; // 0x0c u16 token; // 0x0e u16 bboxleft; // 0x10 u16 bboxtop; // 0x12 u16 bboxright; // 0x14 u16 bboxbottom; // 0x16 - u16 unk2; // 0x18 + u32 unk2; // 0x18 + u32 unk3; // 0x1c u32 fifobase; // 0x20 u32 fifoend; // 0x24 u32 hiwatermark; // 0x28 |
