intel: Expect caller to guarantee thread-safety of bo during reloc
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Dec 2009 23:01:34 +0000 (23:01 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 5 Dec 2009 11:03:05 +0000 (11:03 +0000)
commit9707733a130098a7d9959e72ebd782d8119a23d3
tree8a093da56598ae386af2335eb91d639c8c291a97
parent6f1eba0548cd6a96e91a4e8be7b91ba6a936eb98
intel: Expect caller to guarantee thread-safety of bo during reloc

This removes the foremost prolific user of mutexes in libdrm_intel.so.
The other uses of the bufmgr_gem->mutex to serial access to individual
bos are currently required by Mesa, and are far less frequent.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[anholt: This chunk looks good...]
Acked-by: Eric Anholt <eric@anholt.net>
intel/intel_bufmgr_gem.c