diff options
author | Brian Paul <[email protected]> | 2012-04-06 15:45:39 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-04-11 07:00:01 -0600 |
commit | 71d69161ab86e88dfbfe9931c03eef9d17de90ef (patch) | |
tree | 24ec5700fd29cd3164eac565af580b44bfdd8e19 /src/mesa/main/texobj.h | |
parent | 223654b81ddb50cc42ed8cd722b389b302a26980 (diff) |
mesa: add _mesa_total_texture_memory() debug function
This function can be called in gdb to find out how much memory is used
by all texture objects.
Diffstat (limited to 'src/mesa/main/texobj.h')
-rw-r--r-- | src/mesa/main/texobj.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h index c020b901382..23e1ade090c 100644 --- a/src/mesa/main/texobj.h +++ b/src/mesa/main/texobj.h @@ -112,6 +112,9 @@ _mesa_dirty_texobj(struct gl_context *ctx, struct gl_texture_object *texObj, extern struct gl_texture_object * _mesa_get_fallback_texture(struct gl_context *ctx, gl_texture_index tex); +extern GLuint +_mesa_total_texture_memory(struct gl_context *ctx); + extern void _mesa_unlock_context_textures( struct gl_context *ctx ); |