From: Varad Gautam <varad.gau...@collabora.com>

these allow querying the driver for supported dmabuf formats and
modifiers.

Signed-off-by: Varad Gautam <varad.gau...@collabora.com>
---
 include/GL/internal/dri_interface.h | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/include/GL/internal/dri_interface.h 
b/include/GL/internal/dri_interface.h
index 4874e59..f4026a6 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,26 @@ struct __DRIimageExtensionRec {
                                           enum __DRIChromaSiting vert_siting,
                                           unsigned *error,
                                           void *loaderPrivate);
+
+   /*
+    * Returns the dmabuf formats supported by the driver
+    *
+    * For EGL_EXT_image_dma_buf_import_modifiers.
+    *
+    * \since 15
+    */
+   void (*queryDmaBufFormats)(__DRIscreen *screen, int max, int *formats,
+                              int *count);
+
+   /*
+    * 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

Reply via email to