egl: restrict swap_available dri2_egl_display field to X11
authorFrank Binns <frank.binns@imgtec.com>
Mon, 20 Jun 2016 08:00:37 +0000 (09:00 +0100)
committerChad Versace <chad.versace@intel.com>
Thu, 7 Jul 2016 20:28:50 +0000 (13:28 -0700)
This field is only ever set and read by the X11 platform.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_wayland.c

index 29820cc76585a27652c30bb8c8e2a926fcf71f17..317de069ecd3ba2e3f52951b5dc40ca2adde9bab 100644 (file)
@@ -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
index ff0d5c802acf21824dcd3231d9e79fb0fe8bb5b8..e714e44124bc3765a5d9b9d3a49cd38b0ebd0581 100644 (file)
@@ -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;