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:
parent
96944c8f65
commit
21a7b0f1ab
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue