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:29:56 +0000 (20:29 +1000)
commite4c5fe52c99bdf651aafa1569d9cf901891004d8
tree7cef13480921d1f51e479171934f59a4d1ca62de
parentb12ca6b87b55e3359e81d5a3be380c860478e353
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