Re: [Mesa-dev] [PATCH] radeon-llvm: Start multithreaded before using llvm.

2012-08-20 Thread Tom Stellard
Pushed. Thanks for investigating this and coming up with a clean solution. -Tom On Sat, Aug 18, 2012 at 11:43:51AM +0200, Mathias Fröhlich wrote: > This is required to make some of llvm's api calls > thread save. In particular the PassRegistry, which is > implicitly accessed while compiling shad

[Mesa-dev] [PATCH] radeon-llvm: Start multithreaded before using llvm.

2012-08-18 Thread Mathias Fröhlich
This is required to make some of llvm's api calls thread save. In particular the PassRegistry, which is implicitly accessed while compiling shader programs. The PassRegistry uses a mutex that is only active if the llvm_is_multithreaded() returns true. Calling llvm_start_multithreading() makes this