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>
(cherry picked from commit 21a7b0f1ab)
This commit is contained in:
Jason Ekstrand 2021-10-04 16:36:23 -05:00 committed by Dylan Baker
parent acc3752a10
commit a1c167da48
2 changed files with 2 additions and 2 deletions

View file

@ -535,7 +535,7 @@
"description": "util/set: Respect found in search_or_add_pre_hashed",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "491e7decad0f46b6d5f2e517cc0ea18193cf2f33"
},

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