diff options
author | Eric Anholt <[email protected]> | 2012-12-18 11:47:25 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-12-22 13:45:56 -0800 |
commit | 3b99d094c99566e92a05d2a2d22a83939305c30b (patch) | |
tree | cab5b55c903c763ef7819147cef6d041c95f9513 | |
parent | c417d261ddafb5e2d83808b02e22c35457594559 (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.c | 5 |
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, |