diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-04 12:30:30 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-04 12:30:30 -0500 |
commit | 70013b2d3745fa53acfdcf026a2268167e7946b2 (patch) | |
tree | fc68640f37ac62c5247ac532ed3cbf4eebd4ea59 /pts-core/functions/pts-functions_system_graphics.php | |
parent | 97f93b96991a9f89c2997a5ea88837767d5e71dc (diff) | |
download | phoronix-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.php | 10 |
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; } |