mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-07 11:42:39 +00:00
Video_Software: Implement PE pixel metrics
This commit is contained in:
parent
cf8744cf2c
commit
26de63a8cd
4 changed files with 56 additions and 9 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "Tev.h"
|
||||
#include "EfbInterface.h"
|
||||
#include "TextureSampler.h"
|
||||
#include "SWPixelEngine.h"
|
||||
#include "SWStatistics.h"
|
||||
#include "SWVideoConfig.h"
|
||||
#include "DebugUtil.h"
|
||||
|
@ -784,11 +785,16 @@ void Tev::Draw()
|
|||
output[BLU_C] = (output[BLU_C] * invFog + fogInt * bpmem.fog.color.b) >> 8;
|
||||
}
|
||||
|
||||
if (!bpmem.zcontrol.zcomploc && bpmem.zmode.testenable)
|
||||
{
|
||||
if (!EfbInterface::ZCompare(Position[0], Position[1], Position[2]))
|
||||
return;
|
||||
}
|
||||
if (!bpmem.zcontrol.zcomploc)
|
||||
{
|
||||
SWPixelEngine::pereg.perfZcompInput++;
|
||||
if (bpmem.zmode.testenable)
|
||||
{
|
||||
if (!EfbInterface::ZCompare(Position[0], Position[1], Position[2]))
|
||||
return;
|
||||
}
|
||||
SWPixelEngine::pereg.perfZcompOutput++;
|
||||
}
|
||||
|
||||
#if ALLOW_TEV_DUMPS
|
||||
if (g_SWVideoConfig.bDumpTevStages)
|
||||
|
@ -812,6 +818,8 @@ void Tev::Draw()
|
|||
|
||||
INCSTAT(swstats.thisFrame.tevPixelsOut);
|
||||
|
||||
SWPixelEngine::pereg.perfBlendInput++;
|
||||
|
||||
EfbInterface::BlendTev(Position[0], Position[1], output);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue