• Home
  • Raw
  • Download

Lines Matching refs:syncObj

82 _mesa_delete_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj)  in _mesa_delete_sync_object()  argument
85 free(syncObj->Label); in _mesa_delete_sync_object()
86 free(syncObj); in _mesa_delete_sync_object()
91 _mesa_fence_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, in _mesa_fence_sync() argument
98 syncObj->StatusFlag = 1; in _mesa_fence_sync()
103 _mesa_check_sync(struct gl_context *ctx, struct gl_sync_object *syncObj) in _mesa_check_sync() argument
106 (void) syncObj; in _mesa_check_sync()
115 _mesa_wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, in _mesa_wait_sync() argument
119 (void) syncObj; in _mesa_wait_sync()
179 struct gl_sync_object *syncObj = (struct gl_sync_object *) sync; in _mesa_get_and_ref_sync() local
181 if (syncObj != NULL in _mesa_get_and_ref_sync()
182 && _mesa_set_search(ctx->Shared->SyncObjects, syncObj) != NULL in _mesa_get_and_ref_sync()
183 && !syncObj->DeletePending) { in _mesa_get_and_ref_sync()
185 syncObj->RefCount++; in _mesa_get_and_ref_sync()
188 syncObj = NULL; in _mesa_get_and_ref_sync()
191 return syncObj; in _mesa_get_and_ref_sync()
196 _mesa_unref_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj, in _mesa_unref_sync_object() argument
202 syncObj->RefCount -= amount; in _mesa_unref_sync_object()
203 if (syncObj->RefCount == 0) { in _mesa_unref_sync_object()
204 entry = _mesa_set_search(ctx->Shared->SyncObjects, syncObj); in _mesa_unref_sync_object()
209 ctx->Driver.DeleteSyncObject(ctx, syncObj); in _mesa_unref_sync_object()
229 struct gl_sync_object *syncObj; in delete_sync() local
241 syncObj = _mesa_get_and_ref_sync(ctx, sync, true); in delete_sync()
242 if (!no_error && !syncObj) { in delete_sync()
253 syncObj->DeletePending = GL_TRUE; in delete_sync()
254 _mesa_unref_sync_object(ctx, syncObj, 2); in delete_sync()
277 struct gl_sync_object *syncObj; in fence_sync() local
279 syncObj = ctx->Driver.NewSyncObject(ctx); in fence_sync()
280 if (syncObj != NULL) { in fence_sync()
286 syncObj->Name = 1; in fence_sync()
287 syncObj->RefCount = 1; in fence_sync()
288 syncObj->DeletePending = GL_FALSE; in fence_sync()
289 syncObj->SyncCondition = condition; in fence_sync()
290 syncObj->Flags = flags; in fence_sync()
291 syncObj->StatusFlag = 0; in fence_sync()
293 ctx->Driver.FenceSync(ctx, syncObj, condition, flags); in fence_sync()
296 _mesa_set_add(ctx->Shared->SyncObjects, syncObj); in fence_sync()
299 return (GLsync)syncObj; in fence_sync()
336 client_wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, in client_wait_sync() argument
348 ctx->Driver.CheckSync(ctx, syncObj); in client_wait_sync()
349 if (syncObj->StatusFlag) { in client_wait_sync()
355 ctx->Driver.ClientWaitSync(ctx, syncObj, flags, timeout); in client_wait_sync()
357 ret = syncObj->StatusFlag in client_wait_sync()
362 _mesa_unref_sync_object(ctx, syncObj, 1); in client_wait_sync()
372 struct gl_sync_object *syncObj = _mesa_get_and_ref_sync(ctx, sync, true); in _mesa_ClientWaitSync_no_error() local
373 return client_wait_sync(ctx, syncObj, flags, timeout); in _mesa_ClientWaitSync_no_error()
381 struct gl_sync_object *syncObj; in _mesa_ClientWaitSync() local
390 syncObj = _mesa_get_and_ref_sync(ctx, sync, true); in _mesa_ClientWaitSync()
391 if (!syncObj) { in _mesa_ClientWaitSync()
397 return client_wait_sync(ctx, syncObj, flags, timeout); in _mesa_ClientWaitSync()
402 wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, in wait_sync() argument
405 ctx->Driver.ServerWaitSync(ctx, syncObj, flags, timeout); in wait_sync()
406 _mesa_unref_sync_object(ctx, syncObj, 1); in wait_sync()
415 struct gl_sync_object *syncObj = _mesa_get_and_ref_sync(ctx, sync, true); in _mesa_WaitSync_no_error() local
416 wait_sync(ctx, syncObj, flags, timeout); in _mesa_WaitSync_no_error()
424 struct gl_sync_object *syncObj; in _mesa_WaitSync() local
437 syncObj = _mesa_get_and_ref_sync(ctx, sync, true); in _mesa_WaitSync()
438 if (!syncObj) { in _mesa_WaitSync()
444 wait_sync(ctx, syncObj, flags, timeout); in _mesa_WaitSync()
453 struct gl_sync_object *syncObj; in _mesa_GetSynciv() local
457 syncObj = _mesa_get_and_ref_sync(ctx, sync, true); in _mesa_GetSynciv()
458 if (!syncObj) { in _mesa_GetSynciv()
471 v[0] = syncObj->SyncCondition; in _mesa_GetSynciv()
480 ctx->Driver.CheckSync(ctx, syncObj); in _mesa_GetSynciv()
482 v[0] = (syncObj->StatusFlag) ? GL_SIGNALED : GL_UNSIGNALED; in _mesa_GetSynciv()
487 v[0] = syncObj->Flags; in _mesa_GetSynciv()
493 _mesa_unref_sync_object(ctx, syncObj, 1); in _mesa_GetSynciv()
515 _mesa_unref_sync_object(ctx, syncObj, 1); in _mesa_GetSynciv()