[Mesa-dev] [PATCH 06/15] intel: Improve debug output for begin/finish render texture.

Eric Anholt eric at anholt.net
Tue Nov 15 17:55:53 PST 2011


I've never seen a use for the thread ID value, but knowing the format
being rendered is kind of a big deal.
---
 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 4a703cf..32f0777 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -1172,8 +1172,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);
 
@@ -1227,8 +1227,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)
-- 
1.7.7



More information about the mesa-dev mailing list