From d01194da0b90e9ee6f09fef8783aef56c4a3c777 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 3 Sep 2016 00:10:23 +0200 Subject: [PATCH] gsdx sw: help debug * quick way to disable verbose fixed tex0 * use palette address/format when the palette is dumped :) --- plugins/GSdx/GSDrawingContext.cpp | 2 +- plugins/GSdx/GSRendererSW.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GSDrawingContext.cpp b/plugins/GSdx/GSDrawingContext.cpp index 4c8c86f285..ae1f758a9f 100644 --- a/plugins/GSdx/GSDrawingContext.cpp +++ b/plugins/GSdx/GSDrawingContext.cpp @@ -117,7 +117,7 @@ GIFRegTEX0 GSDrawingContext::GetSizeFixedTEX0(int s_n, const GSVector4& st, bool th = extend(uv.y, th); } -#ifdef _DEBUG +#if defined(_DEBUG) && 1 if(TEX0.TW != tw || TEX0.TH != th) { printf("%5d:FixedTEX0 %05x %d %d tw %d=>%d th %d=>%d st (%.0f,%.0f,%.0f,%.0f) uvmax %d,%d wm %d,%d (%d,%d,%d,%d)\n", diff --git a/plugins/GSdx/GSRendererSW.cpp b/plugins/GSdx/GSRendererSW.cpp index c899a5482d..6b8d20f121 100644 --- a/plugins/GSdx/GSRendererSW.cpp +++ b/plugins/GSdx/GSRendererSW.cpp @@ -1672,7 +1672,7 @@ void GSRendererSW::SharedData::UpdateSource() t->Update(GSVector4i(0, 0, 256, 1), global.clut, sizeof(uint32) * 256); - s = format("%05d_f%lld_texp_%05x_%d.bmp", m_parent->s_n - 2, frame, (int)m_parent->m_context->TEX0.TBP0, (int)m_parent->m_context->TEX0.PSM); + s = format("%05d_f%lld_texp_%05x_%d.bmp", m_parent->s_n - 2, frame, (int)m_parent->m_context->TEX0.CBP, (int)m_parent->m_context->TEX0.CPSM); t->Save(root_sw+s);