diff options
author | Subv <subv2112@gmail.com> | 2018-06-04 18:58:29 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-06-04 23:41:28 +0200 |
commit | 2933521a08f483d3de80f455326e6f7eb5d3cbae (patch) | |
tree | 83c1e9f6a7ec53b01a58be2c6d8137a6b7117646 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | GPU: Corrected the I2F_R implementation. (diff) | |
download | yuzu-2933521a08f483d3de80f455326e6f7eb5d3cbae.tar yuzu-2933521a08f483d3de80f455326e6f7eb5d3cbae.tar.gz yuzu-2933521a08f483d3de80f455326e6f7eb5d3cbae.tar.bz2 yuzu-2933521a08f483d3de80f455326e6f7eb5d3cbae.tar.lz yuzu-2933521a08f483d3de80f455326e6f7eb5d3cbae.tar.xz yuzu-2933521a08f483d3de80f455326e6f7eb5d3cbae.tar.zst yuzu-2933521a08f483d3de80f455326e6f7eb5d3cbae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index ffb89e4f4..39cb022fe 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1066,7 +1066,12 @@ private: std::string predicate = "(((" + op_a + ") " + comparator + " (" + op_b + ")) " + combiner + " (" + second_pred + "))"; - regs.SetRegisterToFloat(instr.gpr0, 0, predicate + " ? 1.0 : 0.0", 1, 1); + if (instr.fset.bf) { + regs.SetRegisterToFloat(instr.gpr0, 0, predicate + " ? 1.0 : 0.0", 1, 1); + } else { + regs.SetRegisterToInteger(instr.gpr0, false, 0, predicate + " ? 0xFFFFFFFF : 0", 1, + 1); + } break; } default: { |