diff options
| author | bunnei <bunneidev@gmail.com> | 2020-05-13 09:51:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-13 09:51:14 -0400 |
| commit | b1a1bd12cae560b39c718b7188db0d8eae975917 (patch) | |
| tree | 4b30162771fc25000519ab57bfcf8e2b0b32c96e /src/video_core/shader/decode.cpp | |
| parent | 1beaebe666ac97d34dbbd59731742b751a01e603 (diff) | |
| parent | 8b329ddcc9b39353b9545289b3bd653a77db0103 (diff) | |
Merge pull request #3899 from ReinUsesLisp/float-comparisons
shader_ir: Add separate instructions for ordered and unordered comparisons and fix NE on GLSL
Diffstat (limited to 'src/video_core/shader/decode.cpp')
| -rw-r--r-- | src/video_core/shader/decode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/decode.cpp b/src/video_core/shader/decode.cpp index a75a5cc63..eeac328a6 100644 --- a/src/video_core/shader/decode.cpp +++ b/src/video_core/shader/decode.cpp @@ -255,7 +255,7 @@ void ShaderIR::InsertControlFlow(NodeBlock& bb, const ShaderBlock& block) { Node n = Operation(OperationCode::Branch, Immediate(branch_case.address)); Node op_b = Immediate(branch_case.cmp_value); Node condition = - GetPredicateComparisonInteger(Tegra::Shader::PredCondition::Equal, false, op_a, op_b); + GetPredicateComparisonInteger(Tegra::Shader::PredCondition::EQ, false, op_a, op_b); auto result = Conditional(condition, {n}); bb.push_back(result); global_code.push_back(result); |
