mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
VideoCommon: Create AsyncRequests directly in MMU code to eliminate EFB-related functions in VideoBackendBase.
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user