diff options
author | Subv <subv2112@gmail.com> | 2018-04-29 19:49:41 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-04-29 19:49:41 +0200 |
commit | da32c648bfff39ae28ddda6136b9afa46530cf9a (patch) | |
tree | 6a0c7db0c07e9b1cc919c1bd017451be5354d2b1 | |
parent | Merge pull request #416 from bunnei/shader-ints-p3 (diff) | |
download | yuzu-da32c648bfff39ae28ddda6136b9afa46530cf9a.tar yuzu-da32c648bfff39ae28ddda6136b9afa46530cf9a.tar.gz yuzu-da32c648bfff39ae28ddda6136b9afa46530cf9a.tar.bz2 yuzu-da32c648bfff39ae28ddda6136b9afa46530cf9a.tar.lz yuzu-da32c648bfff39ae28ddda6136b9afa46530cf9a.tar.xz yuzu-da32c648bfff39ae28ddda6136b9afa46530cf9a.tar.zst yuzu-da32c648bfff39ae28ddda6136b9afa46530cf9a.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 27190cc45..96d39c5c7 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -882,6 +882,9 @@ private: case PredCondition::Equal: SetPredicate(instr.fsetp.pred3, '(' + op_a + ") == (" + op_b + ')'); break; + case PredCondition::LessEqual: + SetPredicate(instr.fsetp.pred3, '(' + op_a + ") <= (" + op_b + ')'); + break; default: NGLOG_CRITICAL(HW_GPU, "Unhandled predicate condition: {} (a: {}, b: {})", static_cast<unsigned>(instr.fsetp.cond.Value()), op_a, op_b); @@ -933,6 +936,10 @@ private: regs.SetRegisterToFloat(instr.gpr0, 0, "((" + op_a + ") == (" + op_b + ")) ? 1.0 : 0", 1, 1); break; + case PredCondition::LessEqual: + regs.SetRegisterToFloat(instr.gpr0, 0, + "((" + op_a + ") <= (" + op_b + ")) ? 1.0 : 0", 1, 1); + break; case PredCondition::GreaterThan: regs.SetRegisterToFloat(instr.gpr0, 0, "((" + op_a + ") > (" + op_b + ")) ? 1.0 : 0", 1, 1); |