From d08782e1a17279092fa4027d98d25ef36a9f80e5 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 7 Jun 2010 12:01:57 -0700 Subject: Properly align framebuffer height for tiling. This is a simple patch to avoid cherry-picking all of b5c9de10ba3a811f312e622b97ee5e601bd3b74f. --- src/i830_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3