util/idalloc: add lowest_free_idx to avoid iterating from 0
lowest_free_idx is a conservative estimation of the lowest index where a free id can be found. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6600>
This commit is contained in:
@@ -38,6 +38,7 @@ struct util_idalloc
|
||||
{
|
||||
uint32_t *data;
|
||||
unsigned num_elements;
|
||||
unsigned lowest_free_idx;
|
||||
};
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user