Revert "intel: Remove unneded pthread mutex in LOCK_HARDWARE."
authorEric Anholt <eric@anholt.net>
Mon, 29 Jun 2009 18:37:21 +0000 (11:37 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 29 Jun 2009 18:39:09 +0000 (11:39 -0700)
commita96f86831e666dd3942828abd156805c242e44f6
tree1362f4467ef695fb49c5c40e22e76a5a2659bd03
parent94008088c1e6758a44a2f48c5a94db1f072d255a
Revert "intel: Remove unneded pthread mutex in LOCK_HARDWARE."

This reverts commit de447afff26706e3bf8bdcd5cfb8b1daf49b4b21 but
puts the lock under DRI1-only.

From keithw:
> It's there because the DRI1 code doesn't actually achieve the mutexing
> which it looks as if it should.  For multi-threaded applications it was
> always possible to get two threads inside locked regions -- I have no
> idea how, but it certainly was and presumably still is possible.
src/mesa/drivers/dri/intel/intel_context.c