diff options
| author | 2015-08-27 10:41:19 -0400 | |
|---|---|---|
| committer | 2015-08-27 10:41:19 -0400 | |
| commit | f1ad4332ad2832b2fb9c9bc6f12133838d33c87a (patch) | |
| tree | 4420d0969c6b2f420c2f98835a67b8ba37667680 /src | |
| parent | Merge pull request #1074 from lioncash/bool (diff) | |
| parent | Shader JIT: Fix float to integer rounding in MOVA (diff) | |
| download | yuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.tar.gz yuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.tar.xz yuzu-f1ad4332ad2832b2fb9c9bc6f12133838d33c87a.zip | |
Merge pull request #1079 from aroulin/albw-jit-bug
Shader JIT: Fix float to integer rounding in MOVA
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 4 |
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) { | |||
| 485 | 485 | ||
| 486 | Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1); | 486 | Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1); |
| 487 | 487 | ||
| 488 | // Convert floats to integers (only care about X and Y components) | 488 | // Convert floats to integers using truncation (only care about X and Y components) |
| 489 | CVTPS2DQ(SRC1, R(SRC1)); | 489 | CVTTPS2DQ(SRC1, R(SRC1)); |
| 490 | 490 | ||
| 491 | // Get result | 491 | // Get result |
| 492 | MOVQ_xmm(R(RAX), SRC1); | 492 | MOVQ_xmm(R(RAX), SRC1); |