Remove a couple unnecessary MemFences

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3754 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Nolan Check 2009-07-11 20:39:28 +00:00
parent 76556b883f
commit d99ac909b9
1 changed files with 14 additions and 17 deletions

View File

@ -553,8 +553,6 @@ void VideoFifo_CheckEFBAccess()
// Clamp the 32bits value returned by glReadPixels to a 24bits value (GC uses a 24bits Z-Buffer) // Clamp the 32bits value returned by glReadPixels to a 24bits value (GC uses a 24bits Z-Buffer)
s_AccessEFBResult = z / 0x100; s_AccessEFBResult = z / 0x100;
Common::MemFence();
// We should probably re-bind the old fbo here. // We should probably re-bind the old fbo here.
if (g_Config.iMultisampleMode != MULTISAMPLE_OFF) { if (g_Config.iMultisampleMode != MULTISAMPLE_OFF) {
Renderer::SetFramebuffer(0); Renderer::SetFramebuffer(0);
@ -569,7 +567,6 @@ void VideoFifo_CheckEFBAccess()
case PEEK_COLOR: case PEEK_COLOR:
// TODO: Implement // TODO: Implement
s_AccessEFBResult = 0; s_AccessEFBResult = 0;
Common::MemFence();
break; break;
case POKE_COLOR: case POKE_COLOR:
@ -578,9 +575,6 @@ void VideoFifo_CheckEFBAccess()
// and perhaps blending. // and perhaps blending.
//WARN_LOG(VIDEOINTERFACE, "This is probably some kind of software rendering"); //WARN_LOG(VIDEOINTERFACE, "This is probably some kind of software rendering");
break; break;
default:
break;
} }
s_efbResponseEvent.Set(); s_efbResponseEvent.Set();
@ -588,21 +582,24 @@ void VideoFifo_CheckEFBAccess()
u32 Video_AccessEFB(EFBAccessType type, u32 x, u32 y) u32 Video_AccessEFB(EFBAccessType type, u32 x, u32 y)
{ {
s_accessEFBArgs.type = type; if (s_PluginInitialized)
s_accessEFBArgs.x = x; {
s_accessEFBArgs.y = y; s_accessEFBArgs.type = type;
s_accessEFBArgs.x = x;
s_accessEFBArgs.y = y;
Common::MemFence(); Common::MemFence();
s_efbAccessRequested = true; s_efbAccessRequested = true;
if (g_VideoInitialize.bUseDualCore) if (g_VideoInitialize.bUseDualCore)
s_efbResponseEvent.MsgWait(); s_efbResponseEvent.MsgWait();
else else
VideoFifo_CheckEFBAccess(); VideoFifo_CheckEFBAccess();
Common::MemFence(); return s_AccessEFBResult;
}
return s_AccessEFBResult; return 0;
} }