egl: implement EXT_surface_SMPTE2086_metadata and EXT_surface_CTA861_3_metadata
authorTapani Pälli <tapani.palli@intel.com>
Thu, 5 Apr 2018 10:02:36 +0000 (13:02 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 20 Aug 2018 06:44:53 +0000 (09:44 +0300)
commit799b3d16d4bb0caa16dc35de66e11eca8517cd02
treefa33ccc700a15c731694dcc3d589d7924d746dfc
parent5a0684d665f4cfc996f9dfc5fddbe4a117ab639f
egl: implement EXT_surface_SMPTE2086_metadata and EXT_surface_CTA861_3_metadata

Patch implements common bits for EXT_surface_SMPTE2086_metadata
and EXT_surface_CTA861_3_metadata extensions by adding new required
attributes and eglQuerySurface + eglSurfaceAttrib changes.

Currently none of the drivers are utilizing this data but this patch
is enabler in getting there.

v2: don't enable extension globally, should be only enabled by
    EGL drivers that can transfer metadata to the window system (Jason)
    use EGLint instead of uint16_t (Eric)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/main/eglapi.c
src/egl/main/egldisplay.h
src/egl/main/eglsurface.c
src/egl/main/eglsurface.h