From 3f45a3b8b161fe693309bb35a8ff709a610b7654 Mon Sep 17 00:00:00 2001 From: sudonim1 Date: Fri, 12 Mar 2010 22:47:59 +0000 Subject: [PATCH] GSDX: added a couple of macros to cripple gsdx for developer use in diagnosing problems. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2703 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GS.h | 3 +++ plugins/GSdx/GSState.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/plugins/GSdx/GS.h b/plugins/GSdx/GS.h index 44472a4c6f..64bcfc92b1 100644 --- a/plugins/GSdx/GS.h +++ b/plugins/GSdx/GS.h @@ -31,6 +31,9 @@ #define MAX_PAGES 512 #define MAX_BLOCKS 16384 +#define DISABLE_BITMASKING +#define DISABLE_COLCLAMP + #include "GSVector.h" #pragma pack(push, 1) diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index 2281fd3953..a8f991e380 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -792,6 +792,9 @@ void GSState::GIFRegHandlerCOLCLAMP(GIFReg* r) } m_env.COLCLAMP = (GSVector4i)r->COLCLAMP; +#ifdef DISABLE_COLCLAMP + m_env.COLCLAMP.CLAMP = 1; +#endif } template void GSState::GIFRegHandlerTEST(GIFReg* r) @@ -839,6 +842,9 @@ template void GSState::GIFRegHandlerFRAME(GIFReg* r) } m_env.CTXT[i].FRAME = (GSVector4i)r->FRAME; +#ifdef DISABLE_BITMASKING + m_env.CTXT[i].FRAME.FBMSK = GSVector4i::store(GSVector4i::load((int)m_env.CTXT[i].FRAME.FBMSK).eq8(GSVector4i::xffffffff())); +#endif } template void GSState::GIFRegHandlerZBUF(GIFReg* r)