From: Maarten Lankhorst Date: Tue, 22 May 2012 10:25:55 +0000 (+0200) Subject: winsys/radeon: Remove unnecessary pipe_thread_destroy in radeon_drm_cs_destroy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bb0151f1fd87b4e15f177c7122fc28fea29497e;p=mesa.git winsys/radeon: Remove unnecessary pipe_thread_destroy in radeon_drm_cs_destroy Fixes crash bug introduced with 210ddf0819b5 fd.o #49198 pthread_detach after a pthread_join is unneeded. Signed-off-by: Maarten Lankhorst Signed-off-by: Marek Olšák --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c index 10f93388463..b598e6cf281 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c @@ -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);