diff options
| author | bunnei <bunneidev@gmail.com> | 2016-12-18 21:15:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-18 21:15:24 -0500 |
| commit | 3a1eaf2efc4e5cb3358ab7451182711dfbaa061b (patch) | |
| tree | 232894ae24bb16688f6e5f480baf9168e72edc62 /src/video_core/debug_utils/debug_utils.h | |
| parent | dac86b61ee32d535154d69cee93cf28f01a5e7b8 (diff) | |
| parent | 945f554b849360405639efb6598afa2f18de64c2 (diff) | |
Merge pull request #2318 from yuriks/trace-opt
VideoCore: Inline IsPicaTracing
Diffstat (limited to 'src/video_core/debug_utils/debug_utils.h')
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h index 189c93abb..46ea8d9c7 100644 --- a/src/video_core/debug_utils/debug_utils.h +++ b/src/video_core/debug_utils/debug_utils.h @@ -196,8 +196,12 @@ struct PicaTrace { std::vector<Write> writes; }; +extern bool g_is_pica_tracing; + void StartPicaTracing(); -bool IsPicaTracing(); +inline bool IsPicaTracing() { + return g_is_pica_tracing; +} void OnPicaRegWrite(PicaTrace::Write write); std::unique_ptr<PicaTrace> FinishPicaTracing(); |
