summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-07 12:01:57 -0700
committerEric Anholt <eric@anholt.net>2010-06-07 12:01:57 -0700
commitd08782e1a17279092fa4027d98d25ef36a9f80e5 (patch)
treebdf492bbcbb0109257098a1cfcc8fe223da7b035
parent6fd45abb31807dea0b9ebe708d840b1369353a8c (diff)
Properly align framebuffer height for tiling.2.10
This is a simple patch to avoid cherry-picking all of b5c9de10ba3a811f312e622b97ee5e601bd3b74f.
-rw-r--r--src/i830_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 7abea723..bf3072a3 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -491,7 +491,7 @@ i830_memory *i830_allocate_framebuffer(ScrnInfoPtr scrn)
/* We'll allocate the fb such that the root window will fit regardless of
* rotation.
*/
- fb_height = scrn->virtualY;
+ fb_height = ALIGN(scrn->virtualY, 8);
/* Calculate how much framebuffer memory to allocate. For the
* initial allocation, calculate a reasonable minimum. This is