Permalink
Browse files

Fix software skinning

  • Loading branch information...
hrydgard committed Jul 7, 2017
1 parent 087c118 commit f5e110018b3834bb745bff165e6ea685b65d7849
Showing with 5 additions and 5 deletions.
  1. +5 −5 GPU/Common/VertexDecoderX86.cpp
@@ -206,12 +206,12 @@ JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec, int
MOVAPS(XMM4, MatR(tempReg1));
MOV(PTRBITS, R(tempReg1), ImmPtr(&aOne));
MOVUPS(XMM5, MatR(tempReg1));
MOV(PTRBITS, R(tempReg2), ImmPtr(gstate.boneMatrix));
MOV(PTRBITS, R(tempReg1), ImmPtr(gstate.boneMatrix));
for (int i = 0; i < dec.nweights; i++) {
MOVUPS(XMM0, MDisp(tempReg2, 12 * i));
MOVUPS(XMM1, MDisp(tempReg2, 12 * i + 3));
MOVUPS(XMM2, MDisp(tempReg2, 12 * i + 3 * 2));
MOVUPS(XMM3, MDisp(tempReg2, 12 * i + 3 * 3));
MOVUPS(XMM0, MDisp(tempReg1, (12 * i) * 4));
MOVUPS(XMM1, MDisp(tempReg1, (12 * i + 3) * 4));
MOVUPS(XMM2, MDisp(tempReg1, (12 * i + 3 * 2) * 4));
MOVUPS(XMM3, MDisp(tempReg1, (12 * i + 3 * 3) * 4));
ANDPS(XMM0, R(XMM4));
ANDPS(XMM1, R(XMM4));
ANDPS(XMM2, R(XMM4));

0 comments on commit f5e1100

Please sign in to comment.