Explorar el Código

Merge pull request #1079 from aroulin/albw-jit-bug

Shader JIT: Fix float to integer rounding in MOVA
bunnei hace 11 años
padre
commit
f1ad4332ad
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/video_core/shader/shader_jit_x64.cpp

+ 2 - 2
src/video_core/shader/shader_jit_x64.cpp

@@ -485,8 +485,8 @@ void JitCompiler::Compile_MOVA(Instruction instr) {
 
     Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1);
 
-    // Convert floats to integers (only care about X and Y components)
-    CVTPS2DQ(SRC1, R(SRC1));
+    // Convert floats to integers using truncation (only care about X and Y components)
+    CVTTPS2DQ(SRC1, R(SRC1));
 
     // Get result
     MOVQ_xmm(R(RAX), SRC1);