Module: Mesa Branch: master Commit: 4c412293d0e3e38f6b4e9c10b492b8ed1d9a4a69 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c412293d0e3e38f6b4e9c10b492b8ed1d9a4a69
Author: Varad Gautam <[email protected]> Date: Tue May 30 17:41:40 2017 +0530 egl: advertise EGL_EXT_image_dma_buf_import_modifiers v2: check for DRIimageExtension version 15 (Jason Ekstrand) Signed-off-by: Varad Gautam <[email protected]> Reviewed-by: Daniel Stone <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> --- src/egl/drivers/dri2/egl_dri2.c | 6 ++++++ src/egl/main/eglapi.c | 1 + 2 files changed, 7 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index bcafdf9f4c..d31a0bf8e0 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -726,6 +726,12 @@ dri2_setup_screen(_EGLDisplay *disp) dri2_dpy->image->createImageFromDmaBufs) { disp->Extensions.EXT_image_dma_buf_import = EGL_TRUE; } + if (dri2_dpy->image->base.version >= 15 && + dri2_dpy->image->createImageFromDmaBufs2 && + dri2_dpy->image->queryDmaBufFormats && + dri2_dpy->image->queryDmaBufModifiers) { + disp->Extensions.EXT_image_dma_buf_import_modifiers = EGL_TRUE; + } #endif } } diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index a4d5f896e6..e6355ace87 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -488,6 +488,7 @@ _eglCreateExtensionsString(_EGLDisplay *dpy) _EGL_CHECK_EXTENSION(EXT_buffer_age); _EGL_CHECK_EXTENSION(EXT_create_context_robustness); _EGL_CHECK_EXTENSION(EXT_image_dma_buf_import); + _EGL_CHECK_EXTENSION(EXT_image_dma_buf_import_modifiers); _EGL_CHECK_EXTENSION(EXT_swap_buffers_with_damage); _EGL_CHECK_EXTENSION(KHR_cl_event2); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
