mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-02 00:12:45 +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
|
@ -23,6 +23,7 @@
|
|||
#include "BPMemLoader.h"
|
||||
#include "XFMemLoader.h"
|
||||
#include "Tev.h"
|
||||
#include "SWPixelEngine.h"
|
||||
#include "SWStatistics.h"
|
||||
#include "SWVideoConfig.h"
|
||||
|
||||
|
@ -125,11 +126,17 @@ inline void Draw(s32 x, s32 y, s32 xi, s32 yi)
|
|||
if (z < 0 || z > 0x00ffffff)
|
||||
return;
|
||||
|
||||
if (bpmem.zcontrol.zcomploc && bpmem.zmode.testenable)
|
||||
if (bpmem.zcontrol.zcomploc)
|
||||
{
|
||||
// early z
|
||||
if (!EfbInterface::ZCompare(x, y, z))
|
||||
return;
|
||||
// TODO: Verify that perf regs are being incremented even if test is disabled
|
||||
SWPixelEngine::pereg.perfZcompInputZcomploc++;
|
||||
if (bpmem.zmode.testenable)
|
||||
{
|
||||
// early z
|
||||
if (!EfbInterface::ZCompare(x, y, z))
|
||||
return;
|
||||
}
|
||||
SWPixelEngine::pereg.perfZcompOutputZcomploc++;
|
||||
}
|
||||
|
||||
RasterBlockPixel& pixel = rasterBlock.Pixel[xi][yi];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue