diff options
author | Luca Barbieri <[email protected]> | 2010-02-23 08:55:38 -0800 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-02-23 19:50:24 +0000 |
commit | c36b912e09a12b60d26fd1ebe0939b457514d800 (patch) | |
tree | 2dc68ab306264e7ed104e24a571992014d4323de /src/gallium/auxiliary | |
parent | 9f4f87893b4d3555204a1a66d108f8f9185e3d14 (diff) |
pipebuffer: fix inverted signalled checking
A return of 0 means the fence is signalled.
Signed-off-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c index 95eb5f65635..d97f749b6ed 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c +++ b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c @@ -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; } |