the DRM lock is taken per-screen, but the lockRefCount variable in GL/dri/dri.c is per-server. this seems wrong conceptually, though i'm having trouble thinking of a case where it would matter. should we move it into the DRIScreenPrivRec ?
Created attachment 3093 [details] [review] dri-per-screen-lock-refcount-1.patch in fact it does matter. the scenario is: server takes lock on screen 1 server goes to lock screen 2, sees global refcount > 0, skips server touches screen 2 while DRI client active on screen 2 in other words, DRI activity on screen 2 -> death. attached patch moves the refcount into the DRIScreenPrivRec, so the lock will get taken for every screen.
applied to head, closing.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.