On Fri, 20 Feb 2004 08:28:55 -0800 (PST)
Alex Deucher <[EMAIL PROTECTED]> wrote:

> 
> --- Felix K_hling <[EMAIL PROTECTED]> wrote:
> > On Tue, 17 Feb 2004 12:38:04 -0800
> > Alex Deucher <[EMAIL PROTECTED]> wrote:
> > 
> > > CVSROOT:  /cvs/dri
> > > Module name:      xc
> > > Repository:       xc/xc/programs/Xserver/hw/xfree86/drivers/savage/
> > > Changes by:       [EMAIL PROTECTED]       04/02/17 12:38:04
> > > 
> > > Log message:
> > >   - fix console corruption.  rather than just arbitrarily setting a
> > text mode
> > >   the driver now uses the bios save/restore routine that S3 used in
> > their
> > >   driver.  I can't seem to make it work with pure save/restore of
> > regs...
> > >   - disable DRI when shadowFB is used
> > >   - make sure Initialize2DEngine() is called in the non-bios mode
> > setting path.
> > > 
> > > Modified files:
> > >       xc/xc/programs/Xserver/hw/xfree86/drivers/savage/:  Tag:
> > savage-2-0-0-branch
> > >         savage_driver.c savage_driver.h savage_vbe.c savage_vbe.h 
> > >   
> > >   Revision      Changes    Path
> > >   1.11.4.10     +18 -5    
> > xc/xc/programs/Xserver/hw/xfree86/drivers/savage/savage_driver.c
> > >   1.9.4.6       +10 -0    
> > xc/xc/programs/Xserver/hw/xfree86/drivers/savage/savage_driver.h
> > >   1.2.4.4       +82 -0    
> > xc/xc/programs/Xserver/hw/xfree86/drivers/savage/savage_vbe.c
> > >   1.1.1.2.28.3  +23 -0    
> > xc/xc/programs/Xserver/hw/xfree86/drivers/savage/savage_vbe.h
> > > 
> > 
> > This commit had another undesired (?) side effect. Changing to a
> > lower
> > resolution on my notebook (ProSavage DDR) just makes the displayed
> > area
> > smaller. The image is no longer scaled up to the panel size.
> > 
> 
> If it's initialization of the 2D engine, try removng the call I added. 
> Are you using bios the bios for mode setting?  if you are not using the
> bios try removing the call to SavageInitialize2DEngine(pScrn); at line
> 2321 in savage_driver.c.
> If it's the restore console code that's causing the problem, try
> commenting out all calls to SavageSaveRestoreConsole().  there should
> be 3 of them in savage_driver.c.
> I'll see if I can reproduce and fix this on my savage IX.

After some experimenting I found that the problem was not introduced by
that commit but by other configuration changes I made at the same time.
Also I found some more interesting details about console restoring.

* With UseBios Off:

Scaling of low res modes works only if I boot in text mode. If I boot in
graphics mode I just get a smaller image in the middle of the display.

Removing the calls to SaveRestoreConsole has no effect on console
corruption! It looks like it doesn't do anything.

* With UseBios On:

Scaling works, even if I boot in graphics mode. Restoring the console
works in graphics mode! But the display flickers like hell in XFree86.
Therefore I didn't use the bios by default. This is a known problem with
Tims driver and he announced that there is a fix for it in XFree86 CVS.
If you could port it to DRI CVS that would make me very happy. ;-)

Felix


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to