Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: tools/dm_flags.py

Issue 1099023003: Ask for NVPR only when we expect it to be available. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« tools/dm_flags.json ('K') | « tools/dm_flags.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 def lineno(): 23 def lineno():
24 caller = inspect.stack()[1] # Up one level to our caller. 24 caller = inspect.stack()[1] # Up one level to our caller.
25 return inspect.getframeinfo(caller[0]).lineno 25 return inspect.getframeinfo(caller[0]).lineno
26 26
27 27
28 cov_start = lineno()+1 # We care about coverage starting just past this def. 28 cov_start = lineno()+1 # We care about coverage starting just past this def.
29 def get_args(bot): 29 def get_args(bot):
30 args = [] 30 args = []
31 31
32 configs = ['565', '8888', 'gpu'] 32 configs = ['565', '8888', 'gpu']
33
34 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot:
35 if 'Android' in bot:
36 configs.append('nvprmsaa4')
37 else:
38 configs.append('nvprmsaa16')
39
33 # The S4 crashes and the NP produces a long error stream when we run with 40 # The S4 crashes and the NP produces a long error stream when we run with
34 # MSAA. 41 # MSAA.
35 if ('GalaxyS4' not in bot and 42 if ('GalaxyS4' not in bot and
36 'NexusPlayer' not in bot): 43 'NexusPlayer' not in bot):
37 if 'Android' in bot: 44 if 'Android' in bot:
38 configs.extend(['msaa4', 'nvprmsaa4']) 45 configs.append('msaa4')
39 else: 46 else:
40 configs.extend(['msaa16', 'nvprmsaa16']) 47 configs.append('msaa16')
41 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. 48 # Runs out of memory on Android bots and Daisy. Everyone else seems fine.
42 if 'Android' not in bot and 'Daisy' not in bot: 49 if 'Android' not in bot and 'Daisy' not in bot:
43 configs.append('pdf') 50 configs.append('pdf')
44 51
45 # Xoom and NP are running out of RAM when we run all these modes. skia:3255 52 # Xoom and NP are running out of RAM when we run all these modes. skia:3255
46 if ('Xoom' not in bot and 53 if ('Xoom' not in bot and
47 'NexusPlayer' not in bot): 54 'NexusPlayer' not in bot):
48 configs.extend(mode + '-8888' for mode in 55 configs.extend(mode + '-8888' for mode in
49 ['serialize', 'tiles_rt', 'pipe']) 56 ['serialize', 'tiles_rt', 'pipe'])
50 configs.append('tiles_rt-gpu') 57 configs.append('tiles_rt-gpu')
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 args.extend(match) 150 args.extend(match)
144 151
145 return args 152 return args
146 cov_end = lineno() # Don't care about code coverage past here. 153 cov_end = lineno() # Don't care about code coverage past here.
147 154
148 155
149 def self_test(): 156 def self_test():
150 import coverage # This way the bots don't need coverage.py to be installed. 157 import coverage # This way the bots don't need coverage.py to be installed.
151 args = {} 158 args = {}
152 cases = [ 159 cases = [
160 'Test-Android-GCC-Nexus9-GPU-TegraK1-Arm64-Debug',
153 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', 161 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug',
154 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release', 162 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release',
155 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release', 163 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release',
156 'Test-Android-GCC-Xoom-GPU-Tegra2-Arm7-Release', 164 'Test-Android-GCC-Xoom-GPU-Tegra2-Arm7-Release',
157 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 165 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
158 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', 166 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN',
159 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind', 167 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind',
160 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', 168 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
161 ] 169 ]
162 170
(...skipping 19 matching lines...) Expand all
182 if len(sys.argv) == 2 and sys.argv[1] == 'test': 190 if len(sys.argv) == 2 and sys.argv[1] == 'test':
183 self_test() 191 self_test()
184 sys.exit(0) 192 sys.exit(0)
185 193
186 if len(sys.argv) != 3: 194 if len(sys.argv) != 3:
187 print usage 195 print usage
188 sys.exit(1) 196 sys.exit(1)
189 197
190 with open(sys.argv[1], 'w') as out: 198 with open(sys.argv[1], 'w') as out:
191 json.dump(get_args(sys.argv[2]), out) 199 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« tools/dm_flags.json ('K') | « tools/dm_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698