sna: Relax the buffer size assertion to only be larger than required
Not all paths request alloc pages, a few just request sufficient pages for the original size. So we can only assert that condition is satisfied. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
8bc593c732
commit
f4cff22afa
|
|
@ -5316,7 +5316,6 @@ struct kgem_bo *kgem_create_buffer(struct kgem *kgem,
|
|||
init:
|
||||
bo->base.io = true;
|
||||
assert(bo->base.refcnt == 1);
|
||||
assert(num_pages(&bo->base) >= alloc);
|
||||
assert(num_pages(&bo->base) >= NUM_PAGES(size));
|
||||
assert(!bo->need_io || !bo->base.needs_flush);
|
||||
assert(!bo->need_io || bo->base.domain != DOMAIN_GPU);
|
||||
|
|
|
|||
Loading…
Reference in New Issue