From 6c158ed590246782865c68309be2a2e1c2b17596 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Fri, 14 Mar 2025 00:40:34 -0500 Subject: VideoCommon: Create AsyncRequests directly in MMU code to eliminate EFB-related functions in VideoBackendBase. --- Source/Core/VideoCommon/VideoBackendBase.cpp | 33 ---------------------------- 1 file changed, 33 deletions(-) (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp') diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index af42f3be90..8436f44443 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -22,7 +22,6 @@ #include "Core/CoreTiming.h" #include "Core/DolphinAnalytics.h" #include "Core/System.h" -#include "VideoCommon/Statistics.h" // TODO: ugly #ifdef _WIN32 @@ -105,38 +104,6 @@ void VideoBackendBase::Video_OutputXFB(u32 xfb_addr, u32 fb_width, u32 fb_stride } } -void VideoBackendBase::Video_PokeEFBColor(u32 x, u32 y, u32 data) -{ - AsyncRequests::GetInstance()->PushEvent([x, y, data] { - INCSTAT(g_stats.this_frame.num_efb_pokes); - g_efb_interface->PokeColor(x, y, data); - }); -} - -void VideoBackendBase::Video_PokeEFBDepth(u32 x, u32 y, u32 data) -{ - AsyncRequests::GetInstance()->PushEvent([x, y, data] { - INCSTAT(g_stats.this_frame.num_efb_pokes); - g_efb_interface->PokeDepth(x, y, data); - }); -} - -u32 VideoBackendBase::Video_PeekEFBColor(u32 x, u32 y) -{ - return AsyncRequests::GetInstance()->PushBlockingEvent([&] { - INCSTAT(g_stats.this_frame.num_efb_peeks); - return g_efb_interface->PeekColor(x, y); - }); -} - -u32 VideoBackendBase::Video_PeekEFBDepth(u32 x, u32 y) -{ - return AsyncRequests::GetInstance()->PushBlockingEvent([&] { - INCSTAT(g_stats.this_frame.num_efb_peeks); - return g_efb_interface->PeekDepth(x, y); - }); -} - u32 VideoBackendBase::Video_GetQueryResult(PerfQueryType type) { if (!g_perf_query->ShouldEmulate()) -- cgit v1.2.3