util/set: Respect found in search_or_add_pre_hashed

Fixes: 491e7decad "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>
This commit is contained in:
Jason Ekstrand 2021-10-04 16:36:23 -05:00 committed by Marge Bot
parent 96944c8f65
commit 21a7b0f1ab
1 changed files with 1 additions and 1 deletions

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