summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-12-06 16:35:54 +1000
committerMarge Bot <emma+marge@anholt.net>2021-12-06 22:08:39 +0000
commita7c7f55a3b8091802ceb0b021193e4e7d0793d10 (patch)
tree3b79134a3b8897eb07944f5642b75dfb9fef3fad
parentae9c96ea17bac2d97276d3bd62d2c2c0cae4d5c6 (diff)
mesa/syncobj: drop unused syncobj code.
This is all done in the state tracker now Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14075>
-rw-r--r--src/mesa/main/syncobj.c72
-rw-r--r--src/mesa/main/syncobj.h3
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