diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-10-22 19:16:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-22 19:16:46 +0200 |
commit | 7ecf9f72289d81f73030b612f19d8cde0de3dad6 (patch) | |
tree | 79545c4e360b949b45163e8c5814bf0cceabf7b0 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #3003 from ReinUsesLisp/flush-mme-trace (diff) | |
parent | vk_shader_decompiler: Resolve fallthrough within ExprDecompiler's ExprCondCode operator() (diff) | |
download | yuzu-7ecf9f72289d81f73030b612f19d8cde0de3dad6.tar yuzu-7ecf9f72289d81f73030b612f19d8cde0de3dad6.tar.gz yuzu-7ecf9f72289d81f73030b612f19d8cde0de3dad6.tar.bz2 yuzu-7ecf9f72289d81f73030b612f19d8cde0de3dad6.tar.lz yuzu-7ecf9f72289d81f73030b612f19d8cde0de3dad6.tar.xz yuzu-7ecf9f72289d81f73030b612f19d8cde0de3dad6.tar.zst yuzu-7ecf9f72289d81f73030b612f19d8cde0de3dad6.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_decompiler.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index a3524a6a9..baec66ff0 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -2314,10 +2314,13 @@ public: switch (index) { case Tegra::Shader::Pred::NeverExecute: target = "false"; + break; case Tegra::Shader::Pred::UnusedIndex: target = "true"; + break; default: target = decomp.GetPredicate(index); + break; } } else if (const auto flag = std::get_if<InternalFlagNode>(&*cc)) { target = decomp.GetInternalFlag(flag->GetFlag()); |