sna: Fix assertion as we may want to create active bo with cpu mappings

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-01-05 00:01:27 +00:00
parent 4119e68fb1
commit 4530b87e44
1 changed files with 1 additions and 1 deletions

View File

@ -1552,7 +1552,7 @@ search_linear_cache(struct kgem *kgem, unsigned int size, unsigned flags)
if (flags & (CREATE_CPU_MAP | CREATE_GTT_MAP)) {
int for_cpu = !!(flags & CREATE_CPU_MAP);
assert(use_active == false);
assert(for_cpu || use_active == false);
list_for_each_entry(bo, &kgem->vma_inactive, vma) {
if (IS_CPU_MAP(bo->map) != for_cpu)
continue;