[Mesa-dev] [PATCH] egl/android: Provide an option for the backend to expose KHR_image
Daniel Stone
daniel at fooishbar.org
Fri Dec 8 14:22:00 UTC 2017
Hi Emil,
On 7 December 2017 at 18:45, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> The KHR_image_pixmap extension lists the following as dependency:
>
> The EGL implementation must define an EGLNativePixmapType (although it
> is not required either to export any EGLConfigs supporting rendering to
> native pixmaps, or to support eglCreatePixmapSurface).
>
> At the same time 'implementations' define the type even ones that lack
> native pixmaps - Wayland, GBM, ...
>
> (A) If one is to ignore that 'detail' we could simply toggle all of
> KHR_image_pixmap across the board and simplify things a bit.
> (B) if native pixmaps is a must - we have a bug in GBM as it
> advertises KHR_image_pixmap.
GBM supports struct gbm_bo * as a native pixmap for EGLImage import.
See src/egl/drivers/dri2/platform_drm.c:dri2_drm_create_image_khr_pixmap().
Cheers,
Daniel
More information about the mesa-dev
mailing list