summaryrefslogtreecommitdiff
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-11-06 23:18:41 -0800
committerChad Versace <chad.versace@linux.intel.com>2012-11-12 15:52:42 -0800
commit35fd61bd99c15c2e13d3945b41c4db7df6e64319 (patch)
tree23771a21726cb11bd292ba51a5e95022032c7af6 /src/mesa/SConscript
parent1e8dd15311dab217d74c7c5d5a2dee6f6d7bf95e (diff)
mesa: Import a copy of the open-addressing hash table code I wrote.
Mesa's chaining hash table for object names is slow, and this should be much faster. I namespaced the functions under _mesa_*, to avoid visibility troubles that we may have had before with hash_table_* functions. v2: Move .c file to main/, const a few things, clean up loop conditions, add/extend some comments. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r--src/mesa/SConscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index 4c3355bd99f..be1ed5f6030 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -81,6 +81,7 @@ main_sources = [
'main/getstring.c',
'main/glformats.c',
'main/hash.c',
+ 'main/hash_table.c',
'main/hint.c',
'main/histogram.c',
'main/image.c',