Lines Matching defs:buffer
29 * Create an upload buffer. This is called from the app thread, so everything
80 /* Allocate a new buffer if needed. */
82 /* If the size is greater than the buffer size, allocate a separate buffer
116 * This function has to return a buffer reference to the caller.
118 * increments in advance when the upload buffer is allocated.
120 * buffer is default_size, because the minimum allocation size is 1.
125 * upload_buffer_private_refcount tracks how many buffer references
126 * are left to return to callers. If the buffer is full and there are
128 * before the buffer is unreferenced.
158 * Note that GL core makes it so that a buffer binding with an invalid handle
159 * in the "buffer" parameter will throw an error, and then a
169 * "buffer" is valid, so that we can know when an error will be generated
171 * feature that if you pass a bad name, it just gens a buffer object for you,
175 _mesa_glthread_BindBuffer(struct gl_context *ctx, GLenum target, GLuint buffer)
181 glthread->CurrentArrayBufferName = buffer;
184 /* The current element array buffer binding is actually tracked in the
188 glthread->CurrentVAO->CurrentElementBufferName = buffer;
191 glthread->CurrentDrawIndirectBufferName = buffer;
194 glthread->CurrentPixelPackBufferName = buffer;
197 glthread->CurrentPixelUnpackBufferName = buffer;
200 glthread->CurrentQueryBufferName = buffer;
343 _mesa_marshal_NamedBufferData(GLuint buffer, GLsizeiptr size,
346 _mesa_marshal_BufferData_merged(buffer, size, data, usage, true, false,
351 _mesa_marshal_NamedBufferDataEXT(GLuint buffer, GLsizeiptr size,
354 _mesa_marshal_BufferData_merged(buffer, size, data, usage, true, true,
420 /* Fast path: Copy the data to an upload buffer, and use the GPU
421 * to copy the uploaded data to the destination buffer.
425 * the buffer storage, but we don't know the buffer size in glthread.
481 _mesa_marshal_NamedBufferSubData(GLuint buffer, GLintptr offset,
484 _mesa_marshal_BufferSubData_merged(buffer, offset, size, data, true,
489 _mesa_marshal_NamedBufferSubDataEXT(GLuint buffer, GLintptr offset,
492 _mesa_marshal_BufferSubData_merged(buffer, offset, size, data, true,