[Mesa-dev] [PATCH 09/13] dri: add queryDmaBufModifiers to DRIimage

Varad Gautam varadgautam at gmail.com
Tue Nov 15 14:24:30 UTC 2016


From: Varad Gautam <varad.gautam at collabora.com>

queryDmaBufModifiers function allows querying implementation
supported dmabuf format modifiers for a given format.

Signed-off-by: Varad Gautam <varad.gautam at 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



More information about the mesa-dev mailing list