radeon/winsys: fix handling in radeon_drm_cs_flush v2
authorChristian König <christian.koenig@amd.com>
Mon, 7 Oct 2013 10:08:29 +0000 (12:08 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 10 Oct 2013 09:50:38 +0000 (11:50 +0200)
commit8bc7673ef874faa95d43c255c7fc631c2d2160c0
tree659d2a5cf19ec3003605c8b02b22c32ae8f15619
parenta922d3413f99ec384ed23324a4cceade8ab57e34
radeon/winsys: fix handling in radeon_drm_cs_flush v2

Calling radeon_drm_cs_flush from multiple threads might cause deadlocks,
fix this by immediately signaling the semaphore after waiting for it.

This is a candidate for the stable branch(es).

Partially fixes: https://bugs.freedesktop.org/show_bug.cgi?id=70123

v2: some fixes on commit message

Signed-off-by: Christian König <christian.koenig@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_cs.c
src/gallium/winsys/radeon/drm/radeon_drm_cs.h