diff options
| author | 2020-07-16 16:05:52 -0300 | |
|---|---|---|
| committer | 2020-07-16 16:05:52 -0300 | |
| commit | 88e57b13e0097210b6852e6372f92fb9f124d544 (patch) | |
| tree | bf0f8d8dd55487b77d04d173ec754e113a4b5174 /src | |
| parent | Merge pull request #4342 from lioncash/endian (diff) | |
| download | yuzu-88e57b13e0097210b6852e6372f92fb9f124d544.tar.gz yuzu-88e57b13e0097210b6852e6372f92fb9f124d544.tar.xz yuzu-88e57b13e0097210b6852e6372f92fb9f124d544.zip | |
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.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_arb_decompiler.cpp | 4 |
1 files changed, 0 insertions, 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) { | |||
| 2044 | } | 2044 | } |
| 2045 | 2045 | ||
| 2046 | std::string ARBDecompiler::Barrier(Operation) { | 2046 | std::string ARBDecompiler::Barrier(Operation) { |
| 2047 | if (!ir.IsDecompiled()) { | ||
| 2048 | LOG_ERROR(Render_OpenGL, "BAR used but shader is not decompiled"); | ||
| 2049 | return {}; | ||
| 2050 | } | ||
| 2051 | AddLine("BAR;"); | 2047 | AddLine("BAR;"); |
| 2052 | return {}; | 2048 | return {}; |
| 2053 | } | 2049 | } |