I think I found it. Try this patch with patch -p0 in
xc/programs/Xserver/hw/xfree86/drivers/savage:

--- ./savage_driver.c.~1.10.10.5.~      2003-09-26 14:00:23.000000000 +0200
+++ ./savage_driver.c   2003-09-26 19:03:30.000000000 +0200
@@ -2601,7 +2601,7 @@
     pScrn = xf86Screens[pScreen->myNum];
     psav = SAVPTR(pScrn);
 
-    displayWidth = pScrn->displayWidth;
+    displayWidth = psav->ulAperturePitch / (pScrn->bitsPerPixel >> 3);
 
     if (psav->rotate) {
        height = pScrn->virtualX;

The ulAperturePitch wasn't used otherwise and this appears to be the
right place. It works for me with and without tile mode.

Felix

On Fri, 26 Sep 2003 17:35:09 +0200
Felix K�hling <[EMAIL PROTECTED]> wrote:

> I found at least a workaround for the problem. Set
> 
> Option "DisableTile" "on"
> 
> in the Device section of XF86Config-4. I think this has something to do
> with the frame buffer layout. Accellerated stuff seems to get it right.
> But non-accelerated stuff accesses the frame buffer in the wrong way.
> Try Option "Accel" "off" and you'll see what I mean. Basically the
> screen is squeezed vertically to half the height.
> 
> I havn't found a real fix yet. Does someone with more 2D experience have
> a pointer?
> 
> Felix
> 
> On Fri, 26 Sep 2003 07:36:02 -0300
> Rafael Maximo <[EMAIL PROTECTED]> wrote:
> [snip]
> > I didn't commit any change to CVS yet, basicaly because all problems i got. 
> > For now the 2D driver need to be fixed (i didn't have time to look deep in 
> > this problem) and the code of the savage driver from S3 is a little bit 
> > confusing and sometimes very different from the other drivers and 
> > everything need to be fixed (2D, 3D and probably the kernel module).
> > 
> > Besides all these problems, i'm not a very experienced programer witch make 
> > things e little harder for me.
> > 
> > Any help will be very welcome.
> > 
> > bye.
> > 
> > 
> > Rafael M�ximo 


------------    __\|/__    ___     ___       -------------------------
 Felix       ___\_e -_/___/ __\___/ __\_____   You can do anything,
   K�hling  (_____\�/____/ /_____/ /________)  just not everything
 [EMAIL PROTECTED]       \___/   \___/   U        at the same time.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to