summaryrefslogtreecommitdiff
path: root/src/legacy/i810/i810_accel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/legacy/i810/i810_accel.c')
-rw-r--r--src/legacy/i810/i810_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/legacy/i810/i810_accel.c b/src/legacy/i810/i810_accel.c
index ae4a6544..9aa3e42c 100644
--- a/src/legacy/i810/i810_accel.c
+++ b/src/legacy/i810/i810_accel.c
@@ -129,7 +129,7 @@ I810AccelInit(ScreenPtr pScreen)
*/
if (pI810->Scratch.Size != 0) {
int i;
- int width = ((pScrn->displayWidth + 31) & ~31) / 8;
+ int width = ALIGN(pScrn->displayWidth, 32) / 8;
int nr_buffers = pI810->Scratch.Size / width;
unsigned char *ptr = pI810->FbBase + pI810->Scratch.Start;