<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Multiple EGL displays with multiple window systems leads to a crash"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97766">97766</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Multiple EGL displays with multiple window systems leads to a crash
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>12.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>EGL
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>legrand.cedric.01@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=126460" name="attach_126460" title="mesa-12.0.2-multiple-egl-displays.patch">attachment 126460</a> <a href="attachment.cgi?id=126460&action=edit" title="mesa-12.0.2-multiple-egl-displays.patch">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=97766&attachment=126460'>[review]</a>
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 :
<a href="https://bugs.launchpad.net/mir/+bug/1122394">https://bugs.launchpad.net/mir/+bug/1122394</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>