diff options
-rw-r--r-- | src/mesa/main/syncobj.c | 72 | ||||
-rw-r--r-- | src/mesa/main/syncobj.h | 3 |
2 files changed, 0 insertions, 75 deletions
diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index 23b49c981ae..d2ddadb498d 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -68,78 +68,6 @@ #include "syncobj.h" -static struct gl_sync_object * -_mesa_new_sync_object(struct gl_context *ctx) -{ - struct gl_sync_object *s = CALLOC_STRUCT(gl_sync_object); - (void) ctx; - - return s; -} - - -static void -_mesa_delete_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj) -{ - (void) ctx; - free(syncObj->Label); - free(syncObj); -} - - -static void -_mesa_fence_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, - GLenum condition, GLbitfield flags) -{ - (void) ctx; - (void) condition; - (void) flags; - - syncObj->StatusFlag = 1; -} - - -static void -_mesa_check_sync(struct gl_context *ctx, struct gl_sync_object *syncObj) -{ - (void) ctx; - (void) syncObj; - - /* No-op for software rendering. Hardware drivers will need to determine - * whether the state of the sync object has changed. - */ -} - - -static void -_mesa_wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, - GLbitfield flags, GLuint64 timeout) -{ - (void) ctx; - (void) syncObj; - (void) flags; - (void) timeout; - - /* No-op for software rendering. Hardware drivers will need to wait until - * the state of the sync object changes or the timeout expires. - */ -} - - -void -_mesa_init_sync_object_functions(struct dd_function_table *driver) -{ - driver->NewSyncObject = _mesa_new_sync_object; - driver->FenceSync = _mesa_fence_sync; - driver->DeleteSyncObject = _mesa_delete_sync_object; - driver->CheckSync = _mesa_check_sync; - - /* Use the same no-op wait function for both. - */ - driver->ClientWaitSync = _mesa_wait_sync; - driver->ServerWaitSync = _mesa_wait_sync; -} - /** * Allocate/init the context state related to sync objects. */ diff --git a/src/mesa/main/syncobj.h b/src/mesa/main/syncobj.h index 79cb0d26adb..e5fe418dfe9 100644 --- a/src/mesa/main/syncobj.h +++ b/src/mesa/main/syncobj.h @@ -39,9 +39,6 @@ struct gl_context; struct gl_sync_object; extern void -_mesa_init_sync_object_functions(struct dd_function_table *driver); - -extern void _mesa_init_sync(struct gl_context *); extern void |