diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2008-02-26 01:48:01 -0500 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2008-02-26 01:51:46 -0500 |
commit | 7838aaffdb9d34427ebcb73aac585c85d9622018 (patch) | |
tree | e22deeb7447eb23395d9459b46335f1a1b11f65c /src/gallium/auxiliary/cso_cache/cso_hash.c | |
parent | e7985105695a18c29c13deb2b8f40c15eef72ee6 (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.c')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_hash.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_hash.c b/src/gallium/auxiliary/cso_cache/cso_hash.c index 208fc58502..b3b4d667d2 100644 --- a/src/gallium/auxiliary/cso_cache/cso_hash.c +++ b/src/gallium/auxiliary/cso_cache/cso_hash.c @@ -395,3 +395,8 @@ struct cso_hash_iter cso_hash_first_node(struct cso_hash *hash) struct cso_hash_iter iter = {hash, cso_data_first_node(hash->data.d)}; return iter; } + +int cso_hash_size(struct cso_hash *hash) +{ + return hash->data.d->size; +} |