mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
parent
973d0435c1
commit
1469a32a9d
1 changed files with 7 additions and 1 deletions
|
@ -1391,7 +1391,13 @@ void VertexDecoderJitCache::Jit_PosFloatThrough() {
|
|||
|
||||
CVTTPS2DQ(fpScratchReg, R(fpScratchReg));
|
||||
// Use pack to saturate to 0,65535.
|
||||
PACKUSDW(fpScratchReg, R(fpScratchReg));
|
||||
if (cpu_info.bSSE4_1) {
|
||||
PACKUSDW(fpScratchReg, R(fpScratchReg));
|
||||
} else {
|
||||
PSLLD(fpScratchReg, 16);
|
||||
PSRAD(fpScratchReg, 16);
|
||||
PACKSSDW(fpScratchReg, R(fpScratchReg));
|
||||
}
|
||||
PUNPCKLWD(fpScratchReg, R(fpScratchReg2));
|
||||
CVTDQ2PS(fpScratchReg, R(fpScratchReg));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue