[Mplayer-cvslog] CVS: main/vidix/drivers radeon_vid.c,1.33,1.34

Nick Kurshev nick at mplayer.dev.hu
Sat Feb 2 13:15:53 CET 2002


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv23038/main/vidix/drivers

Modified Files:
	radeon_vid.c 
Log Message:
using MTRR

Index: radeon_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/radeon_vid.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- radeon_vid.c	1 Feb 2002 10:19:43 -0000	1.33
+++ radeon_vid.c	2 Feb 2002 12:15:51 -0000	1.34
@@ -679,6 +679,7 @@
 
 int vixInit( void )
 {
+  int err;
   if(!probed) 
   {
     printf(RADEON_MSG" Driver was not probed but is being initializing\n");
@@ -692,6 +693,8 @@
   memset(&besr,0,sizeof(bes_registers_t));
   radeon_vid_make_default();
   printf(RADEON_MSG" Video memory = %uMb\n",radeon_ram_size/0x100000);
+  err = mtrr_set_type(pci_info.base0,radeon_ram_size,MTRR_TYPE_WRCOMB);
+  if(!err) printf(RADEON_MSG" Set write-combining type of video memory\n");
   return 0;  
 }
 




More information about the MPlayer-cvslog mailing list