From 8e77da1cd7d63af5e7ffcf7ea220cdaf1bdc8162 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 29 Jun 2004 19:08:20 +0000 Subject: First phase of TLS work. At this point SPARC assembly dispatch is broken, but it will be fixed "shortly." This is pretty much the same as the patch I sent to the dri-devel list on 22-Jun-2004. --- src/mesa/drivers/dri/common/dri_util.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/drivers/dri/common') diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 6b2fcdfa7d..ee30a677a4 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -54,6 +54,14 @@ typedef GLboolean ( * PFNGLXGETMSCRATEOMLPROC) (__DRInativeDisplay *dpy, __DRIid drawable, int32_t *numerator, int32_t *denominator); #endif +/** + * Weak thread-safety dispatch pointer. Older versions of libGL will not have + * this symbol, so a "weak" version is included here so that the driver will + * dynamically link properly. The value is set to \c NULL. This forces the + * driver to fall back to the old dispatch interface. + */ +struct _glapi_table *_glapi_DispatchTSD __attribute__((weak)) = NULL; + /** * This is used in a couple of places that call \c driCreateNewDrawable. */ -- cgit v1.2.3