summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/gsp.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/gsp.cpp b/src/core/hle/service/gsp.cpp
index 3dda4c934..a42759053 100644
--- a/src/core/hle/service/gsp.cpp
+++ b/src/core/hle/service/gsp.cpp
@@ -16,6 +16,9 @@
16 16
17//////////////////////////////////////////////////////////////////////////////////////////////////// 17////////////////////////////////////////////////////////////////////////////////////////////////////
18 18
19// Main graphics debugger object - TODO: Here is probably not the best place for this
20GraphicsDebugger g_debugger;
21
19/// GSP shared memory GX command buffer header 22/// GSP shared memory GX command buffer header
20union GX_CmdBufferHeader { 23union GX_CmdBufferHeader {
21 u32 hex; 24 u32 hex;
@@ -45,6 +48,9 @@ static inline u8* GX_GetCmdBufferPointer(u32 thread_id, u32 offset=0) {
45/// Finishes execution of a GSP command 48/// Finishes execution of a GSP command
46void GX_FinishCommand(u32 thread_id) { 49void GX_FinishCommand(u32 thread_id) {
47 GX_CmdBufferHeader* header = (GX_CmdBufferHeader*)GX_GetCmdBufferPointer(thread_id); 50 GX_CmdBufferHeader* header = (GX_CmdBufferHeader*)GX_GetCmdBufferPointer(thread_id);
51
52 g_debugger.GXCommandProcessed(GX_GetCmdBufferPointer(thread_id, 0x20 + (header->index * 0x20)));
53
48 header->number_commands = header->number_commands - 1; 54 header->number_commands = header->number_commands - 1;
49 // TODO: Increment header->index? 55 // TODO: Increment header->index?
50} 56}