diff options
| author | 2015-07-25 22:00:40 +0200 | |
|---|---|---|
| committer | 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.gz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.xz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.zip | |
citra-qt/command list: Add mask column
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() | |||
| 280 | return is_pica_tracing != 0; | 280 | return is_pica_tracing != 0; |
| 281 | } | 281 | } |
| 282 | 282 | ||
| 283 | void OnPicaRegWrite(u32 id, u32 value) | 283 | void OnPicaRegWrite(PicaTrace::Write write) |
| 284 | { | 284 | { |
| 285 | // Double check for is_pica_tracing to avoid pointless locking overhead | 285 | // Double check for is_pica_tracing to avoid pointless locking overhead |
| 286 | if (!is_pica_tracing) | 286 | if (!is_pica_tracing) |
| @@ -291,7 +291,7 @@ void OnPicaRegWrite(u32 id, u32 value) | |||
| 291 | if (!is_pica_tracing) | 291 | if (!is_pica_tracing) |
| 292 | return; | 292 | return; |
| 293 | 293 | ||
| 294 | pica_trace->writes.emplace_back(id, value); | 294 | pica_trace->writes.push_back(write); |
| 295 | } | 295 | } |
| 296 | 296 | ||
| 297 | std::unique_ptr<PicaTrace> FinishPicaTracing() | 297 | 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 | |||
| 183 | 183 | ||
| 184 | // Utility class to log Pica commands. | 184 | // Utility class to log Pica commands. |
| 185 | struct PicaTrace { | 185 | struct PicaTrace { |
| 186 | struct Write : public std::pair<u32,u32> { | 186 | struct Write { |
| 187 | Write(u32 id, u32 value) : std::pair<u32,u32>(id, value) {} | 187 | u16 cmd_id; |
| 188 | 188 | u16 mask; | |
| 189 | u32& Id() { return first; } | 189 | u32 value; |
| 190 | const u32& Id() const { return first; } | ||
| 191 | |||
| 192 | u32& Value() { return second; } | ||
| 193 | const u32& Value() const { return second; } | ||
| 194 | }; | 190 | }; |
| 195 | std::vector<Write> writes; | 191 | std::vector<Write> writes; |
| 196 | }; | 192 | }; |
| 197 | 193 | ||
| 198 | void StartPicaTracing(); | 194 | void StartPicaTracing(); |
| 199 | bool IsPicaTracing(); | 195 | bool IsPicaTracing(); |
| 200 | void OnPicaRegWrite(u32 id, u32 value); | 196 | void OnPicaRegWrite(PicaTrace::Write write); |
| 201 | std::unique_ptr<PicaTrace> FinishPicaTracing(); | 197 | std::unique_ptr<PicaTrace> FinishPicaTracing(); |
| 202 | 198 | ||
| 203 | struct TextureInfo { | 199 | struct TextureInfo { |