summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-12-18 11:47:25 -0800
committerEric Anholt <[email protected]>2012-12-22 13:45:56 -0800
commit3b99d094c99566e92a05d2a2d22a83939305c30b (patch)
treecab5b55c903c763ef7819147cef6d041c95f9513
parentc417d261ddafb5e2d83808b02e22c35457594559 (diff)
qi965: Add perf debug for texture relayout.
Relayout is expensive, so it's something developers (both us and others) should know about when it happens. Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_validate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_validate.c b/src/mesa/drivers/dri/intel/intel_tex_validate.c
index ad173c9d451..2f1b3542535 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_validate.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_validate.c
@@ -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,