summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_graphics.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-17 18:46:51 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-17 18:46:51 -0400
commit07e5b996a6c95277942921734e28f93f352f7552 (patch)
treed9eb7361112995f4efd1f315b3bab5b2b6f5f3fc /pts-core/functions/pts-functions_system_graphics.php
parent077c57859d2dbf597a4ed545c3eee82f0b588663 (diff)
downloadphoronix-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.php5
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";
}