diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-03-14 00:40:34 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-03-14 01:14:51 -0500 |
| commit | 6c158ed590246782865c68309be2a2e1c2b17596 (patch) | |
| tree | 88368f3aaed40dbc01b9b4aad65ad3e825a0e826 /Source/Core/VideoCommon/VideoBackendBase.cpp | |
| parent | 63b848ca9386a870151b8d6482f4ffceb0b41f5e (diff) | |
VideoCommon: Create AsyncRequests directly in MMU code to eliminate EFB-related functions in VideoBackendBase.
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
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()) |
