Mercurial > mplayer.hg
changeset 23164:e9298e9c6a74
accurate X200 memory size detection (patch by rjoco77 at kezdionline dot ro)
author | ben |
---|---|
date | Mon, 30 Apr 2007 11:46:02 +0000 |
parents | 9e97f26e0c2b |
children | a04344a97a7e |
files | vidix/radeon_vid.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vidix/radeon_vid.c Mon Apr 30 11:41:47 2007 +0000 +++ b/vidix/radeon_vid.c Mon Apr 30 11:46:02 2007 +0000 @@ -1386,9 +1386,9 @@ else if (radeon_ram_size == 0 && (def_cap.device_id == DEVICE_ATI_RS482_RADEON_XPRESS)) { - printf(RADEON_MSG" Working around buggy RS482 Radeon Xpress 200 (0 vs. >32MB ram)\n"); - /* Minimal selectable shared memory from bios 32M */ - radeon_ram_size = 32768*1024; + printf(RADEON_MSG" Working around buggy RS482 Radeon Xpress 200 Memory Detection\n"); + radeon_ram_size = (INREG(CONFIG_MEMSIZE) + 0x100000) << 2; + radeon_ram_size &= CONFIG_MEMSIZE_MASK; } #else /* Rage Mobility (rage128) also has memsize bug */