summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-09-01 11:58:36 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-09-01 11:58:36 -0700
commite96c078827628a9e23c53fb9315d25c8f5767d73 (patch)
tree29287696b6b0146d87beb839228a2c213fcf9807
parenta7417cb18899bd310ea94bb1ce57d14f75a0cf4e (diff)
Don't dereference function pointers in calls.
I'm apparently alone in prefering this calling convention, so I'll be a team player. :p Based on review comments by Brian Paul and Eric Anholt.
-rw-r--r--src/mesa/main/syncobj.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c
index b3c75c747a..075931c7ce 100644
--- a/src/mesa/main/syncobj.c
+++ b/src/mesa/main/syncobj.c
@@ -183,7 +183,7 @@ _mesa_unref_sync_object(GLcontext *ctx, struct gl_sync_object *syncObj)
remove_from_list(& syncObj->link);
_glthread_UNLOCK_MUTEX(ctx->Shared->Mutex);
- (*ctx->Driver.DeleteSyncObject)(ctx, syncObj);
+ ctx->Driver.DeleteSyncObject(ctx, syncObj);
} else {
_glthread_UNLOCK_MUTEX(ctx->Shared->Mutex);
}
@@ -250,7 +250,7 @@ _mesa_FenceSync(GLenum condition, GLbitfield flags)
return 0;
}
- syncObj = (*ctx->Driver.NewSyncObject)(ctx, GL_SYNC_FENCE);
+ syncObj = ctx->Driver.NewSyncObject(ctx, GL_SYNC_FENCE);
if (syncObj != NULL) {
syncObj->Type = GL_SYNC_FENCE;
/* The name is not currently used, and it is never visible to
@@ -265,7 +265,7 @@ _mesa_FenceSync(GLenum condition, GLbitfield flags)
syncObj->Flags = flags;
syncObj->Status = 0;
- (*ctx->Driver.FenceSync)(ctx, syncObj, condition, flags);
+ ctx->Driver.FenceSync(ctx, syncObj, condition, flags);
_glthread_LOCK_MUTEX(ctx->Shared->Mutex);
insert_at_tail(& ctx->Shared->SyncObjects, & syncObj->link);
@@ -305,11 +305,11 @@ _mesa_ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
* ClientWaitSync was called. ALREADY_SIGNALED will always be returned
* if <sync> was signaled, even if the value of <timeout> is zero.
*/
- (*ctx->Driver.CheckSync)(ctx, syncObj);
+ ctx->Driver.CheckSync(ctx, syncObj);
if (syncObj->Status) {
ret = GL_ALREADY_SIGNALED;
} else {
- (*ctx->Driver.ClientWaitSync)(ctx, syncObj, flags, timeout);
+ ctx->Driver.ClientWaitSync(ctx, syncObj, flags, timeout);
ret = syncObj->Status ? GL_CONDITION_SATISFIED : GL_TIMEOUT_EXPIRED;
}
@@ -344,7 +344,7 @@ _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
return;
}
- (*ctx->Driver.ServerWaitSync)(ctx, syncObj, flags, timeout);
+ ctx->Driver.ServerWaitSync(ctx, syncObj, flags, timeout);
}
@@ -379,7 +379,7 @@ _mesa_GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length,
* this call won't block. It just updates state in the common object
* data from the current driver state.
*/
- (*ctx->Driver.CheckSync)(ctx, syncObj);
+ ctx->Driver.CheckSync(ctx, syncObj);
v[0] = (syncObj->Status) ? GL_SIGNALED : GL_UNSIGNALED;
size = 1;