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:
Chris Wilson 2013-02-06 15:15:36 +00:00
parent 8bc593c732
commit f4cff22afa
1 changed files with 0 additions and 1 deletions

View File

@ -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);