From 6c0ea5f5e8b4945adee121dbca1c646a50d1e0b0 Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 22 Jul 2015 18:20:54 -0500 Subject: Qt/GPU Breakpoints: Added three more breakpoint types: * IncomingDisplayTransfer: Triggered just before a display transfer is performed. * GSPCommandProcessed: Triggered right after a GSP command is processed. * BufferSwapped: Triggered when the frames flip --- src/core/hw/gpu.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/hw') diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index 2a338e8f..3ccbc03b 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp @@ -151,6 +151,10 @@ inline void Write(u32 addr, const T data) { { const auto& config = g_regs.display_transfer_config; if (config.trigger & 1) { + + if (Pica::g_debug_context) + Pica::g_debug_context->OnEvent(Pica::DebugContext::Event::IncomingDisplayTransfer, nullptr); + u8* src_pointer = Memory::GetPhysicalPointer(config.GetPhysicalInputAddress()); u8* dst_pointer = Memory::GetPhysicalPointer(config.GetPhysicalOutputAddress()); -- cgit v1.2.3