mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
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:
parent
798a7ef698
commit
414c4583e8
1 changed files with 26 additions and 0 deletions
|
|
@ -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) */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue