intel: Improve debug output for begin/finish render texture.
authorEric Anholt <eric@anholt.net>
Tue, 15 Nov 2011 20:53:18 +0000 (12:53 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 22 Nov 2011 21:58:38 +0000 (13:58 -0800)
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@whitecape.org>
src/mesa/drivers/dri/intel/intel_fbo.c

index 9005402ea20a6d82814d6e92ee64658ac6981946..3fa0661ab32e701aa1d77445904a1a184878afa1 100644 (file)
@@ -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)