pipebuffer: Fix copy'n'paste typo.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 3 Mar 2009 12:01:01 +0000 (12:01 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 3 Mar 2009 12:01:01 +0000 (12:01 +0000)
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c

index 9282bca2eb8aa4744fd83ea5f5b220e2509c2892..1fb4ed8ccd355126afedc53363f5b7bf9d0eff1f 100644 (file)
@@ -302,7 +302,7 @@ fenced_buffer_map(struct pb_buffer *buf,
       ((fenced_buf->flags & PIPE_BUFFER_USAGE_GPU_READ) && (flags & PIPE_BUFFER_USAGE_CPU_WRITE))) {
       if(flags & PIPE_BUFFER_USAGE_DONTBLOCK) {
          /* Don't wait for the GPU to finish writing */
-         if(winsys->fence_finish(winsys, fenced_buf->fence, 0) == 0)
+         if(winsys->fence_signalled(winsys, fenced_buf->fence, 0) == 0)
             _fenced_buffer_remove(fenced_list, fenced_buf);
          else
             return NULL;