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

Side by Side Diff: tools/nanobench_flags.py

Issue 1853103003: 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: add 'gl' to config list 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 config.extend(['msaa4', 'nvpr4', 'nvprdit4']) 52 # The TegraX1 has a regular OpenGL implementation. We bench that instead
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'])
53 else: 59 else:
54 config.extend(['msaa16', 'nvpr16', 'nvprdit16']) 60 config.extend(['msaa16', 'nvpr16', 'nvprdit16'])
55 args.append('--config') 61 args.append('--config')
56 args.extend(config) 62 args.extend(config)
57 63
58 if 'Valgrind' in bot: 64 if 'Valgrind' in bot:
59 # Don't care about Valgrind performance. 65 # Don't care about Valgrind performance.
60 args.extend(['--loops', '1']) 66 args.extend(['--loops', '1'])
61 args.extend(['--samples', '1']) 67 args.extend(['--samples', '1'])
62 # Ensure that the bot framework does not think we have timed out. 68 # Ensure that the bot framework does not think we have timed out.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 cases = [ 149 cases = [
144 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', 150 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release',
145 'Perf-Android-Nexus7-Tegra3-Arm7-Release', 151 'Perf-Android-Nexus7-Tegra3-Arm7-Release',
146 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', 152 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release',
147 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', 153 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release',
148 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 154 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
149 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', 155 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
150 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', 156 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug',
151 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', 157 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release',
152 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot', 158 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot',
159 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release',
153 ] 160 ]
154 161
155 cov = coverage.coverage() 162 cov = coverage.coverage()
156 cov.start() 163 cov.start()
157 for case in cases: 164 for case in cases:
158 args[case] = get_args(case) 165 args[case] = get_args(case)
159 cov.stop() 166 cov.stop()
160 167
161 this_file = os.path.basename(__file__) 168 this_file = os.path.basename(__file__)
162 _, _, not_run, _ = cov.analysis(this_file) 169 _, _, not_run, _ = cov.analysis(this_file)
(...skipping 11 matching lines...) Expand all
174 if len(sys.argv) == 2 and sys.argv[1] == 'test': 181 if len(sys.argv) == 2 and sys.argv[1] == 'test':
175 self_test() 182 self_test()
176 sys.exit(0) 183 sys.exit(0)
177 184
178 if len(sys.argv) != 3: 185 if len(sys.argv) != 3:
179 print usage 186 print usage
180 sys.exit(1) 187 sys.exit(1)
181 188
182 with open(sys.argv[1], 'w') as out: 189 with open(sys.argv[1], 'w') as out:
183 json.dump(get_args(sys.argv[2]), out) 190 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