diff options
author | Aapo Tahkola <[email protected]> | 2005-10-31 14:34:32 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2005-10-31 14:34:32 +0000 |
commit | 37f2eaa316d507b729ca392b651ae18ef92efcac (patch) | |
tree | 7d8893d7ee240ea5c743e19f6ba14d3df36e9608 /src/mesa/tnl/t_context.h | |
parent | 18e7c5c5fea090bd84e15f7c0fb1c56b99155987 (diff) |
Improve tnl program searching performance.
Diffstat (limited to 'src/mesa/tnl/t_context.h')
-rw-r--r-- | src/mesa/tnl/t_context.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index 08fb96b6a4a..f7a29f9e7e8 100644 --- a/src/mesa/tnl/t_context.h +++ b/src/mesa/tnl/t_context.h @@ -614,12 +614,16 @@ struct tnl_clipspace }; - -struct tnl_cache { +struct tnl_cache_item { GLuint hash; void *key; void *data; - struct tnl_cache *next; + struct tnl_cache_item *next; +}; + +struct tnl_cache { + struct tnl_cache_item **items; + GLuint size, n_items; }; |