mirror of https://github.com/PCSX2/pcsx2.git
GS/TC: Don't split/resize buffer when texture buffer width is 0.
Textures wrap within a single page.
This commit is contained in:
parent
2ad71d046b
commit
83ebbe95c5
|
@ -3452,8 +3452,9 @@ bool GSTextureCache::PreloadTarget(GIFRegTEX0 TEX0, const GSVector2i& size, cons
|
|||
continue;
|
||||
}
|
||||
|
||||
// could be overwriting a double buffer, so if it's the second half of it, just reduce the size down to half.
|
||||
if (((((t->UnwrappedEndBlock() + 1) - t->m_TEX0.TBP0) >> 1) + t->m_TEX0.TBP0) == dst->m_TEX0.TBP0 && dst->m_TEX0.TBW == t->m_TEX0.TBW)
|
||||
// Could be overwriting a double buffer, so if it's the second half of it, just reduce the size down to half.
|
||||
// Don't split/resize buffer when TBW is 0, textures wrap within a single page.
|
||||
if (((((t->UnwrappedEndBlock() + 1) - t->m_TEX0.TBP0) >> 1) + t->m_TEX0.TBP0) == dst->m_TEX0.TBP0 && dst->m_TEX0.TBW == t->m_TEX0.TBW && dst->m_TEX0.TBW != 0)
|
||||
{
|
||||
GSVector4i new_valid = t->m_valid;
|
||||
new_valid.w /= 2;
|
||||
|
|
Loading…
Reference in New Issue