Mercurial > mplayer.hg
changeset 4477:dc9d7686ea4a
using MTRR
author | nick |
---|---|
date | Sat, 02 Feb 2002 12:15:51 +0000 |
parents | 0d9a096cfd46 |
children | 38d3954edb48 |
files | vidix/drivers/radeon_vid.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/vidix/drivers/radeon_vid.c Sat Feb 02 12:14:56 2002 +0000 +++ b/vidix/drivers/radeon_vid.c Sat Feb 02 12:15:51 2002 +0000 @@ -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; }