summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_context.h
diff options
context:
space:
mode:
authorAapo Tahkola <aet@rasterburn.org>2005-10-31 14:34:32 +0000
committerAapo Tahkola <aet@rasterburn.org>2005-10-31 14:34:32 +0000
commit37f2eaa316d507b729ca392b651ae18ef92efcac (patch)
tree7d8893d7ee240ea5c743e19f6ba14d3df36e9608 /src/mesa/tnl/t_context.h
parent18e7c5c5fea090bd84e15f7c0fb1c56b99155987 (diff)
Improve tnl program searching performance.
Diffstat (limited to 'src/mesa/tnl/t_context.h')
-rw-r--r--src/mesa/tnl/t_context.h10
1 files changed, 7 insertions, 3 deletions
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;
};