summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/BPStructs.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-06-28 17:58:52 +0000
committerhrydgard <hrydgard@gmail.com>2009-06-28 17:58:52 +0000
commitdfdfbd4a6a5e9cb54f5d72dece335f75674241cd (patch)
tree67e30e94299c17119600688fc423a067f58277a2 /Source/Core/VideoCommon/Src/BPStructs.cpp
parent17f697d856b51ec4d43f41858107bdfabb87134c (diff)
Delete some obsolete junk, in zelda ucode and in gl plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3577 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/BPStructs.cpp21
1 files changed, 4 insertions, 17 deletions
diff --git a/Source/Core/VideoCommon/Src/BPStructs.cpp b/Source/Core/VideoCommon/Src/BPStructs.cpp
index 734b186cd5..74c53906af 100644
--- a/Source/Core/VideoCommon/Src/BPStructs.cpp
+++ b/Source/Core/VideoCommon/Src/BPStructs.cpp
@@ -125,42 +125,28 @@ void BPWritten(const Bypass& bp)
bpmem.blendmode.dstfactor, bpmem.blendmode.srcfactor, bpmem.blendmode.subtract, bpmem.blendmode.logicmode);
// Set LogicOp Blending Mode
if (bp.changes & 2)
- {
- SETSTAT(stats.logicOpMode, bpmem.blendmode.logicopenable != 0 ? bpmem.blendmode.logicmode : stats.logicOpMode);
SetLogicOpMode(bp);
- }
// Set Dithering Mode
if (bp.changes & 4)
- {
- SETSTAT(stats.dither, bpmem.blendmode.dither);
SetDitherMode(bp);
- }
// Set Blending Mode
if (bp.changes & 0xFE1)
- {
- SETSTAT(stats.srcFactor, bpmem.blendmode.srcfactor);
- SETSTAT(stats.dstFactor, bpmem.blendmode.dstfactor);
SetBlendMode(bp);
- }
// Set Color Mask
if (bp.changes & 0x18)
- {
- SETSTAT(stats.alphaUpdate, bpmem.blendmode.alphaupdate);
- SETSTAT(stats.colorUpdate, bpmem.blendmode.colorupdate);
SetColorMask(bp);
- }
}
break;
}
case BPMEM_CONSTANTALPHA: // Set Destination Alpha
{
PRIM_LOG("constalpha: alp=%d, en=%d", bpmem.dstalpha.alpha, bpmem.dstalpha.enable);
- SETSTAT(stats.dstAlphaEnable, bpmem.dstalpha.enable);
- SETSTAT_UINT(stats.dstAlpha, bpmem.dstalpha.alpha);
PixelShaderManager::SetDestAlpha(bpmem.dstalpha);
break;
}
// This is called when the game is done drawing the new frame (eg: like in DX: Begin(); Draw(); End();)
+ // Triggers an interrupt on the PPC side so that the game knows when the GPU has finished drawing.
+ // Tokens are similar.
case BPMEM_SETDRAWDONE:
switch (bp.newvalue & 0xFF)
{
@@ -272,7 +258,7 @@ void BPWritten(const Bypass& bp)
case BPMEM_FOGBMAGNITUDE:
case BPMEM_FOGBEXPONENT:
case BPMEM_FOGPARAM3:
- if(!GetConfig(CONFIG_DISABLEFOG))
+ if (!GetConfig(CONFIG_DISABLEFOG))
PixelShaderManager::SetFogParamChanged();
break;
case BPMEM_FOGCOLOR: // Fog Color
@@ -383,6 +369,7 @@ void BPWritten(const Bypass& bp)
case BPMEM_UNKNOWN2:
case BPMEM_UNKNOWN3:
case BPMEM_UNKNOWN4:
+
break;
// ------------------------------------------------
// On Default, we try to look for other things