[Mesa-dev] [PATCH] r600g-llvm: Crude fix for a race in initialization of the llvm backend
Mathias Fröhlich
Mathias.Froehlich at gmx.net
Tue Aug 14 22:51:46 PDT 2012
Hi,
This change adds application global locking around compiling an r600 llvm
shader. This fixes a race condition/crash that I observe when shaders are
concurrently compiled from different contexts in different threads.
The fix is crude as it just guards the whole compile with a global mutex, but
up to now I did not have enough time to understand the real reason that must
be somewhere in the way r600g initializes the llvm backend. And since we have
a pending public release we will better have a curde fix than a known bug.
Better solutions welcome!
I will post a piglit test in the next minutes that exercises this problem with
a high probability at least here on my test machine.
Please review
Mathias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-radeon_llvm-Introduce-global-lock-on-llvm.patch
Type: text/x-patch
Size: 5412 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120815/7793381d/attachment.bin>
More information about the mesa-dev
mailing list