[Mesa-dev] [Bug 98172] Concurrent call to glClientWaitSync results in segfault in one of the waiters.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Oct 17 20:14:39 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=98172
--- Comment #22 from Marek Olšák <maraeo at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161017/155e1be2/attachment.html>
More information about the mesa-dev
mailing list