From 3b99d094c99566e92a05d2a2d22a83939305c30b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 18 Dec 2012 11:47:25 -0800 Subject: [PATCH] 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 --- src/mesa/drivers/dri/intel/intel_tex_validate.c | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 2.30.2