From bca58ff6f02b20ccf88937df8e2688f18cabac80 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 9 Nov 2011 14:18:57 +0000 Subject: sna: Clear kgem->busy when all requests have been processed Signed-off-by: Chris Wilson --- src/sna/kgem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sna/kgem.c b/src/sna/kgem.c index a55086a8..8d2295af 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -737,6 +737,7 @@ bool kgem_retire(struct kgem *kgem) kgem->need_retire = !list_is_empty(&kgem->requests); if (!kgem->need_retire && kgem->ring) kgem->ring = kgem->mode; + kgem->busy &= kgem->need_retire; return retired; } -- cgit v1.2.3