Lines Matching refs:sync

28  * Unlike textures and other objects that are shared between contexts, sync
30 * and delete behavior of sync objects is slightly different. References to
31 * sync objects are added:
45 * As with shader objects, sync object names become invalid as soon as
77 * Allocate/init the context state related to sync objects.
87 * Free the context state related to sync objects.
142 * - sync is unsignaled when ClientWaitSync is called,
146 * immediately after the creation of sync.
161 * Check if the given sync object is:
163 * - not in sync objects hash table
166 * Returns the internal gl_sync_object pointer if the sync object is valid
171 * could delete the sync object while you are still working on it.
174 _mesa_get_and_ref_sync(struct gl_context *ctx, GLsync sync, bool incRefCount)
176 struct gl_sync_object *syncObj = (struct gl_sync_object *) sync;
214 _mesa_IsSync(GLsync sync)
219 return _mesa_get_and_ref_sync(ctx, sync, false) ? GL_TRUE : GL_FALSE;
224 delete_sync(struct gl_context *ctx, GLsync sync, bool no_error)
230 * DeleteSync will silently ignore a <sync> value of zero. An
231 * INVALID_VALUE error is generated if <sync> is neither zero nor the
232 * name of a sync object.
234 if (sync == 0) {
238 syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
241 "glDeleteSync (not a valid sync object)");
245 /* If there are no client-waits or server-waits pending on this sync, delete
256 _mesa_DeleteSync_no_error(GLsync sync)
259 delete_sync(ctx, sync, true);
264 _mesa_DeleteSync(GLsync sync)
267 delete_sync(ctx, sync, false);
279 * applications. If sync support is extended to provide support for
345 * ALREADY_SIGNALED indicates that <sync> was signaled at the time
347 * if <sync> was signaled, even if the value of <timeout> is zero.
369 _mesa_ClientWaitSync_no_error(GLsync sync, GLbitfield flags, GLuint64 timeout)
373 struct gl_sync_object *syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
379 _mesa_ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
391 syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
394 "glClientWaitSync (not a valid sync object)");
437 _mesa_WaitSync_no_error(GLsync sync, GLbitfield flags, GLuint64 timeout)
441 struct gl_sync_object *syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
447 _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
463 syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
466 "glWaitSync (not a valid sync object)");
475 _mesa_GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length,
483 syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
486 "glGetSynciv (not a valid sync object)");
502 /* Update the state of the sync by dipping into the driver. Note that