pipebuffer: fix inverted signalled checking

A return of 0 means the fence is signalled.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
Luca Barbieri 2010-02-23 08:55:38 -08:00 committed by José Fonseca
parent 9f4f87893b
commit c36b912e09

View 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;
}