glx: Add missing MesaGLInteropGLXFlushObjects

All the plumbing was added in 8d55fb54b1
but for some reason the top level access method was not ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Acked-by: Antonio Gomes <antoniospg100@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24573>
This commit is contained in:
Sylvain Munaut 2023-08-09 12:57:49 +02:00 committed by Marge Bot
parent 798a7ef698
commit 414c4583e8

View file

@ -2449,4 +2449,30 @@ MesaGLInteropGLXExportObject(Display *dpy, GLXContext context,
return ret;
}
PUBLIC int
MesaGLInteropGLXFlushObjects(Display *dpy, GLXContext context,
unsigned count,
struct mesa_glinterop_export_in *resources,
GLsync *sync)
{
struct glx_context *gc = (struct glx_context*)context;
int ret;
__glXLock();
if (!gc || gc->xid == None || !gc->isDirect) {
__glXUnlock();
return MESA_GLINTEROP_INVALID_CONTEXT;
}
if (!gc->vtable->interop_flush_objects) {
__glXUnlock();
return MESA_GLINTEROP_UNSUPPORTED;
}
ret = gc->vtable->interop_flush_objects(gc, count, resources, sync);
__glXUnlock();
return ret;
}
#endif /* defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) */