[MPlayer-dev-eng] mplayers radeonfb
Hanno Böck
hanno at gmx.de
Sat Jan 11 14:40:50 CET 2003
Hi,
mplayers radeonfb needs a fix for some radeon-cards, e.g. the radeon
mobility m6 ly.
I attached the fix.
--- radeonfb.c.orig Thu May 9 16:51:26 2002
+++ radeonfb.c Thu May 9 16:48:46 2002
@@ -877,6 +877,14 @@
/* mem size is bits [28:0], mask off the rest */
rinfo->video_ram = tmp & CONFIG_MEMSIZE_MASK;
+ /* According to XFree86 4.2.0, some production M6's return 0
+ for 8MB. */
+ if (rinfo->video_ram == 0 &&
+ (pdev->device == PCI_DEVICE_ID_RADEON_LY ||
+ pdev->device == PCI_DEVICE_ID_RADEON_LZ)) {
+ rinfo->video_ram = 8192 * 1024;
+ }
+
/* ram type */
tmp = INREG(MEM_SDRAM_MODE_REG);
switch ((MEM_CFG_TYPE & tmp) >> 30) {
More information about the MPlayer-dev-eng
mailing list