mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
gl_shader_decompiler: Resolve fallthrough within ExprDecompiler's ExprCondCode operator()
This would previously result in NeverExecute and UnusedIndex being treated as regular predicates.
This commit is contained in:
parent
ba0086e32d
commit
b42a74ff2c
1 changed files with 3 additions and 0 deletions
|
@ -2316,10 +2316,13 @@ public:
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case Tegra::Shader::Pred::NeverExecute:
|
case Tegra::Shader::Pred::NeverExecute:
|
||||||
target = "false";
|
target = "false";
|
||||||
|
break;
|
||||||
case Tegra::Shader::Pred::UnusedIndex:
|
case Tegra::Shader::Pred::UnusedIndex:
|
||||||
target = "true";
|
target = "true";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
target = decomp.GetPredicate(index);
|
target = decomp.GetPredicate(index);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else if (const auto flag = std::get_if<InternalFlagNode>(&*cc)) {
|
} else if (const auto flag = std::get_if<InternalFlagNode>(&*cc)) {
|
||||||
target = decomp.GetInternalFlag(flag->GetFlag());
|
target = decomp.GetInternalFlag(flag->GetFlag());
|
||||||
|
|
Loading…
Reference in a new issue