From 8c6cdd02746413954707e377b34a2f9a692c0f63 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 9 Jul 2016 10:13:43 -0700 Subject: [PATCH] Correct CLUT load size. Should be measured in 32 bytes not 16 bytes. See #8850. --- GPU/Common/TextureCacheCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index 5059188cfa..4e88b8d68c 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -360,10 +360,10 @@ void TextureCacheCommon::LoadClut(u32 clutAddr, u32 loadBytes) { } } else { #ifdef _M_SSE - int numBlocks = bytes / 16; if (bytes == loadBytes) { const __m128i *source = (const __m128i *)Memory::GetPointerUnchecked(clutAddr); __m128i *dest = (__m128i *)clutBufRaw_; + int numBlocks = bytes / 32; for (int i = 0; i < numBlocks; i++, source += 2, dest += 2) { __m128i data1 = _mm_loadu_si128(source); __m128i data2 = _mm_loadu_si128(source + 1);