[Mesa-dev] [PATCH v2 0/7] egl/android: Improve the Android EGL backend

Tomasz Figa tfiga at chromium.org
Tue Aug 2 11:07:48 UTC 2016


Hi,

This series is a collection of various fixes and extensions we came up
with during our attempt to use Mesa for Android.

Fixes included in this series:
 - fixed multiple issues with handling pbuffers in the backend,
 - made the implementation of DRI image loader .getBuffers callback
   conform better to the extension semantics.

New features added by this series:
 - possibility to build the Android EGL platform without drm_gralloc
   headers,
 - support for creating EGL images from Android native buffers with
   YV12 pixel format (prime-only).

On top of that, a number of refactoring changes to clean things up a bit.

Testing was done using classic i965 (gen 8) and gallium softpipe drivers
on an internal build of Android, based on gralloc backed by a DRM render
node and sharing buffers by PRIME FDs.

v2: Dropped following already applied patches:
        egl/android: Check return value of dri2_get_dri_config()
        egl/android: Add some useful error messages
        egl/android: Stop leaking DRI images
    Dropped following patches, which need further discussion:
        egl/android: Set EGL_MAX_PBUFFER_WIDTH and EGL_MAX_PBUFFER_HEIGHT
        egl/android: Add fallback to kms_swrast driver
    Fixed handling of unavailable buffers in image loader.
    Removed explicit render node probing code.
    Addressed style problems.
    Split some refactoring changes into separate patches.
    Removed few more unused variables missed before.

Nicolas Boichat (1):
  egl/android: Fix support for pbuffers

Tomasz Figa (6):
  egl/android: Remove unused variables in
    droid_get_buffers_with_format()
  egl/android: Respect buffer mask in droid_image_get_buffers
  egl/android: Refactor image creation to separate flink and prime paths
  egl/android: Make get_fourcc() accept HAL formats
  egl/android: Add support for YV12 pixel format
  egl/android: Make drm_gralloc headers optional

 src/egl/Android.mk                                 |   1 +
 src/egl/Makefile.am                                |   4 +-
 src/egl/drivers/dri2/egl_dri2.h                    |   3 +-
 src/egl/drivers/dri2/platform_android.c            | 212 +++++++++++++++------
 .../drivers/dri2/platform_android_gralloc_drm.h    |  41 ++++
 5 files changed, 204 insertions(+), 57 deletions(-)
 create mode 100644 src/egl/drivers/dri2/platform_android_gralloc_drm.h

-- 
2.8.0.rc3.226.g39d4020



More information about the mesa-dev mailing list