diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-17 18:46:51 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-17 18:46:51 -0400 |
commit | 07e5b996a6c95277942921734e28f93f352f7552 (patch) | |
tree | d9eb7361112995f4efd1f315b3bab5b2b6f5f3fc /pts-core/functions/pts-functions_system_graphics.php | |
parent | 077c57859d2dbf597a4ed545c3eee82f0b588663 (diff) | |
download | phoronix-test-suite-upstream-07e5b996a6c95277942921734e28f93f352f7552.tar.gz phoronix-test-suite-upstream-07e5b996a6c95277942921734e28f93f352f7552.tar.xz phoronix-test-suite-upstream-07e5b996a6c95277942921734e28f93f352f7552.zip |
pts-core: Fix CrossFire card count detection for Radeon HD 4870 X2 and
other X2 graphics cards.
Diffstat (limited to 'pts-core/functions/pts-functions_system_graphics.php')
-rw-r--r-- | pts-core/functions/pts-functions_system_graphics.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php index 875dcf5..aa37ee4 100644 --- a/pts-core/functions/pts-functions_system_graphics.php +++ b/pts-core/functions/pts-functions_system_graphics.php @@ -529,7 +529,12 @@ function graphics_processor_string() $unique_adapters = array_unique($adapters); if(count($unique_adapters) == 1) + { + if(strpos($adapters[0], "X2") > 0 && $crossfire_card_count > 1) + $crossfire_card_count -= 1; + $info = $crossfire_card_count . " x " . $adapters[0] . $video_ram . " CrossFire"; + } else $info = implode(", ", $unique_adapters) . " CrossFire"; } |