summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-16 01:40:42 +0200
committerLioncash <mathew1800@gmail.com>2019-10-16 01:40:58 +0200
commit6947bf8e44409babf6c551f00c8135edd74ca19d (patch)
treee6d724dddb24c7985821f9d4257e3ade53d55501 /src/video_core
parentgl_shader_decompiler: Resolve fallthrough within ExprDecompiler's ExprCondCode operator() (diff)
downloadyuzu-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 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp3
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()));