summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_graphics.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-27 19:59:14 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-27 19:59:14 -0400
commite8ffa9b48f10a265df9d347159ae59445c5e82bf (patch)
treec9b279946278eb9b59e443b162a54c3b9262bb9d /pts-core/functions/pts-functions_system_graphics.php
parentb847566340ac8824e5a6f0d4ccf1249653d2a4d0 (diff)
downloadphoronix-test-suite-upstream-e8ffa9b48f10a265df9d347159ae59445c5e82bf.tar.gz
phoronix-test-suite-upstream-e8ffa9b48f10a265df9d347159ae59445c5e82bf.tar.xz
phoronix-test-suite-upstream-e8ffa9b48f10a265df9d347159ae59445c5e82bf.zip
pts-core: On some Intel setups, don't report DRI in graphics string
Diffstat (limited to 'pts-core/functions/pts-functions_system_graphics.php')
-rw-r--r--pts-core/functions/pts-functions_system_graphics.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php
index 4b201c3..45e7e31 100644
--- a/pts-core/functions/pts-functions_system_graphics.php
+++ b/pts-core/functions/pts-functions_system_graphics.php
@@ -617,6 +617,9 @@ function graphics_processor_string()
if(strpos($log_parse, "ATI") !== FALSE || strpos($log_parse, "NVIDIA") !== FALSE || strpos($log_parse, "VIA") !== FALSE || strpos($log_parse, "Intel") !== FALSE)
$info = $log_parse;
+
+ if(($start_pos = strpos($info, " DRI ")) > 0)
+ $info = substr($info, $start_pos + 5);
}
if(IS_BSD && $info == "Unknown")