mirror of https://github.com/PCSX2/pcsx2.git
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
This commit is contained in:
parent
e8c73cef42
commit
3f45a3b8b1
|
@ -31,6 +31,9 @@
|
||||||
#define MAX_PAGES 512
|
#define MAX_PAGES 512
|
||||||
#define MAX_BLOCKS 16384
|
#define MAX_BLOCKS 16384
|
||||||
|
|
||||||
|
#define DISABLE_BITMASKING
|
||||||
|
#define DISABLE_COLCLAMP
|
||||||
|
|
||||||
#include "GSVector.h"
|
#include "GSVector.h"
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
|
|
|
@ -792,6 +792,9 @@ void GSState::GIFRegHandlerCOLCLAMP(GIFReg* r)
|
||||||
}
|
}
|
||||||
|
|
||||||
m_env.COLCLAMP = (GSVector4i)r->COLCLAMP;
|
m_env.COLCLAMP = (GSVector4i)r->COLCLAMP;
|
||||||
|
#ifdef DISABLE_COLCLAMP
|
||||||
|
m_env.COLCLAMP.CLAMP = 1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int i> void GSState::GIFRegHandlerTEST(GIFReg* r)
|
template<int i> void GSState::GIFRegHandlerTEST(GIFReg* r)
|
||||||
|
@ -839,6 +842,9 @@ template<int i> void GSState::GIFRegHandlerFRAME(GIFReg* r)
|
||||||
}
|
}
|
||||||
|
|
||||||
m_env.CTXT[i].FRAME = (GSVector4i)r->FRAME;
|
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<int i> void GSState::GIFRegHandlerZBUF(GIFReg* r)
|
template<int i> void GSState::GIFRegHandlerZBUF(GIFReg* r)
|
||||||
|
|
Loading…
Reference in New Issue