Lines Matching defs:buffer
63 /* create a buffer in the winsys */
64 bool rvid_create_buffer(struct pipe_screen *screen, struct rvid_buffer *buffer,
67 memset(buffer, 0, sizeof(*buffer));
68 buffer->usage = usage;
70 /* Hardware buffer placement restrictions require the kernel to be
72 * non-sub-allocated buffer.
74 buffer->res = (struct r600_resource *)
78 return buffer->res != NULL;
81 /* destroy a buffer */
82 void rvid_destroy_buffer(struct rvid_buffer *buffer)
84 r600_resource_reference(&buffer->res, NULL);
87 /* reallocate a buffer, preserving its content */
129 /* clear the buffer with zeros */
130 void rvid_clear_buffer(struct pipe_context *context, struct rvid_buffer* buffer)
134 rctx->dma_clear_buffer(context, &buffer->res->b.b, 0,
135 buffer->res->buf->size, 0);
140 * join surfaces into the same buffer with identical tiling params