Skip to content

Commit f3b1ddd

Browse files
GS/HW: Fix Stolen deswizzle pickup.
Check if swizzle is either palette or depth 32bit format, also check if swizzle format is 32 bit.
1 parent eca63fb commit f3b1ddd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pcsx2/GS/Renderers/HW/GSRendererHW.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6685,7 +6685,8 @@ __ri void GSRendererHW::EmulateTextureSampler(const GSTextureCache::Target* rt,
66856685
}
66866686
}
66876687

6688-
if (m_vt.m_primclass == GS_SPRITE_CLASS && GSLocalMemory::m_psm[m_cached_ctx.TEX0.PSM].pal > 0 && m_index.tail >= 4)
6688+
if (m_vt.m_primclass == GS_SPRITE_CLASS && m_index.tail >= 4 && GSLocalMemory::m_psm[m_cached_ctx.TEX0.PSM].bpp == 32 &&
6689+
((tex->m_from_target_TEX0.PSM & 0x30) == 0x30 || GSLocalMemory::m_psm[m_cached_ctx.TEX0.PSM].pal > 0))
66896690
{
66906691
HandleManualDeswizzle();
66916692
}

0 commit comments

Comments
 (0)