Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6225>
/** Offset relative to the start of the slab buffer. */
pb_size start;
-
- /** Use when validating, to signal that all mappings are finished */
- /* TODO: Actually validation does not reach this stage yet */
- cnd_t event;
};
struct pb_slab_buffer *buf = pb_slab_buffer(_buf);
--buf->mapCount;
- if (buf->mapCount == 0)
- cnd_broadcast(&buf->event);
}
buf->slab = slab;
buf->start = i* mgr->bufSize;
buf->mapCount = 0;
- cnd_init(&buf->event);
list_addtail(&buf->head, &slab->freeBuffers);
slab->numFree++;
buf++;