summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-07-31 23:29:28 +1000
committerStenzek <stenzek@gmail.com>2017-08-01 00:01:09 +1000
commit852e30bb8ca71ae419cf5ed15c63ceba417c0f83 (patch)
treeadccba5dce16f16ec1f940effb44ab78e3eae0fb /Source/Core/VideoCommon/BPStructs.cpp
parented331918f0f7a8836cda9f34df4a7ef86cd55e0d (diff)
Ubershaders: Fix 6-bit color truncation not being applied
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index c686d4ff01..9706347618 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -134,18 +134,19 @@ static void BPWritten(const BPCmd& bp)
GeometryShaderManager::SetLinePtWidthChanged();
return;
case BPMEM_ZMODE: // Depth Control
- PRIM_LOG("zmode: test=%d, func=%d, upd=%d", (int)bpmem.zmode.testenable, (int)bpmem.zmode.func,
- (int)bpmem.zmode.updateenable);
+ PRIM_LOG("zmode: test=%u, func=%u, upd=%u", bpmem.zmode.testenable.Value(),
+ bpmem.zmode.func.Value(), bpmem.zmode.updateenable.Value());
SetDepthMode();
+ PixelShaderManager::SetZModeControl();
return;
case BPMEM_BLENDMODE: // Blending Control
if (bp.changes & 0xFFFF)
{
- PRIM_LOG("blendmode: en=%d, open=%d, colupd=%d, alphaupd=%d, dst=%d, src=%d, sub=%d, mode=%d",
- (int)bpmem.blendmode.blendenable, (int)bpmem.blendmode.logicopenable,
- (int)bpmem.blendmode.colorupdate, (int)bpmem.blendmode.alphaupdate,
- (int)bpmem.blendmode.dstfactor, (int)bpmem.blendmode.srcfactor,
- (int)bpmem.blendmode.subtract, (int)bpmem.blendmode.logicmode);
+ PRIM_LOG("blendmode: en=%u, open=%u, colupd=%u, alphaupd=%u, dst=%u, src=%u, sub=%u, mode=%u",
+ bpmem.blendmode.blendenable.Value(), bpmem.blendmode.logicopenable.Value(),
+ bpmem.blendmode.colorupdate.Value(), bpmem.blendmode.alphaupdate.Value(),
+ bpmem.blendmode.dstfactor.Value(), bpmem.blendmode.srcfactor.Value(),
+ bpmem.blendmode.subtract.Value(), bpmem.blendmode.logicmode.Value());
// Set Blending Mode
if (bp.changes)
@@ -424,6 +425,7 @@ static void BPWritten(const BPCmd& bp)
g_renderer->SetColorMask(); // alpha writing needs to be disabled if the new pixel format
// doesn't have an alpha channel
}
+ PixelShaderManager::SetZModeControl();
return;
case BPMEM_MIPMAP_STRIDE: // MipMap Stride Channel