diff options
author | Subv <subv2112@gmail.com> | 2015-07-23 01:20:54 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-07-23 18:47:34 +0200 |
commit | 6c0ea5f5e8b4945adee121dbca1c646a50d1e0b0 (patch) | |
tree | 5e8a1e33d8697550fc7a8eee76755be4bd65015a /src/core/hle/service/gsp_gpu.cpp | |
parent | Merge pull request #968 from Subv/texture_filtering (diff) | |
download | yuzu-6c0ea5f5e8b4945adee121dbca1c646a50d1e0b0.tar yuzu-6c0ea5f5e8b4945adee121dbca1c646a50d1e0b0.tar.gz yuzu-6c0ea5f5e8b4945adee121dbca1c646a50d1e0b0.tar.bz2 yuzu-6c0ea5f5e8b4945adee121dbca1c646a50d1e0b0.tar.lz yuzu-6c0ea5f5e8b4945adee121dbca1c646a50d1e0b0.tar.xz yuzu-6c0ea5f5e8b4945adee121dbca1c646a50d1e0b0.tar.zst yuzu-6c0ea5f5e8b4945adee121dbca1c646a50d1e0b0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/gsp_gpu.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp index 8b40ba376..832273f39 100644 --- a/src/core/hle/service/gsp_gpu.cpp +++ b/src/core/hle/service/gsp_gpu.cpp @@ -14,6 +14,7 @@ #include "core/hw/lcd.h" #include "video_core/gpu_debugger.h" +#include "video_core/debug_utils/debug_utils.h" #include "video_core/renderer_base.h" #include "video_core/video_core.h" @@ -226,6 +227,9 @@ void SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) { &info.format); WriteHWRegs(base_address + 4 * static_cast<u32>(GPU_REG_INDEX(framebuffer_config[screen_id].active_fb)), 4, &info.shown_fb); + + if (Pica::g_debug_context) + Pica::g_debug_context->OnEvent(Pica::DebugContext::Event::BufferSwapped, nullptr); } /** @@ -448,6 +452,9 @@ static void ExecuteCommand(const Command& command, u32 thread_id) { default: LOG_ERROR(Service_GSP, "unknown command 0x%08X", (int)command.id.Value()); } + + if (Pica::g_debug_context) + Pica::g_debug_context->OnEvent(Pica::DebugContext::Event::GSPCommandProcessed, (void*)&command); } /** |