From e384d75b120ce60954c545e8c6edbe98fd01bea7 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 21 Apr 2016 17:29:16 +0100 Subject: mesa_glinterop: make GL interop version field bidirectional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows clear and easy communication between the two. Caller: Requesting information (struct vN) Callee: I know how to deal with older version (vN-1) only. Here is your data and the version I support. Caller: Older version ? Sure I'll cap all access to the fields provided by the older version (vN-1) Signed-off-by: Emil Velikov Reviewed-by: Marek Olšák Tested-by: Tom Stellard --- src/egl/main/eglapi.c | 2 +- src/egl/main/eglapi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/egl/main') diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index c8d7c23..098bed0 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1961,7 +1961,7 @@ MesaGLInteropEGLQueryDeviceInfo(EGLDisplay dpy, EGLContext context, int MesaGLInteropEGLExportObject(EGLDisplay dpy, EGLContext context, - const mesa_glinterop_export_in *in, + mesa_glinterop_export_in *in, mesa_glinterop_export_out *out) { _EGLDisplay *disp; diff --git a/src/egl/main/eglapi.h b/src/egl/main/eglapi.h index 58327fd..4df17c0 100644 --- a/src/egl/main/eglapi.h +++ b/src/egl/main/eglapi.h @@ -195,7 +195,7 @@ struct _egl_api int (*GLInteropQueryDeviceInfo)(_EGLDisplay *dpy, _EGLContext *ctx, mesa_glinterop_device_info *out); int (*GLInteropExportObject)(_EGLDisplay *dpy, _EGLContext *ctx, - const mesa_glinterop_export_in *in, + mesa_glinterop_export_in *in, mesa_glinterop_export_out *out); }; -- cgit v1.1