summaryrefslogtreecommitdiff
path: root/include/GL/internal/dri_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/GL/internal/dri_interface.h')
-rw-r--r--include/GL/internal/dri_interface.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index eb7da23f7ba..a682344f58e 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -1006,7 +1006,7 @@ struct __DRIdri2ExtensionRec {
* extensions.
*/
#define __DRI_IMAGE "DRI_IMAGE"
-#define __DRI_IMAGE_VERSION 11
+#define __DRI_IMAGE_VERSION 12
/**
* These formats correspond to the similarly named MESA_FORMAT_*
@@ -1038,7 +1038,7 @@ struct __DRIdri2ExtensionRec {
#define __DRI_IMAGE_USE_SCANOUT 0x0002
#define __DRI_IMAGE_USE_CURSOR 0x0004 /* Depricated */
#define __DRI_IMAGE_USE_LINEAR 0x0008
-
+#define __DRI_IMAGE_USE_FLUSH_EXTERNAL 0x0009 /* Since version xxx */
/**
* Four CC formats that matches with WL_DRM_FORMAT_* from wayland_drm.h
@@ -1162,6 +1162,7 @@ struct __DRIimageExtensionRec {
__DRIimage *(*createImageFromRenderbuffer)(__DRIcontext *context,
int renderbuffer,
+ unsigned use,
void *loaderPrivate);
void (*destroyImage)(__DRIimage *image);
@@ -1227,6 +1228,7 @@ struct __DRIimageExtensionRec {
int depth,
int level,
unsigned *error,
+ unsigned use,
void *loaderPrivate);
/**
* Like createImageFromNames, but takes a prime fd instead.
@@ -1279,6 +1281,15 @@ struct __DRIimageExtensionRec {
* \since 10
*/
int (*getCapabilities)(__DRIscreen *screen);
+
+ /**
+ * API between EGL and GL driver for EGL_EXT_image_flush_external
+ * (TODO - figure out the the actual arguments required)
+ *
+ * \since xxx
+ */
+ GLboolean (*flushImageExternal)(__DRIcontext *ctx, __DRIimage *image);
+ GLboolean (*invalidateImageExternal)(__DRIcontext *ctx, __DRIimage *image);
};