diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-06-28 17:58:52 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-06-28 17:58:52 +0000 |
| commit | dfdfbd4a6a5e9cb54f5d72dece335f75674241cd (patch) | |
| tree | 67e30e94299c17119600688fc423a067f58277a2 /Source/Core | |
| parent | 17f697d856b51ec4d43f41858107bdfabb87134c (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')
| -rw-r--r-- | Source/Core/VideoCommon/Src/BPStructs.cpp | 21 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Src/Statistics.h | 9 |
2 files changed, 4 insertions, 26 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
diff --git a/Source/Core/VideoCommon/Src/Statistics.h b/Source/Core/VideoCommon/Src/Statistics.h index ae4d8e16b4..09d29b6e51 100644 --- a/Source/Core/VideoCommon/Src/Statistics.h +++ b/Source/Core/VideoCommon/Src/Statistics.h @@ -41,15 +41,6 @@ struct Statistics int numVertexLoaders; - int logicOpMode; - int srcFactor; - int dstFactor; - int dither; - int alphaUpdate; - int colorUpdate; - int dstAlphaEnable; - u32 dstAlpha; - float proj_0, proj_1, proj_2, proj_3, proj_4, proj_5, proj_6; float gproj_0, gproj_1, gproj_2, gproj_3, gproj_4, gproj_5; float gproj_6, gproj_7, gproj_8, gproj_9, gproj_10, gproj_11, gproj_12, gproj_13, gproj_14, gproj_15; |
