diff options
| author | 2014-07-22 12:41:16 +0200 | |
|---|---|---|
| committer | 2014-07-23 00:44:31 +0200 | |
| commit | 9b0d0c81a006ebd9e054758bc2c973d67650ca70 (patch) | |
| tree | c0827e78475e98070c42732328cab30480122d2e /src/video_core/gpu_debugger.h | |
| parent | RegisterSet: Simplify code by using structs for register definition instead o... (diff) | |
| download | yuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.tar.gz yuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.tar.xz yuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.zip | |
GSP: Clean up GX command processing a lot and treat command id as a u8 rather than a u32.
Anonymous structs are not standard C++, hence don't use them.
Diffstat (limited to 'src/video_core/gpu_debugger.h')
| -rw-r--r-- | src/video_core/gpu_debugger.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h index ca1fb22d7..d92ceaa72 100644 --- a/src/video_core/gpu_debugger.h +++ b/src/video_core/gpu_debugger.h | |||
| @@ -50,7 +50,7 @@ public: | |||
| 50 | virtual void GXCommandProcessed(int total_command_count) | 50 | virtual void GXCommandProcessed(int total_command_count) |
| 51 | { | 51 | { |
| 52 | const GSP_GPU::GXCommand& cmd = observed->ReadGXCommandHistory(total_command_count-1); | 52 | const GSP_GPU::GXCommand& cmd = observed->ReadGXCommandHistory(total_command_count-1); |
| 53 | ERROR_LOG(GSP, "Received command: id=%x", cmd.id); | 53 | ERROR_LOG(GSP, "Received command: id=%x", (int)cmd.id.Value()); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | /** | 56 | /** |
| @@ -84,8 +84,7 @@ public: | |||
| 84 | gx_command_history.push_back(GSP_GPU::GXCommand()); | 84 | gx_command_history.push_back(GSP_GPU::GXCommand()); |
| 85 | GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1]; | 85 | GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1]; |
| 86 | 86 | ||
| 87 | const int cmd_length = sizeof(GSP_GPU::GXCommand); | 87 | memcpy(&cmd, command_data, sizeof(GSP_GPU::GXCommand)); |
| 88 | memcpy(cmd.data, command_data, cmd_length); | ||
| 89 | 88 | ||
| 90 | ForEachObserver([this](DebuggerObserver* observer) { | 89 | ForEachObserver([this](DebuggerObserver* observer) { |
| 91 | observer->GXCommandProcessed(this->gx_command_history.size()); | 90 | observer->GXCommandProcessed(this->gx_command_history.size()); |