mesa: Use a recursive mutex for the texture lock.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Aug 2014 00:20:20 +0000 (17:20 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Aug 2014 00:31:19 +0000 (17:31 -0700)
commit08710281884c02d2d99a5ad447affa246de126f8
tree2adeb44c6259dfa4bbd8955188e69acf04a7edf2
parentf90b7e0f2bee56af22edeebfea292ab960ce0628
mesa: Use a recursive mutex for the texture lock.

This avoids problems with things like meta operations calling functions
that want to take the lock while the lock is already held.  Basically,
the point is to guard against API reentrancy across threads...not to
guard against ourselves.

Dave Airlie opposed this change, but it makes master usable again and no
one proposed a better solution.  We can revert this if/when someone
does.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Tested-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/main/shared.c