Mesa (main): mesa/syncobj: drop unused syncobj code.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 6 22:41:28 UTC 2021


Module: Mesa
Branch: main
Commit: a7c7f55a3b8091802ceb0b021193e4e7d0793d10
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7c7f55a3b8091802ceb0b021193e4e7d0793d10

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Dec  6 16:35:54 2021 +1000

mesa/syncobj: drop unused syncobj code.

This is all done in the state tracker now

Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14075>

---

 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 *);
 



More information about the mesa-commit mailing list