https://bugs.freedesktop.org/show_bug.cgi?id=98172
--- Comment #22 from Marek Olšák <mar...@gmail.com> ---
It would be better to call fence_finish while not holding the mutex. For
example:
mtx_lock(&so->mtx);
/* If the fence doesn't exist, assume it's signalled. */
if (so->fence) {
struct pipe_fence_handle *fence = NULL;
screen->fence_reference(screen, &fence, so->fence);
mtx_unlock(&so->mtx);
if (screen->fence_finish(screen, fence, timeout)) {
mtx_lock(&so->mtx);
screen->fence_reference(screen, &so->fence, NULL);
so->b.StatusFlag = GL_TRUE;
mtx_unlock(&so->mtx);
}
screen->fence_reference(screen, &fence, NULL);
} else {
mtx_unlock(&so->mtx);
}
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev