Re: Recognizing wl_display pointer for EGL (Re: Smart comparing of wl_display_interfaces)

2014-10-24 Thread Jason Ekstrand
On Thu, Oct 16, 2014 at 11:16 PM, Pekka Paalanen ppaala...@gmail.com wrote: On Thu, 16 Oct 2014 10:40:20 +0300 Pekka Paalanen ppaala...@gmail.com wrote: On Thu, 16 Oct 2014 09:46:39 +0300 Pekka Paalanen ppaala...@gmail.com wrote: On Wed, 15 Oct 2014 22:44:25 +0400 Dmitry Cherkassov

Re: Smart comparing of wl_display_interfaces

2014-10-24 Thread Pekka Paalanen
On Thu, 16 Oct 2014 09:46:39 +0300 Pekka Paalanen ppaala...@gmail.com wrote: On Wed, 15 Oct 2014 22:44:25 +0400 Dmitry Cherkassov dcherkas...@gmail.com wrote: Hi list! The definition of wl_display_interface symbol can come from libwayland-server.so or libwayland-client.so. There

Re: Recognizing wl_display pointer for EGL (Re: Smart comparing of wl_display_interfaces)

2014-10-19 Thread Pekka Paalanen
On Sat, 18 Oct 2014 11:19:55 -0700 Jason Ekstrand ja...@jlekstrand.net wrote: On Thu, Oct 16, 2014 at 11:16 PM, Pekka Paalanen ppaala...@gmail.com wrote: On Thu, 16 Oct 2014 10:40:20 +0300 Pekka Paalanen ppaala...@gmail.com wrote: On Thu, 16 Oct 2014 09:46:39 +0300 Pekka Paalanen

Re: Recognizing wl_display pointer for EGL (Re: Smart comparing of wl_display_interfaces)

2014-10-19 Thread Jason Ekstrand
On Oct 19, 2014 12:03 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Sat, 18 Oct 2014 11:19:55 -0700 Jason Ekstrand ja...@jlekstrand.net wrote: On Thu, Oct 16, 2014 at 11:16 PM, Pekka Paalanen ppaala...@gmail.com wrote: On Thu, 16 Oct 2014 10:40:20 +0300 Pekka Paalanen

Re: Recognizing wl_display pointer for EGL (Re: Smart comparing of wl_display_interfaces)

2014-10-18 Thread Kalrish Bäakjen
If I understood it right, Dmitry, you are working on an EGL implementation that should dynamically detect the type of the object passed to eglGetDisplay. Mesa already does that, but it is ugly and just a hack that should be avoided. eglGetDisplay was not designed to support multiple platforms,

Re: Recognizing wl_display pointer for EGL (Re: Smart comparing of wl_display_interfaces)

2014-10-18 Thread Steven Newbury
On Sat, 2014-10-18 at 18:41 +0200, Kalrish Bäakjen wrote: If I understood it right, Dmitry, you are working on an EGL implementation that should dynamically detect the type of the object passed to eglGetDisplay. Mesa already does that, but it is ugly and just a hack that should be avoided.

Recognizing wl_display pointer for EGL (Re: Smart comparing of wl_display_interfaces)

2014-10-17 Thread Pekka Paalanen
On Thu, 16 Oct 2014 10:40:20 +0300 Pekka Paalanen ppaala...@gmail.com wrote: On Thu, 16 Oct 2014 09:46:39 +0300 Pekka Paalanen ppaala...@gmail.com wrote: On Wed, 15 Oct 2014 22:44:25 +0400 Dmitry Cherkassov dcherkas...@gmail.com wrote: Hi list! The definition of

Re: Recognizing wl_display pointer for EGL (Re: Smart comparing of wl_display_interfaces)

2014-10-17 Thread Bill Spitzak
On 10/16/2014 11:16 PM, Pekka Paalanen wrote: ...adding a function int/bool wl_is_wl_display_pointer(void *p) into libwayland-client.so. As that function would be built into libwayland-client.so, it naturally uses the client.so version of wl_display_interface symbol (unless dynamic linking

Re: Smart comparing of wl_display_interfaces

2014-10-16 Thread Pekka Paalanen
On Wed, 15 Oct 2014 22:44:25 +0400 Dmitry Cherkassov dcherkas...@gmail.com wrote: Hi list! The definition of wl_display_interface symbol can come from libwayland-server.so or libwayland-client.so. There is a code in closed source EGL implementation that does interfaces comparison via