[MPlayer-cvslog] r23182 - trunk/vidix/radeon_vid.c

ben subversion at mplayerhq.hu
Mon Apr 30 13:46:02 CEST 2007


Author: ben
Date: Mon Apr 30 13:46:02 2007
New Revision: 23182

Log:
accurate X200 memory size detection (patch by rjoco77 at kezdionline dot ro)

Modified:
   trunk/vidix/radeon_vid.c

Modified: trunk/vidix/radeon_vid.c
==============================================================================
--- trunk/vidix/radeon_vid.c	(original)
+++ trunk/vidix/radeon_vid.c	Mon Apr 30 13:46:02 2007
@@ -1386,9 +1386,9 @@ static int radeon_init(void)
   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 */



More information about the MPlayer-cvslog mailing list