Actually...
  I am not sure that reg 0x60000 will be set in all cases. I may only be
programmed if there is a TVout controller present in the system. Doing
it this way is safer. Maybe someone looking for a task can make a diff out
of this and submit it to the patches list?

-Matt


File : xc/programs/Xserver/hw/xfree86/drivers/i810/i810_driver.c
  Somewhere near line 1522


  unsigned int temp=0;

   /* OVRACT Register */
   temp = INREG(0x60000);
   if(temp) {
     i810Reg->OverlayActiveStart = (temp>>16) - 31; 
     i810Reg->OverlayActiveEnd = (temp & 0x3ff) - 31; 
   } else {
     i810Reg->OverlayActiveStart = mode->CrtcHTotal - 32; 
     i810Reg->OverlayActiveEnd = mode->CrtcHDisplay - 32; 
   }




-----Original Message-----
From: Sebastien BASTARD [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 2:50 AM
To: <
Subject: [Xpert]!! Correction for i810 driver !!


Hello,

I have a i810 controller with crontel 7007 out tv. With the lastest
Xfree 4.2.1, the Video Direct Render didn't work correctly.
In 640x480, the Video Direct Render print half image on the screen. And
with 800x600, i hadn't picture.

While 3 weeks, i searched a solution. I find one on a e-mail (but i
forgot the name of the person who posting the test solution).
I tested, and it work great !

I don't how it work (the solution), but it works.

I tested in 640x480, and 800x600 resolution, 24 bits and 16 bits.

Someone can modify the CSV driver 810 file ?

File : xc/programs/Xserver/hw/xfree86/drivers/i810/i810_driver.c

removed (line 1522):

   /* OVRACT Register */
   i810Reg->OverlayActiveStart = mode->CrtcHTotal - 32; 
   i810Reg->OverlayActiveEnd = mode->CrtcHDisplay - 32; 

added (1476) :

  unsigned int temp=0;

added (line 1522) :

  temp = INREG(0x60000);
  i810Reg->OverlayActiveStart = (temp>>16) - 31; 
  i810Reg->OverlayActiveEnd = (temp & 0x3ff) - 31; 

P.S : Sorry for my bad english ... and sorry because i didn't used the
diff program
French programmer

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to