radeon: fix context destroy needing lock for flushing.
authorDave Airlie <airlied@linux.ie>
Wed, 25 Nov 2009 10:23:22 +0000 (20:23 +1000)
committerDave Airlie <airlied@linux.ie>
Wed, 25 Nov 2009 10:40:15 +0000 (20:40 +1000)
commit92c6a26a8a0f6ce540fe7c9681fb9a30b0da9e5f
treeee7071461e07b9a62fbbaea2ce3157c6105bd6d1
parent94bcb9f1a43f2ab3bdff09156e3ab5b1c115cbd8
radeon: fix context destroy needing lock for flushing.

Thanks to Intel code which I've just stolen pretty much as usual.

This fixes fdo bug 22851 which is a dri1 regression since rewrite.

Tested by: fpiobaf (Fabio) on #radeon
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/radeon/radeon_lock.c