[MPlayer-dev-eng] Fwd: Re: [MPlayer-users] xvidix problem with atis firegl drivers solved

Arpi arpi at thot.banki.hu
Tue Dec 31 15:24:35 CET 2002


Alex?

--------- Forwarded message ---------
From: Marcel Naziri <zwobbl at zwobbl.de>
To: mplayer-users at mplayerhq.hu
Subject: Re: [MPlayer-users] xvidix problem with atis firegl drivers solved

[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

> but you could make a patch to enable this 5mb reserving for cards with
> given PCI IDs (pci ids of the firegl cards).

ok, i have figured out that there are two specific Xserver extensions loaded 
when using fglrx. so I check if these extensions are present.
may be this attached patch can be applied to the source...

happy new year!
   zwobbl

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+EZJmMhKy9p2BrQQRAvAQAJ4x/2zEc/LVwRNK8bkeyI9H88APRgCdExgW
MV8whkIPNrzudgaiypBHlZE=
=YiuA
-----END PGP SIGNATURE-----


5a6,7
> 
>    31.12.02 added support for fglrx drivers by Marcel Naziri (zwobbl at zwobbl.de)
13a16
> #include <X11/Xlib.h>
200a204
> static uint32_t firegl_shift = 0;
921a926,949
> void probe_fireGL_driver() {
>   Display *dp = XOpenDisplay ((void*)0);
>   int n = 0;
>   char **extlist = XListExtensions (dp, &n);
>   XCloseDisplay (dp);
>   if (extlist) {
>     int i;
>     int ext_fgl, ext_fglrx = 0;
>     for (i = 0; i < n; i++) {
>       if (!strcmp(extlist[i], "ATIFGLEXTENSION")) ext_fgl = 1;
>       if (!strcmp(extlist[i], "ATIFGLRXDRI")) ext_fglrx = 1;
>     }
>     if (ext_fgl) {
>       printf(RADEON_MSG" ATI FireGl driver detected");
>       firegl_shift = 0x500000;
>       if (!ext_fglrx) {
>         printf(", but DRI seems not to be activated\n");
>         printf(RADEON_MSG" Output may not work correctly, check your DRI configuration!");
>       }
>       printf("\n");
>     }
>   }
> }
> 
929a958
>   probe_fireGL_driver();
1492c1521
<       radeon_overlay_off = radeon_ram_size - info->frame_size*nfr;
---
>       radeon_overlay_off = radeon_ram_size - info->frame_size*nfr - firegl_shift;
1501c1530
<       radeon_overlay_off = radeon_ram_size - info->frame_size*nfr;
---
>       radeon_overlay_off = radeon_ram_size - info->frame_size*nfr - firegl_shift;


_______________________________________________
RTFM!!!  http://www.MPlayerHQ.hu/DOCS
Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
http://mplayerhq.hu/mailman/listinfo/mplayer-users





More information about the MPlayer-dev-eng mailing list