diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-06 15:15:36 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-06 15:35:57 +0000 |
commit | f4cff22afae598f41adf36cd149223d1f7dd6b6e (patch) | |
tree | 9faeaed9541ef69a6e953696abd51c1f102408e7 | |
parent | 8bc593c732a2f1ccd1bdabc071c709a44222db61 (diff) |
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>
-rw-r--r-- | src/sna/kgem.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 2b0723b1..1ed007ce 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -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); |