summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/hash.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c
index 670438add27..b7a7bd9f648 100644
--- a/src/mesa/main/hash.c
+++ b/src/mesa/main/hash.c
@@ -183,7 +183,9 @@ _mesa_HashLookup_unlocked(struct _mesa_HashTable *table, GLuint key)
if (key == DELETED_KEY_VALUE)
return table->deleted_key_data;
- entry = _mesa_hash_table_search(table->ht, uint_key(key));
+ entry = _mesa_hash_table_search_pre_hashed(table->ht,
+ uint_hash(key),
+ uint_key(key));
if (!entry)
return NULL;
@@ -347,7 +349,9 @@ _mesa_HashRemove_unlocked(struct _mesa_HashTable *table, GLuint key)
if (key == DELETED_KEY_VALUE) {
table->deleted_key_data = NULL;
} else {
- entry = _mesa_hash_table_search(table->ht, uint_key(key));
+ entry = _mesa_hash_table_search_pre_hashed(table->ht,
+ uint_hash(key),
+ uint_key(key));
_mesa_hash_table_remove(table->ht, entry);
}
}