summaryrefslogtreecommitdiff
path: root/src/util/hash_table.h
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2020-10-08 16:49:01 +0200
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2020-12-08 10:10:47 +0100
commitba67843dbd5965093f7367dbcf42c7f67359c422 (patch)
tree875e3c29631b1022be4b49e3f87d36407e9a268a /src/util/hash_table.h
parent310991415ee1f5bcdd91460f00205190e8e0c2d9 (diff)
util/hash_table: add _mesa_hash_data_with_seed function
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7078>
Diffstat (limited to 'src/util/hash_table.h')
-rw-r--r--src/util/hash_table.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h
index d59e33ff9f6..9281b917318 100644
--- a/src/util/hash_table.h
+++ b/src/util/hash_table.h
@@ -108,6 +108,7 @@ _mesa_hash_table_random_entry(struct hash_table *ht,
bool (*predicate)(struct hash_entry *entry));
uint32_t _mesa_hash_data(const void *data, size_t size);
+uint32_t _mesa_hash_data_with_seed(const void *data, size_t size, uint32_t seed);
uint32_t _mesa_hash_int(const void *key);
uint32_t _mesa_hash_uint(const void *key);