diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-23 05:34:13 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:52 +0100 |
commit | d6f76307febaa2deb05112bb2c29ed667210ee2b (patch) | |
tree | 795391d4e3e94847da094aa39c01d3fdcaaaf9a2 /src/video_core | |
parent | shader_decode: Implement POPC (diff) | |
download | yuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.tar yuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.tar.gz yuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.tar.bz2 yuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.tar.lz yuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.tar.xz yuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.tar.zst yuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/shader/glsl_decompiler.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/video_core/shader/glsl_decompiler.cpp b/src/video_core/shader/glsl_decompiler.cpp index 1aff62882..abc9a556d 100644 --- a/src/video_core/shader/glsl_decompiler.cpp +++ b/src/video_core/shader/glsl_decompiler.cpp @@ -915,16 +915,6 @@ private: std::string HNegate(Operation operation) { const auto GetNegate = [&](std::size_t index) -> std::string { - if (const auto pred = std::get_if<PredicateNode>(operation[index])) { - if (!pred->IsNegated()) { - switch (pred->GetIndex()) { - case Tegra::Shader::Pred::UnusedIndex: - return "-1"; - case Tegra::Shader::Pred::NeverExecute: - return "1"; - } - } - } return VisitOperand(operation, index, Type::Bool) + " ? -1 : 1"; }; const std::string value = '(' + VisitOperand(operation, 0, Type::HalfFloat) + " * vec2(" + |