mapi: Remove usage of _glapi_check_multithread and _glapi_destroy_multithread

They are empty stub functions now so have no need call to them

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17814>
This commit is contained in:
Yonggang Luo
2022-07-27 16:03:27 +08:00
committed by Marge Bot
parent a5b463742c
commit a5972eb7ac
3 changed files with 0 additions and 12 deletions

View File

@@ -260,11 +260,6 @@ stw_cleanup(void)
stw_dev->screen->destroy(stw_dev->screen);
/* glapi is statically linked: we can call the local destroy function. */
#ifdef _GLAPI_NO_EXPORTS
_glapi_destroy_multithread();
#endif
stw_tls_cleanup();
util_dynarray_fini(&stw_dev->pixelformats);

View File

@@ -133,8 +133,6 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
return GL_FALSE;
}
_glapi_check_multithread();
__glXLock();
if (oldGC == gc &&
gc->currentDrawable == draw && gc->currentReadable == read) {

View File

@@ -1493,11 +1493,6 @@ _mesa_make_current( struct gl_context *newCtx,
st_glFlush(curCtx, 0);
}
/* Call this periodically to detect when the user has begun using
* GL rendering from multiple threads.
*/
_glapi_check_multithread();
if (!newCtx) {
_glapi_set_dispatch(NULL); /* none current */
/* We need old ctx to correctly release Draw/ReadBuffer