diff options
| author | 2015-08-31 08:09:07 +0200 | |
|---|---|---|
| committer | 2015-08-31 08:16:15 +0200 | |
| commit | 84959be150e6369db28e73f979fa77b7be633d9c (patch) | |
| tree | 95194d41fc240609bfdf88a933fee024d0b79b16 /src | |
| parent | Merge pull request #1059 from Subv/vertex_offset (diff) | |
| download | yuzu-84959be150e6369db28e73f979fa77b7be633d9c.tar.gz yuzu-84959be150e6369db28e73f979fa77b7be633d9c.tar.xz yuzu-84959be150e6369db28e73f979fa77b7be633d9c.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index d3cfe109e..c7b63a9b7 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp | |||
| @@ -434,10 +434,10 @@ void JitCompiler::Compile_SGE(Instruction instr) { | |||
| 434 | Compile_SwizzleSrc(instr, 2, instr.common.src2, SRC2); | 434 | Compile_SwizzleSrc(instr, 2, instr.common.src2, SRC2); |
| 435 | } | 435 | } |
| 436 | 436 | ||
| 437 | CMPPS(SRC1, R(SRC2), CMP_NLT); | 437 | CMPPS(SRC2, R(SRC1), CMP_LE); |
| 438 | ANDPS(SRC1, R(ONE)); | 438 | ANDPS(SRC2, R(ONE)); |
| 439 | 439 | ||
| 440 | Compile_DestEnable(instr, SRC1); | 440 | Compile_DestEnable(instr, SRC2); |
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | void JitCompiler::Compile_SLT(Instruction instr) { | 443 | void JitCompiler::Compile_SLT(Instruction instr) { |