diff options
| author | Stenzek <stenzek@gmail.com> | 2017-04-30 00:57:09 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-09-03 14:14:54 +1000 |
| commit | 22b8cbae35b61d6bb3decede17fdadb2cce1233a (patch) | |
| tree | 46cd21a9e8dcbebdbf001c423a04a8ddf50811a8 /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | 5c9bc8b79c0d1049dc021e4c7c7148fa26b46c05 (diff) | |
RenderBase: Drop SetColorMask and SetLogicOpMode
These are now incorporated into the blend state for all backends.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 9706347618..5605284092 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -148,17 +148,7 @@ static void BPWritten(const BPCmd& bp) bpmem.blendmode.dstfactor.Value(), bpmem.blendmode.srcfactor.Value(), bpmem.blendmode.subtract.Value(), bpmem.blendmode.logicmode.Value()); - // Set Blending Mode - if (bp.changes) - SetBlendMode(); - - // Set LogicOp Blending Mode - if (bp.changes & 0xF002) // logicopenable | logicmode - SetLogicOpMode(); - - // Set Color Mask - if (bp.changes & 0x18) // colorupdate | alphaupdate - SetColorMask(); + SetBlendMode(); // Dither if (bp.changes & 0x04) @@ -331,7 +321,6 @@ static void BPWritten(const BPCmd& bp) if (bp.changes) { PixelShaderManager::SetAlphaTestChanged(); - g_renderer->SetColorMask(); SetBlendMode(); } return; @@ -420,11 +409,7 @@ static void BPWritten(const BPCmd& bp) case BPMEM_ZCOMPARE: // Set the Z-Compare and EFB pixel format OnPixelFormatChange(); if (bp.changes & 7) - { SetBlendMode(); // dual source could be activated by changing to PIXELFMT_RGBA6_Z24 - g_renderer->SetColorMask(); // alpha writing needs to be disabled if the new pixel format - // doesn't have an alpha channel - } PixelShaderManager::SetZModeControl(); return; @@ -1414,8 +1399,6 @@ void BPReload() SetGenerationMode(); SetScissor(); SetDepthMode(); - SetLogicOpMode(); SetBlendMode(); - SetColorMask(); OnPixelFormatChange(); } |
