summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-07-22 12:41:16 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-07-23 00:44:31 +0200
commit9b0d0c81a006ebd9e054758bc2c973d67650ca70 (patch)
treec0827e78475e98070c42732328cab30480122d2e /src/video_core
parentRegisterSet: Simplify code by using structs for register definition instead of unions. (diff)
downloadyuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.tar
yuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.tar.gz
yuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.tar.bz2
yuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.tar.lz
yuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.tar.xz
yuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.tar.zst
yuzu-9b0d0c81a006ebd9e054758bc2c973d67650ca70.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/gpu_debugger.h5
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:
virtual void GXCommandProcessed(int total_command_count)
{
const GSP_GPU::GXCommand& cmd = observed->ReadGXCommandHistory(total_command_count-1);
- ERROR_LOG(GSP, "Received command: id=%x", cmd.id);
+ ERROR_LOG(GSP, "Received command: id=%x", (int)cmd.id.Value());
}
/**
@@ -84,8 +84,7 @@ public:
gx_command_history.push_back(GSP_GPU::GXCommand());
GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1];
- const int cmd_length = sizeof(GSP_GPU::GXCommand);
- memcpy(cmd.data, command_data, cmd_length);
+ memcpy(&cmd, command_data, sizeof(GSP_GPU::GXCommand));
ForEachObserver([this](DebuggerObserver* observer) {
observer->GXCommandProcessed(this->gx_command_history.size());