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:
parent
4119e68fb1
commit
4530b87e44
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue