summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/BPStructs.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-10-12 17:56:41 +0200
committerdegasus <wickmarkus@web.de>2013-10-12 20:31:59 +0200
commit2754c1132ee1f3e4cf1045bd50b77425cd308411 (patch)
tree0f6d7b78dbacb983cf7c49a75bac437f618bf3e4 /Source/Core/VideoCommon/Src/BPStructs.cpp
parent50c404ce4af8f256aeac1c6764c0d92e675afab9 (diff)
VideoCommon: reimplement Dirty() in PixelShaderManager
This isn't needed in VertexShaderManager as it's still in the old dirty flag way. But it's very importend for PixelShaderManager as some float4s aren't initialized as 0.0f
Diffstat (limited to 'Source/Core/VideoCommon/Src/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/BPStructs.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/Src/BPStructs.cpp b/Source/Core/VideoCommon/Src/BPStructs.cpp
index 785546fea7..cc169ffe8f 100644
--- a/Source/Core/VideoCommon/Src/BPStructs.cpp
+++ b/Source/Core/VideoCommon/Src/BPStructs.cpp
@@ -173,11 +173,11 @@ void BPWritten(const BPCmd& bp)
break;
case BPMEM_RAS1_SS0: // Index Texture Coordinate Scale 0
if(bp.changes)
- PixelShaderManager::SetIndTexScaleChanged(0x03);
+ PixelShaderManager::SetIndTexScaleChanged(false);
break;
case BPMEM_RAS1_SS1: // Index Texture Coordinate Scale 1
if(bp.changes)
- PixelShaderManager::SetIndTexScaleChanged(0x0c);
+ PixelShaderManager::SetIndTexScaleChanged(true);
break;
// ----------------
// Scissor Control
@@ -225,7 +225,7 @@ void BPWritten(const BPCmd& bp)
{
PRIM_LOG("constalpha: alp=%d, en=%d", bpmem.dstalpha.alpha, bpmem.dstalpha.enable);
if(bp.changes & 0xFF)
- PixelShaderManager::SetDestAlpha(bpmem.dstalpha);
+ PixelShaderManager::SetDestAlpha();
if(bp.changes & 0x100)
SetBlendMode();
break;
@@ -364,14 +364,14 @@ void BPWritten(const BPCmd& bp)
PRIM_LOG("alphacmp: ref0=%d, ref1=%d, comp0=%d, comp1=%d, logic=%d", bpmem.alpha_test.ref0,
bpmem.alpha_test.ref1, bpmem.alpha_test.comp0, bpmem.alpha_test.comp1, bpmem.alpha_test.logic);
if(bp.changes & 0xFFFF)
- PixelShaderManager::SetAlpha(bpmem.alpha_test);
+ PixelShaderManager::SetAlpha();
if(bp.changes)
g_renderer->SetColorMask();
break;
case BPMEM_BIAS: // BIAS
PRIM_LOG("ztex bias=0x%x", bpmem.ztex1.bias);
if(bp.changes)
- PixelShaderManager::SetZTextureBias(bpmem.ztex1.bias);
+ PixelShaderManager::SetZTextureBias();
break;
case BPMEM_ZTEX2: // Z Texture type
{
@@ -636,9 +636,9 @@ void BPWritten(const BPCmd& bp)
// don't compare with changes!
int num = (bp.address >> 1) & 0x3;
if ((bp.address & 1) == 0)
- PixelShaderManager::SetColorChanged(bpmem.tevregs[num].low.type, num, false);
+ PixelShaderManager::SetColorChanged(bpmem.tevregs[num].low.type, num);
else
- PixelShaderManager::SetColorChanged(bpmem.tevregs[num].high.type, num, true);
+ PixelShaderManager::SetColorChanged(bpmem.tevregs[num].high.type, num);
}
break;