summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/proprietary.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-03-11 13:50:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-03-11 13:50:14 +0000
commitdcb63e5dffda418a6364955b6a524e31120cba9d (patch)
treefe95fa81e28e06f37bf76b76393fd10f225c4df0 /lib/Xconfig/proprietary.pm
parent6daaf9c13c8a5bf8eb0fca78a2cf3672d62b1a89 (diff)
downloaddrakx-kbd-mouse-x11-dcb63e5dffda418a6364955b6a524e31120cba9d.tar
drakx-kbd-mouse-x11-dcb63e5dffda418a6364955b6a524e31120cba9d.tar.gz
drakx-kbd-mouse-x11-dcb63e5dffda418a6364955b6a524e31120cba9d.tar.bz2
drakx-kbd-mouse-x11-dcb63e5dffda418a6364955b6a524e31120cba9d.tar.xz
drakx-kbd-mouse-x11-dcb63e5dffda418a6364955b6a524e31120cba9d.zip
- XFdrake
o handle DRIVER2_NO_SSE (from Cards+), needed by nvidia-current requiring SSE
Diffstat (limited to 'lib/Xconfig/proprietary.pm')
-rw-r--r--lib/Xconfig/proprietary.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Xconfig/proprietary.pm b/lib/Xconfig/proprietary.pm
index a048717..e31b7ea 100644
--- a/lib/Xconfig/proprietary.pm
+++ b/lib/Xconfig/proprietary.pm
@@ -33,6 +33,19 @@ sub install_matrox_hal {
rm_rf("$tmpdir/$dir_in_tar");
}
+sub handle_DRIVER2_NO_SSE {
+ my ($card) = @_;
+
+ $card->{DRIVER2_NO_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};
+ }
+}
+
+
sub pkgs_for_Driver2 {
my ($Driver2, $do_pkgs) = @_;