egl/dri2: Dispatch eglSwapBuffersWithDamage by display, not driver
authorChad Versace <chad.versace@linux.intel.com>
Wed, 29 Jan 2014 00:26:44 +0000 (16:26 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 17 Mar 2014 22:36:03 +0000 (15:36 -0700)
commitd03948a76634392455ae53fbf975d09c58bfc7aa
treec7fb6a277bf2054bbd8fc3396aa65574e811ca49
parentad173bcfdbeaa52d6a024cd7ef6c068c5a999ba2
egl/dri2: Dispatch eglSwapBuffersWithDamage by display, not driver

Add dri2_egl_display_vtbl::swap_buffers_with_damage, set it for each
platform, and let egl_dri2 dispatch eglSwapBuffersWithDamageEXT 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
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