From 21a7b0f1abbfc3ed0ebf1194ef530ca2497616e5 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 Oct 2021 16:36:23 -0500 Subject: [PATCH] util/set: Respect found in search_or_add_pre_hashed Fixes: 491e7decad0f "util/set: add the found param to search_or_add" Reviewed-By: Mike Blumenkrantz Reviewed-by: Connor Abbott Part-of: --- src/util/set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/set.c b/src/util/set.c index 37bd689e81a..2a3c1665865 100644 --- a/src/util/set.c +++ b/src/util/set.c @@ -531,7 +531,7 @@ _mesa_set_search_or_add_pre_hashed(struct set *set, uint32_t hash, { assert(set->key_hash_function == NULL || hash == set->key_hash_function(key)); - return set_search_or_add(set, hash, key, NULL); + return set_search_or_add(set, hash, key, found); } /**