diff options
author | Lectem <lectem@gmail.com> | 2015-07-25 22:00:40 +0200 |
---|---|---|
committer | Lectem <lectem@gmail.com> | 2015-07-26 16:23:12 +0200 |
commit | e663751f8b6cc6fd469d3974b3e68e434ebee9db (patch) | |
tree | c48b19af6f1e95671839cf4b6153c5e155b3494c /src/video_core/debug_utils | |
parent | citra-qt/command list: monospace font on windows (diff) | |
download | yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.gz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.bz2 yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.lz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.xz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.zst yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.zip |
Diffstat (limited to 'src/video_core/debug_utils')
-rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 4 | ||||
-rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 14 |
2 files changed, 7 insertions, 11 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index c3f8321c6..827b09dff 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp @@ -280,7 +280,7 @@ bool IsPicaTracing() return is_pica_tracing != 0; } -void OnPicaRegWrite(u32 id, u32 value) +void OnPicaRegWrite(PicaTrace::Write write) { // Double check for is_pica_tracing to avoid pointless locking overhead if (!is_pica_tracing) @@ -291,7 +291,7 @@ void OnPicaRegWrite(u32 id, u32 value) if (!is_pica_tracing) return; - pica_trace->writes.emplace_back(id, value); + pica_trace->writes.push_back(write); } std::unique_ptr<PicaTrace> FinishPicaTracing() diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h index 3f109dcb7..acb75a4b2 100644 --- a/src/video_core/debug_utils/debug_utils.h +++ b/src/video_core/debug_utils/debug_utils.h @@ -183,21 +183,17 @@ void DumpShader(const u32* binary_data, u32 binary_size, const u32* swizzle_data // Utility class to log Pica commands. struct PicaTrace { - struct Write : public std::pair<u32,u32> { - Write(u32 id, u32 value) : std::pair<u32,u32>(id, value) {} - - u32& Id() { return first; } - const u32& Id() const { return first; } - - u32& Value() { return second; } - const u32& Value() const { return second; } + struct Write { + u16 cmd_id; + u16 mask; + u32 value; }; std::vector<Write> writes; }; void StartPicaTracing(); bool IsPicaTracing(); -void OnPicaRegWrite(u32 id, u32 value); +void OnPicaRegWrite(PicaTrace::Write write); std::unique_ptr<PicaTrace> FinishPicaTracing(); struct TextureInfo { |