Lines Matching refs:buffer
301 struct dri2_buffer *buffer;
352 buffer = CALLOC_STRUCT(dri2_buffer);
353 if (!buffer)
366 buffer->resource =
368 if (!buffer->resource) {
369 FREE(buffer);
380 buffer->resource, &whandle,
383 buffer->base.attachment = attachment;
384 buffer->base.name = whandle.handle;
385 buffer->base.cpp = util_format_get_blocksize(pf);
386 buffer->base.pitch = whandle.stride;
388 return &buffer->base;
394 struct dri2_buffer *buffer = dri2_buffer(bPriv);
396 pipe_resource_reference(&buffer->resource, NULL);
397 FREE(buffer);
474 /* See if we need a depth-stencil buffer. */
484 /* Don't delete the depth-stencil buffer, we can reuse it. */
567 /* Note: if there is both a back and a front buffer,
675 /* Allocate a private depth-stencil buffer. */
721 * to DRI3/Wayland, users of image.loader, since the buffer is managed
722 * by the client (no import), and the back buffer is going to change
747 /* We need to flush for front buffer rendering when either we're using the
748 * front buffer at the GL API level, or when EGL_KHR_mutable_render_buffer
749 * has redirected GL_BACK to the front buffer.
756 /* Resolve the buffer used for front rendering. */
2021 * "CL_INVALID_GL_OBJECT if bufobj is not a GL buffer object or is
2022 * a GL buffer object but does not have an existing data store or
2023 * the size of the buffer is 0."
2030 res = buf->buffer;
2111 if (!stBuf || !stBuf->buffer) {
2116 res = stBuf->buffer;
2145 /* Incomplete texture buffer object? This shouldn't really occur. */
2439 /* Ensure the extension list didn't overrun its buffer and is still