Hello, I finally managed to get my 2 drivers working on my system. I am attaching a patch that fixed the problem for me, but I am not a dri developer. Please review it, I am not sure if by fixing one problem I did not create another. I started with the problem described here: http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg29940.html but with radeon and mga driver. Dri works only on first screen on second it fails even when Xorg log says that everything is OK. I think that the problem was with extern declaration (in Mesa-7.0.2/include/GL/internal/dri_interface.h) of __driConfigOptions. With 2 extern declarations (in 2 drives) one always hide the other and both drivers try to use the same option list. nConfigOptions is declared as static. I changed declaration of __driConfigOptions to static (in h file as well as in drivers) and now it works. Attached patch should be applied in Mesa-7.0.2 dir with -p1 option. Notes: I did not touch files from other drivers just radeon and mga. Now other might have __driConfigOptions declared as extern, and might bring an error during compile. If static declaration of __driConfigOptions will not bring problems then we should change it everywhere, but now I am just not sure.
Regards, Michael W.
dual_driver.patch
Description: Binary data
------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel