Mercurial > mplayer.hg
comparison vidix/radeon_vid.c @ 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 |
comparison
equal
deleted
inserted
replaced
23163:9e97f26e0c2b | 23164:e9298e9c6a74 |
---|---|
1384 radeon_ram_size = 8192*1024; | 1384 radeon_ram_size = 8192*1024; |
1385 } | 1385 } |
1386 else if (radeon_ram_size == 0 && | 1386 else if (radeon_ram_size == 0 && |
1387 (def_cap.device_id == DEVICE_ATI_RS482_RADEON_XPRESS)) | 1387 (def_cap.device_id == DEVICE_ATI_RS482_RADEON_XPRESS)) |
1388 { | 1388 { |
1389 printf(RADEON_MSG" Working around buggy RS482 Radeon Xpress 200 (0 vs. >32MB ram)\n"); | 1389 printf(RADEON_MSG" Working around buggy RS482 Radeon Xpress 200 Memory Detection\n"); |
1390 /* Minimal selectable shared memory from bios 32M */ | 1390 radeon_ram_size = (INREG(CONFIG_MEMSIZE) + 0x100000) << 2; |
1391 radeon_ram_size = 32768*1024; | 1391 radeon_ram_size &= CONFIG_MEMSIZE_MASK; |
1392 } | 1392 } |
1393 #else | 1393 #else |
1394 /* Rage Mobility (rage128) also has memsize bug */ | 1394 /* Rage Mobility (rage128) also has memsize bug */ |
1395 if (radeon_ram_size == 0 && | 1395 if (radeon_ram_size == 0 && |
1396 (def_cap.device_id == DEVICE_ATI_RAGE_MOBILITY_M3 || | 1396 (def_cap.device_id == DEVICE_ATI_RAGE_MOBILITY_M3 || |