diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-09 23:12:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-09 23:15:14 +0100 |
commit | ac4d4cdbc1336c86a16a2ec3da2ef6e9842c1079 (patch) | |
tree | 5ce9b4adfdef096c4c679c1cdba7a5e5cca0dfd6 | |
parent | b3429cf12d6e3e8dd89372f8f70c64205d835b0c (diff) |
sna: Mark the bo as reusable after extracting the handle from the buffer
The whole purpose for that little dance was so that we could reuse the
bo. However, we left it marked as non-reusable in order for us not to
tie up memory with too many buffers and so defeated the purpose of
trying to place it into the inactive cache.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 947fac4e..525e1e32 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -715,6 +715,7 @@ static void kgem_finish_partials(struct kgem *kgem) struct kgem_bo *base = malloc(sizeof(*base)); if (base) { memcpy(base, &bo->base, sizeof (*base)); + base->reusable = true; list_init(&base->list); list_replace(&bo->base.request, &base->request); |