From 37f2eaa316d507b729ca392b651ae18ef92efcac Mon Sep 17 00:00:00 2001 From: Aapo Tahkola Date: Mon, 31 Oct 2005 14:34:32 +0000 Subject: Improve tnl program searching performance. --- src/mesa/tnl/t_context.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/mesa/tnl/t_context.h') diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index 08fb96b6a4..f7a29f9e7e 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; }; -- cgit v1.2.3