From 46f6c6917effbc43305367581cc1bbaa962c0251 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 10 Jan 2012 20:34:09 +0000 Subject: sna: A partial read buffer is allowed to be in the GPU domain As we can create the read buffer from an active cached bo, it may already be in the GPU domain by the time we first finish it, so fix the broken assertion. Signed-off-by: Chris Wilson --- src/sna/kgem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sna/kgem.c b/src/sna/kgem.c index c30c79be..1700bdbc 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1139,12 +1139,12 @@ static void kgem_finish_partials(struct kgem *kgem) struct kgem_partial_bo *bo, *next; list_for_each_entry_safe(bo, next, &kgem->partial, base.list) { - assert(bo->base.domain != DOMAIN_GPU); if (!bo->write) { assert(bo->base.exec); goto decouple; } + assert(bo->base.domain != DOMAIN_GPU); if (!bo->base.exec) continue; -- cgit v1.2.3