summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-08-27 16:41:19 +0200
committerbunnei <bunneidev@gmail.com>2015-08-27 16:41:19 +0200
commitf1ad4332ad2832b2fb9c9bc6f12133838d33c87a (patch)
tree4420d0969c6b2f420c2f98835a67b8ba37667680
parentMerge pull request #1074 from lioncash/bool (diff)
parentShader JIT: Fix float to integer rounding in MOVA (diff)
downloadyuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.tar
yuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.tar.gz
yuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.tar.bz2
yuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.tar.lz
yuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.tar.xz
yuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.tar.zst
yuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.zip
-rw-r--r--src/video_core/shader/shader_jit_x64.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp
index cc66fc8d6..a8045d4b0 100644
--- a/src/video_core/shader/shader_jit_x64.cpp
+++ b/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);