Summary
Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index 87f28f2..e4add2b 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -15,6 +15,7 @@ Phoronix Test Suite (git)
- Improved CPU detection / ensures the frequency is shown. Properly handles the frequency for those overclocking or with power-savings technologies.
- Added video memory detection support. Currently only NVIDIA binary driver supported. Defaults to 128MB. Video memory capacity (in MB) exported to VIDEO_MEMORY for profiles.
- Compatibility checks when merging results
+- Improved video card detection (use GL renderer and use lspci now only for fallback)
- Add Super PI profile (Thanks to Pekka Panula)
- Other small fixes
diff --git a/pts-core/functions/pts-functions_linux.php b/pts-core/functions/pts-functions_linux.php
index 3dd7b96..3629c55 100644
--- a/pts-core/functions/pts-functions_linux.php
+++ b/pts-core/functions/pts-functions_linux.php
@@ -145,7 +145,20 @@ function kernel_arch()
}
function graphics_processor_string()
{
- return parse_lspci_output("VGA compatible controller:");
+ $info = shell_exec("glxinfo | grep renderer");
+
+ if(($pos = strpos($info, "renderer string:")) > 0)
+ {
+ $info = substr($info, $pos + 16);
+ $info = trim(substr($info, 0, strpos($info, "\n")));
+ }
+ else
+ $info = "";
+
+ if(empty($info) || $info == "Mesa GLX Indirect")
+ $info = parse_lspci_output("VGA compatible controller:");
+
+ return $info;
}
function motherboard_chipset_string()
{
<
Copyright © 2010 by Phoronix Media