| OLD | NEW |
| 1 # | 1 # |
| 2 # Copyright 2015 Google Inc. | 2 # Copyright 2015 Google Inc. |
| 3 # | 3 # |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 # | 6 # |
| 7 | 7 |
| 8 #!/usr/bin/env python | 8 #!/usr/bin/env python |
| 9 | 9 |
| 10 usage = ''' | 10 usage = ''' |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 # The TegraX1 has a regular OpenGL implementation. We bench that instead | 51 # The TegraX1 has a regular OpenGL implementation. We bench that instead |
| 52 # of ES. | 52 # of ES. |
| 53 if 'TegraX1' in bot: | 53 if 'TegraX1' in bot: |
| 54 config.remove('gpu') | 54 config.remove('gpu') |
| 55 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) | 55 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) |
| 56 else: | 56 else: |
| 57 config.extend(['msaa4', 'nvpr4', 'nvprdit4']) | 57 config.extend(['msaa4', 'nvpr4', 'nvprdit4']) |
| 58 else: | 58 else: |
| 59 config.extend(['msaa16', 'nvpr16', 'nvprdit16']) | 59 config.extend(['msaa16', 'nvpr16', 'nvprdit16']) |
| 60 | 60 |
| 61 # Bench instanced rendering on a limited number of platforms |
| 62 if 'Nexus6' in bot: |
| 63 config.append('esinst') # esinst4 isn't working yet on Adreno. |
| 64 elif 'TegraX1' in bot: |
| 65 config.extend(['glinst', 'glinst4']) |
| 66 elif 'MacMini6.2' in bot: |
| 67 config.extend(['glinst', 'glinst16']) |
| 68 |
| 61 if 'Vulkan' in bot: | 69 if 'Vulkan' in bot: |
| 62 config = ['vk'] | 70 config = ['vk'] |
| 63 | 71 |
| 64 args.append('--config') | 72 args.append('--config') |
| 65 args.extend(config) | 73 args.extend(config) |
| 66 | 74 |
| 67 if 'Valgrind' in bot: | 75 if 'Valgrind' in bot: |
| 68 # Don't care about Valgrind performance. | 76 # Don't care about Valgrind performance. |
| 69 args.extend(['--loops', '1']) | 77 args.extend(['--loops', '1']) |
| 70 args.extend(['--samples', '1']) | 78 args.extend(['--samples', '1']) |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 149 |
| 142 return args | 150 return args |
| 143 cov_end = lineno() # Don't care about code coverage past here. | 151 cov_end = lineno() # Don't care about code coverage past here. |
| 144 | 152 |
| 145 | 153 |
| 146 def self_test(): | 154 def self_test(): |
| 147 import coverage # This way the bots don't need coverage.py to be installed. | 155 import coverage # This way the bots don't need coverage.py to be installed. |
| 148 args = {} | 156 args = {} |
| 149 cases = [ | 157 cases = [ |
| 150 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', | 158 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', |
| 159 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', |
| 151 'Perf-Android-Nexus7-Tegra3-Arm7-Release', | 160 'Perf-Android-Nexus7-Tegra3-Arm7-Release', |
| 152 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', | 161 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', |
| 153 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', | 162 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', |
| 163 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug', |
| 154 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 164 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
| 155 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', | 165 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', |
| 156 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 166 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
| 157 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', | 167 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', |
| 158 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release', | 168 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release', |
| 159 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release-Vulkan', | 169 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release-Vulkan', |
| 160 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release', | 170 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release', |
| 161 ] | 171 ] |
| 162 | 172 |
| 163 cov = coverage.coverage() | 173 cov = coverage.coverage() |
| (...skipping 18 matching lines...) Expand all Loading... |
| 182 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 192 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 183 self_test() | 193 self_test() |
| 184 sys.exit(0) | 194 sys.exit(0) |
| 185 | 195 |
| 186 if len(sys.argv) != 3: | 196 if len(sys.argv) != 3: |
| 187 print usage | 197 print usage |
| 188 sys.exit(1) | 198 sys.exit(1) |
| 189 | 199 |
| 190 with open(sys.argv[1], 'w') as out: | 200 with open(sys.argv[1], 'w') as out: |
| 191 json.dump(get_args(sys.argv[2]), out) | 201 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |