X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fegl%2Fwayland%2Fwayland-drm%2Fwayland-drm.c;h=d02aab66324b7ff2a0f2b5fd217c28b3f949eeb6;hb=2b8e90a33826dcd30b0cbbf464fbd191bf299d38;hp=45b307f3a888c90b7588842dcd2b0a3e4c129008;hpb=0229e3ae41be109ac423b2eb2ddf79e24b799d60;p=mesa.git diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c index 45b307f3a88..d02aab66324 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.c +++ b/src/egl/wayland/wayland-drm/wayland-drm.c @@ -36,17 +36,6 @@ #include "wayland-drm.h" #include "wayland-drm-server-protocol.h" -/* Git master of Wayland is moving towards a stable version of the - * protocol, but breaking from 0.85 in the process. For the time - * being, it's convenient to be able to build Mesa against both master - * and 0.85.x of Wayland. To make this work we'll do a compile-time - * version check and work around the difference in API and protocol */ -#if defined (WAYLAND_VERSION_MAJOR) && \ - WAYLAND_VERSION_MAJOR == 0 && \ - WAYLAND_VERSION_MINOR == 85 -#define HAS_WAYLAND_0_85 -#endif - struct wl_drm { struct wl_display *display; @@ -69,25 +58,10 @@ destroy_buffer(struct wl_resource *resource) static void buffer_destroy(struct wl_client *client, struct wl_resource *resource) { -#ifdef HAS_WAYLAND_0_85 - wl_resource_destroy(resource, 0); -#else wl_resource_destroy(resource); -#endif -} - -#ifdef HAS_WAYLAND_0_85 -static void -buffer_damage(struct wl_client *client, struct wl_resource *buffer, - int32_t x, int32_t y, int32_t width, int32_t height) -{ } -#endif const static struct wl_buffer_interface drm_buffer_interface = { -#ifdef HAS_WAYLAND_0_85 - buffer_damage, -#endif buffer_destroy };