summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/proprietary.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-04 18:31:48 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-04 18:31:48 +0000
commitb028f9b7a39efdc6fafce0b60269432ac299aace (patch)
tree234f058df4e3b9bcae1c8d5b148a50b8f0c09815 /lib/Xconfig/proprietary.pm
parent5e8b0144e8105bab4da933d05ad53543943c97a1 (diff)
downloaddrakx-kbd-mouse-x11-b028f9b7a39efdc6fafce0b60269432ac299aace.tar
drakx-kbd-mouse-x11-b028f9b7a39efdc6fafce0b60269432ac299aace.tar.gz
drakx-kbd-mouse-x11-b028f9b7a39efdc6fafce0b60269432ac299aace.tar.bz2
drakx-kbd-mouse-x11-b028f9b7a39efdc6fafce0b60269432ac299aace.tar.xz
drakx-kbd-mouse-x11-b028f9b7a39efdc6fafce0b60269432ac299aace.zip
(readCardsDB,handle_DRIVER2_NO_SSE) handle new DRIVER2_NEEDS_SSE keyword
this enables to handle drivers needing SSE (aka nvidia-current) in a more generic way, not depending on having DRIVER2_NO_SSE keyword) this is needed as DRIVER2_NO_SSE will be commented out since nvidia96xx doesn't support x11-server-1.11.x
Diffstat (limited to 'lib/Xconfig/proprietary.pm')
-rw-r--r--lib/Xconfig/proprietary.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Xconfig/proprietary.pm b/lib/Xconfig/proprietary.pm
index 350a116..8fd701f 100644
--- a/lib/Xconfig/proprietary.pm
+++ b/lib/Xconfig/proprietary.pm
@@ -37,12 +37,13 @@ sub install_matrox_hal {
sub handle_DRIVER2_NO_SSE {
my ($card) = @_;
- $card->{DRIVER2_NO_SSE} or return;
+ $card->{DRIVER2_NO_SSE} || $card->{DRIVER2_NEEDS_SSE} or return;
require detect_devices;
if (!detect_devices::has_cpu_flag('sse')) {
- log::l("$card->{Driver2} need a processor featuring SSE, switching back to $card->{DRIVER2_NO_SSE}");
- $card->{Driver2} = $card->{DRIVER2_NO_SSE};
+ my $driver = $card->{DRIVER2_NEEDS_SSE} ? $card->{DRIVER} : $card->{DRIVER2_NO_SSE};
+ log::l("$card->{Driver2} need a processor featuring SSE, switching back to $driver");
+ $card->{Driver2} = $driver;
}
}