compositor: add support for OES_EGL_image_external
authorRob Clark <rob@ti.com>
Fri, 31 Aug 2012 21:42:18 +0000 (16:42 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 31 Aug 2012 21:51:42 +0000 (17:51 -0400)
commite3b9591513eabedeb7ce62b2912135c5bf31a871
tree5757f11cccdd90779ece8b44cb72e38442e70c56
parenta91291c4d652a9bb64842a6e3e9d5085ac39526d
compositor: add support for OES_EGL_image_external

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.
v4: resend without missing parts

Signed-off-by: Rob Clark <rob@ti.com>
src/compositor.c
src/compositor.h
src/weston-egl-ext.h