diff options
author | Topi Pohjolainen <[email protected]> | 2013-03-22 14:31:01 +0200 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2013-08-02 08:56:03 +0300 |
commit | 0de013b61930505bbeaf094d079b566df18a0cf7 (patch) | |
tree | ba33b8c3b80932b4d42f297db0a117507d879589 /src/egl/main/eglimage.h | |
parent | 674dedc87a860f7aea41d5a37d8fd842e196dfdd (diff) |
egl: definitions for EXT_image_dma_buf_import
As specified in:
http://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_image_dma_buf_import.txt
Checking for the valid fourcc values is left for drivers avoiding
dependency to drm header files here.
v2: enforce EGL_NO_CONTEXT
v3: declare the extension as EGL (not GLES)
v4: do not update eglext.h manually but rely on update from
Khronos instead
v5: (Eric) report invalid context as EGL_BAD_PARAMETER instead of as
EGL_BAD_CONTEXT
v6: (Chad) fix the checking for valid hints. Before all values were
rejected.
v7: (Chad) comment style change from
/**
* Multi-
* line
into
/* Multi-
* line
Signed-off-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/main/eglimage.h')
-rw-r--r-- | src/egl/main/eglimage.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h index 9cc86d58b2d..1b4d6cd0bb1 100644 --- a/src/egl/main/eglimage.h +++ b/src/egl/main/eglimage.h @@ -34,6 +34,11 @@ #include "egltypedefs.h" #include "egldisplay.h" +struct _egl_image_attrib_int +{ + EGLint Value; + EGLBoolean IsPresent; +}; struct _egl_image_attribs { @@ -53,6 +58,16 @@ struct _egl_image_attribs /* EGL_WL_bind_wayland_display */ EGLint PlaneWL; + + /* EGL_EXT_image_dma_buf_import */ + struct _egl_image_attrib_int DMABufFourCC; + struct _egl_image_attrib_int DMABufPlaneFds[3]; + struct _egl_image_attrib_int DMABufPlaneOffsets[3]; + struct _egl_image_attrib_int DMABufPlanePitches[3]; + struct _egl_image_attrib_int DMABufYuvColorSpaceHint; + struct _egl_image_attrib_int DMABufSampleRangeHint; + struct _egl_image_attrib_int DMABufChromaHorizontalSiting; + struct _egl_image_attrib_int DMABufChromaVerticalSiting; }; /** |