summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
diff options
context:
space:
mode:
authordonkopunchstania <donkopunchstania@gmail.com>2010-12-31 06:45:18 +0000
committerdonkopunchstania <donkopunchstania@gmail.com>2010-12-31 06:45:18 +0000
commit8a711eadaced8306490271c1b13c51007fe9fa67 (patch)
treeba6501ca7f8adf33fd6a23d56ea74ca80cddb396 /Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
parentbc3b43d1bd6114e2b426efcc2bdca46422f16f86 (diff)
Video software:
Changed the EFB color order from RGBA to ABGR to emulate it correctly on little-endian platforms. Added some enumerations to clear up what components are which colors. Fixed the TEV alpha input LUT which would have caused problems if anything was doing alpha comparisons. Changed box filter for EFB copies from 3x3 to 2x2 because that is probably correct. Also makes the math nicer. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6696 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
index 60ec5e4fb4..55ce7eed2b 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
@@ -23,6 +23,7 @@
#include "EfbCopy.h"
#include "Rasterizer.h"
#include "PixelEngine.h"
+#include "Tev.h"
#include "../../../Core/VideoCommon/Src/TextureDecoder.h"
@@ -55,7 +56,7 @@ void LoadBPReg(u32 value)
void BPWritten(int address, int newvalue)
{
switch (address)
- {
+ {
case BPMEM_SCISSORTL:
case BPMEM_SCISSORBR:
case BPMEM_SCISSOROFFSET:
@@ -124,8 +125,8 @@ void BPWritten(int address, int newvalue)
ColReg& reg = bpmem.tevregs[regNum].low;
bool konst = reg.type;
- Rasterizer::SetTevReg(regNum, 3, konst, reg.b); // A
- Rasterizer::SetTevReg(regNum, 0, konst, reg.a); // R
+ Rasterizer::SetTevReg(regNum, Tev::ALP_C, konst, reg.b); // A
+ Rasterizer::SetTevReg(regNum, Tev::RED_C, konst, reg.a); // R
break;
}
@@ -139,8 +140,8 @@ void BPWritten(int address, int newvalue)
ColReg& reg = bpmem.tevregs[regNum].high;
bool konst = reg.type;
- Rasterizer::SetTevReg(regNum, 1, konst, reg.b); // G
- Rasterizer::SetTevReg(regNum, 2, konst, reg.a); // B
+ Rasterizer::SetTevReg(regNum, Tev::GRN_C, konst, reg.b); // G
+ Rasterizer::SetTevReg(regNum, Tev::BLU_C, konst, reg.a); // B
break;
}