From a7c7f55a3b8091802ceb0b021193e4e7d0793d10 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 6 Dec 2021 16:35:54 +1000 Subject: [PATCH] mesa/syncobj: drop unused syncobj code. This is all done in the state tracker now Reviewed-by: Timothy Arceri Part-of: --- src/mesa/main/syncobj.c | 72 ----------------------------------------- src/mesa/main/syncobj.h | 3 -- 2 files changed, 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 @@ -38,9 +38,6 @@ struct dd_function_table; 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 *);