mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 05:38:16 +02:00
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 commit21a7b0f1ab)
This commit is contained in:
parent
acc3752a10
commit
a1c167da48
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Reference in a new issue