Browse Source
Merge pull request #519 from bunnei/pred-not-equal
gl_shader_decompiler: Implement PredCondition::NotEqual.
pull/15/merge
bunnei
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
src/video_core/renderer_opengl/gl_shader_decompiler.cpp
|
|
|
@ -645,9 +645,9 @@ private: |
|
|
|
std::string GetPredicateComparison(Tegra::Shader::PredCondition condition) const { |
|
|
|
using Tegra::Shader::PredCondition; |
|
|
|
static const std::unordered_map<PredCondition, const char*> PredicateComparisonStrings = { |
|
|
|
{PredCondition::LessThan, "<"}, {PredCondition::Equal, "=="}, |
|
|
|
{PredCondition::LessEqual, "<="}, {PredCondition::GreaterThan, ">"}, |
|
|
|
{PredCondition::GreaterEqual, ">="}, |
|
|
|
{PredCondition::LessThan, "<"}, {PredCondition::Equal, "=="}, |
|
|
|
{PredCondition::LessEqual, "<="}, {PredCondition::GreaterThan, ">"}, |
|
|
|
{PredCondition::NotEqual, "!="}, {PredCondition::GreaterEqual, ">="}, |
|
|
|
}; |
|
|
|
|
|
|
|
auto comparison = PredicateComparisonStrings.find(condition); |
|
|
|
|