diff options
author | Tony Wasserka <neobrainx@gmail.com> | 2015-08-16 13:34:45 +0200 |
---|---|---|
committer | Tony Wasserka <neobrainx@gmail.com> | 2015-08-16 13:34:45 +0200 |
commit | f5144e6c10a5e0e0e6a267ca7ef8451f84194ffd (patch) | |
tree | e74eb17add0b6e0c33f79b95f95d7561cad7eeae /src/video_core/debug_utils/debug_utils.h | |
parent | Merge pull request #933 from neobrain/shader_debugger (diff) | |
parent | citra-qt/debug_utils: Use lock_guard everywhere (diff) | |
download | yuzu-f5144e6c10a5e0e0e6a267ca7ef8451f84194ffd.tar yuzu-f5144e6c10a5e0e0e6a267ca7ef8451f84194ffd.tar.gz yuzu-f5144e6c10a5e0e0e6a267ca7ef8451f84194ffd.tar.bz2 yuzu-f5144e6c10a5e0e0e6a267ca7ef8451f84194ffd.tar.lz yuzu-f5144e6c10a5e0e0e6a267ca7ef8451f84194ffd.tar.xz yuzu-f5144e6c10a5e0e0e6a267ca7ef8451f84194ffd.tar.zst yuzu-f5144e6c10a5e0e0e6a267ca7ef8451f84194ffd.zip |
Diffstat (limited to 'src/video_core/debug_utils/debug_utils.h')
-rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h index 0b30d7ffa..85762f5b4 100644 --- a/src/video_core/debug_utils/debug_utils.h +++ b/src/video_core/debug_utils/debug_utils.h @@ -187,21 +187,17 @@ void DumpShader(const std::string& filename, const Regs::ShaderConfig& config, // 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 { |