Re: What is the reason for tls_model("initial-exec") in Mesa?

2010-12-11 Thread Eric Anholt
On Sat, 11 Dec 2010 18:22:32 +0100, "Raphael Wimmer" wrote: > Hi, > > it seems that only compiling Mesa without "--enable-glx-tls" fixes the > problem. > I have run a Nexuiz demo game as a benchmark for Mesa with/without TLS, > and the results seem very similar: > > Mesa compiled with TLS i

Re: What is the reason for tls_model("initial-exec") in Mesa?

2010-12-11 Thread Raphael Wimmer
Hi, it seems that only compiling Mesa without "--enable-glx-tls" fixes the problem. I have run a Nexuiz demo game as a benchmark for Mesa with/without TLS, and the results seem very similar: Mesa compiled with TLS initial-exec: 1184 frames 62.756 seconds 18.8667219 fps, one-second fps m

Re: What is the reason for tls_model("initial-exec") in Mesa?

2010-12-09 Thread Raphael Wimmer
Hi, Please disregard the previous message. The problem resurfaced, so it may not (only) be related to the TLS mode. I'll investigate further. Cheers, Raphael On Thu, 09 Dec 2010 23:47:58 +0100, Raphael Wimmer wrote: Hi, In mesa-7.7.1/src/glx/x11/glxcurrent.c, GLX gets initialized wit

What is the reason for tls_model("initial-exec") in Mesa?

2010-12-09 Thread Raphael Wimmer
Hi, In mesa-7.7.1/src/glx/x11/glxcurrent.c, GLX gets initialized with tls_model("initial-exec"). However, it seems that this TLS mode is not intended for libraries [1]. Using "initial-exec" causes problems with other libraries like libavg (see Ubuntu bug report [2]). The problem seems also t