From: Rob Clark <[email protected]> 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 <[email protected]> --- 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 -- 1.7.9.5 _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
