summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-17 12:08:24 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-17 12:18:55 +0000
commit3320b459d6fe90d1145e3874c840b95279fb16c8 (patch)
treea4e5fcded31be6b96e30064f1cabf82253a6f69b
parente2c8bac972cf46982bf64bd786ecc001009081f0 (diff)
sna: Clean up caches stored upon the batch bo
Until the advent of the VMA cache, we were safe to reap the batch bo by hand. However, as we continue to add additional data to the bo, it is wise to use the common free function. Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43899 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index a6610414..a95ba653 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -796,8 +796,7 @@ bool kgem_retire(struct kgem *kgem)
retired = true;
} else {
kgem->need_purge = 1;
- gem_close(kgem->fd, rq->bo->handle);
- free(rq->bo);
+ kgem_bo_free(kgem, rq->bo);
}
list_del(&rq->list);