diff options
author | Francois Pons <fpons@mandriva.com> | 2000-07-21 21:24:40 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-07-21 21:24:40 +0000 |
commit | f01f53d988172e9d5bf52e969dd404dc48458000 (patch) | |
tree | 131f550b531f597d620be9637c7ecb3d4da4a0d1 /perl-install | |
parent | 0eb4ec769e0f37b6d0379d3221412c75e78e70b2 (diff) | |
download | drakx-f01f53d988172e9d5bf52e969dd404dc48458000.tar drakx-f01f53d988172e9d5bf52e969dd404dc48458000.tar.gz drakx-f01f53d988172e9d5bf52e969dd404dc48458000.tar.bz2 drakx-f01f53d988172e9d5bf52e969dd404dc48458000.tar.xz drakx-f01f53d988172e9d5bf52e969dd404dc48458000.zip |
*** empty log message ***
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/ChangeLog | 6 | ||||
-rw-r--r-- | perl-install/Xconfigurator.pm | 36 |
2 files changed, 38 insertions, 4 deletions
diff --git a/perl-install/ChangeLog b/perl-install/ChangeLog index d7f138c8b..2dd79c9de 100644 --- a/perl-install/ChangeLog +++ b/perl-install/ChangeLog @@ -1,3 +1,9 @@ +2000-07-21 Fran�ois Pons <fpons@mandrakesoft.com> + + * Xconfigurator.pm: enable 3D acceleration configuration with + XFree86, use /usr/X11R6/lib/modules/glx-3.so for X version 3 + Utah-GLX accelerated module. + 2000-07-20 dam's <damien@mandrakesoft.com> * Xconfigurator.pm: use {miscellaneous}{autologuser} instead of diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm index 59ad24973..37b2d66c1 100644 --- a/perl-install/Xconfigurator.pm +++ b/perl-install/Xconfigurator.pm @@ -176,7 +176,7 @@ sub cardConfiguration(;$$$) { add2hash($card, cardName2card($card->{type})) if $card->{type}; add2hash($card, { vendor => "Unknown", board => "Unknown" }); - $::xf4 = $card->{identifier} =~ /Rage 128/ if !$::expert; + $::xf4 = $card->{driver} && !$card->{flags}{unsupported}; $card->{prog} = "/usr/X11R6/bin/" . ($::xf4 && $card->{driver} ? 'XFree86' : $card->{server} =~ /Sun (.*)/x ? "Xsun$1" : "XF86_$card->{server}"); @@ -200,9 +200,23 @@ sub cardConfiguration(;$$$) { [ sort { $videomemory{$a} <=> $videomemory{$b} } keys %videomemory])}; + #- 3D acceleration configuration for X version 3 using Utah-GLX. + $card->{Utah_glx} = (-x "$prefix/usr/X11R6/lib/modules/glx-3.so" && + ($card->{identifier} =~ /MGA G[24]00/ || + $card->{type} =~ /ATI Mach64/ || + $card->{type} =~ /RIVA TNT/ || + $card->{type} =~ /SiS / || + $card->{type} =~ /S3 ViRGE/ || + $card->{type} =~ /Intel 810/)); + + #- 3D acceleration configuration for X version 4 using DRI, this is enabled by default + #- but for some there is a need to specify VideoRam (else it won't run). + ($card->{flags}{needVideoRam}, $card->{memory}) = ('fakeVideoRam', 32768) if $card->{identifier} =~ /MGA G[24]00/; + ($card->{flags}{needVideoRam}, $card->{memory}) = ('fakeVideoRam', 10000) if $card->{type} =~ /Intel 810/; + if (!$::isStandalone && $card->{driver} eq "i810") { require modules; - modules::load("agpgart"); + modules::load("agpgart"); eval { modules::load("i810"); }; } $card; } @@ -681,11 +695,19 @@ sub write_XF86Config { print F "EndSection\n\n\n"; print G "EndSection\n\n\n"; + #- write module section for version 3. print F qq( Section "Module" - Load "xf86Wacom.so" +) if $o->{wacom} || $o->{Utah_glx}; + print F qq( Load "xf86Wacom.so"\n) if $o->{wacom}; + print F qq( Load "glx-3.so"\n) if $o->{Utah_glx}; #- glx.so may clash with server version 4. + print F qq( EndSection - + +) if $o->{wacom} || $o->{Utah_glx}; + + #- write wacom device support. + print F qq( Section "XInput" SubSection "WacomStylus" Port "/dev/$o->{wacom}" @@ -724,6 +746,7 @@ Section "InputDevice" EndSection ) if $o->{wacom}; + #- write modules section for version 4. print G qq( Section "Module" @@ -731,6 +754,7 @@ Section "Module" Load "dbe" Load "glx" + Load "dri" # This loads the miscellaneous extensions module, and disables # initialisation of the XFree86-DGA extension within that module. @@ -744,6 +768,10 @@ Section "Module" Load "type1" Load "freetype" EndSection + +Section "DRI" + Mode 0666 +EndSection ); #- Write monitor section. |