فهرست منبع

Shader JIT: Fix SGE/SGEI NaN behavior
SGE was incorrectly emulated w.r.t. NaN behavior as the CMPSS SSE
instruction was used with NLT

aroulin 11 سال پیش
والد
کامیت
84959be150
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/video_core/shader/shader_jit_x64.cpp

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

@@ -434,10 +434,10 @@ void JitCompiler::Compile_SGE(Instruction instr) {
         Compile_SwizzleSrc(instr, 2, instr.common.src2, SRC2);
         Compile_SwizzleSrc(instr, 2, instr.common.src2, SRC2);
     }
     }
 
 
-    CMPPS(SRC1, R(SRC2), CMP_NLT);
-    ANDPS(SRC1, R(ONE));
+    CMPPS(SRC2, R(SRC1), CMP_LE);
+    ANDPS(SRC2, R(ONE));
 
 
-    Compile_DestEnable(instr, SRC1);
+    Compile_DestEnable(instr, SRC2);
 }
 }
 
 
 void JitCompiler::Compile_SLT(Instruction instr) {
 void JitCompiler::Compile_SLT(Instruction instr) {