summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_graphics.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-08 18:38:33 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-08 18:38:33 -0400
commit78656544703cfc347b841cd57503e825458b6a89 (patch)
treeb6424cc47ae44835e0ff5376b44e2534577e4f90 /pts-core/functions/pts-functions_system_graphics.php
parent7d6e126284eeff61994ed253768a8d4e4782affc (diff)
downloadphoronix-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.php21
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 = "";