[Mesa-dev] [PATCH 0/9] Final round: EGL_EXT_platform_device

Emil Velikov emil.l.velikov at gmail.com
Mon May 6 15:01:23 UTC 2019


*** BLURB HERE ***
Hi all,

Here is, hopefully the final series, which add support for the extension.

Note that pbuffers are broken (afaict have been since day 1) so one need fixes
like the following [1].

Changes since last version:
 - split and fixup the EGLAttrib patch from Adam - less hacky eglFindDisplay

 - drop _eglParseX11DisplayAttribList() - minor polish

 - introduce dri2_create_drawable() helper - fixes a crash in
platform_surfaceless and by extension platform_device with swrast

 - list software device in QueryDevices only when the full list is requested
and even then - keep if the last device

 - get platform_device + swrast working - architecturally hacky, but will do
for now

 - HACK: POC drop the software devices from QueryDevices
Meant for Marek, if their stack does not build/ship swrast_dri.so


Review and comments are appreciated :-)

Thanks
Emil

Cc: Mathias Fröhlich <Mathias.Froehlich at gmx.net>
Cc: Marek Olšák <maraeo at gmail.com>

[1] https://patchwork.freedesktop.org/series/60018/ 


Adam Jackson (3):
  egl: handle the full attrib list in display::options
  egl/x11: pick the user requested screen
  egl: remove Options::Platform handling

Emil Velikov (6):
  egl: flesh out a _eglNumAttribs() helper
  egl: fold X11 attrib handling like other platforms
  egl/dri: flesh out and use dri2_create_drawable()
  egl: keep the software device at the end of the list
  egl: add EGL_platform_device support
  HACK: eg: hack to drop SOFTWARE egl device

 src/egl/Android.mk                          |   1 +
 src/egl/drivers/dri2/egl_dri2.c             |  27 ++
 src/egl/drivers/dri2/egl_dri2.h             |  18 +-
 src/egl/drivers/dri2/platform_android.c     |  12 +-
 src/egl/drivers/dri2/platform_device.c      | 432 ++++++++++++++++++++
 src/egl/drivers/dri2/platform_drm.c         |  17 +-
 src/egl/drivers/dri2/platform_surfaceless.c |   7 +-
 src/egl/drivers/dri2/platform_wayland.c     |  14 +-
 src/egl/drivers/dri2/platform_x11.c         |  32 +-
 src/egl/main/eglapi.c                       |  27 +-
 src/egl/main/egldevice.c                    |  36 +-
 src/egl/main/egldevice.h                    |   3 +
 src/egl/main/egldisplay.c                   | 171 +++++---
 src/egl/main/egldisplay.h                   |  24 +-
 src/egl/main/eglglobals.c                   |   1 +
 src/egl/meson.build                         |   1 +
 16 files changed, 691 insertions(+), 132 deletions(-)
 create mode 100644 src/egl/drivers/dri2/platform_device.c

-- 
2.21.0



More information about the mesa-dev mailing list