[Nouveau] [PATCH] Remove some UMS leftovers.

Francisco Jerez currojerez at riseup.net
Wed Feb 10 10:32:52 PST 2010


Marcin Kościelnicki <koriakin at 0x04.net> writes:

> ---
>  src/nv_driver.c |   32 +-------------------------------
>  1 files changed, 1 insertions(+), 31 deletions(-)
>
> diff --git a/src/nv_driver.c b/src/nv_driver.c
> index 248a151..9606d97 100644
> --- a/src/nv_driver.c
> +++ b/src/nv_driver.c
> @@ -315,8 +315,6 @@ NVAdjustFrame(int scrnIndex, int x, int y, int flags)
>  /*
>   * This is called when VT switching back to the X server.  Its job is
>   * to reinitialise the video mode.
> - *
> - * We may wish to unmap video/MMIO memory too.
>   */
>  
>  /* Mandatory */
> @@ -333,9 +331,6 @@ NVEnterVT(int scrnIndex, int flags)
>  	if (ret)
>  		ErrorF("Unable to get master: %d\n", ret);
>  
> -	if (!pNv->NoAccel)
> -		NVAccelCommonInit(pScrn);
> -
>  	pNv->allow_dpms = FALSE;
>  	if (!xf86SetDesiredModes(pScrn))
>  		return FALSE;
> @@ -350,8 +345,6 @@ NVEnterVT(int scrnIndex, int flags)
>  /*
>   * This is called when VT switching away from the X server.  Its job is
>   * to restore the previous (text) mode.
> - *
> - * We may wish to remap video/MMIO memory too.
>   */
>  
>  /* Mandatory */
> @@ -586,24 +579,6 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
>  	MessageType from;
>  	int ret, i;
>  
> -	if (flags & PROBE_DETECT) {
> -		EntityInfoPtr pEnt = xf86GetEntityInfo(pScrn->entityList[0]);
> -
> -		if (!pEnt)
> -			return FALSE;
> -
> -		i = pEnt->index;
> -		xfree(pEnt);
> -
> -		if (xf86LoadSubModule(pScrn, "vbe")) {
> -			vbeInfoPtr pVbe = VBEInit(NULL, i);
> -			ConfiguredMonitor = vbeDoEDID(pVbe, NULL);
> -			vbeFree(pVbe);
> -		}
> -
> -		return TRUE;
> -	}
> -
>  	/*
>  	 * Note: This function is only called once at server startup, and
>  	 * not at the start of each server generation.  This means that
> @@ -733,11 +708,6 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
>  			      xf86GetVisualName(pScrn->defaultVisual), pScrn->depth);
>  	}
>  
> -	/* The vgahw module should be loaded here when needed */
> -	if (!xf86LoadSubModule(pScrn, "vgahw")) {
> -		NVPreInitFail("\n");
> -	}
> -
>  	/* We use a programmable clock */
>  	pScrn->progClock = TRUE;
>  
> @@ -905,7 +875,7 @@ NVMapMem(ScrnInfoPtr pScrn)
>  }
>  
>  /*
> - * Unmap the framebuffer and MMIO memory.
> + * Unmap the framebuffer and offscreen memory.
>   */
>  
>  static Bool

Thanks, pushed with some minor changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/nouveau/attachments/20100210/1903c916/attachment.pgp 


More information about the Nouveau mailing list