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 21 matching lines...) Expand all Loading... |
32 configs = ['565', '8888', 'gpu'] | 32 configs = ['565', '8888', 'gpu'] |
33 | 33 |
34 if 'Android' not in bot: | 34 if 'Android' not in bot: |
35 configs.extend(('upright-matrix-8888', 'upright-matrix-gpu')) | 35 configs.extend(('upright-matrix-8888', 'upright-matrix-gpu')) |
36 args.extend('--matrix 0 1 1 0'.split(' ')) | 36 args.extend('--matrix 0 1 1 0'.split(' ')) |
37 | 37 |
38 if '-GCE-' in bot: | 38 if '-GCE-' in bot: |
39 configs.append('sp-8888') | 39 configs.append('sp-8888') |
40 configs.extend(['remote-8888', 'remote_cache-8888']) | 40 configs.extend(['remote-8888', 'remote_cache-8888']) |
41 | 41 |
42 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot: | 42 if '-TSAN' not in bot: |
43 if 'Android' in bot: | 43 if ('TegraK1' in bot or |
44 configs.append('nvprmsaa4') | 44 'GTX550Ti' in bot or |
45 else: | 45 'GTX660' in bot or |
46 configs.append('nvprmsaa16') | 46 'GT610' in bot): |
| 47 if 'Android' in bot: |
| 48 configs.append('nvprmsaa4') |
| 49 else: |
| 50 configs.append('nvprmsaa16') |
47 | 51 |
48 # The S4 crashes and the NP produces a long error stream when we run with | 52 # The S4 crashes and the NP produces a long error stream when we run with |
49 # MSAA. The Tegra2 and Tegra3 just don't support it. | 53 # MSAA. The Tegra2 and Tegra3 just don't support it. |
50 if ('GalaxyS4' not in bot and | 54 if ('GalaxyS4' not in bot and |
51 'NexusPlayer' not in bot and | 55 'NexusPlayer' not in bot and |
52 'Tegra3' not in bot and | 56 'Tegra3' not in bot and |
53 'iOS' not in bot): | 57 'iOS' not in bot): |
54 if 'Android' in bot: | 58 if 'Android' in bot: |
55 configs.append('msaa4') | 59 configs.append('msaa4') |
56 else: | 60 else: |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 248 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
245 self_test() | 249 self_test() |
246 sys.exit(0) | 250 sys.exit(0) |
247 | 251 |
248 if len(sys.argv) != 3: | 252 if len(sys.argv) != 3: |
249 print usage | 253 print usage |
250 sys.exit(1) | 254 sys.exit(1) |
251 | 255 |
252 with open(sys.argv[1], 'w') as out: | 256 with open(sys.argv[1], 'w') as out: |
253 json.dump(get_args(sys.argv[2]), out) | 257 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |