summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-10 20:34:09 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-10 20:34:09 +0000
commit46f6c6917effbc43305367581cc1bbaa962c0251 (patch)
tree865d3486c80299fc273e396996c387464b0aa9dc /src
parent3c26055639f789b211f7db982e65ec0b86b23d4a (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
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;