egl: Add support for driconf control of swapinterval.
authorEric Anholt <eric@anholt.net>
Tue, 25 Sep 2012 21:05:30 +0000 (14:05 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 9 Oct 2012 21:32:03 +0000 (14:32 -0700)
commit7e9bd2b2ed35a440a96362417100a7e43715d606
treea7d339d8749b99bece69523d052c5b9b596e681a
parent8c472b8f6a612a810aec34283d90bb5aa88bf855
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 <chad.versace@linux.intel.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_x11.c