From 273f6e769897032b15a8739394669fd11f76f145 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sun, 25 Nov 2007 20:23:10 +0000 Subject: gallium: Remove buffer_unfence and buffer_finish. These interfaces have been deemed useless by Keith. --- src/mesa/pipe/pipebuffer/pb_buffer_fenced.c | 24 ------------------------ src/mesa/pipe/pipebuffer/pb_buffer_fenced.h | 21 --------------------- 2 files changed, 45 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/pipe/pipebuffer/pb_buffer_fenced.c b/src/mesa/pipe/pipebuffer/pb_buffer_fenced.c index c5a06c545e1..e69f88a323a 100644 --- a/src/mesa/pipe/pipebuffer/pb_buffer_fenced.c +++ b/src/mesa/pipe/pipebuffer/pb_buffer_fenced.c @@ -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) { diff --git a/src/mesa/pipe/pipebuffer/pb_buffer_fenced.h b/src/mesa/pipe/pipebuffer/pb_buffer_fenced.h index d12428e216b..07e42a67f87 100644 --- a/src/mesa/pipe/pipebuffer/pb_buffer_fenced.h +++ b/src/mesa/pipe/pipebuffer/pb_buffer_fenced.h @@ -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_*/ -- cgit v1.2.3