mesa: Make fence_sync not static
authorJesse Natalie <jenatali@microsoft.com>
Fri, 21 Oct 2022 21:25:51 +0000 (14:25 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Nov 2022 18:11:41 +0000 (18:11 +0000)
Reviewed-by: Adam Jackson <ajax@redhat.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19242>

src/mesa/main/syncobj.c
src/mesa/main/syncobj.h

index 4a11756..593d155 100644 (file)
@@ -268,8 +268,8 @@ _mesa_DeleteSync(GLsync sync)
 }
 
 
-static GLsync
-fence_sync(struct gl_context *ctx, GLenum condition, GLbitfield flags)
+GLsync
+_mesa_fence_sync(struct gl_context *ctx, GLenum condition, GLbitfield flags)
 {
    struct gl_sync_object *syncObj;
 
@@ -308,7 +308,7 @@ GLsync GLAPIENTRY
 _mesa_FenceSync_no_error(GLenum condition, GLbitfield flags)
 {
    GET_CURRENT_CONTEXT(ctx);
-   return fence_sync(ctx, condition, flags);
+   return _mesa_fence_sync(ctx, condition, flags);
 }
 
 
@@ -329,7 +329,7 @@ _mesa_FenceSync(GLenum condition, GLbitfield flags)
       return 0;
    }
 
-   return fence_sync(ctx, condition, flags);
+   return _mesa_fence_sync(ctx, condition, flags);
 }
 
 
index 5a3526e..8350b9f 100644 (file)
@@ -44,6 +44,9 @@ _mesa_init_sync(struct gl_context *);
 extern void
 _mesa_free_sync_data(struct gl_context *);
 
+extern GLsync
+_mesa_fence_sync(struct gl_context *ctx, GLenum condition, GLbitfield flags);
+
 struct gl_sync_object *
 _mesa_get_and_ref_sync(struct gl_context *ctx, GLsync sync, bool incRefCount);