[Mesa-dev] [PATCH v2 08/14] dri: add queryDmaBufFormats and queryDmaBufModifiers to DRIimage
Varad Gautam
varadgautam at gmail.com
Thu Nov 24 15:20:45 UTC 2016
From: Varad Gautam <varad.gautam at collabora.com>
these allow querying the driver for supported dmabuf formats and
modifiers.
Signed-off-by: Varad Gautam <varad.gautam at 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
More information about the mesa-dev
mailing list