summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_graphics.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-04 12:30:30 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-04 12:30:30 -0500
commit70013b2d3745fa53acfdcf026a2268167e7946b2 (patch)
treefc68640f37ac62c5247ac532ed3cbf4eebd4ea59 /pts-core/functions/pts-functions_system_graphics.php
parent97f93b96991a9f89c2997a5ea88837767d5e71dc (diff)
downloadphoronix-test-suite-upstream-70013b2d3745fa53acfdcf026a2268167e7946b2.tar.gz
phoronix-test-suite-upstream-70013b2d3745fa53acfdcf026a2268167e7946b2.tar.xz
phoronix-test-suite-upstream-70013b2d3745fa53acfdcf026a2268167e7946b2.zip
pts-core: Add support for reading xf86-video-nv version, since manual
check is required since it doesn't support DRI right now.
Diffstat (limited to 'pts-core/functions/pts-functions_system_graphics.php')
-rw-r--r--pts-core/functions/pts-functions_system_graphics.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php
index b00e5a8..eac0805 100644
--- a/pts-core/functions/pts-functions_system_graphics.php
+++ b/pts-core/functions/pts-functions_system_graphics.php
@@ -942,6 +942,16 @@ function xorg_ddx_driver_info()
$ddx_info = $driver_name . " " . $driver_version;
}
}
+ else if(IS_MESA_GRAPHICS && stripos(graphics_processor_string(), "NVIDIA") !== false)
+ {
+ // xf86-video-nv is an open-source driver but currently doesn't support DRI
+ $nv_driver_version = read_xorg_module_version("nv_drv.so");
+
+ if(!empty($nv_driver_version))
+ {
+ $ddx_info = "nv " . $nv_driver_version;
+ }
+ }
return $ddx_info;
}