summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/command_processor.cpp4
-rw-r--r--src/video_core/debug_utils/debug_utils.h7
2 files changed, 7 insertions, 4 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 8b10d7340..92ba8754f 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -50,7 +50,7 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) {
50 regs[id] = (old_value & ~mask) | (value & mask); 50 regs[id] = (old_value & ~mask) | (value & mask);
51 51
52 if (g_debug_context) 52 if (g_debug_context)
53 g_debug_context->OnEvent(DebugContext::Event::CommandLoaded, reinterpret_cast<void*>(&id)); 53 g_debug_context->OnEvent(DebugContext::Event::PicaCommandLoaded, reinterpret_cast<void*>(&id));
54 54
55 DebugUtils::OnPicaRegWrite(id, regs[id]); 55 DebugUtils::OnPicaRegWrite(id, regs[id]);
56 56
@@ -428,7 +428,7 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) {
428 VideoCore::g_renderer->hw_rasterizer->NotifyPicaRegisterChanged(id); 428 VideoCore::g_renderer->hw_rasterizer->NotifyPicaRegisterChanged(id);
429 429
430 if (g_debug_context) 430 if (g_debug_context)
431 g_debug_context->OnEvent(DebugContext::Event::CommandProcessed, reinterpret_cast<void*>(&id)); 431 g_debug_context->OnEvent(DebugContext::Event::PicaCommandProcessed, reinterpret_cast<void*>(&id));
432} 432}
433 433
434void ProcessCommandList(const u32* list, u32 size) { 434void ProcessCommandList(const u32* list, u32 size) {
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h
index 2573292e2..3f109dcb7 100644
--- a/src/video_core/debug_utils/debug_utils.h
+++ b/src/video_core/debug_utils/debug_utils.h
@@ -25,11 +25,14 @@ public:
25 enum class Event { 25 enum class Event {
26 FirstEvent = 0, 26 FirstEvent = 0,
27 27
28 CommandLoaded = FirstEvent, 28 PicaCommandLoaded = FirstEvent,
29 CommandProcessed, 29 PicaCommandProcessed,
30 IncomingPrimitiveBatch, 30 IncomingPrimitiveBatch,
31 FinishedPrimitiveBatch, 31 FinishedPrimitiveBatch,
32 VertexLoaded, 32 VertexLoaded,
33 IncomingDisplayTransfer,
34 GSPCommandProcessed,
35 BufferSwapped,
33 36
34 NumEvents 37 NumEvents
35 }; 38 };