mirror of https://github.com/PCSX2/pcsx2.git
gsdx tc: potentially fix a regression
Update done on f712c5c6d0
Previous code use the size of the draw to compute latest block. I
don't know why I use .x/.y which are the origin offset so the start of the block.
This commit is contained in:
parent
2844facae5
commit
16affc9ef4
|
@ -1852,7 +1852,7 @@ void GSTextureCache::Target::UpdateValidity(const GSVector4i& rect)
|
|||
|
||||
bool GSTextureCache::Target::Inside(uint32 bp, uint32 bw, uint32 psm, const GSVector4i& rect)
|
||||
{
|
||||
uint32 block = GSLocalMemory::m_psm[psm].bn(rect.x, rect.y, bp, bw);
|
||||
uint32 block = GSLocalMemory::m_psm[psm].bn(rect.width(), rect.height(), bp, bw);
|
||||
|
||||
return bp > m_TEX0.TBP0 && block < m_end_block;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue