diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-08-23 09:20:36 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-08-23 09:20:36 +0000 |
| commit | f82bf2ae9abbf2cfeef5ad88a1a8d55ff0171afa (patch) | |
| tree | a0fac34e4e58a9f5125370aae43fe3d1ce124a24 /Source/Plugins/Plugin_VideoOGL | |
| parent | 0becaa3223e57557b9d53bf1564d8da9eff0a64c (diff) | |
Lots of FP hacking for little gain, super monkey ball is only slightly more sane (wow, it rhymed). Temporary no-speed-limit hack: Hold TAB.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@279 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp b/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp index 29d69fc0ed..9ef9f03b53 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp @@ -145,23 +145,26 @@ bool FifoCommandRunnable(void) case GX_LOAD_XF_REG:
{
// check if we can read the header
- if (iBufferSize >= 5) {
+ if (iBufferSize >= 5)
+ {
iCommandSize = 1 + 4;
u32 Cmd2 = PeekFifo32(1);
- int dwTransferSize = ((Cmd2>>16)&15) + 1;
+ int dwTransferSize = ((Cmd2 >> 16) & 15) + 1;
iCommandSize += dwTransferSize * 4;
}
- else {
+ else
+ {
return false;
}
}
break;
default:
- if (Cmd&0x80)
+ if (Cmd & 0x80)
{
// check if we can read the header
- if (iBufferSize >= 3) {
+ if (iBufferSize >= 3)
+ {
iCommandSize = 1 + 2;
u16 numVertices = PeekFifo16(1);
VertexLoader& vtxLoader = g_VertexLoaders[Cmd & GX_VAT_MASK];
@@ -189,7 +192,7 @@ bool FifoCommandRunnable(void) if (iCommandSize > iBufferSize)
return false;
- INFO_LOG("OP detected: Cmd 0x%x size %i buffer %i",Cmd, iCommandSize, iBufferSize);
+ // INFO_LOG("OP detected: Cmd 0x%x size %i buffer %i",Cmd, iCommandSize, iBufferSize);
return true;
}
@@ -268,7 +271,7 @@ void Decode(void) {
// load vertices
u16 numVertices = g_pDataReader->Read16();
- if( numVertices > 0 ) {
+ if (numVertices > 0) {
g_VertexLoaders[Cmd & GX_VAT_MASK].RunVertices((Cmd & GX_PRIMITIVE_MASK) >> GX_PRIMITIVE_SHIFT, numVertices);
}
}
|
