diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-03-11 13:50:14 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-03-11 13:50:14 +0000 |
commit | dcb63e5dffda418a6364955b6a524e31120cba9d (patch) | |
tree | fe95fa81e28e06f37bf76b76393fd10f225c4df0 /lib/Xconfig/proprietary.pm | |
parent | 6daaf9c13c8a5bf8eb0fca78a2cf3672d62b1a89 (diff) | |
download | drakx-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.pm | 13 |
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) = @_; |