summaryrefslogtreecommitdiffstats
path: root/include/EGL
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-05-11 23:43:47 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-05-14 21:00:04 +0000
commitf9bf9133ccc3764dc38f6359a26004e12b888af3 (patch)
tree6dbdc6070d0cf3bed27cf0752caffda746322bbf /include/EGL
parent97909881234dc32fdbe2baa889997af540c4464e (diff)
downloadexternal_mesa3d-f9bf9133ccc3764dc38f6359a26004e12b888af3.zip
external_mesa3d-f9bf9133ccc3764dc38f6359a26004e12b888af3.tar.gz
external_mesa3d-f9bf9133ccc3764dc38f6359a26004e12b888af3.tar.bz2
egl: fix the EGL_MESA_image_dma_buf_export header declarations
Similar to other EGL extensions - guard the function prototypes by EGL_EGLEXT_PROTOTYPES as the libEGL library does (should) not provide the symbols statically. Instead users should call eglGetProcAddress, which returns the function pointer. The latter of which was missing the type declaration (typedef). Cc: Dave Airlie <airlied@redhat.com> Cc: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'include/EGL')
-rw-r--r--include/EGL/eglmesaext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/EGL/eglmesaext.h b/include/EGL/eglmesaext.h
index 27cf7eb..40a60ec 100644
--- a/include/EGL/eglmesaext.h
+++ b/include/EGL/eglmesaext.h
@@ -127,10 +127,16 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EG
#if KHRONOS_SUPPORT_INT64
#ifndef EGL_MESA_image_dma_buf_export
#define EGL_MESA_image_dma_buf_export 1
+#ifdef EGL_EGLEXT_PROTOTYPES
EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *fourcc, EGLint *nplanes, EGLuint64KHR *modifiers);
EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
#endif
#endif
+
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESA) (EGLDisplay dpy, EGLImageKHR image, EGLint *fourcc, EGLint *nplanes, EGLuint64KHR *modifiers);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESA) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
+
+#endif
#ifdef __cplusplus
}
#endif