}
-void
-buffer_unfence(struct pipe_buffer *buf)
-{
- buffer_fence(buf, NULL);
-}
-
-
-int
-buffer_finish(struct pipe_buffer *buf,
- unsigned flag)
-{
- if(buf->vtbl == &fenced_buffer_vtbl) {
- struct fenced_buffer *fenced_buf = fenced_buffer(buf);
- if(fenced_buf->fence) {
- struct fenced_buffer_list *fenced_list = fenced_buf->list;
- struct pipe_winsys *winsys = fenced_list->winsys;
- return winsys->fence_finish(winsys, fenced_buf->fence, flag);
- }
- }
-
- return 0;
-}
-
-
struct fenced_buffer_list *
fenced_buffer_list_create(struct pipe_winsys *winsys)
{
struct pipe_fence_handle *fence);
-/**
- * Remove the buffer's fence.
- *
- * NOTE: Although it takes a generic pipe buffer argument, it will fail
- * on everything but buffers returned by fenced_buffer_create.
- */
-void
-buffer_unfence(struct pipe_buffer *buf);
-
-
-/**
- * Wait for the buffer fence to signal.
- *
- * See also pipe_winsys::fence_finish().
- */
-int
-buffer_finish(struct pipe_buffer *buf,
- unsigned flag);
-
-
-
#endif /*PB_BUFFER_FENCED_H_*/