summaryrefslogtreecommitdiff
path: root/src/sna/kgem.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-07 14:54:39 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-07 14:54:39 +0000
commitcb579a4444146a0736c7bad5edc1f382a32b6bf6 (patch)
treedb4fbd5412faf4c57ba878ccdaafe93ed8f5f8b8 /src/sna/kgem.c
parent68cef6cd281572fcfb76a341dc45b7c8e5baffe6 (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.c2
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);