1
mirror of https://github.com/mpv-player/mpv synced 2024-09-05 02:48:21 +02:00

The patch enables the fix for rage128_vid as well as radeon_vid, and looks for the

DEVICE_ATI_RAGE_MOBILITY device IDs in addition to the Radeon Mobility device IDs.
Tom Wu <tom@arcot.com>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9241 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-02-03 01:45:49 +00:00
parent 8ac43798e6
commit 97956a3021

View File

@ -1036,6 +1036,15 @@ int vixInit( void )
printf(RADEON_MSG" Workarounding buggy Radeon Mobility M6 (0 vs. 8MB ram)\n");
radeon_ram_size = 8192*1024;
}
#else
/* Rage Mobility (rage128) also has memsize bug */
if (radeon_ram_size == 0 &&
(def_cap.device_id == DEVICE_ATI_RAGE_MOBILITY_M3 ||
def_cap.device_id == DEVICE_ATI_RAGE_MOBILITY_M32))
{
printf(RADEON_MSG" Workarounding buggy Rage Mobility M3 (0 vs. 8MB ram)\n");
radeon_ram_size = 8192*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));