Created attachment 139356 [details]
back trace of hang
DRI3 and an application started with xinit causes the glut draw function to hang if the following three functions are used together (see backtrace.txt and example app).
Commenting out any one of these 3 functions allows the application to run correctly.
Forcing DRI2 allows the application to work correctly with those 3 function calls intact.
OS: debian testing
Created attachment 139357 [details]
Created attachment 139358 [details]
Created attachment 139359 [details]
Doesn't look driver specific, reassigning to Mesa core.
*** Bug 107290 has been marked as a duplicate of this bug. ***
Created attachment 141440 [details] [review]
loader/dri3: Only wait for fence when necessary in dri3_get_buffer
This patch fixes the problem for me.
Thanks for the report, fixed in Git master:
Author: Michel Dänzer <firstname.lastname@example.org>
Date: Tue Sep 4 18:18:57 2018 +0200
loader/dri3: Don't wait for fence of old buffer when re-allocating it