summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_debugger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu_debugger.h')
-rw-r--r--src/video_core/gpu_debugger.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h
index d92ceaa72..5d85f90b9 100644
--- a/src/video_core/gpu_debugger.h
+++ b/src/video_core/gpu_debugger.h
@@ -49,7 +49,7 @@ public:
49 */ 49 */
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::Command& cmd = observed->ReadGXCommandHistory(total_command_count-1);
53 ERROR_LOG(GSP, "Received command: id=%x", (int)cmd.id.Value()); 53 ERROR_LOG(GSP, "Received command: id=%x", (int)cmd.id.Value());
54 } 54 }
55 55
@@ -81,10 +81,10 @@ public:
81 if (observers.empty()) 81 if (observers.empty())
82 return; 82 return;
83 83
84 gx_command_history.push_back(GSP_GPU::GXCommand()); 84 gx_command_history.push_back(GSP_GPU::Command());
85 GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1]; 85 GSP_GPU::Command& cmd = gx_command_history[gx_command_history.size()-1];
86 86
87 memcpy(&cmd, command_data, sizeof(GSP_GPU::GXCommand)); 87 memcpy(&cmd, command_data, sizeof(GSP_GPU::Command));
88 88
89 ForEachObserver([this](DebuggerObserver* observer) { 89 ForEachObserver([this](DebuggerObserver* observer) {
90 observer->GXCommandProcessed(this->gx_command_history.size()); 90 observer->GXCommandProcessed(this->gx_command_history.size());
@@ -123,7 +123,7 @@ public:
123 } ); 123 } );
124 } 124 }
125 125
126 const GSP_GPU::GXCommand& ReadGXCommandHistory(int index) const 126 const GSP_GPU::Command& ReadGXCommandHistory(int index) const
127 { 127 {
128 // TODO: Is this thread-safe? 128 // TODO: Is this thread-safe?
129 return gx_command_history[index]; 129 return gx_command_history[index];
@@ -155,7 +155,7 @@ private:
155 155
156 std::vector<DebuggerObserver*> observers; 156 std::vector<DebuggerObserver*> observers;
157 157
158 std::vector<GSP_GPU::GXCommand> gx_command_history; 158 std::vector<GSP_GPU::Command> gx_command_history;
159 159
160 // vector of pairs of command lists and their storage address 160 // vector of pairs of command lists and their storage address
161 std::vector<std::pair<u32,PicaCommandList>> command_lists; 161 std::vector<std::pair<u32,PicaCommandList>> command_lists;