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>
This commit is contained in:
parent
b3429cf12d
commit
ac4d4cdbc1
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue