summaryrefslogtreecommitdiff
path: root/include/GL
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2021-10-14 15:09:49 +0200
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2021-10-18 16:23:58 +0200
commit7a5de842499b31161f5db702446d1fe8081d7956 (patch)
tree68b0ed549a228b9bd90ca430e0a63de7be9ba164 /include/GL
parent48551a1807d69f104f6a4dd8fd75d6c53f833925 (diff)
downloadmesa-7a5de842499b31161f5db702446d1fe8081d7956.tar.gz
gallium/dri: add createImageFromFds2
Same as createImageFromFds but with added flags so the caller can give the driver more context. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13362>
Diffstat (limited to 'include/GL')
-rw-r--r--include/GL/internal/dri_interface.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 49ea14f3c2c..cd30046fde2 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -1237,7 +1237,7 @@ struct __DRIdri2ExtensionRec {
* extensions.
*/
#define __DRI_IMAGE "DRI_IMAGE"
-#define __DRI_IMAGE_VERSION 19
+#define __DRI_IMAGE_VERSION 20
/**
* These formats correspond to the similarly named MESA_FORMAT_*
@@ -1408,7 +1408,7 @@ enum __DRIChromaSiting {
#define __BLIT_FLAG_FINISH 0x0002
/**
- * Flags for createImageFromDmaBufs3
+ * Flags for createImageFromDmaBufs3 and createImageFromFds2
*/
#define __DRI_IMAGE_PROTECTED_CONTENT_FLAG 0x00000001
@@ -1738,6 +1738,20 @@ struct __DRIimageExtensionRec {
const unsigned int modifier_count,
unsigned int use,
void *loaderPrivate);
+
+ /**
+ * Like createImageFromFds, but with an added flag parameter.
+ *
+ * See __DRI_IMAGE_*_FLAG for valid definitions of flags.
+ *
+ * \since 20
+ */
+ __DRIimage *(*createImageFromFds2)(__DRIscreen *screen,
+ int width, int height, int fourcc,
+ int *fds, int num_fds,
+ uint32_t flags,
+ int *strides, int *offsets,
+ void *loaderPrivate);
};