From 2ecca529d1b9f780a217dd93ec382f006ae547e8 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 29 Jun 2015 08:48:19 +0200 Subject: [PATCH] gsdx-tc: log dirty target --- plugins/GSdx/GSTextureCache.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index 7dd5dd6384..8adad2b21f 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -588,6 +588,9 @@ void GSTextureCache::InvalidateVideoMem(GSOffset* off, const GSVector4i& rect, b { if(!found && GSUtil::HasCompatibleBits(psm, t->m_TEX0.PSM)) { + GL_CACHE("TC: Dirty Target(%s) %d (0x%x)", to_string(type), + t->m_texture ? t->m_texture->GetID() : 0, + t->m_TEX0.TBP0); t->m_dirty.push_back(GSDirtyRect(r, psm)); t->m_TEX0.TBW = bw; } @@ -614,6 +617,9 @@ void GSTextureCache::InvalidateVideoMem(GSOffset* off, const GSVector4i& rect, b if(r.bottom > y) { + GL_CACHE("TC: Dirty After Target(%s) %d (0x%x)", to_string(type), + t->m_texture ? t->m_texture->GetID() : 0, + t->m_TEX0.TBP0); // TODO: do not add this rect above too t->m_dirty.push_back(GSDirtyRect(GSVector4i(r.left, r.top - y, r.right, r.bottom - y), psm)); t->m_TEX0.TBW = bw;