summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv2018-03-22 15:27:28 -0500
committerGravatar Subv2018-03-24 11:31:50 -0500
commit1c31e2b3d2efb3a6425518df62cd1c277367f17a (patch)
tree03b794e297eb56154f81bde2ab45ad974cc7bc19 /src
parentGPU: Implement the MaxwellCommandLoaded/Processed debug breakpoints. (diff)
downloadyuzu-1c31e2b3d2efb3a6425518df62cd1c277367f17a.tar.gz
yuzu-1c31e2b3d2efb3a6425518df62cd1c277367f17a.tar.xz
yuzu-1c31e2b3d2efb3a6425518df62cd1c277367f17a.zip
GPU: Implement the Incoming/FinishedPrimitiveBatch debug breakpoints.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp7
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 ae6a4d5f1..aa375f51f 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -173,6 +173,9 @@ void Maxwell3D::ProcessQueryGet() {
173 173
174void Maxwell3D::DrawArrays() { 174void Maxwell3D::DrawArrays() {
175 LOG_WARNING(HW_GPU, "Game requested a DrawArrays, ignoring"); 175 LOG_WARNING(HW_GPU, "Game requested a DrawArrays, ignoring");
176 if (Tegra::g_debug_context) {
177 Tegra::g_debug_context->OnEvent(Tegra::DebugContext::Event::IncomingPrimitiveBatch, nullptr);
178 }
176 179
177 auto& fragment_shader = state.shader_stages[static_cast<size_t>(Regs::ShaderStage::Fragment)]; 180 auto& fragment_shader = state.shader_stages[static_cast<size_t>(Regs::ShaderStage::Fragment)];
178 auto& tex_info_buffer = fragment_shader.const_buffers[regs.tex_cb_index]; 181 auto& tex_info_buffer = fragment_shader.const_buffers[regs.tex_cb_index];
@@ -215,6 +218,10 @@ void Maxwell3D::DrawArrays() {
215 tex_info.tic_id.Value(), tex_info.tsc_id.Value(), tic_entry.Address()); 218 tex_info.tic_id.Value(), tex_info.tsc_id.Value(), tic_entry.Address());
216 } 219 }
217 } 220 }
221
222 if (Tegra::g_debug_context) {
223 Tegra::g_debug_context->OnEvent(Tegra::DebugContext::Event::FinishedPrimitiveBatch, nullptr);
224 }
218} 225}
219 226
220void Maxwell3D::BindTextureInfoBuffer(const std::vector<u32>& parameters) { 227void Maxwell3D::BindTextureInfoBuffer(const std::vector<u32>& parameters) {