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

Rob Clark rob.clark at linaro.org
Thu Aug 30 14:47:17 PDT 2012


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
-- 
1.7.9.5



More information about the wayland-devel mailing list