[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
Thu Oct 20 03:48:31 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98172

--- Comment #40 from Suzuki, Shinji <shinji.suzuki at gmail.com> ---
Sorry I misunderstood your question and thought that you are asking if my
modification works or not. Your patch should work if mine works because yours
has tighter serialization. (My modification does not acquire mutex while
duplicating so->fence)

Yours is;
+   mtx_lock(&ctx->Shared->Mutex);
+   screen->fence_reference(screen, &fence, so->fence);
+   mtx_unlock(&ctx->Shared->Mutex);

Mine is;
+   screen->fence_reference(screen, &fence, so->fence);


(In reply to Michel Dänzer from comment #37)
> Created attachment 127413 [details] [review]
> Only protect concurrent access to so->fence
> 
> Based on the discussion so far, this patch only protects concurrent acccess
> to so->fence. Shinji-san, does this work reliably for your test case?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161020/b4bdbb85/attachment-0001.html>


More information about the mesa-dev mailing list