sna: Always clear the domain even only a potential sync

It helps to keep the domain-tracking bookkeeping consistent.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-01-29 13:42:50 +00:00
parent d70620d978
commit 139fc76260
1 changed files with 4 additions and 6 deletions

View File

@ -562,10 +562,9 @@ retry:
}
DBG(("%s: flush=%d, domain=%d\n", __FUNCTION__, bo->flush, bo->domain));
if (bo->exec == NULL) {
if (bo->exec == NULL)
kgem_bo_maybe_retire(kgem, bo);
bo->domain = DOMAIN_NONE;
}
bo->domain = DOMAIN_NONE;
bo->gtt_dirty = true;
return true;
}
@ -5735,10 +5734,9 @@ void kgem_bo_sync__cpu_full(struct kgem *kgem, struct kgem_bo *bo, bool write)
kgem_bo_retire(kgem, bo);
bo->domain = DOMAIN_CPU;
} else {
if (bo->exec == NULL) {
if (bo->exec == NULL)
kgem_bo_maybe_retire(kgem, bo);
bo->domain = DOMAIN_NONE;
}
bo->domain = DOMAIN_NONE;
}
}
}