[Mesa-dev] [PATCH 00/25] egl: Enable Linux platform extensions

Chad Versace chad.versace at linux.intel.com
Sun Feb 9 13:37:36 PST 2014


This series enable EGL_EXT_platform_base and the Linux platform extensions
layered atop it: EGL_EXT_platform_x11, EGL_EXT_platform_wayland, and
EGL_MESA_platform_gbm.

The series lives on my 'EGL_EXT_platform_base-v16' branch at
[git://people.freedesktop.org/~chadversary/mesa]. Accompanying Piglit tests
live on the same branch name at [git://people.freedesktop.org/~chadversary/piglit].

I regression tested the Mesa series by running Piglit an X11 session on
Ivybridge.  To get the EGL_EXT_platform_x11, EGL_EXT_platform_wayland, and
EGL_MESA_platform_gbm tests to pass with a single run of Piglit, I started
a windowed instance of Weston and the kernel had render nodes enabled.

I also smoke-tested the series by running weston-smoke in stand-alone Weston.

Patches 1-22 are largely mechanical refactorings. They should review quickly.
Patches 23-25 contain the real changes, but those patches are also quite small.

Chad Versace (25):
  egl: Update to revision 24567 of eglext.h
  egl/dri2: Move dri2_egl_display virtual funcs to vtbl
  egl/dri2: Put platform func names into proper namespaces
  egl/wl: Call dri2_swap_interval() statically
  egl/dri2: Dispatch eglSwapInterval by display, not driver
  egl/dri2: Dispatch eglSwapBuffers  by display, not driver
  egl/dri2: Dispatch eglSwapBuffersWithDamage by display, not driver
  egl/dri2: Dispatch eglCreateWindowSurface by display, not driver
  egl/dri2: Dispatch eglCreatePixmapSurface by display, not driver
  egl/dri2: Dispatch eglCreatePbufferSurface by display, not driver
  egl/dri2: Dispatch eglDestroySurface by display, not driver
  egl/dri2: Dispatch API.QueryBufferAge by display, not driver
  egl/dri2: Dispatch eglCopyBuffers by display, not driver
  egl/dri2: Dispatch eglSwapBuffersRegionNOK by display, not driver
  egl/dri2: Dispatch eglPostSubBufferNV by display, not driver
  egl/dri2/x11: Set dri2_dpy->own_device
  egl/dri2: Consolidate eglTerminate
  egl/dri2: Dispatch eglCreateWaylandBufferFromImageWL by display, not
    driver
  egl/dri2/x11: Don't clobber _EGLDriver::API
  egl/dri2: Dispatch eglCreateImageKHR by display, not driver
  egl: Add STATIC_ASSERT() macro
  egl/main: Stop using EGLNative types internally
  egl/gbm: Emit EGL_BAD_PARAMETER for eglCreatePlatformPixmapSurface
  egl/wayland: Emit EGL_BAD_PARAMETER for eglCreatePlatformPixmapSurface
  egl/main: Enable Linux platform extensions

 include/EGL/eglext.h                               | 960 +++++++++++----------
 src/egl/drivers/dri2/egl_dri2.c                    | 172 +++-
 src/egl/drivers/dri2/egl_dri2.h                    |  64 +-
 src/egl/drivers/dri2/egl_dri2_fallbacks.h          | 100 +++
 src/egl/drivers/dri2/platform_android.c            |  53 +-
 src/egl/drivers/dri2/platform_drm.c                | 120 ++-
 src/egl/drivers/dri2/platform_wayland.c            | 173 ++--
 src/egl/drivers/dri2/platform_x11.c                | 231 +++--
 src/egl/main/eglapi.c                              | 143 ++-
 src/egl/main/eglapi.h                              |   6 +-
 src/egl/main/eglcompiler.h                         |   5 +
 src/egl/main/egldisplay.c                          |  76 +-
 src/egl/main/egldisplay.h                          |  22 +-
 src/egl/main/eglglobals.c                          |  10 +-
 src/egl/main/eglglobals.h                          |   4 +
 .../state_trackers/egl/common/egl_g3d_api.c        |  18 +-
 16 files changed, 1421 insertions(+), 736 deletions(-)
 create mode 100644 src/egl/drivers/dri2/egl_dri2_fallbacks.h

-- 
1.8.5.3



More information about the mesa-dev mailing list