diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-07 14:54:39 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-07 14:54:39 +0000 |
commit | cb579a4444146a0736c7bad5edc1f382a32b6bf6 (patch) | |
tree | db4fbd5412faf4c57ba878ccdaafe93ed8f5f8b8 /src/sna/kgem.c | |
parent | 68cef6cd281572fcfb76a341dc45b7c8e5baffe6 (diff) |
sna: Only assert that the bo is small enough to be mmapped
Not that is currently in a position to be mapped without eviction.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r-- | src/sna/kgem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 8283df83..5a540e42 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -330,7 +330,7 @@ static void *__kgem_bo_map__gtt(struct kgem *kgem, struct kgem_bo *bo) bo->handle, bytes(bo))); assert(bo->proxy == NULL); assert(!bo->snoop); - assert(kgem_bo_can_map(kgem, bo)); + assert(num_pages(bo) <= kgem->aperture_mappable / 4); retry_gtt: VG_CLEAR(mmap_arg); |