From 9cd4984f7c1a7f93a60d62ee4613ee4bc93ceed5 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 6 Oct 2016 00:11:35 +0200 Subject: [PATCH] gsdx debug: more log --- plugins/GSdx/GSState.cpp | 2 +- plugins/GSdx/GSTextureCache.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index d0c81b04e3..9d68ad0c02 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -1510,7 +1510,7 @@ void GSState::FlushPrim() { if(m_index.tail > 0) { - GL_REG("FlushPrim"); + GL_REG("FlushPrim ctxt %d", PRIM->CTXT); GSVertex buff[2]; s_n++; diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index 29a7715fb4..316d2dbe4c 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -333,9 +333,10 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con src = CreateSource(TEX0, TEXA, dst, half_right); } else { - GL_CACHE("TC: src hit: %d (0x%x, %s)", + GL_CACHE("TC: src hit: %d (0x%x, 0x%x, %s)", src->m_texture ? src->m_texture->GetID() : 0, - TEX0.TBP0, psm_str(TEX0.PSM)); + TEX0.TBP0, psm_s.pal > 0 ? TEX0.CBP : 0, + psm_str(TEX0.PSM)); } if (src->m_palette)