From 3b853413c7550604efedc724bcec95851ff3d6f1 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Wed, 27 Sep 2023 09:26:50 +0300 Subject: [PATCH] preparing for drawing --- src/Core/PS4/HLE/Graphics/Objects/video_out_ctx.cpp | 6 ++++++ src/emulator.cpp | 2 ++ src/emulator.h | 1 + 3 files changed, 9 insertions(+) diff --git a/src/Core/PS4/HLE/Graphics/Objects/video_out_ctx.cpp b/src/Core/PS4/HLE/Graphics/Objects/video_out_ctx.cpp index afc6426f..aa77713d 100644 --- a/src/Core/PS4/HLE/Graphics/Objects/video_out_ctx.cpp +++ b/src/Core/PS4/HLE/Graphics/Objects/video_out_ctx.cpp @@ -76,6 +76,12 @@ bool FlipQueue::flip(u32 micros) { auto request = m_requests.at(0); // proceed first request m_mutex.UnlockMutex(); + auto* buffer = request.cfg->buffers[request.index].buffer_render; + + Emulator::DrawBuffer(buffer); + + m_mutex.LockMutex(); + request.cfg->m_mutex.LockMutex(); for (auto& flip_eq : request.cfg->m_flip_evtEq) { if (flip_eq != nullptr) { diff --git a/src/emulator.cpp b/src/emulator.cpp index dc02102a..e9b1539d 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -100,4 +100,6 @@ HLE::Libs::Graphics::GraphicCtx* getGraphicCtx() { return &window_ctx->m_graphic_ctx; } +void DrawBuffer(HLE::Libs::Graphics::VideoOutVulkanImage* image) {} + } // namespace Emulator \ No newline at end of file diff --git a/src/emulator.h b/src/emulator.h index ff17a31f..b3d2c0e3 100644 --- a/src/emulator.h +++ b/src/emulator.h @@ -80,4 +80,5 @@ void emuInit(u32 width, u32 height); void emuRun(); void checkAndWaitForGraphicsInit(); HLE::Libs::Graphics::GraphicCtx* getGraphicCtx(); +void DrawBuffer(HLE::Libs::Graphics::VideoOutVulkanImage* image); } // namespace Emulator \ No newline at end of file