EFB Access now works from both Dual Core and Single Core modes. Thread-safe.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3644 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2009-07-02 10:16:06 +00:00
parent ae2a5b8587
commit 7a05aafe39
6 changed files with 78 additions and 28 deletions

View File

@ -32,6 +32,8 @@
volatile u32 g_XFBUpdateRequested = FALSE;
extern u8* g_pVideoData;
volatile bool g_EFBAccessRequested = false;
namespace {
static volatile bool fifoStateRun = false;
@ -139,6 +141,12 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
video_initialize.pPeekMessages();
#endif
if (g_EFBAccessRequested)
{
Video_OnThreadAccessEFB();
g_EFBAccessRequested = false;
}
// Draw XFB if CP/GPfifo isn't used
if (g_XFBUpdateRequested)
{