Home
last modified time | relevance | path

Searched refs:new_num_elements (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/util/
Du_idalloc.c40 util_idalloc_resize(struct util_idalloc *buf, unsigned new_num_elements) in util_idalloc_resize() argument
42 if (new_num_elements > buf->num_elements) { in util_idalloc_resize()
43 buf->data = realloc(buf->data, new_num_elements * sizeof(*buf->data)); in util_idalloc_resize()
45 (new_num_elements - buf->num_elements) * sizeof(*buf->data)); in util_idalloc_resize()
46 buf->num_elements = new_num_elements; in util_idalloc_resize()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_descriptors.c2348 unsigned new_num_elements = desc->num_elements * 2; in si_get_first_free_bindless_slot() local
2351 REALLOC(desc->list, desc->num_elements * slot_size, new_num_elements * slot_size); in si_get_first_free_bindless_slot()
2352 desc->num_elements = new_num_elements; in si_get_first_free_bindless_slot()
2353 desc->num_active_slots = new_num_elements; in si_get_first_free_bindless_slot()