Lines Matching defs:buffer
45 struct pipe_resource *buffer = obj->buffer;
47 if (unlikely(!buffer))
54 p_atomic_inc(&buffer->reference.count);
55 return buffer;
63 p_atomic_add(&buffer->reference.count, obj->private_refcount);
66 /* Return a buffer reference while decrementing the private refcount. */
68 return buffer;
109 /** Is the given buffer object currently mapped by the GL user? */
118 * Check whether the given buffer object is illegally mapped prior to
119 * drawing from (or reading back to) the buffer.
120 * Note that it's legal for a buffer to be mapped at draw/readback time
122 * \return true if the buffer is illegally mapped, false otherwise
141 GLuint buffer,
150 _mesa_lookup_bufferobj(struct gl_context *ctx, GLuint buffer);
153 _mesa_lookup_bufferobj_locked(struct gl_context *ctx, GLuint buffer);
156 _mesa_lookup_bufferobj_err(struct gl_context *ctx, GLuint buffer,
176 * Assign a buffer into a pointer with reference counting. The destination
189 * Assign a buffer into a pointer with reference counting. The destination