X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fsyncobj.h;h=79cb0d26adbae4a63739b6ebb7e959d7601a493e;hb=00caf2ab088dd2e08ce410850dee61ba2b9aa63a;hp=c53511995b15fa96085b3cc88c977acc8599fb44;hpb=443a7e4e9a360acbc3e662c098be436f180bf81d;p=mesa.git diff --git a/src/mesa/main/syncobj.h b/src/mesa/main/syncobj.h index c53511995b1..79cb0d26adb 100644 --- a/src/mesa/main/syncobj.h +++ b/src/mesa/main/syncobj.h @@ -32,37 +32,52 @@ #define SYNCOBJ_H #include "glheader.h" -#include "mtypes.h" +struct _glapi_table; struct dd_function_table; +struct gl_context; +struct gl_sync_object; extern void _mesa_init_sync_object_functions(struct dd_function_table *driver); extern void -_mesa_init_sync(GLcontext *); +_mesa_init_sync(struct gl_context *); extern void -_mesa_free_sync_data(GLcontext *); +_mesa_free_sync_data(struct gl_context *); -extern void -_mesa_ref_sync_object(GLcontext *ctx, struct gl_sync_object *syncObj); +struct gl_sync_object * +_mesa_get_and_ref_sync(struct gl_context *ctx, GLsync sync, bool incRefCount); extern void -_mesa_unref_sync_object(GLcontext *ctx, struct gl_sync_object *syncObj); +_mesa_unref_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj, + int amount); extern GLboolean GLAPIENTRY _mesa_IsSync(GLsync sync); +void GLAPIENTRY +_mesa_DeleteSync_no_error(GLsync sync); + extern void GLAPIENTRY _mesa_DeleteSync(GLsync sync); +GLsync GLAPIENTRY +_mesa_FenceSync_no_error(GLenum condition, GLbitfield flags); + extern GLsync GLAPIENTRY _mesa_FenceSync(GLenum condition, GLbitfield flags); +GLenum GLAPIENTRY +_mesa_ClientWaitSync_no_error(GLsync sync, GLbitfield flags, GLuint64 timeout); + extern GLenum GLAPIENTRY _mesa_ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); +void GLAPIENTRY +_mesa_WaitSync_no_error(GLsync sync, GLbitfield flags, GLuint64 timeout); + extern void GLAPIENTRY _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);