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:
parent
76556b883f
commit
d99ac909b9
|
@ -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,6 +582,8 @@ void VideoFifo_CheckEFBAccess()
|
||||||
|
|
||||||
u32 Video_AccessEFB(EFBAccessType type, u32 x, u32 y)
|
u32 Video_AccessEFB(EFBAccessType type, u32 x, u32 y)
|
||||||
{
|
{
|
||||||
|
if (s_PluginInitialized)
|
||||||
|
{
|
||||||
s_accessEFBArgs.type = type;
|
s_accessEFBArgs.type = type;
|
||||||
s_accessEFBArgs.x = x;
|
s_accessEFBArgs.x = x;
|
||||||
s_accessEFBArgs.y = y;
|
s_accessEFBArgs.y = y;
|
||||||
|
@ -601,8 +597,9 @@ u32 Video_AccessEFB(EFBAccessType type, u32 x, u32 y)
|
||||||
else
|
else
|
||||||
VideoFifo_CheckEFBAccess();
|
VideoFifo_CheckEFBAccess();
|
||||||
|
|
||||||
Common::MemFence();
|
|
||||||
|
|
||||||
return s_AccessEFBResult;
|
return s_AccessEFBResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue