Mesa (staging/22.1): util/set: Respect found in search_or_add_pre_hashed

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Apr 25 04:07:33 UTC 2022


Module: Mesa
Branch: staging/22.1
Commit: a1c167da48c7bddc4acfa6f2f9b7b4810039a5e4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1c167da48c7bddc4acfa6f2f9b7b4810039a5e4

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Mon Oct  4 16:36:23 2021 -0500

util/set: Respect found in search_or_add_pre_hashed

Fixes: 491e7decad0f "util/set: add the found param to search_or_add"
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13184>
(cherry picked from commit 21a7b0f1abbfc3ed0ebf1194ef530ca2497616e5)

---

 .pick_status.json | 2 +-
 src/util/set.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index a5b10d22730..71ee7749fc1 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -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"
     },
diff --git a/src/util/set.c b/src/util/set.c
index 37bd689e81a..2a3c1665865 100644
--- a/src/util/set.c
+++ b/src/util/set.c
@@ -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);
 }
 
 /**



More information about the mesa-commit mailing list