egl: Add support for DRM_FORMAT_R8, RG88, and GR88
authorChad Versace <chad.versace@intel.com>
Tue, 23 Jun 2015 22:48:17 +0000 (15:48 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 28 Jul 2015 18:43:28 +0000 (11:43 -0700)
commitfd865d56d2229d8c5d7ea893ac1dba525d88e647
treec8d51f2b58ff9c39272e70ed88f0a07233268bb3
parent313940b03cf7c857143b9e3ec0ab969ce4472c83
egl: Add support for DRM_FORMAT_R8, RG88, and GR88

The Kodi/XBMC developers want to transcode NV12 to RGB with OpenGL shaders,
importing the two source planes through EGL_EXT_image_dma_buf_import. That
requires importing the Y plane as an R8 EGLImage and the UV plane as either an
RG88 or GR88 EGLImage.

This patch teaches the driver-independent part of EGL about the new
formats. Real driver support is left for follow-up patches.

The new formats landed in airlied's kernel branch 'drm-next' on July 24.

Tested-by: Peter Frühberger <peter.fruehberger@gmail.com>
Signed-off-by: Chad Versace <chad.versace@intel.com>
src/egl/drivers/dri2/egl_dri2.c