Summary
Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index e78189f..44f2157 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -3,6 +3,7 @@ PHORONIX TEST SUITE CHANGE-LOG
Phoronix Test Suite (Git)
- pts-core: Initial command of ob-test-profile-analyze
+- phodevi: Additional fall-back support when GPU driver doesn't expose all standard mode-setting modes
- timed_screenshot: Overhaul of the timed screenshot PTS module
Phoronix Test Suite 4.0 Milestone 4
diff --git a/pts-core/commands/ob_test_profile_analyze.php b/pts-core/commands/ob_test_profile_analyze.php
index f0189d6..fcd5ef3 100644
--- a/pts-core/commands/ob_test_profile_analyze.php
+++ b/pts-core/commands/ob_test_profile_analyze.php
@@ -247,7 +247,6 @@ var_dump($screenshots);
echo PHP_EOL . $test_binary;
echo PHP_EOL . 'Test binary could not be found.' . PHP_EOL;
}
-
}
}
}
diff --git a/pts-core/objects/phodevi/components/phodevi_gpu.php b/pts-core/objects/phodevi/components/phodevi_gpu.php
index bcf0d8c..b14e536 100644
--- a/pts-core/objects/phodevi/components/phodevi_gpu.php
+++ b/pts-core/objects/phodevi/components/phodevi_gpu.php
@@ -52,7 +52,7 @@ class phodevi_gpu extends phodevi_device_interface
$property = new phodevi_device_property('gpu_compute_cores', phodevi::smart_caching);
break;
case 'available-modes':
- $property = new phodevi_device_property('gpu_available_modes', phodevi::smart_caching);
+ $property = new phodevi_device_property('gpu_available_modes', phodevi::std_caching);
break;
case 'screen-resolution':
$property = new phodevi_device_property('gpu_screen_resolution', phodevi::std_caching);
@@ -507,7 +507,8 @@ class phodevi_gpu extends phodevi_device_interface
// Fallback to providing stock modes
$stock_modes = array(
array(800, 600), array(1024, 768),
- array(1280, 1024), array(1400, 1050),
+ array(1280, 1024), array(1400, 900),
+ array(1400, 1050), array(1600, 900),
array(1680, 1050), array(1600, 1200),
array(1920, 1080), array(2560, 1600));
$available_modes = array();
@@ -521,6 +522,11 @@ class phodevi_gpu extends phodevi_device_interface
}
}
+ if(!in_array(phodevi::read_property('gpu', 'screen-resolution'), $available_modes))
+ {
+ array_push($available_modes, phodevi::read_property('gpu', 'screen-resolution'));
+ }
+
foreach($available_modes as $mode_index => $mode)
{
$this_ratio = pts_math::set_precision($mode[0] /&nbs
Copyright © 2013 by Phoronix Media