Bug 97766 - Multiple EGL displays with multiple window systems leads to a crash
Summary: Multiple EGL displays with multiple window systems leads to a crash
Status: NEW
Alias: None
Product: Mesa
Classification: Unclassified
Component: EGL (show other bugs)
Version: 12.0
Hardware: All All
: medium minor
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-11 11:51 UTC by Cédric Legrand
Modified: 2016-09-11 11:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
mesa-12.0.2-multiple-egl-displays.patch (815 bytes, patch)
2016-09-11 11:51 UTC, Cédric Legrand
Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric Legrand 2016-09-11 11:51:45 UTC
Created attachment 126460 [details] [review]
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.


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.