[Mesa-dev] [PATCH 0/9] Some egl/wayland patches

Axel Davy axel.davy at ens.fr
Sat May 2 03:15:48 PDT 2015

Since gallium egl state tracker was dropped,
there was no way to use swrast with wayland,
since it was not implemented for egl_dri2.

This patch serie aimed at implementing swrast support
for the wayland egl_dri2 backend.
But I also went at fixing a few other related things.

I also took the opportunity to make new versions of my
patches from last year to implement render-nodes and
DRI_PRIME support. The only major difference is that
it doesn't have fallback when blitImage is unimplemented
by driver. It is implemented by gallium drivers only.
It just means for now that you can use a radeon or nouveau
card with DRI_PRIME, but not an intel card. So all normal
use cases are supported.

The swrast __DRIswrastLoaderExtension API seems to have been
designed with X11 in mind. As a result, it doesn't fit perfectly
wayland: a copy could be avoided by upgrading this API.
There doesn't seem to be interest in doing this work for a small
gain for something that's not as efficient as hw rendering anyway.

Axel Davy (9):
  egl/wayland: properly destroy wayland objects
  doc/egl: Remove depreciated EGL_SOFTWARE
  glx/dri3: Add additional check for gpu offloading case
  egl/wayland: Add support for render-nodes
  egl/wayland: Implement DRI_PRIME support
  egl/x11: move dri2_x11_swrast_create_image_khr to egl_dri2_fallback.h
  egl/wayland: assume EGL_WINDOW_BIT
  egl/wayland: Implement swrast support
  egl/swrast: enable config extension for swrast

 docs/egl.html                             |   8 -
 src/egl/drivers/dri2/egl_dri2.c           |  28 +-
 src/egl/drivers/dri2/egl_dri2.h           |   8 +
 src/egl/drivers/dri2/egl_dri2_fallbacks.h |   9 +
 src/egl/drivers/dri2/platform_wayland.c   | 908 ++++++++++++++++++++++++++++--
 src/egl/drivers/dri2/platform_x11.c       |  11 +-
 src/gallium/state_trackers/dri/drisw.c    |   1 +
 src/glx/dri3_glx.c                        |   5 +
 src/mesa/drivers/dri/swrast/swrast.c      |   1 +
 9 files changed, 891 insertions(+), 88 deletions(-)


More information about the mesa-dev mailing list