[Mesa-dev] [PATCH 1/4] i965: Add perf debug for texture relayout.

Ian Romanick idr at freedesktop.org
Wed Dec 19 15:03:46 PST 2012


Strong work.

Series is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 12/18/2012 01:35 PM, Eric Anholt wrote:
> Relayout is expensive, so it's something developers (both us and others)
> should know about when it happens.
> ---
>   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 ad173c9..2f1b354 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,
>



More information about the mesa-dev mailing list