Merge pull request #643 from delroth/master

SW: Call OnFrameEnd in the FifoPlayer XFB hack. Required to dump DFF frames.
This commit is contained in:
Pierre Bourdon 2014-07-17 13:21:34 +02:00
commit 063f530d4c
2 changed files with 4 additions and 3 deletions

View File

@ -58,6 +58,7 @@ namespace EfbCopy
// This requires careful synchronization since GPU commands
// are processed on a different thread than VI commands.
SWRenderer::Swap(fbWidth, fbHeight);
DebugUtil::OnFrameEnd(fbWidth, fbHeight);
}
}
}

View File

@ -232,9 +232,6 @@ void VideoSoftware::Video_EndField()
}
}
// Dump frame if needed
DebugUtil::OnFrameEnd(s_beginFieldArgs.fbWidth, s_beginFieldArgs.fbHeight);
// Ideally we would just move all the OpenGL context stuff to the CPU thread,
// but this gets messy when the hardware rasterizer is enabled.
// And neobrain loves his hardware rasterizer.
@ -242,6 +239,9 @@ void VideoSoftware::Video_EndField()
// If BypassXFB has already done a swap (cf. EfbCopy::CopyToXfb), skip this.
if (!g_SWVideoConfig.bBypassXFB)
{
// Dump frame if needed
DebugUtil::OnFrameEnd(s_beginFieldArgs.fbWidth, s_beginFieldArgs.fbHeight);
// If we are in dual core mode, notify the GPU thread about the new color texture.
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bCPUThread)
Common::AtomicStoreRelease(s_swapRequested, true);