diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | lib/Xconfig/card.pm | 1 | ||||
-rw-r--r-- | lib/Xconfig/proprietary.pm | 7 |
3 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,5 @@ +- handle drivers needing SSE + Version 0.99 - 18 December 2011 - default to 24bit with QXL driver (16 bit doesn't work) - do not offer to try KMS drivers during installation (mga#3711) diff --git a/lib/Xconfig/card.pm b/lib/Xconfig/card.pm index 133dd08..01cb9ea 100644 --- a/lib/Xconfig/card.pm +++ b/lib/Xconfig/card.pm @@ -496,6 +496,7 @@ sub readCardsDB { CHIPSET => sub { $card->{Chipset} = $val }, DRIVER => sub { $card->{Driver} = $val }, DRIVER2 => sub { $card->{Driver2} = $val }, + DRIVER2_NEEDS_SSE => sub { $card->{DRIVER2_NEEDS_SSE} = 1 }, DRIVER2_NO_SSE => sub { $card->{DRIVER2_NO_SSE} = $val }, NEEDVIDEORAM => sub { $card->{needVideoRam} = 1 }, DRI_GLX => sub { $card->{DRI_GLX} = 1 if $card->{Driver} }, 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; } } |