mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 20:32:51 +00:00
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
This commit is contained in:
parent
e77dc4e9d2
commit
84959be150
|
@ -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);
|
CMPPS(SRC2, R(SRC1), CMP_LE);
|
||||||
ANDPS(SRC1, R(ONE));
|
ANDPS(SRC2, R(ONE));
|
||||||
|
|
||||||
Compile_DestEnable(instr, SRC1);
|
Compile_DestEnable(instr, SRC2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void JitCompiler::Compile_SLT(Instruction instr) {
|
void JitCompiler::Compile_SLT(Instruction instr) {
|
||||||
|
|
Loading…
Reference in a new issue