From: Luca Barbieri Date: Tue, 23 Feb 2010 16:55:38 +0000 (-0800) Subject: pipebuffer: fix inverted signalled checking X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c36b912e09a12b60d26fd1ebe0939b457514d800;p=mesa.git pipebuffer: fix inverted signalled checking A return of 0 means the fence is signalled. Signed-off-by: José Fonseca --- 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; }