From 40ecdda19e5b228bb16a35cfadf0aca60ef33912 Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 15 Aug 2018 09:18:55 -0500 Subject: Shader/F2I: Implemented the negate bit in the I2F instruction --- src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3