From b8188a7954be0c139f8edfc2d77f947be52c6fe9 Mon Sep 17 00:00:00 2001 From: iMineLink Date: Sun, 6 Feb 2022 00:23:13 +0100 Subject: [PATCH] GS: remove bw equality check in tex in rt. fixes jak mipmapping. --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index 054afc65a6..2e74f0c009 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -329,10 +329,9 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con found_t = true; break; } - else if (texture_inside_rt && bw == t->m_TEX0.TBW && psm == PSM_PSMCT32 && t->m_TEX0.PSM == psm && + else if (texture_inside_rt && psm == PSM_PSMCT32 && t->m_TEX0.PSM == psm && ((t->m_TEX0.TBP0 < bp && t->m_end_block >= bp) || t_wraps)) { - // BW equality needed because CreateSource does not handle BW conversion. // Only PSMCT32 to limit false hits. // PSM equality needed because CreateSource does not handle PSM conversion. // Only inclusive hit to limit false hits.