Mesa (master): egl: Overhaul driver API.

Brian Paul brianp at kemper.freedesktop.org
Tue Aug 18 14:59:18 UTC 2009


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

Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Tue Aug 11 17:09:39 2009 +0800

egl: Overhaul driver API.

The motivation is so that drivers do not need to look up and check for
bad display, context, and etc.  It also becomes unnecessary for drivers
to call the link functions.

This commit makes eglapi.[ch] do the lookup and check.  As a result, the
driver API is overhauled, and almost all sources and drivers need
update.  The updates are mainly find and replace with human brains.

Signed-off-by: Chia-I Wu <olvaffe at gmail.com>

---

 src/egl/drivers/demo/demo.c                  |   83 +---
 src/egl/drivers/glx/egl_glx.c                |  182 +++----
 src/egl/main/eglapi.c                        |  669 +++++++++++++++++++-------
 src/egl/main/eglapi.h                        |   74 ++--
 src/egl/main/eglconfig.c                     |   18 +-
 src/egl/main/eglconfig.h                     |    8 +-
 src/egl/main/eglcontext.c                    |   80 +---
 src/egl/main/eglcontext.h                    |   10 +-
 src/egl/main/egldisplay.c                    |   24 +-
 src/egl/main/egldisplay.h                    |    6 +-
 src/egl/main/egldriver.c                     |    2 +-
 src/egl/main/egldriver.h                     |    2 +-
 src/egl/main/eglmisc.c                       |    6 +-
 src/egl/main/eglmisc.h                       |    6 +-
 src/egl/main/eglmode.c                       |   37 +--
 src/egl/main/eglmode.h                       |   10 +-
 src/egl/main/eglscreen.c                     |  109 +----
 src/egl/main/eglscreen.h                     |   24 +-
 src/egl/main/eglsurface.c                    |  131 ++----
 src/egl/main/eglsurface.h                    |   34 +-
 src/gallium/state_trackers/egl/egl_context.c |   24 +-
 src/gallium/state_trackers/egl/egl_surface.c |   49 +--
 src/gallium/state_trackers/egl/egl_tracker.c |    7 +-
 src/gallium/state_trackers/egl/egl_tracker.h |   33 +-
 src/gallium/winsys/egl_xlib/egl_xlib.c       |  154 +++----
 25 files changed, 898 insertions(+), 884 deletions(-)

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



More information about the mesa-commit mailing list