mirror of https://github.com/mpv-player/mpv
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:
parent
b6d6af240c
commit
4e2f5bc1a2
|
@ -1166,13 +1166,14 @@ int vixInit( void )
|
||||||
radeon_ram_size = 8192*1024;
|
radeon_ram_size = 8192*1024;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
printf(RADEON_MSG" Video memory = %uMb\n",radeon_ram_size/0x100000);
|
||||||
#ifdef WIN32
|
#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;
|
if(radeon_ram_size > 16*1024*1024)radeon_ram_size=16*1024*1024;
|
||||||
#endif
|
#endif
|
||||||
if((radeon_mem_base = map_phys_mem(pci_info.base0,radeon_ram_size))==(void *)-1) return ENOMEM;
|
if((radeon_mem_base = map_phys_mem(pci_info.base0,radeon_ram_size))==(void *)-1) return ENOMEM;
|
||||||
memset(&besr,0,sizeof(bes_registers_t));
|
memset(&besr,0,sizeof(bes_registers_t));
|
||||||
radeon_vid_make_default();
|
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);
|
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");
|
if(!err) printf(RADEON_MSG" Set write-combining type of video memory\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue