Mesa (master): st/egl: Move module loading code to targets.

Chia-I Wu olv at kemper.freedesktop.org
Tue Jun 29 02:17:25 PDT 2010


Module: Mesa
Branch: master
Commit: d5ab243d5a5bacbd2ba615d40f13c8ab37364745
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5ab243d5a5bacbd2ba615d40f13c8ab37364745

Author: Chia-I Wu <olv at lunarg.com>
Date:   Tue Jun 29 14:58:33 2010 +0800

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.

---

 src/gallium/state_trackers/egl/Makefile            |    6 +-
 src/gallium/state_trackers/egl/common/egl_g3d.c    |  112 ++++----
 src/gallium/state_trackers/egl/common/egl_g3d.h    |    6 +-
 .../state_trackers/egl/common/egl_g3d_api.c        |    5 +-
 .../state_trackers/egl/common/egl_g3d_loader.h     |   54 ++++
 src/gallium/state_trackers/egl/common/egl_g3d_st.c |  167 -----------
 src/gallium/state_trackers/egl/common/egl_g3d_st.h |    6 -
 src/gallium/state_trackers/egl/common/native.h     |    9 +-
 .../state_trackers/egl/common/native_helper.c      |   18 --
 .../state_trackers/egl/common/native_helper.h      |    3 -
 .../state_trackers/egl/fbdev/native_fbdev.c        |   15 +-
 src/gallium/state_trackers/egl/gdi/native_gdi.c    |   39 ++--
 src/gallium/state_trackers/egl/kms/native_kms.c    |   96 +++----
 src/gallium/state_trackers/egl/kms/native_kms.h    |    1 +
 src/gallium/state_trackers/egl/x11/native_dri2.c   |   15 +-
 src/gallium/state_trackers/egl/x11/native_x11.c    |   37 +--
 src/gallium/state_trackers/egl/x11/native_x11.h    |    6 +-
 src/gallium/state_trackers/egl/x11/native_ximage.c |    7 +-
 src/gallium/targets/egl/Makefile                   |   51 +++-
 src/gallium/targets/egl/SConscript                 |    2 +-
 src/gallium/targets/egl/egl.c                      |  305 ++++++++++++++++++++
 src/gallium/targets/egl/pipe_i965.c                |    4 -
 src/gallium/targets/egl/pipe_nouveau.c             |    4 -
 src/gallium/targets/egl/pipe_radeon.c              |    4 -
 src/gallium/targets/egl/pipe_swrast.c              |    4 -
 src/gallium/targets/egl/pipe_vmwgfx.c              |    4 -
 26 files changed, 556 insertions(+), 424 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=d5ab243d5a5bacbd2ba615d40f13c8ab37364745


More information about the mesa-commit mailing list