diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-01 09:23:41 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-01 09:23:41 +0100 |
commit | 13b9b5d8d6b6f6db59fe2418270ac93d9b74436c (patch) | |
tree | 67ecc9dda45540f28f01f4f85cb17ab83e7bd5d8 | |
parent | 7ecc6993b8c8205e5896ee87c14d6a76310c9aa7 (diff) |
sna/io: Only mark the buffer as LAST if we know we will flush the IO
Otherwise we can continue to batch up the data upload into larger
buffers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c index 3207dc1b..649a359b 100644 --- a/src/sna/sna_io.c +++ b/src/sna/sna_io.c @@ -339,7 +339,7 @@ void sna_write_boxes(struct sna *sna, } src_bo = kgem_create_buffer(kgem, offset, - KGEM_BUFFER_WRITE | KGEM_BUFFER_LAST, + KGEM_BUFFER_WRITE | (nbox ? KGEM_BUFFER_LAST : 0), &ptr); if (!src_bo) break; |