Lines Matching refs:block
111 * Include the first block of data statically to ensure we can always
200 * Grow the block list if needed.
206 struct data_block *block = list->head;
209 assert(block != NULL);
212 debug_printf("alloc %u block %u/%u tot %u/%u\n",
213 size, block->used, DATA_BLOCK_SIZE,
216 if (block->used + size > DATA_BLOCK_SIZE) {
217 block = lp_scene_new_data_block( scene );
218 if (!block) {
225 ubyte *data = block->data + block->used;
226 block->used += size;
240 struct data_block *block = list->head;
242 assert(block != NULL);
245 debug_printf("alloc %u block %u/%u tot %u/%u\n",
247 block->used, DATA_BLOCK_SIZE,
250 if (block->used + size + alignment - 1 > DATA_BLOCK_SIZE) {
251 block = lp_scene_new_data_block( scene );
252 if (!block)
257 ubyte *data = block->data + block->used;
259 block->used += offset + size;