egl/dri2: Dispatch eglSwapInterval by display, not driver
authorChad Versace <chad.versace@linux.intel.com>
Tue, 28 Jan 2014 20:34:19 +0000 (12:34 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 17 Mar 2014 22:36:03 +0000 (15:36 -0700)
commit8b9298af0a3bce1360cc2c020b31470b37b660fe
treead14459299c53482fc68217f471d0280beabd9f3
parenta218765478e5207f4337406d98865c6b5cf3784e
egl/dri2: Dispatch eglSwapInterval by display, not driver

Add dri2_egl_display_vtbl::swap_interval, set it for each platform, and
let egl_dri2 dispatch eglSwapInterval to that.

This prepares for the EGL platform extensions.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-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/egl_dri2_fallbacks.h [new file with mode: 0644]
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c