winsys/radeon: fix killing the CS thread
authorChristian König <christian.koenig@amd.com>
Sat, 21 Sep 2013 11:21:47 +0000 (13:21 +0200)
committerChristian König <christian.koenig@amd.com>
Sun, 22 Sep 2013 08:33:20 +0000 (10:33 +0200)
commitf7ccb84aa1cd64703308dece03da0d4eb3bf4951
tree971ebceb1691a956f1152724c9ba28c5ecf5363e
parent938956ad52bc7659212b5877080967d4af0aad81
winsys/radeon: fix killing the CS thread

Kill the thread only after we checked that it's not used any more, not before.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c