summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-06 13:41:39 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-06 13:42:24 +0000
commit073465817f54507ab6b7f801c5dfab2c06f678c0 (patch)
tree8c84138f697ffb5bec7f70e527a91509ef748f03
parenta6b008d69235cbbb572d7d4b33940d2cedd66556 (diff)
sna: Fences are power-of-two sizes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 0f9b4433..ac0f1648 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3918,7 +3918,7 @@ inline int kgem_bo_fenced_size(struct kgem *kgem, struct kgem_bo *bo)
else
size = 1024 * 1024 / PAGE_SIZE;
while (size < num_pages(bo))
- size *= 2;
+ size <<= 1;
return size;
}