summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-23 16:46:08 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-23 16:46:08 +0000
commit4e2f5bc1a255036f06a6d0ae3ac03b690cb69a6e (patch)
treed3977ca714a707fcad33d488da26769450f308aa
parentb6d6af240cb7ebc9a98d19b607d425e7a1a7557b (diff)
downloadmpv-4e2f5bc1a255036f06a6d0ae3ac03b690cb69a6e.tar.bz2
mpv-4e2f5bc1a255036f06a6d0ae3ac03b690cb69a6e.tar.xz
move video memory info printf before the WIN32 workaround
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19959 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--vidix/drivers/radeon_vid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vidix/drivers/radeon_vid.c b/vidix/drivers/radeon_vid.c
index 33a05e3acd..14c4072f98 100644
--- a/vidix/drivers/radeon_vid.c
+++ b/vidix/drivers/radeon_vid.c
@@ -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");