From: Varad Gautam <varad.gau...@collabora.com> queryDmaBufModifiers function allows querying implementation supported dmabuf format modifiers for a given format.
Signed-off-by: Varad Gautam <varad.gau...@collabora.com> --- include/GL/internal/dri_interface.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 4874e59..c3a6b3d 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -1094,7 +1094,7 @@ struct __DRIdri2ExtensionRec { * extensions. */ #define __DRI_IMAGE "DRI_IMAGE" -#define __DRI_IMAGE_VERSION 14 +#define __DRI_IMAGE_VERSION 15 /** @@ -1439,6 +1439,16 @@ struct __DRIimageExtensionRec { enum __DRIChromaSiting vert_siting, unsigned *error, void *loaderPrivate); + + /* + * Returns modifiers supported by the driver for a given format. + * + * For EGL_EXT_image_dma_buf_import_modifiers. + * + * \since 15 + */ + void (*queryDmaBufModifiers)(__DRIscreen *screen, int fourcc, int max, + uint64_t *modifiers, int *count); }; -- 2.6.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev