From b19d41f9a8186d6ee8a3cc71a0bb55cf2304f9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 6 Nov 2013 10:51:21 +0100 Subject: [PATCH] Now that LDRH works, use it where appropriate --- GPU/GLES/VertexDecoder.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/GPU/GLES/VertexDecoder.cpp b/GPU/GLES/VertexDecoder.cpp index cb5cbe7bb5..a566967e45 100644 --- a/GPU/GLES/VertexDecoder.cpp +++ b/GPU/GLES/VertexDecoder.cpp @@ -857,8 +857,11 @@ JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec) { B_CC(CC_NEQ, loopStart); POP(8, R4, R5, R6, R7, R8, R9, R10, _PC); - + // DisassembleArm(start, GetCodePtr() - start); + // char temp[1024] = {0}; + // dec.ToString(temp); + // INFO_LOG(HLE, "%s", temp); return (JittedVertexDecoder)start; } @@ -931,7 +934,7 @@ void VertexDecoderJitCache::Jit_TcFloat() { } void VertexDecoderJitCache::Jit_TcU16Through() { - LDR(tempReg1, srcReg, dec_->tcoff); + LDR(tempReg1, srcReg, dec_->tcoff); // possibly unaligned access STR(tempReg1, dstReg, dec_->decFmt.uvoff); } @@ -948,8 +951,7 @@ void VertexDecoderJitCache::Jit_Color8888() { } void VertexDecoderJitCache::Jit_Color4444() { - // Ignoring the top 16 bits. - LDR(tempReg1, srcReg, dec_->coloff); + LDRH(tempReg1, srcReg, dec_->coloff); // Spread out the components. ANDI2R(tempReg2, tempReg1, 0x000F, scratchReg); @@ -967,8 +969,7 @@ void VertexDecoderJitCache::Jit_Color4444() { } void VertexDecoderJitCache::Jit_Color565() { - // Ignoring the top 16 bits. - LDR(tempReg1, srcReg, dec_->coloff); + LDRH(tempReg1, srcReg, dec_->coloff); // Spread out R and B first. This puts them in 0x001F001F. ANDI2R(tempReg2, tempReg1, 0x001F, scratchReg); @@ -995,8 +996,7 @@ void VertexDecoderJitCache::Jit_Color565() { } void VertexDecoderJitCache::Jit_Color5551() { - // Ignoring the top 16 bits. - LDR(tempReg1, srcReg, dec_->coloff); + LDRH(tempReg1, srcReg, dec_->coloff); ANDI2R(tempReg2, tempReg1, 0x001F, scratchReg); ANDI2R(tempReg3, tempReg1, 0x07E0, scratchReg);