[Intel-gfx] [PATCH] Turn on front buffer tiling in KMS

Jesse Barnes jbarnes at virtuousgeek.org
Mon Apr 13 21:42:52 CEST 2009


On Fri, 10 Apr 2009 14:43:19 +0800
Li Peng <peng.li at linux.intel.com> wrote:

> >From 88d1094ea986539c9e92cd9a5ef6869cf07d408e Mon Sep 17 00:00:00
> >2001
> From: Li Peng <peng.li at intel.com>
> Date: Fri, 10 Apr 2009 14:39:35 +0800
> Subject: Turn on front buffer tiling in KMS.
> 
> This code disabled front buffer tiling in KMS. Turn it on since kernel
> handles all tiling now, this improves performance of x11perf -aa10text
> from 97k to 286k on my 945GME.
> ---
>  src/i830_memory.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/src/i830_memory.c b/src/i830_memory.c
> index 0f8d90d..d3138d9 100644
> --- a/src/i830_memory.c
> +++ b/src/i830_memory.c
> @@ -1244,8 +1244,6 @@ i830_allocate_framebuffer(ScrnInfoPtr pScrn)
>  	tile_format = TILE_XMAJOR;
>      if (pI830->accel == ACCEL_XAA && IS_I965G(pI830))
>  	tile_format = TILE_NONE;
> -    if (pI830->use_drm_mode)
> -	tile_format = TILE_NONE;
>  
>      if (!IsTileable(pScrn, pitch))
>  	tile_format = TILE_NONE;

Yeah this looks fine.  It must have been covered up by something else
until recently (frontbuffer resize maybe?) since I've definitely seen
tiled front buffer allocations in the past.

I'll push.

Thanks,
-- 
Jesse Barnes, Intel Open Source Technology Center



More information about the Intel-gfx mailing list