diff options
| author | Subv <subv2112@gmail.com> | 2018-03-22 15:27:28 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2018-03-24 11:31:50 -0500 |
| commit | b9b5b1e740f2de70da4e66ed3f6f28cbcdb856c3 (patch) | |
| tree | 03b794e297eb56154f81bde2ab45ad974cc7bc19 /src | |
| parent | 10b10a14af5b4c2086dff79f7b8594b4849825f6 (diff) | |
GPU: Implement the Incoming/FinishedPrimitiveBatch debug breakpoints.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index ae6a4d5f1a..aa375f51f4 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -173,6 +173,9 @@ void Maxwell3D::ProcessQueryGet() { void Maxwell3D::DrawArrays() { LOG_WARNING(HW_GPU, "Game requested a DrawArrays, ignoring"); + if (Tegra::g_debug_context) { + Tegra::g_debug_context->OnEvent(Tegra::DebugContext::Event::IncomingPrimitiveBatch, nullptr); + } auto& fragment_shader = state.shader_stages[static_cast<size_t>(Regs::ShaderStage::Fragment)]; auto& tex_info_buffer = fragment_shader.const_buffers[regs.tex_cb_index]; @@ -215,6 +218,10 @@ void Maxwell3D::DrawArrays() { tex_info.tic_id.Value(), tex_info.tsc_id.Value(), tic_entry.Address()); } } + + if (Tegra::g_debug_context) { + Tegra::g_debug_context->OnEvent(Tegra::DebugContext::Event::FinishedPrimitiveBatch, nullptr); + } } void Maxwell3D::BindTextureInfoBuffer(const std::vector<u32>& parameters) { |
