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

Side by Side Diff: tools/nanobench_flags.py

Issue 1857233002: Revert of Add predfined configs for msaa4, nvpr4, nvpr4dit, and srgb that explictly use OpenGL rather than GL… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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
« no previous file with comments | « tools/nanobench_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 if 'iOS' in bot: 42 if 'iOS' in bot:
43 args.extend(['--skps', 'ignore_skps']) 43 args.extend(['--skps', 'ignore_skps'])
44 44
45 if 'Appurify' not in bot: 45 if 'Appurify' not in bot:
46 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] 46 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui']
47 # The S4 crashes and the NP produces a long error stream when we run with 47 # The S4 crashes and the NP produces a long error stream when we run with
48 # MSAA. 48 # MSAA.
49 if ('GalaxyS4' not in bot and 49 if ('GalaxyS4' not in bot and
50 'NexusPlayer' not in bot): 50 'NexusPlayer' not in bot):
51 if 'Android' in bot: 51 if 'Android' in bot:
52 # The TegraX1 has a regular OpenGL implementation. We bench that instead 52 config.extend(['msaa4', 'nvpr4', 'nvprdit4'])
53 # of ES.
54 if 'TegraX1' in bot:
55 config.remove('gpu')
56 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4'])
57 else:
58 config.extend(['msaa4', 'nvpr4', 'nvprdit4'])
59 else: 53 else:
60 config.extend(['msaa16', 'nvpr16', 'nvprdit16']) 54 config.extend(['msaa16', 'nvpr16', 'nvprdit16'])
61 args.append('--config') 55 args.append('--config')
62 args.extend(config) 56 args.extend(config)
63 57
64 if 'Valgrind' in bot: 58 if 'Valgrind' in bot:
65 # Don't care about Valgrind performance. 59 # Don't care about Valgrind performance.
66 args.extend(['--loops', '1']) 60 args.extend(['--loops', '1'])
67 args.extend(['--samples', '1']) 61 args.extend(['--samples', '1'])
68 # Ensure that the bot framework does not think we have timed out. 62 # Ensure that the bot framework does not think we have timed out.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 cases = [ 143 cases = [
150 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', 144 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release',
151 'Perf-Android-Nexus7-Tegra3-Arm7-Release', 145 'Perf-Android-Nexus7-Tegra3-Arm7-Release',
152 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', 146 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release',
153 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', 147 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release',
154 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 148 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
155 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', 149 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
156 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', 150 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug',
157 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', 151 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release',
158 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot', 152 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot',
159 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release',
160 ] 153 ]
161 154
162 cov = coverage.coverage() 155 cov = coverage.coverage()
163 cov.start() 156 cov.start()
164 for case in cases: 157 for case in cases:
165 args[case] = get_args(case) 158 args[case] = get_args(case)
166 cov.stop() 159 cov.stop()
167 160
168 this_file = os.path.basename(__file__) 161 this_file = os.path.basename(__file__)
169 _, _, not_run, _ = cov.analysis(this_file) 162 _, _, not_run, _ = cov.analysis(this_file)
(...skipping 11 matching lines...) Expand all
181 if len(sys.argv) == 2 and sys.argv[1] == 'test': 174 if len(sys.argv) == 2 and sys.argv[1] == 'test':
182 self_test() 175 self_test()
183 sys.exit(0) 176 sys.exit(0)
184 177
185 if len(sys.argv) != 3: 178 if len(sys.argv) != 3:
186 print usage 179 print usage
187 sys.exit(1) 180 sys.exit(1)
188 181
189 with open(sys.argv[1], 'w') as out: 182 with open(sys.argv[1], 'w') as out:
190 json.dump(get_args(sys.argv[2]), out) 183 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/nanobench_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698