[PATCH weston 1/5] compositor: add support for OES_EGL_image_external

Pekka Paalanen ppaalanen at gmail.com
Fri Aug 31 02:25:23 PDT 2012


On Thu, 30 Aug 2012 16:47:17 -0500
Rob Clark <rob.clark at linaro.org> wrote:

> From: Rob Clark <rob at ti.com>
> 
> In cases where the GPU can natively handle certain YUV formats,
> eglQueryWaylandBufferWL() can return the value EGL_TEXTURE_EXTERNAL_WL
> and the compositor will treat the buffer as a single egl-image-external.
> 
> See:
> http://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image_external.txt
> 
> v1: original
> v2: rename EGL_TEXTURE_EXTERNAL_OES -> EGL_TEXTURE_EXTERNAL_WL and query
>     for the extension
> v3: fix build without updated mesa headers, if EGL_TEXTURE_EXTERNAL_WL
>     #define is missing from older mesa headers.
> 
> Signed-off-by: Rob Clark <rob at ti.com>
> ---
>  src/weston-egl-ext.h |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/weston-egl-ext.h b/src/weston-egl-ext.h
> index 5369f02..1d4b76b 100644
> --- a/src/weston-egl-ext.h
> +++ b/src/weston-egl-ext.h
> @@ -54,4 +54,8 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, st
>  
>  #endif
>  
> +#ifndef EGL_TEXTURE_EXTERNAL_WL
> +#define EGL_TEXTURE_EXTERNAL_WL         0x31DA
> +#endif
> +
>  #endif


This patch is clearly missing something. :-)
The following patches won't apply.


Thanks,
pq


More information about the wayland-devel mailing list