summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglimage.h
diff options
context:
space:
mode:
authorTopi Pohjolainen <topi.pohjolainen@intel.com>2013-03-22 14:31:01 +0200
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2013-08-02 08:56:03 +0300
commit0de013b61930505bbeaf094d079b566df18a0cf7 (patch)
treeba33b8c3b80932b4d42f297db0a117507d879589 /src/egl/main/eglimage.h
parent674dedc87a860f7aea41d5a37d8fd842e196dfdd (diff)
downloadexternal_mesa3d-0de013b61930505bbeaf094d079b566df18a0cf7.zip
external_mesa3d-0de013b61930505bbeaf094d079b566df18a0cf7.tar.gz
external_mesa3d-0de013b61930505bbeaf094d079b566df18a0cf7.tar.bz2
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 <topi.pohjolainen@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/egl/main/eglimage.h')
-rw-r--r--src/egl/main/eglimage.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h
index 9cc86d5..1b4d6cd 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;
};
/**