Commit 8a7ba0f4 authored by Jason Ekstrand's avatar Jason Ekstrand Committed by chadversary

egl: Add support for EGL_EXT_image_dma_buf_import_modifiers

Reviewed-by: chadversary's avatarChad Versace <chad@kiwitree.net>
parent 14011c14
......@@ -89,6 +89,7 @@ get_extensions(struct wegl_display *dpy)
CHECK_EXTENSION(EXT_create_context_robustness);
CHECK_EXTENSION(KHR_create_context);
CHECK_EXTENSION(EXT_image_dma_buf_import_modifiers);
#undef CHECK_EXTENSION
......
......@@ -45,6 +45,7 @@ struct wegl_display {
enum wegl_supported_api api_mask;
bool EXT_create_context_robustness;
bool KHR_create_context;
bool EXT_image_dma_buf_import_modifiers;
EGLint major_version;
EGLint minor_version;
};
......
......@@ -172,6 +172,10 @@ wegl_platform_init(struct wegl_platform *self, EGLenum egl_platform)
// EGL_EXT_platform_display
RETRIEVE_EGL_SYMBOL_OPTIONAL(eglGetPlatformDisplayEXT);
// EGL_EXT_image_dma_buf_import_modifiers
RETRIEVE_EGL_SYMBOL_OPTIONAL(eglQueryDmaBufFormatsEXT);
RETRIEVE_EGL_SYMBOL_OPTIONAL(eglQueryDmaBufModifiersEXT);
#undef RETRIEVE_EGL_SYMBOL
#undef RETRIEVE_EGL_SYMBOL_OPTIONAL
......
......@@ -97,6 +97,17 @@ struct wegl_platform {
// EGL_EXT_platform_display
EGLDisplay (*eglGetPlatformDisplayEXT)(EGLenum platform, void *native_display,
const EGLint *attrib_list);
// EGL_EXT_image_dma_buf_import_modifiers
EGLBoolean (*eglQueryDmaBufFormatsEXT)(EGLDisplay dpy,
EGLint max_formats,
EGLint *formats,
EGLint *num_formats);
EGLBoolean (*eglQueryDmaBufModifiersEXT)(EGLDisplay dpy, EGLint format,
EGLint max_modifiers,
EGLuint64KHR *modifiers,
EGLBoolean *external_only,
EGLint *num_modifiers);
};
DEFINE_CONTAINER_CAST_FUNC(wegl_platform,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment