On 15 September 2017 at 14:04, Daniel Stone <dan...@fooishbar.org> wrote: > Hi, > > On 15 September 2017 at 12:20, Emil Velikov <emil.l.veli...@gmail.com> wrote: >> On 7 September 2017 at 19:05, Emil Velikov <emil.l.veli...@gmail.com> wrote: >>> The function is effectively a direct function call into >>> libwayland-server.so >>> >> >> "By inlining it we no longer need the wayland-drm static library in GBM. >> Making the libgbm.so binary smaller, and the build process a bit more >> straightforward." >> >> I'll add ^^ to the commit message. > > I'd be slightly wary of this current series. Currently, both > libwayland-server.so and libwayland-client.so define > wl_buffer_interface separately: > strictly:~/misc/visa% objdump -x > ~/prefix/wayland/lib/libwayland-server.so.0.1.0 | grep wl_buffer_int > 0000000000212e40 g O .data.rel.ro 0000000000000028 > wl_buffer_interface > strictly:~/misc/visa% objdump -x > ~/prefix/wayland/lib/libwayland-client.so.0.3.0| grep wl_buffer_int > 000000000020dea0 g O .data.rel.ro 0000000000000028 > wl_buffer_interface > Right, I tried to address that but there were some objection from yourself/Pekka.
> I'll grant you that it's basically pot luck as to which one is > resolved first, but if we remove the wayland-server linkage, it seems > more prone to pick the wayland-client interface, i.e. the wrong one. > > Changing the wl_resource_instance_of() call into > wl_resource_get_destroy_listener() would be far more foolproof, but it > doesn't remove the need for linkage. > The patch removes the libwayland-drm.la linkage, not the wayland-client/server one. I don't think it makes sense to remove the wayland-server link for gbm, since it's (sort of) a server. The original confusion is (hopefully) unwrapped with the next patch - where users are linked only against what they should. Namely, as wayland platform is selected: libgbm -> libwayland-server libEGL -> libwayland-client + libwayland-server if drm/gbm platform is toggled. Last one is for the eglBindWaylandDisplay EGL <> GBM interop with wl_drm. > That being said, all other patches in the series are: > Reviewed-by: Daniel Stone <dani...@collabora.com> > Thanks! Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev