summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-04-13 15:12:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-04-13 15:12:55 +0100
commiteaadbce122059066353743f1653aa16e9d9b747f (patch)
treeb6d7cc1ab05c24bf6e0f97dd3cc0a2b430ac76ff
parentb478420740d05fa87ddbd92042b1f7f2d002f73e (diff)
sna: Relax bogus assertion
The bo may be considered unmappable due to being bound to outside the mappable region, which we are attempting to rectify through mapping into the GTT domain. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-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 2d096667..f1b0376f 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3186,7 +3186,7 @@ void *kgem_bo_map(struct kgem *kgem, struct kgem_bo *bo)
ptr = bo->map;
if (ptr == NULL) {
- assert(kgem_bo_is_mappable(kgem, bo));
+ assert(kgem_bo_size(bo) <= kgem->aperture_mappable / 2);
kgem_trim_vma_cache(kgem, MAP_GTT, bucket(bo));