From e6746d0f286ef9d9a87f748d40e5421c268f2f7d Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Fri, 10 Aug 2007 15:48:15 -0400 Subject: [PATCH] Enable tiling by default on 965. --- man/intel.man | 2 +- src/i830.h | 9 --------- src/i830_driver.c | 7 ++----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/man/intel.man b/man/intel.man index 5909fddc..2b197119 100644 --- a/man/intel.man +++ b/man/intel.man @@ -85,7 +85,7 @@ Default: enabled on supported configurations. .BI "Option \*qTiling\*q \*q" boolean \*q This option controls whether memory buffers are allocated in tiled mode. In many cases (especially for complex rendering), tiling can improve performance. -Default: enabled on supported configurations. +Default: enabled. .TP .BI "Option \*qDRI\*q \*q" boolean \*q Disable or enable DRI support. diff --git a/src/i830.h b/src/i830.h index 17dfb725..f72e1d68 100644 --- a/src/i830.h +++ b/src/i830.h @@ -721,17 +721,8 @@ i830_get_transformed_coordinates(int x, int y, PictTransformPtr transform, void i830_enter_render(ScrnInfoPtr); -static inline int i830_tiling_supported(I830Ptr pI830) -{ - if (IS_I965G(pI830)) - return FALSE; - return TRUE; -} - 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 f293bfde..693e12ab 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2250,11 +2250,8 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) pI830->CacheLines = -1; } - /* Enable tiling by default where supported */ - if (i830_tiling_supported(pI830)) - pI830->tiling = TRUE; - else - pI830->tiling = FALSE; + /* Enable tiling by default */ + pI830->tiling = TRUE; /* Allow user override if they set a value */ if (xf86IsOptionSet(pI830->Options, OPTION_TILING)) {