فهرست منبع

Shader/F2I: Implemented the negate bit in the F2I instruction.

Subv 8 سال پیش
والد
کامیت
11c221cc62
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 4 - 0
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@@ -1306,6 +1306,10 @@ private:
                     op_a = "abs(" + op_a + ')';
                 }
 
+                if (instr.conversion.negate_a) {
+                    op_a = "-(" + op_a + ')';
+                }
+
                 switch (instr.conversion.f2i.rounding) {
                 case Tegra::Shader::F2iRoundingOp::None:
                     break;