glapi: remove unused _mesa_glapi_Dispatch

Only _mesa_glapi_tls_Dispatch is used.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34002>
This commit is contained in:
Marek Olšák 2025-03-08 12:17:42 -05:00 committed by Marge Bot
parent 711fc10ea3
commit 1e0ce9db94
3 changed files with 1 additions and 20 deletions

View file

@ -1,6 +1,5 @@
{
global:
_mesa_glapi_Dispatch;
_mesa_glapi_tls_Dispatch;
_mesa_glapi_get_dispatch_table_size; # only for tests
_mesa_glapi_get_proc_offset; # only for tests

View file

@ -77,8 +77,6 @@ _GLAPI_EXPORT extern __THREAD_INITIAL_EXEC struct _glapi_table * _mesa_glapi_tls
_GLAPI_EXPORT extern __THREAD_INITIAL_EXEC void * _mesa_glapi_tls_Context;
#endif
_GLAPI_EXPORT extern const struct _glapi_table *_mesa_glapi_Dispatch;
#if DETECT_OS_WINDOWS && !defined(MAPI_MODE_SHARED_GLAPI)
# define GET_DISPATCH() _mesa_glapi_get_dispatch()
# define GET_CURRENT_CONTEXT(C) struct gl_context *C = (struct gl_context *) _mesa_glapi_get_context()

View file

@ -172,26 +172,10 @@ entry_get_public(int slot)
#endif /* asm */
/**
* \name Current dispatch and current context control variables
*
* Depending on whether or not multithreading is support, and the type of
* support available, several variables are used to store the current context
* pointer and the current dispatch table pointer. In the non-threaded case,
* the variables \c _mesa_glapi_Dispatch and \c _glapi_Context are used for this
* purpose.
*
* In multi threaded case, The TLS variables \c _mesa_glapi_tls_Dispatch and
* \c _mesa_glapi_tls_Context are used. Having \c _mesa_glapi_Dispatch
* be hardcoded to \c NULL maintains binary compatability between TLS enabled
* loaders and non-TLS DRI drivers. When \c _mesa_glapi_Dispatch
* are \c NULL, the thread state data \c ContextTSD are used.
*/
/* Current dispatch and current context variables */
__THREAD_INITIAL_EXEC struct _glapi_table *_mesa_glapi_tls_Dispatch
= (struct _glapi_table *)table_noop_array;
__THREAD_INITIAL_EXEC void *_mesa_glapi_tls_Context;
const struct _glapi_table *_mesa_glapi_Dispatch;
static int
stub_compare(const void *key, const void *elem)