Module: Mesa
Branch: main
Commit: 21a7b0f1abbfc3ed0ebf1194ef530ca2497616e5
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=21a7b0f1abbfc3ed0ebf1194ef530ca2497616e5

Author: Jason Ekstrand <[email protected]>
Date:   Mon Oct  4 16:36:23 2021 -0500

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 <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13184>

---

 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);
 }
 
 /**

Reply via email to