mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
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:
parent
9f4f87893b
commit
c36b912e09
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue