summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-05-17 22:34:55 +0200
committerbunnei <ericbunnie@gmail.com>2014-06-12 12:10:48 +0200
commit31666632caf9e5f0eea8d8d839e7120e38be97f9 (patch)
treea4cd919f52ff5ee64b3337c1cb3f7c01dd330ef9 /src/core/hle
parentGSP: Define more GX commands. (diff)
downloadyuzu-31666632caf9e5f0eea8d8d839e7120e38be97f9.tar
yuzu-31666632caf9e5f0eea8d8d839e7120e38be97f9.tar.gz
yuzu-31666632caf9e5f0eea8d8d839e7120e38be97f9.tar.bz2
yuzu-31666632caf9e5f0eea8d8d839e7120e38be97f9.tar.lz
yuzu-31666632caf9e5f0eea8d8d839e7120e38be97f9.tar.xz
yuzu-31666632caf9e5f0eea8d8d839e7120e38be97f9.tar.zst
yuzu-31666632caf9e5f0eea8d8d839e7120e38be97f9.zip
Diffstat (limited to 'src/core/hle')
-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 @@
////////////////////////////////////////////////////////////////////////////////////////////////////
+// Main graphics debugger object - TODO: Here is probably not the best place for this
+GraphicsDebugger g_debugger;
+
/// GSP shared memory GX command buffer header
union GX_CmdBufferHeader {
u32 hex;
@@ -45,6 +48,9 @@ static inline u8* GX_GetCmdBufferPointer(u32 thread_id, u32 offset=0) {
/// Finishes execution of a GSP command
void GX_FinishCommand(u32 thread_id) {
GX_CmdBufferHeader* header = (GX_CmdBufferHeader*)GX_GetCmdBufferPointer(thread_id);
+
+ g_debugger.GXCommandProcessed(GX_GetCmdBufferPointer(thread_id, 0x20 + (header->index * 0x20)));
+
header->number_commands = header->number_commands - 1;
// TODO: Increment header->index?
}