[Mesa-dev] [PATCH 4/6][RFC] DRIimage: add blitImage to the specification

Axel Davy axel.davy at ens.fr
Sun Jan 5 13:26:40 PST 2014


Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
 include/GL/internal/dri_interface.h | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 81f7e60..19f3c93 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -995,7 +995,7 @@ struct __DRIdri2ExtensionRec {
  * extensions.
  */
 #define __DRI_IMAGE "DRI_IMAGE"
-#define __DRI_IMAGE_VERSION 8
+#define __DRI_IMAGE_VERSION 9
 
 /**
  * These formats correspond to the similarly named MESA_FORMAT_*
@@ -1086,6 +1086,12 @@ struct __DRIdri2ExtensionRec {
                                                 * 7+. Each query will return a
                                                 * new fd. */
 
+/**
+ * blitImage flags
+ */
+
+#define __BLIT_FLAG_FINISH		0x0001
+
 enum __DRIYUVColorSpace {
    __DRI_YUV_COLOR_SPACE_UNDEFINED = 0,
    __DRI_YUV_COLOR_SPACE_ITU_REC601 = 0x327F,
@@ -1228,6 +1234,19 @@ struct __DRIimageExtensionRec {
                                          enum __DRIChromaSiting vert_siting,
                                          unsigned *error,
                                          void *loaderPrivate);
+
+   /**
+    * blit a part of a __DRIimage to another.
+    *
+    * __BLIT_FLAG_FINISH flag indicates blitImage will wait the
+    * copy has finished.
+    *
+    * \since 9
+    */
+   void (*blitImage)(__DRIcontext *context, __DRIimage *dst, __DRIimage *src,
+		     int dstx0, int dsty0, int dstwidth, int dstheight,
+		     int srcx0, int srcy0, int srcwidth, int srcheight,
+		     int flags);
 };
 
 
-- 
1.8.3.2



More information about the mesa-dev mailing list