From 0661efea8456b32d88fa13103f8ed68509f2b69f Mon Sep 17 00:00:00 2001 From: magumagu Date: Fri, 28 Mar 2014 19:22:15 -0700 Subject: Software backend: Delete forked PixelEngine. Mostly just zapping a bunch of duplicated code; the only interesting thing going on here is the changes to the performance counter implementation. --- Source/Core/VideoBackends/Software/EfbInterface.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Source/Core/VideoBackends/Software/EfbInterface.cpp') diff --git a/Source/Core/VideoBackends/Software/EfbInterface.cpp b/Source/Core/VideoBackends/Software/EfbInterface.cpp index c1ded19322..0eff1cd226 100644 --- a/Source/Core/VideoBackends/Software/EfbInterface.cpp +++ b/Source/Core/VideoBackends/Software/EfbInterface.cpp @@ -2,20 +2,24 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include + #include "Common/Common.h" #include "Core/HW/Memmap.h" #include "VideoBackends/Software/BPMemLoader.h" #include "VideoBackends/Software/EfbInterface.h" -#include "VideoBackends/Software/SWPixelEngine.h" #include "VideoCommon/LookUpTables.h" +#include "VideoCommon/PixelEngine.h" u8 efb[EFB_WIDTH*EFB_HEIGHT*6]; namespace EfbInterface { + u32 perf_values[PQ_NUM_MEMBERS]; + inline u32 GetColorOffset(u16 x, u16 y) { return (x + y * EFB_WIDTH) * 3; @@ -434,10 +438,10 @@ namespace EfbInterface } // branchless bounding box update - SWPixelEngine::pereg.boxLeft = SWPixelEngine::pereg.boxLeft>x?x:SWPixelEngine::pereg.boxLeft; - SWPixelEngine::pereg.boxRight = SWPixelEngine::pereg.boxRighty?y:SWPixelEngine::pereg.boxTop; - SWPixelEngine::pereg.boxBottom = SWPixelEngine::pereg.boxBottom