[Mesa-dev] [PATCH 3/9] i965: Add a little bit more debug info for validate blits.

Eric Anholt eric at anholt.net
Mon Nov 5 16:48:09 PST 2012


The kind of data you're copying is definitely an interesting variable.
---
 src/mesa/drivers/dri/intel/intel_mipmap_tree.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index cd7299e..c70c1de 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@ -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);
 
-- 
1.7.10.4



More information about the mesa-dev mailing list