[MPlayer-cvslog] r19959 - trunk/vidix/drivers/radeon_vid.c

faust3 subversion at mplayerhq.hu
Sat Sep 23 18:46:08 CEST 2006


Author: faust3
Date: Sat Sep 23 18:46:08 2006
New Revision: 19959

Modified:
   trunk/vidix/drivers/radeon_vid.c

Log:
move video memory info printf before the WIN32 workaround

Modified: trunk/vidix/drivers/radeon_vid.c
==============================================================================
--- trunk/vidix/drivers/radeon_vid.c	(original)
+++ trunk/vidix/drivers/radeon_vid.c	Sat Sep 23 18:46:08 2006
@@ -1166,13 +1166,14 @@
       radeon_ram_size = 8192*1024;
   }
 #endif
+  printf(RADEON_MSG" Video memory = %uMb\n",radeon_ram_size/0x100000);
 #ifdef WIN32
+  //mapping large areas of video ram will fail on windows
   if(radeon_ram_size > 16*1024*1024)radeon_ram_size=16*1024*1024;
 #endif
   if((radeon_mem_base = map_phys_mem(pci_info.base0,radeon_ram_size))==(void *)-1) return ENOMEM;
   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");
 



More information about the MPlayer-cvslog mailing list