diff options
author | Subv <subv2112@gmail.com> | 2018-07-03 02:48:15 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-03 02:48:15 +0200 |
commit | 6e4e0b2b41eee7309bbf3f9a92368482b5d49232 (patch) | |
tree | ecb93e1ca902f503c84ad22a35ff47a241947c7b /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #602 from Subv/mufu_subop (diff) | |
download | yuzu-6e4e0b2b41eee7309bbf3f9a92368482b5d49232.tar yuzu-6e4e0b2b41eee7309bbf3f9a92368482b5d49232.tar.gz yuzu-6e4e0b2b41eee7309bbf3f9a92368482b5d49232.tar.bz2 yuzu-6e4e0b2b41eee7309bbf3f9a92368482b5d49232.tar.lz yuzu-6e4e0b2b41eee7309bbf3f9a92368482b5d49232.tar.xz yuzu-6e4e0b2b41eee7309bbf3f9a92368482b5d49232.tar.zst yuzu-6e4e0b2b41eee7309bbf3f9a92368482b5d49232.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
1 files changed, 4 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 bbccf0bfd..8e5465f40 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -917,6 +917,10 @@ private: regs.SetRegisterToFloat(instr.gpr0, 0, "inversesqrt(" + op_a + ')', 1, 1, instr.alu.saturate_d); break; + case SubOp::Sqrt: + regs.SetRegisterToFloat(instr.gpr0, 0, "sqrt(" + op_a + ')', 1, 1, + instr.alu.saturate_d); + break; default: NGLOG_CRITICAL(HW_GPU, "Unhandled MUFU sub op: {0:x}", static_cast<unsigned>(instr.sub_op.Value())); |