Re: [Mesa-dev] [PATCH 2/3] mesa: Use a recursive mutex for the texture lock.

2014-08-19 Thread Kristian Høgsberg
On Tue, Aug 19, 2014 at 7:03 AM, Dave Airlie wrote: >> 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 ourselve

Re: [Mesa-dev] [PATCH 2/3] mesa: Use a recursive mutex for the texture lock.

2014-08-19 Thread Dave Airlie
> 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. I hate this on purely the grounds that I feel someone

[Mesa-dev] [PATCH 2/3] mesa: Use a recursive mutex for the texture lock.

2014-08-18 Thread Kristian Høgsberg
From: Kenneth Graunke 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. Signed-off-by: Kenneth Graunke Revie