qi965: Add perf debug for texture relayout.
authorEric Anholt <eric@anholt.net>
Tue, 18 Dec 2012 19:47:25 +0000 (11:47 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 22 Dec 2012 21:45:56 +0000 (13:45 -0800)
Relayout is expensive, so it's something developers (both us and others)
should know about when it happens.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_tex_validate.c

index ad173c9d45124ea9460142a7a0a7f916338f8aa1..2f1b3542535302d30d78039b96433f4186d1959b 100644 (file)
@@ -79,6 +79,11 @@ intel_finalize_mipmap_tree(struct intel_context *intel, GLuint unit)
       intel_miptree_get_dimensions_for_image(&firstImage->base.Base,
                                             &width, &height, &depth);
 
+      perf_debug("Creating new %s %dx%dx%d %d..%d miptree to handle finalized "
+                 "texture miptree.\n",
+                 _mesa_get_format_name(firstImage->base.Base.TexFormat),
+                 width, height, depth, tObj->BaseLevel, intelObj->_MaxLevel);
+
       intelObj->mt = intel_miptree_create(intel,
                                           intelObj->base.Target,
                                          firstImage->base.Base.TexFormat,