mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 01:00:01 +00:00
Oops, forgot to multiply.
This commit is contained in:
parent
f426be59b4
commit
062bcceeee
@ -365,10 +365,11 @@ void VertexDecoderJitCache::Jit_WeightsU8ToFloat() {
|
||||
for (j = 0; j < dec_->nweights; j++) {
|
||||
MOVZX(32, 8, tempReg1, MDisp(srcReg, dec_->weightoff + j));
|
||||
CVTSI2SS(fpScratchReg, R(tempReg1));
|
||||
MULSS(fpScratchReg, M(&by128));
|
||||
MOVSS(MDisp(dstReg, dec_->decFmt.w0off + j * 4), fpScratchReg);
|
||||
}
|
||||
while (j & 3) {
|
||||
MOV(32, MDisp(dstReg, dec_->decFmt.w0off + j * 4), Imm8(0));
|
||||
MOV(32, MDisp(dstReg, dec_->decFmt.w0off + j * 4), Imm32(0));
|
||||
j++;
|
||||
}
|
||||
}
|
||||
@ -379,10 +380,11 @@ void VertexDecoderJitCache::Jit_WeightsU16ToFloat() {
|
||||
for (j = 0; j < dec_->nweights; j++) {
|
||||
MOVZX(32, 16, tempReg1, MDisp(srcReg, dec_->weightoff + j * 2));
|
||||
CVTSI2SS(fpScratchReg, R(tempReg1));
|
||||
MULSS(fpScratchReg, M(&by32768));
|
||||
MOVSS(MDisp(dstReg, dec_->decFmt.w0off + j * 4), fpScratchReg);
|
||||
}
|
||||
while (j & 3) {
|
||||
MOV(32, MDisp(dstReg, dec_->decFmt.w0off + j * 4), Imm8(0));
|
||||
MOV(32, MDisp(dstReg, dec_->decFmt.w0off + j * 4), Imm32(0));
|
||||
j++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user