pipebuffer: fix inverted signalled checking
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Feb 2010 16:55:38 +0000 (08:55 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 23 Feb 2010 19:50:24 +0000 (19:50 +0000)
A return of 0 means the fence is signalled.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c

index 95eb5f65635609607dd9bd06f4a645952d975ee4..d97f749b6ed12de422c13193a992180cd4364e82 100644 (file)
@@ -696,7 +696,7 @@ fenced_buffer_map(struct pb_buffer *buf,
        * Don't wait for the GPU to finish accessing it, if blocking is forbidden.
        */
       if((flags & PIPE_BUFFER_USAGE_DONTBLOCK) &&
-          ops->fence_signalled(ops, fenced_buf->fence, 0) == 0) {
+          ops->fence_signalled(ops, fenced_buf->fence, 0) != 0) {
          goto done;
       }