mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
x86 VertexDecoder jit: Fix typo in 16-bit weight decoder. May fix crashes.
This commit is contained in:
1 parent
61e6054920
commit
0eb3d79de9
2 files changed
+4
-5
No files matched your search
@@ -764,8 +764,8 @@ int VertexDecoder::ToString(char *output) const {
|
||||
}
|
||||
|
||||
VertexDecoderJitCache::VertexDecoderJitCache() {
|
||||
// 32k should be enough.
|
||||
AllocCodeSpace(1024 * 32);
|
||||
// 64k should be enough.
|
||||
AllocCodeSpace(1024 * 64);
|
||||
|
||||
// Add some random code to "help" MSVC's buggy disassembler :(
|
||||
#if defined(_WIN32)
|
||||
@@ -1172,7 +1172,6 @@ JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec) {
|
||||
MOV(32, R(dstReg), MDisp(ESP, 16 + offset + 4));
|
||||
MOV(32, R(counterReg), MDisp(ESP, 16 + offset + 8));
|
||||
#endif
|
||||
|
||||
// Let's not bother with a proper stack frame. We just grab the arguments and go.
|
||||
JumpTarget loopStart = GetCodePtr();
|
||||
for (int i = 0; i < dec.numSteps_; i++) {
|
||||
@@ -1227,7 +1226,7 @@ void VertexDecoderJitCache::Jit_WeightsU16() {
|
||||
MOV(16, MDisp(dstReg, dec_->decFmt.w0off + j * 2), R(tempReg1));
|
||||
}
|
||||
while (j & 3) {
|
||||
MOV(16, MDisp(dstReg, dec_->decFmt.w0off + j * 2), Imm8(0));
|
||||
MOV(16, MDisp(dstReg, dec_->decFmt.w0off + j * 2), Imm16(0));
|
||||
j++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user