[Mesa-dev] [PATCH 11/15] Add fd parameter to __DRIbuffer.

Christopher James Halse Rogers christopher.halse.rogers at canonical.com
Sat Jul 20 04:40:43 PDT 2013


This allows platforms which want to do PRIME fd passing rather than
flink, such as Wayland and Mir, to do so without having to uselessly
allocate a world-visible name for internal mesa use

Signed-off-by: Christopher James Halse Rogers <raof at ubuntu.com>
---
 include/GL/internal/dri_interface.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 5c99d55..18767c7 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -768,10 +768,12 @@ struct __DRIbufferRec {
     unsigned int pitch;
     unsigned int cpp;
     unsigned int flags;
+    unsigned int fd;    /**< Only available with DRI2_LOADER_VERSION >= 4, */
+                        /**< Only valid if name == 0 */
 };
 
 #define __DRI_DRI2_LOADER "DRI_DRI2Loader"
-#define __DRI_DRI2_LOADER_VERSION 3
+#define __DRI_DRI2_LOADER_VERSION 4
 struct __DRIdri2LoaderExtensionRec {
     __DRIextension base;
 
-- 
1.8.3.2



More information about the mesa-dev mailing list