videosoftware: More coding style fixes.

This commit is contained in:
Tony Wasserka 2014-03-03 19:03:15 +01:00
parent c6c6d20014
commit 1bdf232fed

View File

@ -213,26 +213,31 @@ void VideoSoftware::Video_EndField()
// BeginField and EndFeild, We could possibly get away with copying out the whole thing // BeginField and EndFeild, We could possibly get away with copying out the whole thing
// at BeginField for less lag, but for the safest emulation we run it here. // at BeginField for less lag, but for the safest emulation we run it here.
if (g_bSkipCurrentFrame || s_beginFieldArgs.xfbAddr == 0 ) { if (g_bSkipCurrentFrame || s_beginFieldArgs.xfbAddr == 0)
{
swstats.frameCount++; swstats.frameCount++;
swstats.ResetFrame(); swstats.ResetFrame();
Core::Callback_VideoCopiedToXFB(false); Core::Callback_VideoCopiedToXFB(false);
return; return;
} }
if (!g_SWVideoConfig.bHwRasterizer) { if (!g_SWVideoConfig.bHwRasterizer)
if(!g_SWVideoConfig.bBypassXFB) { {
if(!g_SWVideoConfig.bBypassXFB)
{
EfbInterface::yuv422_packed *xfb = (EfbInterface::yuv422_packed *) Memory::GetPointer(s_beginFieldArgs.xfbAddr); EfbInterface::yuv422_packed *xfb = (EfbInterface::yuv422_packed *) Memory::GetPointer(s_beginFieldArgs.xfbAddr);
SWRenderer::UpdateColorTexture(xfb, s_beginFieldArgs.fbWidth, s_beginFieldArgs.fbHeight); SWRenderer::UpdateColorTexture(xfb, s_beginFieldArgs.fbWidth, s_beginFieldArgs.fbHeight);
} }
} }
// Idealy we would just move all the opengl contex stuff to the CPU thread, but this gets // Ideally we would just move all the OpenGL context stuff to the CPU thread,
// messy when the Hardware Rasterizer is enabled. // but this gets messy when the hardware rasterizer is enabled.
// And Neobrain loves his Hardware Rasterizer // And neobrain loves his hardware rasterizer.
if (!g_SWVideoConfig.bBypassXFB) { // BypassXFB has already done a swap, so skip this. // If BypassXFB has already done a swap (cf. EfbCopy::CopyToXfb), skip this.
// If we are runing dual core, Signal the GPU thread about the new colour texture. if (!g_SWVideoConfig.bBypassXFB)
{
// If we are in dual core mode, notify the GPU thread about the new color texture.
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bCPUThread) if (SConfig::GetInstance().m_LocalCoreStartupParameter.bCPUThread)
Common::AtomicStoreRelease(s_swapRequested, true); Common::AtomicStoreRelease(s_swapRequested, true);
else else