From e3e9408b877b151de00d45a22a035c3ad4948b08 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 30 Nov 2013 16:11:54 +0100 Subject: [PATCH] Resurrect the vtx decoder jit option for debugging --- GPU/GLES/VertexDecoder.cpp | 3 +++ UI/GameSettingsScreen.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/GPU/GLES/VertexDecoder.cpp b/GPU/GLES/VertexDecoder.cpp index 919f0c6f29..04f1cd316e 100644 --- a/GPU/GLES/VertexDecoder.cpp +++ b/GPU/GLES/VertexDecoder.cpp @@ -820,6 +820,9 @@ void VertexDecoder::SetVertexType(u32 fmt, VertexDecoderJitCache *jitCache) { // Attempt to JIT as well if (jitCache && g_Config.bVertexDecoderJit) { jitted_ = jitCache->Compile(*this); + if (!jitted_) { + WARN_LOG(G3D, "Vertex decoder JIT failed! fmt = %08x", fmt_);; + } } } diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 5b55cd0901..413825acb8 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -145,11 +145,11 @@ void GameSettingsScreen::CreateViews() { graphicsSettings->Add(new CheckBox(&g_Config.bVertexCache, gs->T("Vertex Cache"))); // Seems solid, so we hide the setting. - // CheckBox *vtxJit = graphicsSettings->Add(new CheckBox(&g_Config.bVertexDecoderJit, gs->T("Vertex Decoder JIT"))); + CheckBox *vtxJit = graphicsSettings->Add(new CheckBox(&g_Config.bVertexDecoderJit, gs->T("Vertex Decoder JIT"))); if (PSP_IsInited()) { swSkin->SetEnabled(false); - // vtxJit->SetEnabled(false); + vtxJit->SetEnabled(false); } graphicsSettings->Add(new CheckBox(&g_Config.bLowQualitySplineBezier, gs->T("LowCurves", "Low quality spline/bezier curves")));