i965: Add a little bit more debug info for validate blits.
authorEric Anholt <eric@anholt.net>
Wed, 31 Oct 2012 21:30:13 +0000 (14:30 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 19 Nov 2012 23:07:22 +0000 (15:07 -0800)
The kind of data you're copying is definitely an interesting variable.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c

index cd7299e2a3062e12ce46bfb5527900c2350fb192..c70c1de0ccc946f0082f73cd456080a6fe4342e6 100644 (file)
@@ -696,8 +696,10 @@ intel_miptree_copy_slice(struct intel_context *intel,
    intel_miptree_get_image_offset(src_mt, level, face, depth,
                                  &src_x, &src_y);
 
-   DBG("validate blit mt %p %d,%d/%d -> mt %p %d,%d/%d (%dx%d)\n",
+   DBG("validate blit mt %s %p %d,%d/%d -> mt %s %p %d,%d/%d (%dx%d)\n",
+       _mesa_get_format_name(src_mt->format),
        src_mt, src_x, src_y, src_mt->region->pitch * src_mt->region->cpp,
+       _mesa_get_format_name(dst_mt->format),
        dst_mt, dst_x, dst_y, dst_mt->region->pitch * dst_mt->region->cpp,
        width, height);