sna: Sort the partial buffers after stealing a write buffer

It will be decoupled and not used again, but this keeps the sanity
checks happy.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-02-28 13:37:14 +00:00
parent 8198e5872c
commit 43b1a717ba
1 changed files with 3 additions and 1 deletions

View File

@ -3254,7 +3254,9 @@ struct kgem_bo *kgem_create_buffer(struct kgem *kgem,
0, bo->used, bo->mem);
bo->need_io = 0;
bo->write = 0;
offset = bo->used = 0;
offset = 0;
bo->used = size;
bubble_sort_partial(kgem, bo);
goto done;
}