[Mesa-dev] [PATCH mesa 0/3] Wayland: update to 1.2 server API

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Thu Jul 18 05:11:22 PDT 2013


Hi,

Wayland 1.2 server API changed a little bit. The change that affects
mesa the most is the deprecation of struct wl_buffer. This series
updates all EGL code to use the new API.

The motivation for the first patch was to split the usage of server and
client API in the same source file in gallium egl. Even though struct
wl_buffer is deprecated on the server side, occurences of it on the
client side are still valid, but due to the mix of APIs that would
cause warnings. In the process of doing that some code duplication is
removed.

Cheers,
Ander

Ander Conselvan de Oliveira (3):
  gallium-egl: Simplify native_wayland_drm_bufmgr_helper interface
  gallium-egl: Don't add a listener for wl_drm twice in wayland platform
  egl: Update to Wayland 1.2 server API

 docs/specs/WL_bind_wayland_display.spec            |   8 +-
 include/EGL/eglmesaext.h                           |   6 +-
 src/egl/drivers/dri2/egl_dri2.c                    |  28 ++-
 src/egl/drivers/dri2/egl_dri2.h                    |   1 -
 src/egl/main/eglapi.c                              |   2 +-
 src/egl/main/eglapi.h                              |   2 +-
 src/egl/wayland/wayland-drm/wayland-drm.c          |  66 +++---
 src/egl/wayland/wayland-drm/wayland-drm.h          |  13 +-
 src/gallium/state_trackers/egl/Makefile.am         |   2 +-
 .../state_trackers/egl/common/egl_g3d_api.c        |   2 +-
 .../state_trackers/egl/common/egl_g3d_image.c      |   4 +-
 src/gallium/state_trackers/egl/common/native.h     |   2 +-
 .../egl/common/native_wayland_bufmgr.h             |   6 +-
 .../egl/common/native_wayland_drm_bufmgr.c         | 221 +++++++++++++++++++++
 .../egl/common/native_wayland_drm_bufmgr.h         |  37 ++++
 .../egl/common/native_wayland_drm_bufmgr_helper.c  | 106 ----------
 .../egl/common/native_wayland_drm_bufmgr_helper.h  |  47 -----
 src/gallium/state_trackers/egl/drm/native_drm.c    |  52 +----
 src/gallium/state_trackers/egl/drm/native_drm.h    |   2 +-
 .../state_trackers/egl/wayland/native_drm.c        |  94 +++------
 src/gallium/state_trackers/egl/x11/native_dri2.c   |  87 +++-----
 src/gbm/backends/dri/gbm_dri.c                     |   5 +-
 22 files changed, 395 insertions(+), 398 deletions(-)
 create mode 100644 src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.c
 create mode 100644 src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.h
 delete mode 100644 src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr_helper.c
 delete mode 100644 src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr_helper.h

-- 
1.8.1.2



More information about the mesa-dev mailing list