summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-04-23 11:46:12 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-04-23 11:54:58 +0100
commit3508f809c40bc59d67deb7182807664bc0648639 (patch)
treeae71571b0b22ec7a3a602ea8eecf91d69183c4b5
parentaec3cbb1aba8bae5537534754ea57d21896d591b (diff)
sna: Fix assertions for mmapping stolen buffers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 82199a1d..f9826191 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -2087,7 +2087,6 @@ static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo)
assert(list_is_empty(&bo->list));
assert(bo->refcnt == 0);
- assert(!bo->purged || !bo->reusable);
assert(bo->proxy == NULL);
assert_tiling(kgem, bo);
@@ -5496,7 +5495,7 @@ void *kgem_bo_map__async(struct kgem *kgem, struct kgem_bo *bo)
assert(bo->proxy == NULL);
assert(list_is_empty(&bo->list));
assert_tiling(kgem, bo);
- assert(!bo->purged || !bo->reusable);
+ assert(!bo->purged || bo->reusable);
if (bo->tiling == I915_TILING_NONE && !bo->scanout && kgem->has_llc) {
DBG(("%s: converting request for GTT map into CPU map\n",
@@ -5537,7 +5536,7 @@ void *kgem_bo_map(struct kgem *kgem, struct kgem_bo *bo)
assert(list_is_empty(&bo->list));
assert(bo->exec == NULL);
assert_tiling(kgem, bo);
- assert(!bo->purged || !bo->reusable);
+ assert(!bo->purged || bo->reusable);
if (bo->tiling == I915_TILING_NONE && !bo->scanout &&
(kgem->has_llc || bo->domain == DOMAIN_CPU)) {
@@ -5603,7 +5602,7 @@ void *kgem_bo_map__gtt(struct kgem *kgem, struct kgem_bo *bo)
assert(bo->exec == NULL);
assert(list_is_empty(&bo->list));
assert_tiling(kgem, bo);
- assert(!bo->purged || !bo->reusable);
+ assert(!bo->purged || bo->reusable);
ptr = MAP(bo->map__gtt);
if (ptr == NULL) {