[Bug 111784] Hang when using glWaitSync with multithreaded shared GL contexts

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 24 07:40:07 UTC 2019


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

--- Comment #3 from Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com> ---
Created attachment 145487
  --> https://bugs.freedesktop.org/attachment.cgi?id=145487&action=edit
output from gdb

Using the env var "GALLIUM_THREAD=0" makes the issue worse (the example hangs
at the first iteration).

One app thread is stuck at: glWaitSync(_textureUploadFence, 0,
GL_TIMEOUT_IGNORED);

The other thread is stuck waiting for the first thread to release the mutex.
Before waiting for the mutex it made a call to: "_textureUploadFence =
glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);"

All the mesa internal threads are waiting for work to do.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190924/e26fc2c5/attachment.html>


More information about the dri-devel mailing list