diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-28 13:37:14 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-28 13:37:14 +0000 |
commit | 43b1a717bae047c7ebbf99e6fa4c03b7a67896b8 (patch) | |
tree | 7cbd3296d968e2a09e172719fa98482547a28753 | |
parent | 8198e5872c3771e2aefabe1e3e93afa94d2ea0ec (diff) |
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>
-rw-r--r-- | src/sna/kgem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 3dd78632..ee81c1b5 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -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; } |