diff options
author | Eric Anholt <eric@anholt.net> | 2007-11-19 14:37:14 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-11-19 15:29:31 -0800 |
commit | 3821d15e06a62231b4a946d097d1455d7b0c5834 (patch) | |
tree | 3f7c1542a06fdccd32dc15bd51d2b8508aca14e6 | |
parent | 27674c41352dc78ad79f67cebca16d7896cd2093 (diff) |
[965] Add INTEL_DEBUG=fall debugging output.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fallback.c | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fallback.c b/src/mesa/drivers/dri/i965/brw_fallback.c index 8c73cbbca9..3925dcf37b 100644 --- a/src/mesa/drivers/dri/i965/brw_fallback.c +++ b/src/mesa/drivers/dri/i965/brw_fallback.c @@ -39,6 +39,8 @@ #include "macros.h" #include "mtypes.h" +#define FILE_DEBUG_FLAG DEBUG_FALLBACKS + static GLboolean do_check_fallback(struct brw_context *brw) { GLcontext *ctx = &brw->intel.ctx; @@ -49,22 +51,29 @@ static GLboolean do_check_fallback(struct brw_context *brw) if (brw->metaops.active) return GL_FALSE; - if (brw->intel.no_rast) + if (brw->intel.no_rast) { + DBG("FALLBACK: rasterization disabled\n"); return GL_TRUE; - + } + /* _NEW_BUFFERS */ if (ctx->DrawBuffer->_ColorDrawBufferMask[0] != BUFFER_BIT_FRONT_LEFT && - ctx->DrawBuffer->_ColorDrawBufferMask[0] != BUFFER_BIT_BACK_LEFT) + ctx->DrawBuffer->_ColorDrawBufferMask[0] != BUFFER_BIT_BACK_LEFT) { + DBG("FALLBACK: draw buffer %d: 0x%08x\n", + ctx->DrawBuffer->_ColorDrawBufferMask[0]); return GL_TRUE; + } /* _NEW_RENDERMODE * * XXX: need to save/restore RenderMode in metaops state, or * somehow move to a new attribs pointer: */ - if (ctx->RenderMode != GL_RENDER) + if (ctx->RenderMode != GL_RENDER) { + DBG("FALLBACK: render mode\n"); return GL_TRUE; + } /* _NEW_TEXTURE: */ @@ -73,8 +82,10 @@ static GLboolean do_check_fallback(struct brw_context *brw) if (texUnit->_ReallyEnabled) { struct intel_texture_object *intelObj = intel_texture_object(texUnit->_Current); struct gl_texture_image *texImage = intelObj->base.Image[0][intelObj->firstLevel]; - if (texImage->Border) + if (texImage->Border) { + DBG("FALLBACK: texture border\n"); return GL_TRUE; + } } } @@ -82,6 +93,7 @@ static GLboolean do_check_fallback(struct brw_context *brw) */ if (brw->attribs.Stencil->Enabled && !brw->intel.hw_stencil) { + DBG("FALLBACK: stencil\n"); return GL_TRUE; } |