mesa: add GL name reuse support
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 17 Aug 2020 14:18:50 +0000 (16:18 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 10 Sep 2020 07:07:11 +0000 (09:07 +0200)
commitfefc6d264a12ec7ef999c60eb188719c01bea172
tree99d91040de2f4f38e59813898afddc9c0b695194
parent34852124db9cbadb0d2a7aef5cbf77e7c5957879
mesa: add GL name reuse support

This will allow drivers to adopt the behavior of proprietary drivers that seem
to return the lowest available name (while Mesa returns max_seen_name + 1).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6600>
src/mesa/main/hash.c
src/mesa/main/hash.h