diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-08 18:38:33 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-08 18:38:33 -0400 |
commit | 78656544703cfc347b841cd57503e825458b6a89 (patch) | |
tree | b6424cc47ae44835e0ff5376b44e2534577e4f90 /pts-core/functions/pts-functions_system_graphics.php | |
parent | 7d6e126284eeff61994ed253768a8d4e4782affc (diff) | |
download | phoronix-test-suite-upstream-78656544703cfc347b841cd57503e825458b6a89.tar.gz phoronix-test-suite-upstream-78656544703cfc347b841cd57503e825458b6a89.tar.xz phoronix-test-suite-upstream-78656544703cfc347b841cd57503e825458b6a89.zip |
pts-core: Add detection support for number of monitors enabled. Test
profiles can access this using $VIDEO_MONITOR_COUNT variable
Diffstat (limited to 'pts-core/functions/pts-functions_system_graphics.php')
-rw-r--r-- | pts-core/functions/pts-functions_system_graphics.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php index 58a8055..30c08f9 100644 --- a/pts-core/functions/pts-functions_system_graphics.php +++ b/pts-core/functions/pts-functions_system_graphics.php @@ -55,6 +55,27 @@ function graphics_processor_temperature() return $temp_c; } +function graphics_monitor_count() +{ + $monitor_count = 1; + + if(IS_NVIDIA_GRAPHICS) + { + $enabled_displays = read_nvidia_extension("EnabledDisplays"); + + switch($enabled_displays) + { + case "0x00010000": + $monitor_count = 1; + break; + case "0x00010001": + $monitor_count = 2; + break; + } + } + + return $monitor_count; +} function graphics_antialiasing_level() { $aa_level = ""; |