From 16affc9ef4839e1e7f140e680434ab73193695b8 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sun, 26 Jun 2016 18:32:04 +0200 Subject: [PATCH] gsdx tc: potentially fix a regression Update done on f712c5c6d092b187558b519d6e7b88fa117df997 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. --- plugins/GSdx/GSTextureCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index fbd4248210..4a1721493d 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -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; }