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 <r...@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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev