diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-07 10:42:21 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-07 10:45:29 +0000 |
commit | 889ed28f52bccdbc54692ea075f95f9635a8d58a (patch) | |
tree | d22640dda3cb95d942a0d81484ae1d42cdf4da0d /src | |
parent | 974b6a97d78dadf09be8a2c4f61020f15d80d558 (diff) |
sna: Correctly align used buffers to the following page boundary
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/kgem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index d2be8629..e8ac5c2c 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -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)) { |