projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Tue 5/21/13 15:49
Michael Larabel  
Phoronix Test Suite... 
Fri 5/17/13 22:52
Michael Larabel  
phodevi: Report CPU... 
Wed 5/15/13 21:50
Michael Larabel  
Phoronix Test Suite... 
Wed 5/15/13 21:39
Michael Larabel  
pts-core: DragonFlyBSD... 
Wed 5/15/13 15:47
Michael Larabel  
pts-core: Updates from... 
Wed 5/15/13 15:43
Michael Larabel  
 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index e78189f
..44f2157 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -3,+3,@@ PHORONIX TEST SUITE CHANGE-LOG
 Phoronix Test Suite 
(Git)

 - 
pts-coreInitial command of ob-test-profile-analyze
+- phodeviAdditional 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
 
Phoronix.com
Linux Driver Forums
Copyright © 2013 by Phoronix Media