mirror of https://github.com/PCSX2/pcsx2.git
GregMiscellaneous: zzogl-pg: Various legacy printfs were hanging around. Change a few messages to just be in Debug mode.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3923 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
fca1ca1e0a
commit
87054c5452
|
@ -346,7 +346,7 @@ union tex_0_info
|
|||
|
||||
u32 psm_fix()
|
||||
{
|
||||
// printf ("psm %d\n", psm);
|
||||
// ZZLog::Debug_Log("psm %d\n", psm);
|
||||
if (psm == 9) return 1;
|
||||
|
||||
return psm;
|
||||
|
@ -675,7 +675,7 @@ static __forceinline int ZZOglGet_psm_TexBitsFix(u32 data)
|
|||
{
|
||||
//return tex_0_info(data).psm_fix();
|
||||
int result = ZZOglGet_psm_TexBits(data) ;
|
||||
// printf ("result %d\n", result);
|
||||
// ZZLog::Debug_Log("result %d", result);
|
||||
|
||||
if (result == 9) result = 1;
|
||||
|
||||
|
|
|
@ -138,9 +138,10 @@
|
|||
{
|
||||
FUNCLOG
|
||||
|
||||
#if defined(ZEROGS_DEVBUILD)
|
||||
#if defined(_DEBUG)
|
||||
// Xenosaga 1.
|
||||
if (gs.trxpos.dx + gs.imageWnew > gs.dstbuf.bw)
|
||||
ZZLog::Debug_Log("Transfer error, width exceeded.");
|
||||
ZZLog::Debug_Log("Transfer error, width exceeded. (0x%x > 0X%x)", gs.trxpos.dx + gs.imageWnew, gs.dstbuf.bw);
|
||||
#endif
|
||||
|
||||
//bool bHasFlushed = false;
|
||||
|
@ -163,6 +164,12 @@
|
|||
|
||||
if (end > MEMORY_END)
|
||||
{
|
||||
// Monster Lab - the screwed up title screen
|
||||
// Init host local out of bounds! (end == 0x404000)
|
||||
// Init host local out of bounds! (end == 0x408000)
|
||||
// Init host local out of bounds! (end == 0x40c000)
|
||||
// MEMORY_END is 0x400000...
|
||||
|
||||
ZZLog::Warn_Log("Init host local out of bounds! (end == 0x%x)", end);
|
||||
//gs.imageTransfer = -1;
|
||||
end = MEMORY_END;
|
||||
|
@ -262,9 +269,9 @@
|
|||
FUNCLOG
|
||||
assert(gs.trxpos.sx + gs.imageWnew <= 2048 && gs.trxpos.sy + gs.imageHnew <= 2048);
|
||||
|
||||
#if defined(ZEROGS_DEVBUILD)
|
||||
#if defined(_DEBUG)
|
||||
if (gs.trxpos.sx + gs.imageWnew > gs.srcbuf.bw)
|
||||
ZZLog::Debug_Log("Transfer error, width exceeded.");
|
||||
ZZLog::Debug_Log("Transfer error, width exceeded. (0x%x > 0x%x)", gs.trxpos.sx + gs.imageWnew, gs.srcbuf.bw);
|
||||
#endif
|
||||
|
||||
gs.imageX = gs.trxpos.sx;
|
||||
|
@ -469,10 +476,10 @@ __forceinline void _TransferLocalLocal_4()
|
|||
assert((gs.srcbuf.psm&0x7) == (gs.dstbuf.psm&0x7));
|
||||
|
||||
if (gs.trxpos.sx + gs.imageWnew > gs.srcbuf.bw)
|
||||
ZZLog::Debug_Log("Transfer error, src width exceeded.");
|
||||
ZZLog::Debug_Log("Transfer error, src width exceeded.(0x%x > 0x%x)", gs.trxpos.sx + gs.imageWnew, gs.srcbuf.bw);
|
||||
|
||||
if (gs.trxpos.dx + gs.imageWnew > gs.dstbuf.bw)
|
||||
ZZLog::Debug_Log("Transfer error, dst width exceeded.");
|
||||
ZZLog::Debug_Log("Transfer error, dst width exceeded.(0x%x > 0x%x)", gs.trxpos.dx + gs.imageWnew, gs.dstbuf.bw);
|
||||
|
||||
int srcstart, srcend, dststart, dstend;
|
||||
|
||||
|
|
|
@ -495,7 +495,7 @@ void *SysLoadSym(void *lib, char *sym)
|
|||
{
|
||||
void *ret = dlsym(lib, sym);
|
||||
|
||||
if (ret == NULL) printf("null: %s\n", sym);
|
||||
if (ret == NULL) ZZLog::Debug_Log("null: %s", sym);
|
||||
|
||||
return dlsym(lib, sym);
|
||||
}
|
||||
|
|
|
@ -160,7 +160,7 @@ void ProcessHackSetting(bool reverse)
|
|||
{
|
||||
FUNCLOG
|
||||
|
||||
// printf ("A %d\n", HackinshTable[CurrentHackSetting].HackMask);
|
||||
// ZZLog::Debug_Log("A %d", HackinshTable[CurrentHackSetting].HackMask);
|
||||
conf.hacks._u32 &= !(HackinshTable[CurrentHackSetting].HackMask);
|
||||
|
||||
if (reverse)
|
||||
|
|
|
@ -509,24 +509,24 @@ inline CRenderTarget* FlushReGetTarget(int& tbw, int& tbp0, int& tpsm, VB& curvb
|
|||
{
|
||||
if (ptextarg == NULL)
|
||||
{
|
||||
printf("Miss %x 0x%x %d\n", tbw, tbp0, tpsm);
|
||||
ZZLog::Debug_Log("Miss %x 0x%x %d", tbw, tbp0, tpsm);
|
||||
|
||||
typedef map<u32, CRenderTarget*> MAPTARGETS;
|
||||
|
||||
for (MAPTARGETS::iterator itnew = s_RTs.mapTargets.begin(); itnew != s_RTs.mapTargets.end(); ++itnew)
|
||||
{
|
||||
printf("\tRender %x 0x%x %x\n", itnew->second->fbw, itnew->second->fbp, itnew->second->psm);
|
||||
ZZLog::Debug_Log("\tRender %x 0x%x %x", itnew->second->fbw, itnew->second->fbp, itnew->second->psm);
|
||||
}
|
||||
|
||||
for (MAPTARGETS::iterator itnew = s_DepthRTs.mapTargets.begin(); itnew != s_DepthRTs.mapTargets.end(); ++itnew)
|
||||
{
|
||||
printf("\tDepth %x 0x%x %x\n", itnew->second->fbw, itnew->second->fbp, itnew->second->psm);
|
||||
ZZLog::Debug_Log("\tDepth %x 0x%x %x", itnew->second->fbw, itnew->second->fbp, itnew->second->psm);
|
||||
}
|
||||
|
||||
printf("\tCurvb 0x%x 0x%x 0x%x %x\n", curvb.frame.fbp, curvb.prndr->end, curvb.prndr->fbp, curvb.prndr->fbw);
|
||||
ZZLog::Debug_Log("\tCurvb 0x%x 0x%x 0x%x %x", curvb.frame.fbp, curvb.prndr->end, curvb.prndr->fbp, curvb.prndr->fbw);
|
||||
}
|
||||
else
|
||||
printf("Hit %x 0x%x %x\n", tbw, tbp0, tpsm);
|
||||
ZZLog::Debug_Log("Hit %x 0x%x %x", tbw, tbp0, tpsm);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -545,7 +545,7 @@ inline CRenderTarget* FlushGetTarget(VB& curvb)
|
|||
|
||||
if (curvb.bNeedTexCheck)
|
||||
{
|
||||
printf("How it is possible?\n");
|
||||
ZZLog::Error_Log("How it is possible?");
|
||||
// not yet initied, but still need to get correct target! (xeno3 ingame)
|
||||
tbp0 = ZZOglGet_tbp0_TexBits(curvb.uNextTex0Data[0]);
|
||||
tbw = ZZOglGet_tbw_TexBitsMult(curvb.uNextTex0Data[0]);
|
||||
|
@ -733,7 +733,7 @@ inline void FlushDecodeClut(VB& curvb, GLuint& ptexclut)
|
|||
int entries = PSMT_IS8CLUT(curvb.tex0.psm) ? 256 : 16;
|
||||
|
||||
if (curvb.tex0.csm && curvb.tex0.csa)
|
||||
printf("ERROR, csm1\n");
|
||||
ZZLog::Debug_Log("ERROR, csm1.");
|
||||
|
||||
if (PSMT_IS32BIT(curvb.tex0.cpsm)) // 32 bit
|
||||
{
|
||||
|
@ -1223,7 +1223,7 @@ inline void AlphaRenderStencil(VB& curvb, bool s_bDestAlphaTest, bool bCanRender
|
|||
|
||||
inline void AlphaTest(VB& curvb)
|
||||
{
|
||||
// printf ("%d %d %d %d %d\n", curvb.test.date, curvb.test.datm, gs.texa.aem, curvb.test.ate, curvb.test.atst );
|
||||
// ZZLog::Debug_Log("%d %d %d %d %d", curvb.test.date, curvb.test.datm, gs.texa.aem, curvb.test.ate, curvb.test.atst );
|
||||
|
||||
// return;
|
||||
// Zeydlitz changed this with a reason! It's an "Alpha more than 1 hack."
|
||||
|
@ -1236,7 +1236,7 @@ inline void AlphaTest(VB& curvb)
|
|||
else
|
||||
{
|
||||
glAlphaFunc(GL_LESS, 1.0f);
|
||||
printf("%d %d %d\n", curvb.test.date, curvb.test.datm, gs.texa.aem);
|
||||
ZZLog::Debug_Log("%d %d %d", curvb.test.date, curvb.test.datm, gs.texa.aem);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1841,7 +1841,7 @@ void ZeroGS::SetContextTarget(int context)
|
|||
if (curvb.prndr->status & CRenderTarget::TS_NeedUpdate)
|
||||
{
|
||||
/* if(bSetTarg) {
|
||||
* printf ( " Here\n ");
|
||||
* ZZLog::Debug_Log( " Here ");
|
||||
* if(s_bWriteDepth) {
|
||||
* curvb.pdepth->SetRenderTarget(1);
|
||||
* curvb.pdepth->SetDepthStencilSurface();
|
||||
|
@ -2169,12 +2169,12 @@ void ZeroGS::SetTexVariables(int context, FRAGMENTSHADER* pfragment)
|
|||
|
||||
if ( equal_vectors(valpha, valpha3) && equal_vectors(valpha2, valpha4) ) {
|
||||
if (CheckTexArray[tex0.tfx][tex0.tcc][psm!=1][PSMT_ALPHAEXP(psm)] == 0) {
|
||||
printf ( "Good issue %d %d %d %d\n", tex0.tfx, tex0.tcc, psm, PSMT_ALPHAEXP(psm) );
|
||||
ZZLog::Debug_Log ( "Good issue %d %d %d %d", tex0.tfx, tex0.tcc, psm, PSMT_ALPHAEXP(psm) );
|
||||
CheckTexArray[tex0.tfx][tex0.tcc][psm!=1][PSMT_ALPHAEXP(psm) ] = 1;
|
||||
}
|
||||
}
|
||||
else if (CheckTexArray[tex0.tfx][tex0.tcc][psm!=1][PSMT_ALPHAEXP(psm)] == -1) {
|
||||
printf ("Bad array, %d %d %d %d\n\tolf valpha %f, %f, %f, %f : valpha2 %f %f %f %f\n\tnew valpha %f, %f, %f, %f : valpha2 %f %f %f %f\n",
|
||||
ZZLog::Debug_Log ("Bad array, %d %d %d %d\n\tolf valpha %f, %f, %f, %f : valpha2 %f %f %f %f\n\tnew valpha %f, %f, %f, %f : valpha2 %f %f %f %f",
|
||||
tex0.tfx, tex0.tcc, psm, PSMT_ALPHAEXP(psm),
|
||||
valpha3.x, valpha3.y, valpha3.z, valpha3.w, valpha4.x, valpha4.y, valpha4.z, valpha4.w,
|
||||
valpha.x, valpha.y, valpha.z, valpha.w, valpha2.x, valpha2.y, valpha2.z, valpha2.w);
|
||||
|
@ -2363,7 +2363,7 @@ void ZeroGS::SetTexVariablesInt(int context, int bilinear, const tex0Info& tex0,
|
|||
//if( a.fix <= 0x80 ) { \
|
||||
// dwTemp = (a.fix*2)>255?255:(a.fix*2); \
|
||||
// dwTemp = dwTemp|(dwTemp<<8)|(dwTemp<<16)|0x80000000; \
|
||||
// printf("bfactor: %8.8x\n", dwTemp); \
|
||||
// ZZLog::Debug_Log("bfactor: %8.8x", dwTemp); \
|
||||
// glBlendColorEXT(dwTemp); \
|
||||
// } \
|
||||
// else { \
|
||||
|
@ -2849,8 +2849,8 @@ void ZeroGS::SetAlphaVariables(const alphaInfo& a)
|
|||
|
||||
if ( alphaenable && (t_rgbeq != s_rgbeq || s_srcrgb != t_srcrgb || t_dstrgb != s_dstrgb || tAlphaClamping != bAlphaClamping)) {
|
||||
if (CheckArray[code][(bDestAlphaColor==2)] != -1) {
|
||||
printf ( "A code %d, 0x%x, 0x%x, 0x%x, 0x%x %d\n", code, alpha, one_minus_alpha, one, zero, bDestAlphaColor );
|
||||
printf ( " Difference %d %d %d %d | 0x%x 0x%x | 0x%x 0x%x | 0x%x 0x%x | %d %d\n",
|
||||
ZZLog::Debug_Log( "A code %d, 0x%x, 0x%x, 0x%x, 0x%x %d", code, alpha, one_minus_alpha, one, zero, bDestAlphaColor );
|
||||
ZZLog::Debug_Log( " Difference %d %d %d %d | 0x%x 0x%x | 0x%x 0x%x | 0x%x 0x%x | %d %d",
|
||||
code, a.a, a.b, a.d,
|
||||
t_rgbeq, s_rgbeq, t_srcrgb, s_srcrgb, t_dstrgb, s_dstrgb, tAlphaClamping, bAlphaClamping);
|
||||
CheckArray[code][(bDestAlphaColor==2)] = -1;
|
||||
|
@ -2858,7 +2858,7 @@ void ZeroGS::SetAlphaVariables(const alphaInfo& a)
|
|||
}
|
||||
else
|
||||
if (CheckArray[code][(bDestAlphaColor==2)] == 0){
|
||||
printf ( "Add good code %d %d, psm %d destA %d\n", code, a.c, vb[icurctx].prndr->psm, bDestAlphaColor);
|
||||
ZZLog::Debug_Log( "Add good code %d %d, psm %d destA %d", code, a.c, vb[icurctx].prndr->psm, bDestAlphaColor);
|
||||
CheckArray[code][(bDestAlphaColor==2)] = 1;
|
||||
}*/
|
||||
|
||||
|
|
|
@ -1441,7 +1441,7 @@ CRenderTarget* ZeroGS::CRenderTargetMngr::GetTarg(const frameInfo& frame, u32 op
|
|||
|
||||
if (besttarg != 0 && pbesttarg->fbw != frame.fbw)
|
||||
{
|
||||
// printf ("A %d %d %d %d\n", frame.psm, frame.fbw, pbesttarg->psm, pbesttarg->fbw);
|
||||
//ZZLog::Debug_Log("A %d %d %d %d\n", frame.psm, frame.fbw, pbesttarg->psm, pbesttarg->fbw);
|
||||
|
||||
vb[0].frame.fbw = pbesttarg->fbw;
|
||||
// Something should be here, but what?
|
||||
|
|
|
@ -60,10 +60,10 @@ class CRenderTargetMngr
|
|||
|
||||
/* if (fbp == 0x3600 && fbw == 0x100 && it == mapTargets.end())
|
||||
{
|
||||
printf("%x\n", GetFrameKey(fbp, fbw, curvb)) ;
|
||||
printf("%x %x\n", fbp, fbw);
|
||||
ZZLog::Debug_Log("%x", GetFrameKey(fbp, fbw, curvb)) ;
|
||||
ZZLog::Debug_Log("%x %x", fbp, fbw);
|
||||
for(MAPTARGETS::iterator it1 = mapTargets.begin(); it1 != mapTargets.end(); ++it1)
|
||||
printf ("\t %x %x %x %x\n", it1->second->fbw, it1->second->fbh, it1->second->psm, it1->second->fbp);
|
||||
ZZLog::Debug_Log("\t %x %x %x %x", it1->second->fbw, it1->second->fbh, it1->second->psm, it1->second->fbp);
|
||||
}*/
|
||||
return it != mapTargets.end() ? it->second : NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue