Multiple EGL displays with multiple window systems leads to a crash
Submitted by Cédric Legrand
Assigned to mes..@..op.org
Description
Created attachment 126460 mesa-12.0.2-multiple-egl-displays.patch
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.
Patch 126460, "mesa-12.0.2-multiple-egl-displays.patch":
mesa-12.0.2-multiple-egl-displays.patch
Version: 12.0