winsys/radeon: Remove unnecessary pipe_thread_destroy in radeon_drm_cs_destroy
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Tue, 22 May 2012 10:25:55 +0000 (12:25 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 15 Jun 2012 01:01:23 +0000 (03:01 +0200)
Fixes crash bug introduced with 210ddf0819b5 fd.o #49198
pthread_detach after a pthread_join is unneeded.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Signed-off-by: Marek Olšák <maraeo@gmail.com>
src/gallium/winsys/radeon/drm/radeon_drm_cs.c

index 10f933884631d9dc71ca6a41c18541cc0c9c70d8..b598e6cf28169b45c00016a8abd17409d4ff02be 100644 (file)
@@ -490,7 +490,6 @@ static void radeon_drm_cs_destroy(struct radeon_winsys_cs *rcs)
         pipe_semaphore_signal(&cs->flush_queued);
         pipe_semaphore_wait(&cs->flush_completed);
         pipe_thread_wait(cs->thread);
-        pipe_thread_destroy(cs->thread);
     }
     pipe_semaphore_destroy(&cs->flush_queued);
     pipe_semaphore_destroy(&cs->flush_completed);