Created attachment 126460 [details] [review]
When opening multiple displays from multiple window systems, an application will crash. The second display is opened with the first one driver, leading to a crash. I know this is a side case, but I could not find it forbidden in the EGL spec.
This may be usefull for example when opening an X11 display and then a Wayland one to render Wayland applications in X11. I know it can be rendered directly, but my use case is more complex than this.
This bug was reported against Mir some years ago, but it is still not fixed in Mesa 12.0.2. You may find the bug here : https://bugs.launchpad.net/mir/+bug/1122394
I updated the Mir patch to apply against the latest release, please find it attached. It seems to work after a quick test, but I did not deeply tested it for the main reason that I don't know how. I don't have a simple example, but I can make one if needed.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/156.