winsys/radeon: remove cs_queue_empty
authorChristian König <christian.koenig@amd.com>
Sat, 21 Sep 2013 13:24:55 +0000 (15:24 +0200)
committerChristian König <christian.koenig@amd.com>
Sun, 22 Sep 2013 08:33:20 +0000 (10:33 +0200)
commit0653c66ef40ac553f91b29bbda7f59f7ce6948fa
treecd65b7c34f09363d2a58036b57b368ef52a3d9d4
parentf7ccb84aa1cd64703308dece03da0d4eb3bf4951
winsys/radeon: remove cs_queue_empty

Waiting for an empty queue is nonsense and can lead to deadlocks if we have
multiple waiters or another thread that continuously sends down new commands.

Just post the cs to the queue and immediately wait for it to finish.

This is a candidate for the stable branch.

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_cs.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.h