mesa: Add API debug logging to TexStorage
authorCourtney Goeltzenleuchter <courtney@lunarg.com>
Tue, 5 Nov 2013 21:25:06 +0000 (14:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 18 Nov 2013 03:57:17 +0000 (19:57 -0800)
Give glTexStorage* equivalent debug logging to glTexImage*.

Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/texstorage.c

index 7bd8652b540c22717920168d7793a008222bbb99..84b8f8224311f20364ea7574c8ac66226a5fedd1 100644 (file)
@@ -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 */