From 7e9bd2b2ed35a440a96362417100a7e43715d606 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 25 Sep 2012 14:05:30 -0700 Subject: egl: Add support for driconf control of swapinterval. This behavior mostly matches glx_dri2. It's slightly complicated in comparison because EGL exposes the implementation limits in the EGL config. Note that platform_x11 was the only one setting swap_available, so the move of the MaxSwapInterval into it is appropriate. Acked-by: Chad Versace --- src/egl/drivers/dri2/egl_dri2.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/egl/drivers/dri2/egl_dri2.h') diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 81c1354b794..85c0745a354 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -100,11 +100,15 @@ struct dri2_egl_display __DRItexBufferExtension *tex_buffer; __DRIimageExtension *image; __DRIrobustnessExtension *robustness; + __DRI2configQueryExtension *config; int fd; int own_device; int swap_available; int invalidate_available; + int min_swap_interval; + int max_swap_interval; + int default_swap_interval; #ifdef HAVE_DRM_PLATFORM struct gbm_dri_device *gbm_dri; #endif -- cgit v1.2.3