Home | History | Annotate | Download | only in main

Lines Matching refs:sync

26  * Sync object management.
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
110 * whether the state of the sync object has changed.
125 * the state of the sync object changes or the timeout expires.
145 * Allocate/init the context state related to sync objects.
155 * Free the context state related to sync objects.
165 * Check if the given sync object is:
167 * - not in sync objects hash table
171 * Returns the internal gl_sync_object pointer if the sync object is valid
176 * could delete the sync object while you are still working on it.
179 _mesa_get_and_ref_sync(struct gl_context *ctx, GLsync sync, bool incRefCount)
181 struct gl_sync_object *syncObj = (struct gl_sync_object *) sync;
220 _mesa_IsSync(GLsync sync)
225 return _mesa_get_and_ref_sync(ctx, sync, false) ? GL_TRUE : GL_FALSE;
230 _mesa_DeleteSync(GLsync sync)
237 * DeleteSync will silently ignore a <sync> value of zero. An
238 * INVALID_VALUE error is generated if <sync> is neither zero nor the
239 * name of a sync object.
241 if (sync == 0) {
245 syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
247 _mesa_error(ctx, GL_INVALID_VALUE, "glDeleteSync (not a valid sync object)");
251 /* If there are no client-waits or server-waits pending on this sync, delete
284 * applications. If sync support is extended to provide support for
309 _mesa_ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
321 syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
323 _mesa_error(ctx, GL_INVALID_VALUE, "glClientWaitSync (not a valid sync object)");
330 * ALREADY_SIGNALED indicates that <sync> was signaled at the time
332 * if <sync> was signaled, even if the value of <timeout> is zero.
353 _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
369 syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
371 _mesa_error(ctx, GL_INVALID_VALUE, "glWaitSync (not a valid sync object)");
381 _mesa_GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length,
389 syncObj = _mesa_get_and_ref_sync(ctx, sync, true);
391 _mesa_error(ctx, GL_INVALID_VALUE, "glGetSynciv (not a valid sync object)");
407 /* Update the state of the sync by dipping into the driver. Note that
428 /* Section 4.1.3 (Sync Object Queries) of the OpenGL ES 3.10 spec says: