diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-10-25 18:02:26 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-09 16:37:34 +0100 |
commit | 2c71ec70527abd091d69f1fdd30aaf95d815214a (patch) | |
tree | d0e1f48b048f6d3ef801d0562bfcfe0fa11de6f1 /src/video_core/command_processor.cpp | |
parent | citra-qt: Polish the pica tracing widget. (diff) | |
download | yuzu-2c71ec70527abd091d69f1fdd30aaf95d815214a.tar yuzu-2c71ec70527abd091d69f1fdd30aaf95d815214a.tar.gz yuzu-2c71ec70527abd091d69f1fdd30aaf95d815214a.tar.bz2 yuzu-2c71ec70527abd091d69f1fdd30aaf95d815214a.tar.lz yuzu-2c71ec70527abd091d69f1fdd30aaf95d815214a.tar.xz yuzu-2c71ec70527abd091d69f1fdd30aaf95d815214a.tar.zst yuzu-2c71ec70527abd091d69f1fdd30aaf95d815214a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/command_processor.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 8a6ba2560..298b04c51 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -34,6 +34,9 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) { u32 old_value = registers[id]; registers[id] = (old_value & ~mask) | (value & mask); + if (g_debug_context) + g_debug_context->OnEvent(DebugContext::Event::CommandLoaded, reinterpret_cast<void*>(&id)); + DebugUtils::OnPicaRegWrite(id, registers[id]); switch(id) { @@ -43,6 +46,9 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) { { DebugUtils::DumpTevStageConfig(registers.GetTevStages()); + if (g_debug_context) + g_debug_context->OnEvent(DebugContext::Event::IncomingPrimitiveBatch, nullptr); + const auto& attribute_config = registers.vertex_attributes; const u8* const base_address = Memory::GetPointer(attribute_config.GetBaseAddress()); @@ -132,6 +138,10 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) { clipper_primitive_assembler.SubmitVertex(output, Clipper::ProcessTriangle); } geometry_dumper.Dump(); + + if (g_debug_context) + g_debug_context->OnEvent(DebugContext::Event::FinishedPrimitiveBatch, nullptr); + break; } @@ -229,6 +239,9 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) { default: break; } + + if (g_debug_context) + g_debug_context->OnEvent(DebugContext::Event::CommandProcessed, reinterpret_cast<void*>(&id)); } static std::ptrdiff_t ExecuteCommandBlock(const u32* first_command_word) { |