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_vulkan | |
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_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 3fb016b96..0d943a826 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -1682,10 +1682,13 @@ public: switch (index) { case Tegra::Shader::Pred::NeverExecute: target = decomp.v_false; + break; case Tegra::Shader::Pred::UnusedIndex: target = decomp.v_true; + break; default: target = decomp.predicates.at(index); + break; } } else if (const auto flag = std::get_if<InternalFlagNode>(&*cc)) { target = decomp.internal_flags.at(static_cast<u32>(flag->GetFlag())); |