mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-11 16:13:11 +00:00
Merge pull request #1079 from aroulin/albw-jit-bug
Shader JIT: Fix float to integer rounding in MOVA
This commit is contained in:
commit
f1ad4332ad
|
@ -485,8 +485,8 @@ void JitCompiler::Compile_MOVA(Instruction instr) {
|
||||||
|
|
||||||
Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1);
|
Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1);
|
||||||
|
|
||||||
// Convert floats to integers (only care about X and Y components)
|
// Convert floats to integers using truncation (only care about X and Y components)
|
||||||
CVTPS2DQ(SRC1, R(SRC1));
|
CVTTPS2DQ(SRC1, R(SRC1));
|
||||||
|
|
||||||
// Get result
|
// Get result
|
||||||
MOVQ_xmm(R(RAX), SRC1);
|
MOVQ_xmm(R(RAX), SRC1);
|
||||||
|
|
Loading…
Reference in a new issue