Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #643 from delroth/master
SW: Call OnFrameEnd in the FifoPlayer XFB hack. Required to dump DFF frames.
  • Loading branch information
delroth committed Jul 17, 2014
2 parents 705afc7 + d44fc48 commit 063f530
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Source/Core/VideoBackends/Software/EfbCopy.cpp
Expand Up @@ -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);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions Source/Core/VideoBackends/Software/SWmain.cpp
Expand Up @@ -232,16 +232,16 @@ 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.

// 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);
Expand Down

0 comments on commit 063f530

Please sign in to comment.