Re: Mesa 17 Wayland EGL changes
Pekka Paalanen <[email protected]>
| Newsgroups | gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <20170213132358.7a9fa884@eldfell> |
On Mon, 13 Feb 2017 11:59:01 +0100 Cédric Legrand <[email protected]> wrote: > Hello, > > I'm working on a Wayland compositor and the latest Mesa update broke my > work. After investigating, I found that I need to use the > EGL_WL_wayland_bind_display extension, otherwise my compositor crashes with > wl_shm reporting an invalid format. I'm not an OpenGL expert, but I spent > the last few days reading documentation, inspecting weston's source code > and googling with no luck. > > Question 1: Is it necessary to have the extension? Why don't Mesa support > plain old wl_shm anymore? Unless I missed something, this means we can't > use OpenGL anymore for software rendering in Wayland, am I right? Hi, that sounds like a new bug in Mesa, but what is this "invalid format" error you mention? The extension is necessary for hardware accelerated OpenGL for clients only. > At the moment, I'm trying to load an EGL window before falling back to a > non-opengl rendering mode in case of error. The problem here is that doing > so now crahes the whole compositor, and the only way I see to do this is > checking if the wl_drm interface is provided before trying to create the > window, meaning an other roundtrip. Do not write code to inspect or use wl_drm, ever. It is not portable. I am slightly confused here. Are you talking about an application (a client), your compositor, or your compositor as a Wayland client? > Question 2: Shouldn't the window creation simply fail if wl_drm is not > available, letting me fallback to another rendering mode? In a Wayland client Mesa EGL should just silently revert to software rendering if wl_drm is not available. That is how it has worked, and if it no longer does, I would consider it a bug. I suspect the key to your problem lies in the "invalid format" error. Thanks, pq _______________________________________________ mesa-users mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-users
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJYoZdOAAoJECNf5bQRqqqnHooP/1fwyNDcT27nKOjDA0MUH3vO aefQgRitlQgqzYOuMNT18p6b1EmTqP/vrTjBX0mC6EWDJAxRU4H+7NDGp0UT5+BB T8td09M9iSixdhrUrnSaPrOKiwNMeATjycRWCIDH3IS8xn+wqsxnGHsZNROlb0lu cMXz5OZGFYsCPWQgZjp8D4iSNXvasFoNURjA1Xpqd9hfz7JTR9DK756ofPt3FNLp hl+oO8J466o5/xlAPsT+SW4iFEwLlN/4AqayRxJ1XgNwbimO7/r/I8oO9/YnFuJA uqU/rCv3Kp7erI+6i8Zu2oEE2VAjTEK/ly47hyhXyap2tG4PL6ZHp9tH3NrQaG6G 0LmaMUB1AIDKB6cpRMYVUFR2WcgQwmigZ93ECougN8orRwOjxIHQsANG6LjRx9dx VtNDKpnfakgKy7KswdVoqhbFAeB0rot90GffsF8bPsms5/BPcrze307vwytg9qdW pIfcemGH8PQeEvNyLdq5NPHoh3endBZBHM7Zn7ufe5Z9mb2E2FBh3/XYEAfufmjL mW5ZJwHK2tPuO2mGbdLFh22eH3Ljl/ENTJrY5WX1ldmEH2cBiUtki9/qYs0YNj1V RsmWquCHAFrRLjCywzsvZNaz+YLLNcn+5O0/H39SdWBGEF6Exd0xxDeA/RcSK98x 2eYsKLnxA1SpwHMS6KoE =X9pu -----END PGP SIGNATURE-----