st/egl: reorganize backend initialization
authorChia-I Wu <olv@lunarg.com>
Sat, 25 Jun 2011 05:52:57 +0000 (14:52 +0900)
committerChia-I Wu <olv@lunarg.com>
Sat, 25 Jun 2011 07:23:20 +0000 (16:23 +0900)
commit73df31eedd0f33c8a9907855cb247c8f87964c48
treeb8ea98593122e687b3f27a1c6ee40647f65549d6
parentac8f59b23ed8256bcce40c47b5773669b00ba78a
st/egl: reorganize backend initialization

Remove set_event_handler() and pass the event handler with
native_get_XXX_platform().  Add init_screen() so that the pipe screen is
created later.  This way we don't need to pass user_data to
create_display().
14 files changed:
src/gallium/state_trackers/egl/common/egl_g3d.c
src/gallium/state_trackers/egl/common/native.h
src/gallium/state_trackers/egl/drm/native_drm.c
src/gallium/state_trackers/egl/drm/native_drm.h
src/gallium/state_trackers/egl/fbdev/native_fbdev.c
src/gallium/state_trackers/egl/gdi/native_gdi.c
src/gallium/state_trackers/egl/wayland/native_drm.c
src/gallium/state_trackers/egl/wayland/native_shm.c
src/gallium/state_trackers/egl/wayland/native_wayland.c
src/gallium/state_trackers/egl/wayland/native_wayland.h
src/gallium/state_trackers/egl/x11/native_dri2.c
src/gallium/state_trackers/egl/x11/native_x11.c
src/gallium/state_trackers/egl/x11/native_x11.h
src/gallium/state_trackers/egl/x11/native_ximage.c