[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: X 4.2.1 pre1v2 & r128 - still no Xv at 1400x1050



On Mon, Sep 30, 2002 at 07:52:45PM +0200, Xavier Bestel wrote:
> Here it is. This patch (the brain is Michel Dänzer, I was just an
> idea-to-patch translator) resolves the "Xv not working at some
> resolutions" for me. It seems it works very well.
> 
> 	Xav

Thanks for testing this.

Michel, should the pitch increment perhaps be made a global variable or
something?

> --- xc/programs/Xserver/hw/xfree86/drivers/ati/r128_video.c.orig	2002-09-30 17:39:09.000000000 +0200
> +++ xc/programs/Xserver/hw/xfree86/drivers/ati/r128_video.c	2002-09-30 17:37:28.000000000 +0200
> @@ -682,20 +682,20 @@
>  
>     pScreen = screenInfo.screens[pScrn->scrnIndex];
>  
> -   new_linear = xf86AllocateOffscreenLinear(pScreen, size, 16,
> +   new_linear = xf86AllocateOffscreenLinear(pScreen, size, 8,
>  						NULL, NULL, NULL);
>  
>     if(!new_linear) {
>  	int max_size;
>  
> -	xf86QueryLargestOffscreenLinear(pScreen, &max_size, 16,
> +	xf86QueryLargestOffscreenLinear(pScreen, &max_size, 8,
>  						PRIORITY_EXTREME);
>  
>  	if(max_size < size)
>  	   return NULL;
>  
>  	xf86PurgeUnlockedOffscreenAreas(pScreen);
> -	new_linear = xf86AllocateOffscreenLinear(pScreen, size, 16,
> +	new_linear = xf86AllocateOffscreenLinear(pScreen, size, 8,
>  						NULL, NULL, NULL);
>     }

-- 
G. Branden Robinson                |     It's not a matter of alienating
Debian GNU/Linux                   |     authors.  They have every right to
branden@debian.org                 |     license their software however we
http://people.debian.org/~branden/ |     like.  -- Craig Sanders

Attachment: pgpmVfAVbJ9a3.pgp
Description: PGP signature


Reply to: