summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/hash.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-01-11 12:58:43 -0700
committerBrian Paul <brianp@vmware.com>2012-01-11 12:58:45 -0700
commitf1b33c74dc11b97a86a7f0e9cbe4cb168b2b9540 (patch)
treeab4624d6cc4d5446fc879b45ddc52bd00f06e546 /src/mesa/main/hash.h
parent6811704830b6637d7c9b19914bd3549143eeb3e5 (diff)
downloadexternal_mesa3d-f1b33c74dc11b97a86a7f0e9cbe4cb168b2b9540.zip
external_mesa3d-f1b33c74dc11b97a86a7f0e9cbe4cb168b2b9540.tar.gz
external_mesa3d-f1b33c74dc11b97a86a7f0e9cbe4cb168b2b9540.tar.bz2
mesa: add _mesa_HashNumEntries() function
Useful when debugging to find the number of texture objects, shader programs, etc.
Diffstat (limited to 'src/mesa/main/hash.h')
-rw-r--r--src/mesa/main/hash.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/hash.h b/src/mesa/main/hash.h
index 4f916f9..e935f8d 100644
--- a/src/mesa/main/hash.h
+++ b/src/mesa/main/hash.h
@@ -63,6 +63,9 @@ extern void _mesa_HashPrint(const struct _mesa_HashTable *table);
extern GLuint _mesa_HashFindFreeKeyBlock(struct _mesa_HashTable *table, GLuint numKeys);
+extern GLuint
+_mesa_HashNumEntries(const struct _mesa_HashTable *table);
+
extern void _mesa_test_hash_functions(void);