From 4359df9419d2d02a2f9d9adc7f5a49ecf07ddd30 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Fri, 6 Jul 2007 16:17:45 -0700 Subject: [PATCH] Fix tiling and fb compression defaults for 965 (not yet fully supported). --- src/i830.h | 2 ++ src/i830_driver.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/i830.h b/src/i830.h index 4748b815..8b6c5e65 100644 --- a/src/i830.h +++ b/src/i830.h @@ -727,6 +727,8 @@ static inline int i830_tiling_supported(I830Ptr pI830) static inline int i830_fb_compression_supported(I830Ptr pI830) { + if (!i830_tiling_supported(pI830)) + return FALSE; if (!IS_MOBILE(pI830)) return FALSE; if (IS_I810(pI830) || IS_I815(pI830) || IS_I830(pI830)) diff --git a/src/i830_driver.c b/src/i830_driver.c index a380971a..dcbed227 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2334,9 +2334,9 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) pI830->fb_compression = TRUE; else pI830->fb_compression = FALSE; - /* ... but disable if requested */ - if (!xf86ReturnOptValBool(pI830->Options, OPTION_FBC, TRUE)) - pI830->fb_compression = FALSE; + + if (xf86ReturnOptValBool(pI830->Options, OPTION_FBC, FALSE)) + pI830->fb_compression = TRUE; if (pI830->fb_compression) { xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Framebuffer compression enabled, "