Mesa (master): intel: Improve debug output for begin/finish render texture.

Eric Anholt anholt at kemper.freedesktop.org
Tue Nov 22 22:09:47 UTC 2011


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Nov 15 12:53:18 2011 -0800

intel: Improve debug output for begin/finish render texture.

I've never seen a use for the thread ID value, but knowing the format
being rendered is kind of a big deal.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

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

diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
index 9005402..3fa0661 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -1226,8 +1226,8 @@ intel_render_texture(struct gl_context * ctx,
        return;
    }
 
-   DBG("Begin render texture tid %lx tex=%u w=%d h=%d refcount=%d\n",
-       _glthread_GetID(),
+   DBG("Begin render %s texture tex=%u w=%d h=%d refcount=%d\n",
+       _mesa_get_format_name(image->TexFormat),
        att->Texture->Name, image->Width, image->Height,
        irb->Base.RefCount);
 
@@ -1280,8 +1280,8 @@ intel_finish_render_texture(struct gl_context * ctx,
       tex_obj->Image[att->CubeMapFace][att->TextureLevel];
    struct intel_texture_image *intel_image = intel_texture_image(image);
 
-   DBG("Finish render texture tid %lx tex=%u\n",
-       _glthread_GetID(), att->Texture->Name);
+   DBG("Finish render %s texture tex=%u\n",
+       _mesa_get_format_name(image->TexFormat), att->Texture->Name);
 
    /* Flag that this image may now be validated into the object's miptree. */
    if (intel_image)




More information about the mesa-commit mailing list