Keith Whitwell wrote:
Alan Hourihane wrote:
I emailed Keith regarding this a while back and he had some concerns over the patches used, but I just wanted to bring to light both RedHat and now Mandrake are shipping with the TLS versions of libGL and cause the binary DRI packages to break.
Is there someone looking to integrate the TLS patches for libGL ??
We should certainly take a look soon and comment upon the patches used.
I'd really like to get good support for modern TLS into our libGL. My big problem was that the patches were made against generated files and had rapidly become out-of-date.
Getting some of the TLS related functionality in to our libGL has bee on my (unmanageably long) to-do list for some time now. It's part of the reason I started creating new API generator scripts.
The other technical problem with Jakub's original patch is the GL_CALL macro. We *cannot* directly call gl* functions from a driver. We just go directly through the dispatch table. Basically, this is because apps do stupid things like 'glMultiTexCoord2fARB = glXGetProcAddress("glMultiTexCoord2fARB"). In the driver, if we call glMultiTexCoordARB directly, we jump to the app's pointer and instantly crash.
We can cut down the size of the patch by converting all the 'glDispatch->' calls to use GL_CALL. For now, we need to just define GL_CALL to be 'glDispatch-> func'. My guess is that the final version will need to be an inline assembly stub.
The patches appear to be against a 4.0.x version of Mesa. Bringing the changes forwared to the current code is going to take some work. I'm willing to work on it, but I'm not going to have much/any time for it over the next week or so.
-Brian
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel