diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-06 13:41:39 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-06 13:42:24 +0000 |
commit | 073465817f54507ab6b7f801c5dfab2c06f678c0 (patch) | |
tree | 8c84138f697ffb5bec7f70e527a91509ef748f03 | |
parent | a6b008d69235cbbb572d7d4b33940d2cedd66556 (diff) |
sna: Fences are power-of-two sizes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-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 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; } |