2ff38260b9
Previously rb_tree_search would return the first node encountered, but that may not be the first node that would be encoutnered by, say, rb_tree_foreach. Two test cases are added. v2: Add more curly braces. Suggested by Faith. Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24856>