util/idalloc: add util_idalloc_reserve
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 7 Sep 2020 12:47:47 +0000 (14:47 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 10 Sep 2020 07:07:11 +0000 (09:07 +0200)
commite808d38299565669105fc95d1b4a469f79b070c5
treee7065e60f0cfed7fb0334ff59364a5ec58ac3a26
parent87ef970ee65535d026a2bcd8a0e82cf84164e10b
util/idalloc: add util_idalloc_reserve

Can be used to mark an id as used (if it was reclaimed without using
util_idalloc_alloc).

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