diff options
author | Varad Gautam <[email protected]> | 2017-05-30 17:23:40 +0530 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-05-30 13:56:20 +0100 |
commit | 4c412293d0e3e38f6b4e9c10b492b8ed1d9a4a69 (patch) | |
tree | c7d501d4de0cef5092b036ef612bb79bd24aaa77 /src/egl/drivers/dri2/egl_dri2.c | |
parent | de3c459bbd617275a9ed57be42f7c594bae04116 (diff) |
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]>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.c')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index bcafdf9f4c5..d31a0bf8e09 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 } } |