summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-04-13 13:51:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-04-13 13:51:57 +0100
commit90e2740e7e459c56205fa65bab1ae3dbfd5d3945 (patch)
tree7cc0b784a4368d4e74abff1f2c9ee27474a24fa3
parent9e6d55a8d63f10ca6a2b10e44d00c84b07724485 (diff)
sna: Remove the conflicting assertion during GTT map
Reported-by: Clemens Eisserer <linuxhippy@gmail.com> References: https://bugs.freedesktop.org/show_bug.cgi?id=48636 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 14a00679..f0c971ea 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3183,7 +3183,7 @@ void *kgem_bo_map(struct kgem *kgem, struct kgem_bo *bo)
ptr = bo->map;
if (ptr == NULL) {
- assert(bytes(bo) <= kgem->aperture_mappable / 4);
+ assert(kgem_bo_is_mappable(kgem, bo));
kgem_trim_vma_cache(kgem, MAP_GTT, bucket(bo));