diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-10 10:55:13 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-10 21:01:00 +0000 |
commit | bddac63de2d26c6ad4ade2f0a038d756f7a41424 (patch) | |
tree | 459c32026a43e0b8328b451da5bd184a82c0ef3e | |
parent | 9083f7edcb05b1deb7a77c9c5a8b54fe73176648 (diff) |
sna: Defer purging a target buffer
This is to keep the sanity checks upon the caches happy by keeping a
potential flush out of the inactive cache.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 8d2295af..701c2c20 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -602,7 +602,7 @@ static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo) if(!bo->reusable) goto destroy; - if (bo->purgeable && !bo->rq) { + if (bo->purgeable && !bo->rq && !bo->needs_flush) { assert(!bo->purged); if (!gem_madvise(kgem->fd, bo->handle, I915_MADV_DONTNEED)) { |