egl/dri2: Dispatch eglCreateWindowSurface by display, not driver
authorChad Versace <chad.versace@linux.intel.com>
Wed, 29 Jan 2014 00:39:09 +0000 (16:39 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 17 Mar 2014 22:36:03 +0000 (15:36 -0700)
commit0a0c881a13afc99c7a88bf16117850350ccb85df
treea5063d714202605167192bc022438eea7d51dfa8
parentd03948a76634392455ae53fbf975d09c58bfc7aa
egl/dri2: Dispatch eglCreateWindowSurface by display, not driver

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