[Mesa-dev] [PATCH 2/3] egl: make interop ABI visible again
Marek Olšák
maraeo at gmail.com
Wed Nov 2 18:07:28 UTC 2016
From: Marek Olšák <marek.olsak at amd.com>
This was broken when the GLAPI use was removed from mesa_glinterop.h.
Cc: 12.0 13.0 <mesa-stable at lists.freedesktop.org>
---
src/egl/main/eglapi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 04cac03..53340bf 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -2384,21 +2384,21 @@ _eglLockDisplayInterop(EGLDisplay dpy, EGLContext context,
if (!*ctx ||
((*ctx)->ClientAPI != EGL_OPENGL_API &&
(*ctx)->ClientAPI != EGL_OPENGL_ES_API)) {
_eglUnlockDisplay(*disp);
return MESA_GLINTEROP_INVALID_CONTEXT;
}
return MESA_GLINTEROP_SUCCESS;
}
-int
+PUBLIC int
MesaGLInteropEGLQueryDeviceInfo(EGLDisplay dpy, EGLContext context,
struct mesa_glinterop_device_info *out)
{
_EGLDisplay *disp;
_EGLDriver *drv;
_EGLContext *ctx;
int ret;
ret = _eglLockDisplayInterop(dpy, context, &disp, &drv, &ctx);
if (ret != MESA_GLINTEROP_SUCCESS)
@@ -2406,21 +2406,21 @@ MesaGLInteropEGLQueryDeviceInfo(EGLDisplay dpy, EGLContext context,
if (drv->API.GLInteropQueryDeviceInfo)
ret = drv->API.GLInteropQueryDeviceInfo(disp, ctx, out);
else
ret = MESA_GLINTEROP_UNSUPPORTED;
_eglUnlockDisplay(disp);
return ret;
}
-int
+PUBLIC int
MesaGLInteropEGLExportObject(EGLDisplay dpy, EGLContext context,
struct mesa_glinterop_export_in *in,
struct mesa_glinterop_export_out *out)
{
_EGLDisplay *disp;
_EGLDriver *drv;
_EGLContext *ctx;
int ret;
ret = _eglLockDisplayInterop(dpy, context, &disp, &drv, &ctx);
--
2.7.4
More information about the mesa-dev
mailing list