aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-12-03 22:11:39 -0800
committerGitHub <noreply@github.com>2016-12-03 22:11:39 -0800
commit4f0f88bc6a8ebef8187eb4de784c9eadcd3e8a6d (patch)
tree3fce5859272d2591d3fb4551c8394f4176fe379c
parent647157f99f773ec8bd731912d942ef41e224e053 (diff)
parent2d8097eecca5730c84bd42d861fa2fe35adbc638 (diff)
Merge pull request #2259 from JayFoxRox/fix-fallback
shader_jit: Fix non-SSE4.1 path where FLR would not truncate
-rw-r--r--src/video_core/shader/shader_jit_x64.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp
index 9a3d6ca8f9..c96110bb26 100644
--- a/src/video_core/shader/shader_jit_x64.cpp
+++ b/src/video_core/shader/shader_jit_x64.cpp
@@ -491,7 +491,7 @@ void JitShader::Compile_FLR(Instruction instr) {
if (Common::GetCPUCaps().sse4_1) {
ROUNDFLOORPS(SRC1, R(SRC1));
} else {
- CVTPS2DQ(SRC1, R(SRC1));
+ CVTTPS2DQ(SRC1, R(SRC1));
CVTDQ2PS(SRC1, R(SRC1));
}