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>
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user