diff options
| author | 2018-05-27 12:14:30 -0400 | |
|---|---|---|
| committer | 2018-05-27 12:14:30 -0400 | |
| commit | d809f658275f348043cf481149739113cfb274a8 (patch) | |
| tree | 61a3a1e0a1f3fc360f939559e1dbb4c8a24cc483 /src | |
| parent | Merge pull request #476 from Subv/a1bgr5 (diff) | |
| parent | gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual. (diff) | |
| download | yuzu-d809f658275f348043cf481149739113cfb274a8.tar.gz yuzu-d809f658275f348043cf481149739113cfb274a8.tar.xz yuzu-d809f658275f348043cf481149739113cfb274a8.zip | |
Merge pull request #472 from bunnei/greater-equal
gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index bd22b3a41..75822e750 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -606,10 +606,9 @@ private: | |||
| 606 | std::string GetPredicateComparison(Tegra::Shader::PredCondition condition) const { | 606 | std::string GetPredicateComparison(Tegra::Shader::PredCondition condition) const { |
| 607 | using Tegra::Shader::PredCondition; | 607 | using Tegra::Shader::PredCondition; |
| 608 | static const std::unordered_map<PredCondition, const char*> PredicateComparisonStrings = { | 608 | static const std::unordered_map<PredCondition, const char*> PredicateComparisonStrings = { |
| 609 | {PredCondition::LessThan, "<"}, | 609 | {PredCondition::LessThan, "<"}, {PredCondition::Equal, "=="}, |
| 610 | {PredCondition::Equal, "=="}, | 610 | {PredCondition::LessEqual, "<="}, {PredCondition::GreaterThan, ">"}, |
| 611 | {PredCondition::LessEqual, "<="}, | 611 | {PredCondition::GreaterEqual, ">="}, |
| 612 | {PredCondition::GreaterThan, ">"}, | ||
| 613 | }; | 612 | }; |
| 614 | 613 | ||
| 615 | auto comparison = PredicateComparisonStrings.find(condition); | 614 | auto comparison = PredicateComparisonStrings.find(condition); |