st/egl: Move module loading code to targets.
authorChia-I Wu <olv@lunarg.com>
Tue, 29 Jun 2010 06:58:33 +0000 (14:58 +0800)
committerChia-I Wu <olv@lunarg.com>
Tue, 29 Jun 2010 09:16:20 +0000 (17:16 +0800)
commitd5ab243d5a5bacbd2ba615d40f13c8ab37364745
treebbf3c92d3c512e0d12eab3a7036c60c8e2cf7171
parentd8e0e114567ec19fd59f974080a418dc959cc9b6
st/egl: Move module loading code to targets.

Several changes are made.  libegl.a no longer defines _eglMain.  It
defines functions to create and destroy a _EGLDriver instead.  The
creation function is called by the targets.  It takes an egl_g3d_loader
as its argument.  The loader is defined by the targets and is in charge
of creating st_api and pipe_screen.  This allows us to move the module
loading code to targets.  Lastly, the modules are now loaded as the
respective contexts are created.
26 files changed:
src/gallium/state_trackers/egl/Makefile
src/gallium/state_trackers/egl/common/egl_g3d.c
src/gallium/state_trackers/egl/common/egl_g3d.h
src/gallium/state_trackers/egl/common/egl_g3d_api.c
src/gallium/state_trackers/egl/common/egl_g3d_loader.h [new file with mode: 0644]
src/gallium/state_trackers/egl/common/egl_g3d_st.c
src/gallium/state_trackers/egl/common/egl_g3d_st.h
src/gallium/state_trackers/egl/common/native.h
src/gallium/state_trackers/egl/common/native_helper.c
src/gallium/state_trackers/egl/common/native_helper.h
src/gallium/state_trackers/egl/fbdev/native_fbdev.c
src/gallium/state_trackers/egl/gdi/native_gdi.c
src/gallium/state_trackers/egl/kms/native_kms.c
src/gallium/state_trackers/egl/kms/native_kms.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
src/gallium/targets/egl/Makefile
src/gallium/targets/egl/SConscript
src/gallium/targets/egl/egl.c [new file with mode: 0644]
src/gallium/targets/egl/pipe_i965.c
src/gallium/targets/egl/pipe_nouveau.c
src/gallium/targets/egl/pipe_radeon.c
src/gallium/targets/egl/pipe_swrast.c
src/gallium/targets/egl/pipe_vmwgfx.c