diff options
| author | 2014-12-10 17:31:50 +0100 | |
|---|---|---|
| committer | 2014-12-20 18:06:55 +0100 | |
| commit | 79c29243ed94fb247dfa5a60e1863a8f64f11669 (patch) | |
| tree | e0bfd61848a57adef3ea458a041d060ecac414f2 /src | |
| parent | Pica/PrimitiveAssembly: Implement triangle strips. (diff) | |
| download | yuzu-79c29243ed94fb247dfa5a60e1863a8f64f11669.tar.gz yuzu-79c29243ed94fb247dfa5a60e1863a8f64f11669.tar.xz yuzu-79c29243ed94fb247dfa5a60e1863a8f64f11669.zip | |
Pica/DebugUtils: Add an event triggered after loading a vertex.
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra_qt/debugger/graphics_breakpoints.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/command_processor.cpp | 3 | ||||
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cpp index 469c3e268..4cb41db22 100644 --- a/src/citra_qt/debugger/graphics_breakpoints.cpp +++ b/src/citra_qt/debugger/graphics_breakpoints.cpp | |||
| @@ -44,6 +44,7 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const | |||
| 44 | { Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed") }, | 44 | { Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed") }, |
| 45 | { Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch") }, | 45 | { Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch") }, |
| 46 | { Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished primitive batch") }, | 46 | { Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished primitive batch") }, |
| 47 | { Pica::DebugContext::Event::VertexLoaded, tr("Vertex Loaded") } | ||
| 47 | }; | 48 | }; |
| 48 | 49 | ||
| 49 | _dbg_assert_(Debug_GPU, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); | 50 | _dbg_assert_(Debug_GPU, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); |
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index d8bddd569..4f82694fd 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp | |||
| @@ -131,6 +131,9 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) { | |||
| 131 | } | 131 | } |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | if (g_debug_context) | ||
| 135 | g_debug_context->OnEvent(DebugContext::Event::VertexLoaded, (void*)&input); | ||
| 136 | |||
| 134 | // NOTE: When dumping geometry, we simply assume that the first input attribute | 137 | // NOTE: When dumping geometry, we simply assume that the first input attribute |
| 135 | // corresponds to the position for now. | 138 | // corresponds to the position for now. |
| 136 | DebugUtils::GeometryDumper::Vertex dumped_vertex = { | 139 | DebugUtils::GeometryDumper::Vertex dumped_vertex = { |
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h index 2a764e121..f9be90115 100644 --- a/src/video_core/debug_utils/debug_utils.h +++ b/src/video_core/debug_utils/debug_utils.h | |||
| @@ -26,6 +26,7 @@ public: | |||
| 26 | CommandProcessed, | 26 | CommandProcessed, |
| 27 | IncomingPrimitiveBatch, | 27 | IncomingPrimitiveBatch, |
| 28 | FinishedPrimitiveBatch, | 28 | FinishedPrimitiveBatch, |
| 29 | VertexLoaded, | ||
| 29 | 30 | ||
| 30 | NumEvents | 31 | NumEvents |
| 31 | }; | 32 | }; |