diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-03 04:26:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-03 04:26:42 +0200 |
commit | 5410b4659d7572e71b3824ab39a18a865d5d803f (patch) | |
tree | 5a7e9b81ad3d7a990a13f79d8875f4c2b62be6fc /src/video_core/renderer_opengl | |
parent | Merge pull request #608 from Subv/depth (diff) | |
parent | GPU: Implemented MUFU suboperation 8, sqrt. (diff) | |
download | yuzu-5410b4659d7572e71b3824ab39a18a865d5d803f.tar yuzu-5410b4659d7572e71b3824ab39a18a865d5d803f.tar.gz yuzu-5410b4659d7572e71b3824ab39a18a865d5d803f.tar.bz2 yuzu-5410b4659d7572e71b3824ab39a18a865d5d803f.tar.lz yuzu-5410b4659d7572e71b3824ab39a18a865d5d803f.tar.xz yuzu-5410b4659d7572e71b3824ab39a18a865d5d803f.tar.zst yuzu-5410b4659d7572e71b3824ab39a18a865d5d803f.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-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())); |