summaryrefslogtreecommitdiff
path: root/src/legacy/i810/i810_driver.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-08-21 17:32:24 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-08-22 09:52:42 +0100
commitb611bced15c30f7bcd03106ce90668b684c1ada6 (patch)
tree7cd855510996cb39dbe6a454d3e36dbb2ce75b45 /src/legacy/i810/i810_driver.c
parent8b04b350a983b89eb2d741f55baa297a933ac6ea (diff)
Use ALIGN macro instead of open coding it.
Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/legacy/i810/i810_driver.c')
-rw-r--r--src/legacy/i810/i810_driver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/legacy/i810/i810_driver.c b/src/legacy/i810/i810_driver.c
index 3fc9d044..3637e25c 100644
--- a/src/legacy/i810/i810_driver.c
+++ b/src/legacy/i810/i810_driver.c
@@ -1545,8 +1545,7 @@ I810AllocateFront(ScrnInfoPtr pScrn)
if (!I810AllocLow(&(pI810->FrontBuffer),
&(pI810->SysMem),
- ((pI810->FbMemBox.x2 *
- pI810->FbMemBox.y2 * pI810->cpp) + 4095) & ~4095)) {
+ ALIGN((pI810->FbMemBox.x2 * pI810->FbMemBox.y2 * pI810->cpp), 4096))) {
xf86DrvMsg(pScrn->scrnIndex,
X_WARNING, "Framebuffer allocation failed\n");
return FALSE;