[Intel-gfx] [RFC] kill pI830->memory_manager checks

Eric Anholt eric at anholt.net
Wed May 13 02:08:41 CEST 2009


On Tue, 2009-05-12 at 17:02 -0700, Jesse Barnes wrote:
> This patch gets rid of the ugly KMS hack that messed with videoRam by
> removing all of the pI830->memory_manager checks in favor of what we're
> really looking for: GEM.  Needs some review though; in some places we
> might just be looking for any bufmgr, not just GEM...

I like it a lot, except for:

> -- 
> Jesse Barnes, Intel Open Source Technology Center
> 
> diff --git a/src/i830.h b/src/i830.h
> index 0d8726c..68bc0a5 100644
> _
> diff --git a/src/i830_driver.c b/src/i830_driver.c
> index aaf5a20..ef90123 100644
> --- a/src/i830_driver.c
> +++ b/src/i830_driver.c
> @@ -2556,12 +2557,7 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
>  #endif
>     }
>  
> -   if (pI830->use_drm_mode) {
> -       pI830->stolen_size = 0;
> -       pScrn->videoRam = ~0UL / KB(1);
> -   } else {
> -       I830AdjustMemory(pScreen);
> -   }
> +   I830AdjustMemory(pScreen);

calling AGP functions in KMS mode sounds like failure.

-- 
Eric Anholt
eric at anholt.net                         eric.anholt at intel.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090512/33d67340/attachment.sig>


More information about the Intel-gfx mailing list