wayland: Don't rely on static variable for identifying wl_drm buffers
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 26 Sep 2013 19:25:11 +0000 (12:25 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 11 Oct 2013 22:14:35 +0000 (15:14 -0700)
commit360a141f24a9d00891665b7fedb77ffb116944ca
tree79ebe6820c6a23471849307af1d5b03f1b965de2
parentfe6974382b353efebf06dfb2d00b0b2c752fb666
wayland: Don't rely on static variable for identifying wl_drm buffers

Now that libEGL has been fixed to not leak all kinds of symbols, gbm
links to its own copy of the libwayland-drm.a helper library.  That means
we can't rely on comparing the addresses of a static vtable symbol in that
library to determine if a wl_buffer is a wl_drm_buffer.  Instead, we
move the vtable into the wl_drm struct and use that for comparing.

https://bugs.freedesktop.org/show_bug.cgi?id=69437

Cc: 9.2 <mesa-stable@lists.freedesktop.org>
src/egl/drivers/dri2/egl_dri2.c
src/egl/wayland/wayland-drm/wayland-drm.c
src/egl/wayland/wayland-drm/wayland-drm.h
src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.c
src/gbm/backends/dri/gbm_dri.c
src/gbm/backends/dri/gbm_driint.h