From: Courtney Goeltzenleuchter Date: Tue, 5 Nov 2013 21:25:06 +0000 (-0700) Subject: mesa: Add API debug logging to TexStorage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cfbf84dadc915b7075a3f1cbb569daf699d5ff0;p=mesa.git mesa: Add API debug logging to TexStorage Give glTexStorage* equivalent debug logging to glTexImage*. Signed-off-by: Courtney Goeltzenleuchter Reviewed-by: Brian Paul Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index 7bd8652b540..84b8f822431 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 */