winsys/radeon: cleanup CS offloading
authorChristian König <christian.koenig@amd.com>
Sat, 12 Oct 2013 16:51:25 +0000 (18:51 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 21 Oct 2013 08:20:18 +0000 (10:20 +0200)
commit21a57f9040b1688e6501509c88c79c2d277c8b1e
treece5ed803f6b605fc14e9bf4abdddb8caf4a7abaf
parent14429295e16cf9b7616494fb68f400dfb9c80c71
winsys/radeon: cleanup CS offloading

Using atomic function for ncs is superfluous since it is
protected by a mutex anyway. Also lock the mutex only once
while retrieving the next CS for submission.

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_winsys.c