gallium: Remove buffer_unfence and buffer_finish.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Sun, 25 Nov 2007 20:23:10 +0000 (20:23 +0000)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sun, 9 Dec 2007 14:06:00 +0000 (14:06 +0000)
These interfaces have been deemed useless by Keith.

src/mesa/pipe/pipebuffer/pb_buffer_fenced.c
src/mesa/pipe/pipebuffer/pb_buffer_fenced.h

index c5a06c545e1f50a9193b294250d6eaec975b8859..e69f88a323a87d81b606499d71a90a69078e1b2d 100644 (file)
@@ -261,30 +261,6 @@ buffer_fence(struct pipe_buffer *buf,
 }
 
 
-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) 
 {
index d12428e216bba1cffb3595fce42f4cd60902adb7..07e42a67f87b62838ae1e4c6a143b0c433852968 100644 (file)
@@ -114,25 +114,4 @@ buffer_fence(struct pipe_buffer *buf,
              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_*/