gsdx: remove various assertion

Useless or wrong assertion
This commit is contained in:
Gregory Hainaut 2016-11-08 18:57:45 +01:00
parent 809684e9de
commit ed3052dea5
4 changed files with 3 additions and 22 deletions

View File

@ -115,16 +115,8 @@ bool GSClut::WriteTest(const GIFRegTEX0& TEX0, const GIFRegTEXCLUT& TEXCLUT)
case 3: m_CBP[1] = TEX0.CBP; break; case 3: m_CBP[1] = TEX0.CBP; break;
case 4: if(m_CBP[0] == TEX0.CBP) return false; m_CBP[0] = TEX0.CBP; break; case 4: if(m_CBP[0] == TEX0.CBP) return false; m_CBP[0] = TEX0.CBP; break;
case 5: if(m_CBP[1] == TEX0.CBP) return false; m_CBP[1] = TEX0.CBP; break; case 5: if(m_CBP[1] == TEX0.CBP) return false; m_CBP[1] = TEX0.CBP; break;
case 6: case 6: return false; // ffx2 menu
#ifndef DISABLE_WIP_ASSERTION case 7: return false; // ford mustang racing // Bouken Jidai Katsugeki Goemon
ASSERT(0);
#endif
return false; // ffx2 menu
case 7:
#ifndef DISABLE_WIP_ASSERTION
ASSERT(0);
#endif
return false; // ford mustang racing // Bouken Jidai Katsugeki Goemon
default: __assume(0); default: __assume(0);
} }

View File

@ -567,9 +567,6 @@ void GSRendererOGL::EmulateChannelShuffle(GSTexture** rt, const GSTextureCache::
} else { } else {
GL_INS("channel not supported"); GL_INS("channel not supported");
m_channel_shuffle = false; m_channel_shuffle = false;
#ifndef DISABLE_WIP_ASSERTION
ASSERT(0);
#endif
} }
} }
@ -806,9 +803,7 @@ void GSRendererOGL::EmulateTextureSampler(const GSTextureCache::Source* tex)
// Depth + bilinear filtering isn't done yet (And I'm not sure we need it anyway but a game will prove me wrong) // Depth + bilinear filtering isn't done yet (And I'm not sure we need it anyway but a game will prove me wrong)
// So of course, GTA set the linear mode, but sampling is done at texel center so it is equivalent to nearest sampling // So of course, GTA set the linear mode, but sampling is done at texel center so it is equivalent to nearest sampling
#ifndef DISABLE_WIP_ASSERTION
ASSERT(!(psm.depth && m_vt.IsLinear())); ASSERT(!(psm.depth && m_vt.IsLinear()));
#endif
// Performance note: // Performance note:
// 1/ Don't set 0 as it is the default value // 1/ Don't set 0 as it is the default value

View File

@ -500,8 +500,7 @@ float GSState::GetTvRefreshRate()
vertical_frequency = 60; break; vertical_frequency = 60; break;
default: default:
if (videomode == GSVideoMode::Unknown) ASSERT(videomode != GSVideoMode::Unknown);
ASSERT(0);
} }
return vertical_frequency; return vertical_frequency;
@ -1578,7 +1577,6 @@ void GSState::FlushPrim()
break; break;
default: default:
fprintf(stderr, "%d:INVALID PSM 0x%x !!!\n", s_n, m_context->TEX0.PSM); fprintf(stderr, "%d:INVALID PSM 0x%x !!!\n", s_n, m_context->TEX0.PSM);
ASSERT(0);
break; break;
} }
#endif #endif

View File

@ -54,7 +54,3 @@
#ifdef _WIN32 #ifdef _WIN32
//#define ENABLE_OPENCL //#define ENABLE_OPENCL
#endif #endif
// Disable harmless assertion on stuff not yet finish. Or that requires investigation.
// Goal of the define is to allow to run a debug build without too much pain.
//#define DISABLE_WIP_ASSERTION