[Mesa-dev] [PATCH 00/10] egl/android: Improve the Android EGL backend

Emil Velikov emil.l.velikov at gmail.com
Wed Jul 20 16:00:35 UTC 2016


On 15 July 2016 at 08:53, Tomasz Figa <tfiga at chromium.org> wrote:
> 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:
>  - added mandatory EGL_MAX_PBUFFER_WIDTH and _HEIGHT attributes to EGL
>    configs,
>  - fixed multiple issues with handling pbuffers in the backend,
>  - found and fixed a DRI image leak,
>  - 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),
>  - fallback to kms_swrast driver when no hardware driver can be loaded
>    but there is still some usable DRI node present in the system.
>  - more logging in case of errors to help diagnosing problems.
>
> 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.
>
> Haixia Shi (1):
>   egl/android: Set EGL_MAX_PBUFFER_WIDTH and EGL_MAX_PBUFFER_HEIGHT
>
> Nicolas Boichat (1):
>   egl/android: Fix support for pbuffers
>
> Tomasz Figa (8):
>   egl/android: Check return value of dri2_get_dri_config()
>   egl/android: Add some useful error messages
>   egl/android: Stop leaking DRI images
I've pushed the above three from this series as the rest either cause
issues or might need a bit of polish.
Thanks for sending these, and huge shout out to Eric for having a look :-)

Btw, I've also pushed your earlier (standalone) patches:
 gallium/dri: Add shared glapi to LIBADD on Android
 egl/android: Remove unused variables
 i965: store reference to the context within struct brw_fence (v2)

Thanks
Emil


More information about the mesa-dev mailing list