abooij / sudbury

Haskell implementation of the wayland protocol
MIT License
89 stars 5 forks source link

Add sudbury support to mesa? #8

Open abooij opened 8 years ago

abooij commented 8 years ago

It looks like mesa does some hackery to detect pointers to libwayland objects. In particular, in the function _eglNativePlatformDetectNativeDisplay in src/egl/main/egldisplay.c:

if (first_pointer == &wl_display_interface)
   return _EGL_PLATFORM_WAYLAND;

But as far as I know, mesa does not break encapsulation anywhere else. So fixing this instance might be sufficient. I'm not sure what the impact of this is.

abooij commented 8 years ago

After appropriate fixes in #5, weston-simple-egl now runs fine. So it seems the impact of this need not be big. (I'm not sure what happens server side: this is not testable because of #3.)