projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53f89a4
)
mesa: Add API debug logging to TexStorage
author
Courtney Goeltzenleuchter
<courtney@lunarg.com>
Tue, 5 Nov 2013 21:25:06 +0000
(14:25 -0700)
committer
Kenneth 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstorage.c
b/src/mesa/main/texstorage.c
index 7bd8652b540c22717920168d7793a008222bbb99..84b8f8224311f20364ea7574c8ac66226a5fedd1 100644
(file)
--- 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 */