1
0
mirror of https://github.com/citra-emu/citra.git synced 2024-12-21 07:20:07 +00:00

Shader JIT: Fix float to integer rounding in MOVA

MOVA converts new address register values from floats to integers using truncation
This commit is contained in:
aroulin 2015-08-27 15:21:05 +02:00
parent 32e279c0ca
commit f52d8c1a9b

View File

@ -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);