diff options
author | Lioncash <mathew1800@gmail.com> | 2019-10-16 01:40:42 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-10-16 01:40:58 +0200 |
commit | 6947bf8e44409babf6c551f00c8135edd74ca19d (patch) | |
tree | e6d724dddb24c7985821f9d4257e3ade53d55501 /src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | |
parent | gl_shader_decompiler: Resolve fallthrough within ExprDecompiler's ExprCondCode operator() (diff) | |
download | yuzu-6947bf8e44409babf6c551f00c8135edd74ca19d.tar yuzu-6947bf8e44409babf6c551f00c8135edd74ca19d.tar.gz yuzu-6947bf8e44409babf6c551f00c8135edd74ca19d.tar.bz2 yuzu-6947bf8e44409babf6c551f00c8135edd74ca19d.tar.lz yuzu-6947bf8e44409babf6c551f00c8135edd74ca19d.tar.xz yuzu-6947bf8e44409babf6c551f00c8135edd74ca19d.tar.zst yuzu-6947bf8e44409babf6c551f00c8135edd74ca19d.zip |
Diffstat (limited to '')
-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 8bcd04221..4fb1ca372 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())); |