summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-08-07 18:24:44 -0700
committerEric Anholt <eric@anholt.net>2009-08-07 18:24:44 -0700
commite8f0763d405a8152c74c28792c52fe12c1d41dd5 (patch)
tree6cdfd3976f9f833035cf10daa4d599bf51036130
parent222b52ef16895823fbf3a0fc0be4eb23b930ed1b (diff)
Fix math in the tiling alignment fix.
-rw-r--r--src/i830_uxa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_uxa.c b/src/i830_uxa.c
index 1087128e..bb1c6161 100644
--- a/src/i830_uxa.c
+++ b/src/i830_uxa.c
@@ -616,13 +616,13 @@ i830_uxa_create_pixmap (ScreenPtr screen, int w, int h, int depth, unsigned usag
size = stride * h;
} else {
int aligned_h = h;
if (tiling == I915_TILING_X)
aligned_h = ALIGN(h, 8);
else
- aligned_h = ALIGN(h, 16);
+ aligned_h = ALIGN(h, 32);
assert(aligned_h >= h);
stride = i830_get_fence_pitch(i830, stride, tiling);
/* Round the object up to the size of the fence it will live in
* if necessary. We could potentially make the kernel allocate
* a larger aperture space and just bind the subset of pages in,