Home | History | Annotate | Download | only in pipebuffer

Lines Matching refs:buf

122    void (*destroy)( struct pb_buffer *buf );
128 void *(*map)( struct pb_buffer *buf,
131 void (*unmap)( struct pb_buffer *buf );
133 enum pipe_error (*validate)( struct pb_buffer *buf,
137 void (*fence)( struct pb_buffer *buf,
151 void (*get_base_buffer)( struct pb_buffer *buf,
162 pb_map(struct pb_buffer *buf,
165 assert(buf);
166 if(!buf)
168 assert(pipe_is_referenced(&buf->reference));
169 return buf->vtbl->map(buf, flags, flush_ctx);
174 pb_unmap(struct pb_buffer *buf)
176 assert(buf);
177 if(!buf)
179 assert(pipe_is_referenced(&buf->reference));
180 buf->vtbl->unmap(buf);
185 pb_get_base_buffer( struct pb_buffer *buf,
189 assert(buf);
190 if(!buf) {
195 assert(pipe_is_referenced(&buf->reference));
196 assert(buf->vtbl->get_base_buffer);
197 buf->vtbl->get_base_buffer(buf, base_buf, offset);
204 pb_validate(struct pb_buffer *buf, struct pb_validate *vl, unsigned flags)
206 assert(buf);
207 if(!buf)
209 assert(buf->vtbl->validate);
210 return buf->vtbl->validate(buf, vl, flags);
215 pb_fence(struct pb_buffer *buf, struct pipe_fence_handle *fence)
217 assert(buf);
218 if(!buf)
220 assert(buf->vtbl->fence);
221 buf->vtbl->fence(buf, fence);
226 pb_destroy(struct pb_buffer *buf)
228 assert(buf);
229 if(!buf)
231 assert(!pipe_is_referenced(&buf->reference));
232 buf->vtbl->destroy(buf);