aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-04-06 15:44:56 -0600
committerBrian Paul <[email protected]>2012-04-11 07:00:01 -0600
commit223654b81ddb50cc42ed8cd722b389b302a26980 (patch)
tree91dc3bce386d5ecdb347e3d6a47e8d0459dac01c /src/mesa/main/bufferobj.h
parent5154b45217695e5daf24110bcff043fa1959d0a5 (diff)
mesa: new _mesa_total_buffer_object_memory() debug function
This function can be called in gdb to find out how much memory is used by buffer objects.
Diffstat (limited to 'src/mesa/main/bufferobj.h')
-rw-r--r--src/mesa/main/bufferobj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index a7ce3792898..66343c3cd44 100644
--- a/src/mesa/main/bufferobj.h
+++ b/src/mesa/main/bufferobj.h
@@ -89,6 +89,8 @@ _mesa_reference_buffer_object(struct gl_context *ctx,
_mesa_reference_buffer_object_(ctx, ptr, bufObj);
}
+extern GLuint
+_mesa_total_buffer_object_memory(struct gl_context *ctx);
extern void
_mesa_init_buffer_object_functions(struct dd_function_table *driver);