Skip to content

Commit

Permalink
gsdx-debug: Use gl GL_INS print macro for a log instead of relying on…
Browse files Browse the repository at this point in the history
… debug build.

In GSDrawingContext.

Also some minor format cleanup to match the rest of the code.
  • Loading branch information
lightningterror committed Mar 4, 2019
1 parent 5c23a9f commit 46e63c1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions plugins/GSdx/GSDrawingContext.cpp
Expand Up @@ -117,18 +117,16 @@ GIFRegTEX0 GSDrawingContext::GetSizeFixedTEX0(int s_n, const GSVector4& st, bool
th = extend(uv.y, th);
}

#if defined(_DEBUG) && 1
if((int)TEX0.TW != tw || (int)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",
GL_INS("%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",

This comment has been minimized.

Copy link
@lightningterror

lightningterror Mar 4, 2019

Author Contributor

I forgot to remove the \n at the end -.-

This comment has been minimized.

Copy link
@gregory38

gregory38 Mar 4, 2019

Contributor

Actually it would be better to keep it only for sw renderer

s_n,
(int)TEX0.TBP0, (int)TEX0.TBW, (int)TEX0.PSM,
(int)TEX0.TW, tw, (int)TEX0.TH, th,
uvf.x, uvf.y, uvf.z, uvf.w,
uv.x, uv.y,
wms, wmt, minu, maxu, minv, maxv);
}
#endif

GIFRegTEX0 res = TEX0;

Expand All @@ -142,18 +140,18 @@ void GSDrawingContext::ComputeFixedTEX0(const GSVector4& st, bool linear)
{
GIFRegTEX0 reg = GetSizeFixedTEX0(0, st, linear, false);

if (reg.TW > TEX0.TW)
if(reg.TW > TEX0.TW)
{
m_fixed_tex0 = true;
TEX0.TW = reg.TW;
}
if (reg.TH > TEX0.TH)
if(reg.TH > TEX0.TH)
{
m_fixed_tex0 = true;
TEX0.TH = reg.TH;
}

if (m_fixed_tex0)
if(m_fixed_tex0)
{
GL_INS("FixedTEX0 TW %d=>%d, TH %d=>%d wm %d,%d",
(int)stack.TEX0.TW, (int)TEX0.TW, (int)stack.TEX0.TH, (int)TEX0.TH,
Expand Down

0 comments on commit 46e63c1

Please sign in to comment.