From: Frank Binns Date: Mon, 20 Jun 2016 08:00:37 +0000 (+0100) Subject: egl: restrict swap_available dri2_egl_display field to X11 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fd5779da44cd6bf822a52339f3772581aa1e312;p=mesa.git egl: restrict swap_available dri2_egl_display field to X11 This field is only ever set and read by the X11 platform. Signed-off-by: Frank Binns Reviewed-by: Chad Versace --- diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 29820cc7658..317de069ecd 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -178,7 +178,6 @@ struct dri2_egl_display int fd; int own_device; - int swap_available; int invalidate_available; int min_swap_interval; int max_swap_interval; @@ -198,6 +197,7 @@ struct dri2_egl_display #ifdef HAVE_X11_PLATFORM xcb_connection_t *conn; int screen; + int swap_available; #ifdef HAVE_DRI3 struct loader_dri3_extensions loader_dri3_ext; #endif diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index ff0d5c802ac..e714e44124b 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1155,8 +1155,6 @@ dri2_initialize_wayland_drm(_EGLDriver *drv, _EGLDisplay *disp) } else dri2_dpy->extensions[3] = NULL; - dri2_dpy->swap_available = EGL_TRUE; - if (!dri2_create_screen(disp)) goto cleanup_driver;