[Mesa-dev] [PATCH] mesa: Add API debug logging to TexStorage

Kenneth Graunke kenneth at whitecape.org
Sun Nov 17 19:58:32 PST 2013


On 11/05/2013 01:25 PM, Courtney Goeltzenleuchter wrote:
> Give glTexStorage* equivalent debug logging to glTexImage*.
> 
> Signed-off-by: Courtney Goeltzenleuchter <courtney at LunarG.com>
> ---
>  src/mesa/main/texstorage.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c
> index 7bd8652..84b8f82 100644
> --- a/src/mesa/main/texstorage.c
> +++ b/src/mesa/main/texstorage.c
> @@ -365,6 +365,13 @@ texstorage(GLuint dims, GLenum target, GLsizei levels, GLenum internalformat,
>  
>     GET_CURRENT_CONTEXT(ctx);
>  
> +   if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
> +      _mesa_debug(ctx, "glTexStorage%uD %s %d %s %d %d %d\n",
> +                  dims,
> +                  _mesa_lookup_enum_by_nr(target), levels,
> +                  _mesa_lookup_enum_by_nr(internalformat),
> +                  width, height, depth);
> +
>     if (tex_storage_error_check(ctx, dims, target, levels,
>                                 internalformat, width, height, depth)) {
>        return; /* error was recorded */
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

Pushed, thanks.


More information about the mesa-dev mailing list