diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-13 02:03:45 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-07-13 02:04:35 +0200 |
commit | 49c0c081c47fd0b56f4e026e8a6998dff20b32c4 (patch) | |
tree | 33f0ff56853da10fdf3ce33e9ce7d82cd6dc74b9 /src/video_core/renderer_opengl | |
parent | Merge pull request #652 from Subv/fadd32i (diff) | |
download | yuzu-49c0c081c47fd0b56f4e026e8a6998dff20b32c4.tar yuzu-49c0c081c47fd0b56f4e026e8a6998dff20b32c4.tar.gz yuzu-49c0c081c47fd0b56f4e026e8a6998dff20b32c4.tar.bz2 yuzu-49c0c081c47fd0b56f4e026e8a6998dff20b32c4.tar.lz yuzu-49c0c081c47fd0b56f4e026e8a6998dff20b32c4.tar.xz yuzu-49c0c081c47fd0b56f4e026e8a6998dff20b32c4.tar.zst yuzu-49c0c081c47fd0b56f4e026e8a6998dff20b32c4.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index c29cabb84..c1efca23b 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -728,10 +728,10 @@ private: const std::string& op_a, const std::string& op_b) const { using Tegra::Shader::PredCondition; static const std::unordered_map<PredCondition, const char*> PredicateComparisonStrings = { - {PredCondition::LessThan, "<"}, {PredCondition::Equal, "=="}, - {PredCondition::LessEqual, "<="}, {PredCondition::GreaterThan, ">"}, - {PredCondition::NotEqual, "!="}, {PredCondition::GreaterEqual, ">="}, - {PredCondition::NotEqualWithNan, "!="}, + {PredCondition::LessThan, "<"}, {PredCondition::Equal, "=="}, + {PredCondition::LessEqual, "<="}, {PredCondition::GreaterThan, ">"}, + {PredCondition::NotEqual, "!="}, {PredCondition::GreaterEqual, ">="}, + {PredCondition::LessThanWithNan, "<"}, {PredCondition::NotEqualWithNan, "!="}, }; const auto& comparison{PredicateComparisonStrings.find(condition)}; @@ -739,7 +739,8 @@ private: "Unknown predicate comparison operation"); std::string predicate{'(' + op_a + ") " + comparison->second + " (" + op_b + ')'}; - if (condition == PredCondition::NotEqualWithNan) { + if (condition == PredCondition::LessThanWithNan || + condition == PredCondition::NotEqualWithNan) { predicate += " || isnan(" + op_a + ") || isnan(" + op_b + ')'; } |