Home
last modified time | relevance | path

Searched refs:syncObj (Results 1 – 3 of 3) sorted by relevance

/third_party/mesa3d/src/mesa/main/
Dsyncobj.c176 struct gl_sync_object *syncObj = (struct gl_sync_object *) sync; in _mesa_get_and_ref_sync() local
178 if (syncObj != NULL in _mesa_get_and_ref_sync()
179 && _mesa_set_search(ctx->Shared->SyncObjects, syncObj) != NULL in _mesa_get_and_ref_sync()
180 && !syncObj->DeletePending) { in _mesa_get_and_ref_sync()
182 syncObj->RefCount++; in _mesa_get_and_ref_sync()
185 syncObj = NULL; in _mesa_get_and_ref_sync()
188 return syncObj; in _mesa_get_and_ref_sync()
193 _mesa_unref_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj, in _mesa_unref_sync_object() argument
199 syncObj->RefCount -= amount; in _mesa_unref_sync_object()
200 if (syncObj->RefCount == 0) { in _mesa_unref_sync_object()
[all …]
Dobjectlabel.c301 struct gl_sync_object *syncObj; in _mesa_ObjectPtrLabel() local
305 syncObj = _mesa_get_and_ref_sync(ctx, (void*)ptr, true); in _mesa_ObjectPtrLabel()
312 if (!syncObj) { in _mesa_ObjectPtrLabel()
318 labelPtr = &syncObj->Label; in _mesa_ObjectPtrLabel()
321 _mesa_unref_sync_object(ctx, syncObj, 1); in _mesa_ObjectPtrLabel()
329 struct gl_sync_object *syncObj; in _mesa_GetObjectPtrLabel() local
344 syncObj = _mesa_get_and_ref_sync(ctx, (void*)ptr, true); in _mesa_GetObjectPtrLabel()
345 if (!syncObj) { in _mesa_GetObjectPtrLabel()
351 labelPtr = &syncObj->Label; in _mesa_GetObjectPtrLabel()
354 _mesa_unref_sync_object(ctx, syncObj, 1); in _mesa_GetObjectPtrLabel()
Dsyncobj.h51 _mesa_unref_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj,