summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/cso_cache/cso_hash.h
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2008-02-26 01:48:01 -0500
committerZack Rusin <zack@tungstengraphics.com>2008-02-26 01:51:46 -0500
commit7838aaffdb9d34427ebcb73aac585c85d9622018 (patch)
treee22deeb7447eb23395d9459b46335f1a1b11f65c /src/gallium/auxiliary/cso_cache/cso_hash.h
parente7985105695a18c29c13deb2b8f40c15eef72ee6 (diff)
implement cache limits for cso
by default set to 4096, which might be on the large side
Diffstat (limited to 'src/gallium/auxiliary/cso_cache/cso_hash.h')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_hash.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_hash.h b/src/gallium/auxiliary/cso_cache/cso_hash.h
index 86c62c027a..d5bca9d591 100644
--- a/src/gallium/auxiliary/cso_cache/cso_hash.h
+++ b/src/gallium/auxiliary/cso_cache/cso_hash.h
@@ -47,7 +47,9 @@ struct cso_hash_iter {
};
struct cso_hash *cso_hash_create(void);
-void cso_hash_delete(struct cso_hash *hash);
+void cso_hash_delete(struct cso_hash *hash);
+
+int cso_hash_size(struct cso_hash *hash);
struct cso_hash_iter cso_hash_insert(struct cso_hash *hash, unsigned key,
void *data);