From 4e47bab754d4611c0a684ea0d7e5c3683b8d363e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 15 Dec 2023 10:02:26 +0100 Subject: [PATCH 1/2] Enable ForceLowerResolutionForEffects for another Tiger game --- assets/compat.ini | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/compat.ini b/assets/compat.ini index f7d36f37e2bc..a3d10cbeb9ed 100644 --- a/assets/compat.ini +++ b/assets/compat.ini @@ -1351,6 +1351,13 @@ UCKS45124 = true UCJS10104 = true NPJG00047 = true +# Tiger Woods 06 - bloom during rain +ULUS10028 = true +ULES00153 = true +ULES00154 = true +ULJM05059 = true +ULAS42020 = true + [ForceLowerResolutionForEffectsOff] # Some games really don't work with this. Ratchet & Clank looks terrible. UCUS98633 = true From acbc9dc94fa0e750deed186738bfc71bf66395f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 15 Dec 2023 10:27:24 +0100 Subject: [PATCH 2/2] DXT5: Fix decoding of alpha channel for textures with a non-mod-4 width. --- GPU/Common/TextureDecoder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GPU/Common/TextureDecoder.cpp b/GPU/Common/TextureDecoder.cpp index da58590db80d..70f0f2187a97 100644 --- a/GPU/Common/TextureDecoder.cpp +++ b/GPU/Common/TextureDecoder.cpp @@ -566,10 +566,11 @@ void DXTDecoder::WriteColorsDXT3(u32 *dst, const DXT3Block *src, int pitch, int void DXTDecoder::WriteColorsDXT5(u32 *dst, const DXT5Block *src, int pitch, int width, int height) { // 48 bits, 3 bit index per pixel, 12 bits per line. - u64 alphadata = ((u64)(u16)src->alphadata1 << 32) | (u32)src->alphadata2; + u64 allAlpha = ((u64)(u16)src->alphadata1 << 32) | (u32)src->alphadata2; for (int y = 0; y < height; y++) { - int colordata = src->color.lines[y]; + uint32_t colordata = src->color.lines[y]; + uint32_t alphadata = allAlpha >> (12 * y); for (int x = 0; x < width; x++) { dst[x] = colors_[colordata & 3] | (alpha_[alphadata & 7] << 24); colordata >>= 2;