Re: [Mesa-users] Is there a better way to validate wl_display passed in at eglGetDispaly()?
Pekka Paalanen <[email protected]>
| Newsgroups | gmane.comp.freedesktop.wayland.devel,gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <20170128011819.64dd608c@farn> |
On Fri, 27 Jan 2017 18:29:18 +0000 "Ruei, Eric" <[email protected]> wrote: > To whom it may concern: > > We would like to bring your attention to a potential wayland-egl > issue with openCV Python script. > > The issue is that both Mesa and our mechanism to identify the > wl_display client from eglGetDIspaly() call fails for openCV > Python script. Hi, I believe the only bullet-proof option is to stop using eglGetDisplay with magical argument detection, and use eglGetPlatformDisplay instead: https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_platform_wayland.txt That said, libwayland-client.so and libwayland-server.so each contain an identical definition of wl_display_interface symbol. There has been talk about moving the duplicate parts into a third new library loaded by both of the existing ones, but so far we haven't seen an obvious benefit from it. Maybe this would be such a case? OTOH, the magical argument detection can never be reliable, so fixing it while the underlying design is broken is questionable. However, if you find the symbol wl_display_interface defined in any other binary than libwayland-client.so and libwayland-server.so, you might want to look into removing those. It will still leave the two definitions, but if you insist, maybe those could be consolidated by a careful linking order. Thanks, pq _______________________________________________ wayland-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/wayland-devel
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIbBAEBCAAGBQJYi9U7AAoJECNf5bQRqqqnPQ0P+MeZkYdNmfr5wM4pFkvCk2K0 ca0sZlD0JdsMELoZoY5wde/LFmE61STily3523UYIqyRBZWxbq0MNL1TT/z32iCi mI4k1jxYnF34koL2VKr3VzfdWiU+89WchYB/qedSiatD/g7GkByt0T59xRbtzKuX H0lfj9jLO02FKnv2J0NRljuvKZf3avi0snfzlK01W44ZJC3BtfQJliOaLFET+wFK LV4YTIOiKm9DmL/LY5IOGimkV7qYVWTeSLC1enuoBzFuPDutFPjGOx5zFH+TibSt hvQqmtP7GThjLFpA4ELA2c2q86SKqPIZnzmrLFdiuD+UQe7UNxA4vTWFJTRNCKqg cJurZA/TxnKbS86pk43fj8y+rbakVTrNG6/c2q/b8ehigYTTgdojvV/TolKKiUGu EdFjsbelLewAvf+z99gJxkVfuQyv7siebpKhgh2jZgLcMdRp1hKDuE+Jf07166ij Jr7jTRM1NJJXlFWFU/ra6uTZb7OZKQ0mR6w21+VnJ2vs5tZaHfGDu1USXXUP7fNw 1iZA8TyUO2Mr+BKBQQ/qOniYn82bwYW8Sggz7UGN+Eu0cNlmJqtpfNGL3luNxFGW YomV30i4usROGM7JW6CUCIP2CqzN2MJnDo3ffVQHTJCrVotlJolqI/tasZnxocgc jhFH2gYz21WMR9fr/KA= =Hc3D -----END PGP SIGNATURE-----