winsys/radeon: Create async thread only once
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Sat, 27 Aug 2011 20:57:19 +0000 (22:57 +0200)
committerChristian König <deathsimple@vodafone.de>
Tue, 30 Aug 2011 12:01:57 +0000 (14:01 +0200)
commit210ddf0819b5acf87a614214b6d4b02193aafa4a
tree77fbbebec6e7f2730ce0f0991aa96e654843fba3
parent3b3d2e53bc11f9b5fbda812953700b216cd8ab93
winsys/radeon: Create async thread only once

I noticed that a thread was created for every time async flush was called, so I moved it and used some semaphores to synch.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/winsys/radeon/drm/radeon_drm_cs.c
src/gallium/winsys/radeon/drm/radeon_drm_cs.h