From: Eric Anholt Date: Tue, 18 Dec 2012 19:47:25 +0000 (-0800) Subject: qi965: Add perf debug for texture relayout. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b99d094c99566e92a05d2a2d22a83939305c30b;p=mesa.git 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 Reviewed-by: Ian Romanick --- 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,