Video_Software: Toggable zfreeze and early_z support for testing.

This commit is contained in:
NeoBrainX
2013-02-15 17:44:56 +01:00
parent 8923f0e13b
commit 183ad0c628
4 changed files with 18 additions and 6 deletions

View File

@ -784,11 +784,12 @@ void Tev::Draw()
output[BLU_C] = (output[BLU_C] * invFog + fogInt * bpmem.fog.color.b) >> 8;
}
if (!bpmem.zcontrol.early_ztest && bpmem.zmode.testenable)
{
if (!EfbInterface::ZCompare(Position[0], Position[1], Position[2]))
return;
}
bool late_ztest = !bpmem.zcontrol.early_ztest || g_SWVideoConfig.bZComploc;
if (late_ztest && bpmem.zmode.testenable)
{
if (!EfbInterface::ZCompare(Position[0], Position[1], Position[2]))
return;
}
#if ALLOW_TEV_DUMPS
if (g_SWVideoConfig.bDumpTevStages)