summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-08-31 15:55:27 +0200
committerbunnei <bunneidev@gmail.com>2015-08-31 15:55:27 +0200
commitd8a78d4d9e8c45e165484779b988636ad5643acc (patch)
tree95194d41fc240609bfdf88a933fee024d0b79b16
parentMerge pull request #1059 from Subv/vertex_offset (diff)
parentShader JIT: Fix SGE/SGEI NaN behavior (diff)
downloadyuzu-d8a78d4d9e8c45e165484779b988636ad5643acc.tar
yuzu-d8a78d4d9e8c45e165484779b988636ad5643acc.tar.gz
yuzu-d8a78d4d9e8c45e165484779b988636ad5643acc.tar.bz2
yuzu-d8a78d4d9e8c45e165484779b988636ad5643acc.tar.lz
yuzu-d8a78d4d9e8c45e165484779b988636ad5643acc.tar.xz
yuzu-d8a78d4d9e8c45e165484779b988636ad5643acc.tar.zst
yuzu-d8a78d4d9e8c45e165484779b988636ad5643acc.zip
-rw-r--r--src/video_core/shader/shader_jit_x64.cpp6
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) {
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) {