dri: introduce createImageFromDmaBufs3
Extends createImageFromDmaBufs2 with a protected_content flag.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5096>
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 94406dc..39d5dd0 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -1319,7 +1319,7 @@
* extensions.
*/
#define __DRI_IMAGE "DRI_IMAGE"
-#define __DRI_IMAGE_VERSION 17
+#define __DRI_IMAGE_VERSION 18
/**
* These formats correspond to the similarly named MESA_FORMAT_*
@@ -1488,6 +1488,11 @@
#define __BLIT_FLAG_FINISH 0x0002
/**
+ * Flags for createImageFromDmaBufs3
+ */
+#define __DRI_IMAGE_PROTECTED_CONTENT_FLAG 0x00000001
+
+/**
* queryDmaBufFormatModifierAttribs attributes
*/
@@ -1769,6 +1774,26 @@
int renderbuffer,
void *loaderPrivate,
unsigned *error);
+
+ /*
+ * Like createImageFromDmaBufs2, but with an added flags parameter.
+ *
+ * See __DRI_IMAGE_*_FLAG for valid definitions of flags.
+ *
+ * \since 18
+ */
+ __DRIimage *(*createImageFromDmaBufs3)(__DRIscreen *screen,
+ int width, int height, int fourcc,
+ uint64_t modifier,
+ int *fds, int num_fds,
+ int *strides, int *offsets,
+ enum __DRIYUVColorSpace color_space,
+ enum __DRISampleRange sample_range,
+ enum __DRIChromaSiting horiz_siting,
+ enum __DRIChromaSiting vert_siting,
+ uint32_t flags,
+ unsigned *error,
+ void *loaderPrivate);
};