[Mesa-dev] [PATCH] egl_dri2: Remove the unused swap_interval member of dri2_egl_surface

Neil Roberts neil at linux.intel.com
Mon Dec 9 05:49:18 PST 2013


Hi,

I made this patch a while ago while adding support for eglSwapInterval
to the Wayland platform. The swap_interval member confused me for a
little while before I realised that it's not used anywhere. I think it
would be good to get rid of it.

Regards,
- Neil

------- >8 --------------- (use git am --scissors to automatically chop here)

The _EGLSurface struct which is embedded into dri2_egl_surface also contains a
swap interval member so the other member is redundant. Nothing was using it as
far as I can tell.
---
 src/egl/drivers/dri2/egl_dri2.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index 522a0fd..d29dd98 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -160,7 +160,6 @@ struct dri2_egl_surface
    __DRIbuffer          buffers[5];
    int                  buffer_count;
    int                  have_fake_front;
-   int                  swap_interval;
 
 #ifdef HAVE_X11_PLATFORM
    xcb_drawable_t       drawable;
-- 
1.8.3.1



More information about the mesa-dev mailing list