From 88e57b13e0097210b6852e6372f92fb9f124d544 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Thu, 16 Jul 2020 16:05:52 -0300 Subject: [PATCH] gl_arb_decompiler: Execute BAR even when inside control flow Unlike GLSL, GLASM allows us to call BAR inside control flow. - Fixes graphical artifacts in Paper Mario. --- src/video_core/renderer_opengl/gl_arb_decompiler.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/video_core/renderer_opengl/gl_arb_decompiler.cpp b/src/video_core/renderer_opengl/gl_arb_decompiler.cpp index eb5158407..34bb05149 100644 --- a/src/video_core/renderer_opengl/gl_arb_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_arb_decompiler.cpp @@ -2044,10 +2044,6 @@ std::string ARBDecompiler::ShuffleIndexed(Operation operation) { } std::string ARBDecompiler::Barrier(Operation) { - if (!ir.IsDecompiled()) { - LOG_ERROR(Render_OpenGL, "BAR used but shader is not decompiled"); - return {}; - } AddLine("BAR;"); return {}; }