diff options
author | Subv <subv2112@gmail.com> | 2018-08-15 16:18:55 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-08-15 16:18:55 +0200 |
commit | 40ecdda19e5b228bb16a35cfadf0aca60ef33912 (patch) | |
tree | bbaf513ea2dcbc00deb8378ecfc9c5730d60abbc /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Shader/F2I: Implemented the F2I_C instruction variant. (diff) | |
download | yuzu-40ecdda19e5b228bb16a35cfadf0aca60ef33912.tar yuzu-40ecdda19e5b228bb16a35cfadf0aca60ef33912.tar.gz yuzu-40ecdda19e5b228bb16a35cfadf0aca60ef33912.tar.bz2 yuzu-40ecdda19e5b228bb16a35cfadf0aca60ef33912.tar.lz yuzu-40ecdda19e5b228bb16a35cfadf0aca60ef33912.tar.xz yuzu-40ecdda19e5b228bb16a35cfadf0aca60ef33912.tar.zst yuzu-40ecdda19e5b228bb16a35cfadf0aca60ef33912.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_decompiler.cpp')
-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 054b8b13d..aa8ce5a7a 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1261,6 +1261,10 @@ private: op_a = "abs(" + op_a + ')'; } + if (instr.conversion.negate_a) { + op_a = "-(" + op_a + ')'; + } + regs.SetRegisterToFloat(instr.gpr0, 0, op_a, 1, 1); break; } |