Lines Matching refs:buffer
29 /* A simple allocator that suballocates memory from a large buffer. */
43 * \param zero_buffer_memory determines whether the buffer contents should be
67 pipe_resource_reference(&allocator->buffer, NULL);
77 /* Don't allow allocations larger than the buffer size. */
81 /* Make sure we have enough space in the buffer. */
82 if (!allocator->buffer ||
84 /* Allocate a new buffer. */
85 pipe_resource_reference(&allocator->buffer, NULL);
101 allocator->buffer = screen->resource_create(screen, &templ);
102 if (!allocator->buffer)
112 pipe->clear_buffer(pipe, allocator->buffer, 0, allocator->size,
116 void *ptr = pipe_buffer_map(pipe, allocator->buffer,
125 assert(allocator->offset < allocator->buffer->width0);
126 assert(allocator->offset + size <= allocator->buffer->width0);
128 /* Return the buffer. */
130 pipe_resource_reference(outbuf, allocator->buffer);