Home | History | Annotate | Download | only in main

Lines Matching refs:ctx

71 _mesa_new_sync_object(struct gl_context *ctx, GLenum type)
74 (void) ctx;
82 _mesa_delete_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj)
84 (void) ctx;
90 _mesa_fence_sync(struct gl_context *ctx, struct gl_sync_object *syncObj,
93 (void) ctx;
102 _mesa_check_sync(struct gl_context *ctx, struct gl_sync_object *syncObj)
104 (void) ctx;
114 _mesa_wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj,
117 (void) ctx;
160 _mesa_init_sync(struct gl_context *ctx)
162 (void) ctx;
170 _mesa_free_sync_data(struct gl_context *ctx)
172 (void) ctx;
186 _mesa_ref_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj)
188 _glthread_LOCK_MUTEX(ctx->Shared->Mutex);
190 _glthread_UNLOCK_MUTEX(ctx->Shared->Mutex);
195 _mesa_unref_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj)
197 _glthread_LOCK_MUTEX(ctx->Shared->Mutex);
201 _glthread_UNLOCK_MUTEX(ctx->Shared->Mutex);
203 ctx->Driver.DeleteSyncObject(ctx, syncObj);
205 _glthread_UNLOCK_MUTEX(ctx->Shared->Mutex);
213 GET_CURRENT_CONTEXT(ctx);
215 ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
224 GET_CURRENT_CONTEXT(ctx);
226 ASSERT_OUTSIDE_BEGIN_END(ctx);
239 _mesa_error(ctx, GL_INVALID_OPERATION, "glDeleteSync");
247 _mesa_unref_sync_object(ctx, syncObj);
254 GET_CURRENT_CONTEXT(ctx);
256 ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, 0);
259 _mesa_error(ctx, GL_INVALID_ENUM, "glFenceSync(condition=0x%x)",
265 _mesa_error(ctx, GL_INVALID_VALUE, "glFenceSync(flags=0x%x)",
270 syncObj = ctx->Driver.NewSyncObject(ctx, GL_SYNC_FENCE);
285 ctx->Driver.FenceSync(ctx, syncObj, condition, flags);
287 _glthread_LOCK_MUTEX(ctx->Shared->Mutex);
288 insert_at_tail(& ctx->Shared->SyncObjects, & syncObj->link);
289 _glthread_UNLOCK_MUTEX(ctx->Shared->Mutex);
301 GET_CURRENT_CONTEXT(ctx);
304 ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_WAIT_FAILED);
307 _mesa_error(ctx, GL_INVALID_OPERATION, "glClientWaitSync");
312 _mesa_error(ctx, GL_INVALID_ENUM, "glClientWaitSync(flags=0x%x)", flags);
316 _mesa_ref_sync_object(ctx, syncObj);
325 ctx->Driver.CheckSync(ctx, syncObj);
332 ctx->Driver.ClientWaitSync(ctx, syncObj, flags, timeout);
338 _mesa_unref_sync_object(ctx, syncObj);
346 GET_CURRENT_CONTEXT(ctx);
348 ASSERT_OUTSIDE_BEGIN_END(ctx);
351 _mesa_error(ctx, GL_INVALID_OPERATION, "glWaitSync");
356 _mesa_error(ctx, GL_INVALID_ENUM, "glWaitSync(flags=0x%x)", flags);
368 ctx->Driver.ServerWaitSync(ctx, syncObj, flags, timeout);
376 GET_CURRENT_CONTEXT(ctx);
380 ASSERT_OUTSIDE_BEGIN_END(ctx);
383 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetSynciv");
403 ctx->Driver.CheckSync(ctx, syncObj);
415 _mesa_error(ctx, GL_INVALID_ENUM, "glGetSynciv(pname=0x%x)\n", pname);