xf86-video-intel: src/sna/kgem.c
Chris Wilson
ickle at kemper.freedesktop.org
Mon Dec 10 03:18:58 PST 2012
src/sna/kgem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d1b479a3404e6b52a23e0443c36d0682cbaf3c2f
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Mon Dec 10 11:16:04 2012 +0000
sna: Compromise and only flush a split batch if writing to scanout
A compromise between not flushing quick enough and flushing too often,
hopefully.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index faeb70d..eef2f56 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -1254,6 +1254,7 @@ static void kgem_add_bo(struct kgem *kgem, struct kgem_bo *bo)
/* XXX is it worth working around gcc here? */
kgem->flush |= bo->flush;
+ kgem->busy |= bo->scanout;
}
static uint32_t kgem_end_batch(struct kgem *kgem)
@@ -1968,7 +1969,6 @@ static void kgem_commit(struct kgem *kgem)
}
kgem->next_request = NULL;
- kgem->busy = true;
}
static void kgem_close_list(struct kgem *kgem, struct list *head)
More information about the xorg-commit
mailing list