[Mplayer-cvslog] CVS: main/vidix/drivers radeon_vid.c,1.66,1.67
Alex Beregszaszi
alex at mplayerhq.hu
Mon Jan 13 11:21:25 CET 2003
Update of /cvsroot/mplayer/main/vidix/drivers
In directory mail:/var/tmp.root/cvs-serv25384
Modified Files:
radeon_vid.c
Log Message:
M6 bug workaround by Hanno Bock <hanno at gmx.de>
Index: radeon_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/radeon_vid.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- radeon_vid.c 10 Jan 2003 20:38:37 -0000 1.66
+++ radeon_vid.c 13 Jan 2003 10:21:22 -0000 1.67
@@ -1021,6 +1021,16 @@
radeon_ram_size = INREG(CONFIG_MEMSIZE);
/* mem size is bits [28:0], mask off the rest. Range: from 1Mb up to 512 Mb */
radeon_ram_size &= CONFIG_MEMSIZE_MASK;
+#ifdef RADEON
+ /* according to XFree86 4.2.0, some production M6's return 0 for 8MB */
+ if (radeon_ram_size == 0 &&
+ (def_cap.device_id == DEVICE_ATI_RADEON_MOBILITY_M6 ||
+ def_cap.device_id == DEVICE_ATI_RADEON_MOBILITY_M62))
+ {
+ printf(RADEON_MSG" Workarounding buggy Radeon Mobility M6 (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));
radeon_vid_make_default();
More information about the MPlayer-cvslog
mailing list