[Mesa-dev] [PATCH] winsys/radeon: Create async thread only once
Michel Dänzer
michel at daenzer.net
Mon Aug 29 02:09:35 PDT 2011
On Sam, 2011-08-27 at 22:57 +0200, Maarten Lankhorst wrote:
> @@ -402,33 +420,33 @@ static void radeon_drm_cs_flush(struct radeon_winsys_cs *rcs, unsigned flags)
>
> radeon_drm_cs_sync_flush(cs);
>
> + /* Flip command streams. */
> + tmp = cs->csc;
> + cs->csc = cs->cst;
> + cs->cst = tmp;
> +
> /* If the CS is not empty, emit it in a newly-spawned thread. */
The 'newly-spawned' in this comment is no longer accurate, is it?
Otherwise looks good to me.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer
More information about the mesa-dev
mailing list