egl/dri2: Dispatch eglSwapBuffers by display, not driver
authorChad Versace <chad.versace@linux.intel.com>
Wed, 29 Jan 2014 00:21:21 +0000 (16:21 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 17 Mar 2014 22:36:03 +0000 (15:36 -0700)
commitad173bcfdbeaa52d6a024cd7ef6c068c5a999ba2
tree6a3e6f3fcdff841c5171764840e6323a48fc7056
parent8b9298af0a3bce1360cc2c020b31470b37b660fe
egl/dri2: Dispatch eglSwapBuffers  by display, not driver

Add dri2_egl_display_vtbl::swap_buffers, set it for each platform, and
let egl_dri2 dispatch eglSwapBuffers 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/platform_android.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c