util/set: Respect found in search_or_add_pre_hashed
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 4 Oct 2021 21:36:23 +0000 (16:36 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 22 Apr 2022 19:38:52 +0000 (19:38 +0000)
Fixes: 491e7decad0f "util/set: add the found param to search_or_add"
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13184>

src/util/set.c

index 37bd689..2a3c166 100644 (file)
@@ -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);
 }
 
 /**