diff options
| author | 2018-06-04 22:18:22 -0400 | |
|---|---|---|
| committer | 2018-06-04 22:18:22 -0400 | |
| commit | 00749f5ab3f2e16510e04ea4ca668566d46dae9e (patch) | |
| tree | 06c50b85a88911e89dfb9e615523eed72f5b4bb8 /src | |
| parent | Merge pull request #517 from Subv/iscadd (diff) | |
| parent | gl_shader_decompiler: Implement PredCondition::NotEqual. (diff) | |
| download | yuzu-00749f5ab3f2e16510e04ea4ca668566d46dae9e.tar.gz yuzu-00749f5ab3f2e16510e04ea4ca668566d46dae9e.tar.xz yuzu-00749f5ab3f2e16510e04ea4ca668566d46dae9e.zip | |
Merge pull request #519 from bunnei/pred-not-equal
gl_shader_decompiler: Implement PredCondition::NotEqual.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 30ba9be67..6f66dfbcd 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -645,9 +645,9 @@ private: | |||
| 645 | std::string GetPredicateComparison(Tegra::Shader::PredCondition condition) const { | 645 | std::string GetPredicateComparison(Tegra::Shader::PredCondition condition) const { |
| 646 | using Tegra::Shader::PredCondition; | 646 | using Tegra::Shader::PredCondition; |
| 647 | static const std::unordered_map<PredCondition, const char*> PredicateComparisonStrings = { | 647 | static const std::unordered_map<PredCondition, const char*> PredicateComparisonStrings = { |
| 648 | {PredCondition::LessThan, "<"}, {PredCondition::Equal, "=="}, | 648 | {PredCondition::LessThan, "<"}, {PredCondition::Equal, "=="}, |
| 649 | {PredCondition::LessEqual, "<="}, {PredCondition::GreaterThan, ">"}, | 649 | {PredCondition::LessEqual, "<="}, {PredCondition::GreaterThan, ">"}, |
| 650 | {PredCondition::GreaterEqual, ">="}, | 650 | {PredCondition::NotEqual, "!="}, {PredCondition::GreaterEqual, ">="}, |
| 651 | }; | 651 | }; |
| 652 | 652 | ||
| 653 | auto comparison = PredicateComparisonStrings.find(condition); | 653 | auto comparison = PredicateComparisonStrings.find(condition); |