mirror of https://github.com/PCSX2/pcsx2.git
gsdx tc: check compatible bit when wrote in middle of target
All maths are wrong otherwise. Fix half screen issue in WRC
This commit is contained in:
parent
a49b3c9bf6
commit
fa826b3167
|
@ -820,7 +820,7 @@ void GSTextureCache::InvalidateVideoMem(GSOffset* off, const GSVector4i& rect, b
|
||||||
// FIXME: this code "fixes" black FMV issue with rule of rose.
|
// FIXME: this code "fixes" black FMV issue with rule of rose.
|
||||||
#if 1
|
#if 1
|
||||||
// Greg: I'm not sure the 'bw' equality is required but it won't hurt too much
|
// Greg: I'm not sure the 'bw' equality is required but it won't hurt too much
|
||||||
if (t->m_TEX0.TBW == bw && t->Inside(bp, bw, psm, rect)) {
|
if (t->m_TEX0.TBW == bw && t->Inside(bp, bw, psm, rect) && GSUtil::HasCompatibleBits(psm, t->m_TEX0.PSM)) {
|
||||||
uint32 rowsize = bw * 8192u;
|
uint32 rowsize = bw * 8192u;
|
||||||
uint32 offset = (uint32)((bp - t->m_TEX0.TBP0) * 256);
|
uint32 offset = (uint32)((bp - t->m_TEX0.TBP0) * 256);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue