move video memory info printf before the WIN32 workaround

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19959 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2006-09-23 16:46:08 +00:00
parent b6d6af240c
commit 4e2f5bc1a2
1 changed files with 2 additions and 1 deletions

View File

@ -1166,13 +1166,14 @@ int vixInit( void )
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");