Mesa (master): intel: Improve INTEL_DEBUG=fbo output.

Eric Anholt anholt at kemper.freedesktop.org
Tue Dec 29 02:53:01 UTC 2009


Module: Mesa
Branch: master
Commit: e4df8d32b510a3f00c12477985818c9d42a0b178
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e4df8d32b510a3f00c12477985818c9d42a0b178

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Dec 28 14:38:43 2009 -0800

intel: Improve INTEL_DEBUG=fbo output.

---

 src/mesa/drivers/dri/intel/intel_fbo.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
index fc502a8..dc96b36 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -427,7 +427,8 @@ intel_update_wrapper(GLcontext *ctx, struct intel_renderbuffer *irb,
       DBG("Render to DEPTH_STENCIL texture OK\n");
    }
    else {
-      DBG("Render to texture BAD FORMAT %d\n", texImage->TexFormat);
+      DBG("Render to texture BAD FORMAT %s\n",
+	  _mesa_get_format_name(texImage->TexFormat));
       return GL_FALSE;
    }
 
@@ -594,6 +595,9 @@ intel_validate_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb)
       /* we only support combined depth/stencil buffers, not separate
        * stencil buffers.
        */
+      DBG("Only supports combined depth/stencil (found %s, %s)\n",
+	  depthRb ? _mesa_get_format_name(depthRb->Base.Format): "NULL",
+	  stencilRb ? _mesa_get_format_name(stencilRb->Base.Format): "NULL");
       fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED_EXT;
    }
 
@@ -605,6 +609,7 @@ intel_validate_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb)
 	 continue;
 
       if (irb == NULL) {
+	 DBG("software rendering renderbuffer\n");
 	 fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED_EXT;
 	 continue;
       }




More information about the mesa-commit mailing list