diff options
author | bunnei <bunneidev@gmail.com> | 2014-08-06 18:30:01 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-08-06 18:30:01 -0400 |
commit | d0c179485392903fa413543d6b6908d45bc1f0fb (patch) | |
tree | a2e85ca4b091042e2e45446fda5b36bf6f62d2b3 /src/video_core | |
parent | 90aaab1df0fe0a0518200c71df6ebe1bcf8eb783 (diff) | |
parent | 0805ecbaca70159ccc3d43c643b4ade7168795bc (diff) |
Merge pull request #34 from bunnei/gsp-command-synch
Gsp command synch
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/gpu_debugger.h | 12 |
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: */ virtual void GXCommandProcessed(int total_command_count) { - const GSP_GPU::GXCommand& cmd = observed->ReadGXCommandHistory(total_command_count-1); + const GSP_GPU::Command& cmd = observed->ReadGXCommandHistory(total_command_count-1); ERROR_LOG(GSP, "Received command: id=%x", (int)cmd.id.Value()); } @@ -81,10 +81,10 @@ public: if (observers.empty()) return; - gx_command_history.push_back(GSP_GPU::GXCommand()); - GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1]; + gx_command_history.push_back(GSP_GPU::Command()); + GSP_GPU::Command& cmd = gx_command_history[gx_command_history.size()-1]; - memcpy(&cmd, command_data, sizeof(GSP_GPU::GXCommand)); + memcpy(&cmd, command_data, sizeof(GSP_GPU::Command)); ForEachObserver([this](DebuggerObserver* observer) { observer->GXCommandProcessed(this->gx_command_history.size()); @@ -123,7 +123,7 @@ public: } ); } - const GSP_GPU::GXCommand& ReadGXCommandHistory(int index) const + const GSP_GPU::Command& ReadGXCommandHistory(int index) const { // TODO: Is this thread-safe? return gx_command_history[index]; @@ -155,7 +155,7 @@ private: std::vector<DebuggerObserver*> observers; - std::vector<GSP_GPU::GXCommand> gx_command_history; + std::vector<GSP_GPU::Command> gx_command_history; // vector of pairs of command lists and their storage address std::vector<std::pair<u32,PicaCommandList>> command_lists; |