Fix tiling and fb compression defaults for 965 (not yet fully supported).

This commit is contained in:
Jesse Barnes 2007-07-06 16:17:45 -07:00
parent ca593a5219
commit 4359df9419
2 changed files with 5 additions and 3 deletions

View File

@ -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))

View File

@ -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, "