From 8cea3c8cfa86600b5f2c3e1f21c19d4b2a320fd4 Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Wed, 14 Nov 2007 22:13:30 +0800 Subject: [PATCH] Don't setup fb compression if fb is not tiling --- src/i830_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/i830_driver.c b/src/i830_driver.c index fdbf9ece..debe539c 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2560,6 +2560,9 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) "Attempting memory allocation with %s buffers.\n", (i & 1) ? "untiled" : "tiled"); + if (!pI830->tiling && pI830->fb_compression) + pI830->fb_compression = FALSE; + if (i830_allocate_2d_memory(pScrn) && i830_allocate_3d_memory(pScrn)) {