diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-27 19:59:14 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-27 19:59:14 -0400 |
commit | e8ffa9b48f10a265df9d347159ae59445c5e82bf (patch) | |
tree | c9b279946278eb9b59e443b162a54c3b9262bb9d /pts-core/functions | |
parent | b847566340ac8824e5a6f0d4ccf1249653d2a4d0 (diff) | |
download | phoronix-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')
-rw-r--r-- | pts-core/functions/pts-functions_system_graphics.php | 3 |
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") |