sna: Correctly align used buffers to the following page boundary

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-02-07 10:42:21 +00:00
parent 974b6a97d7
commit 889ed28f52
1 changed files with 1 additions and 1 deletions

View File

@ -2174,7 +2174,7 @@ static void kgem_finish_buffers(struct kgem *kgem)
assert(!bo->need_io);
used = ALIGN(bo->used + PAGE_SIZE-1, PAGE_SIZE);
used = ALIGN(bo->used, PAGE_SIZE);
if (!DBG_NO_UPLOAD_ACTIVE &&
used + PAGE_SIZE <= bytes(&bo->base) &&
(kgem->has_llc || !IS_CPU_MAP(bo->base.map) || bo->base.snoop)) {