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 16 matching lines...) Expand all Loading... |
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 # 32-bit desktop bots tend to run out of memory, because they have relatively | 32 # 32-bit desktop bots tend to run out of memory, because they have relatively |
33 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit. | 33 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit. |
34 if '-x86-' in bot and not 'NexusPlayer' in bot: | 34 if '-x86-' in bot and not 'NexusPlayer' in bot: |
35 args.extend('--threads 4'.split(' ')) | 35 args.extend('--threads 4'.split(' ')) |
36 | 36 |
37 configs = ['565', '8888', 'gpu', 'gpusrgb'] | 37 # These are the canonical configs that we would ideally run on all bots. We |
| 38 # may opt out or substitute some below for specific bots |
| 39 configs = ['565', '8888', 'gpu', 'gpusrgb', 'pdf'] |
| 40 # Add in either msaa4 or msaa16 to the canonical set of configs to run |
| 41 if 'Android' in bot or 'iOS' in bot: |
| 42 configs.append('msaa4') |
| 43 else: |
| 44 configs.append('msaa16') |
| 45 |
| 46 # With msaa, the S4 crashes and the NP produces a long error stream when we |
| 47 # run with MSAA. The Tegra2 and Tegra3 just don't support it. No record of |
| 48 # why we're not running msaa on iOS, probably started with gpu config and just |
| 49 # haven't tried. |
| 50 if ('GalaxyS4' in bot or |
| 51 'NexusPlayer' in bot or |
| 52 'Tegra3' in bot or |
| 53 'iOS' in bot): |
| 54 configs = [x for x in configs if 'msaa' not in x] |
| 55 |
| 56 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. |
| 57 if 'Android' in bot or 'Daisy' in bot: |
| 58 configs.remove('pdf') |
38 | 59 |
39 if '-GCE-' in bot: | 60 if '-GCE-' in bot: |
40 configs.extend(['f16', 'srgb']) # Gamma-correct formats. | 61 configs.extend(['f16', 'srgb']) # Gamma-correct formats. |
41 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture. | 62 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture. |
42 | 63 |
43 if '-TSAN' not in bot: | 64 if '-TSAN' not in bot: |
44 if ('TegraK1' in bot or | 65 if ('TegraK1' in bot or |
45 'GTX550Ti' in bot or | 66 'GTX550Ti' in bot or |
46 'GTX660' in bot or | 67 'GTX660' in bot or |
47 'GT610' in bot): | 68 'GT610' in bot): |
48 if 'Android' in bot: | 69 if 'Android' in bot: |
49 configs.append('nvprdit4') | 70 configs.append('nvprdit4') |
50 else: | 71 else: |
51 configs.append('nvprdit16') | 72 configs.append('nvprdit16') |
52 | 73 |
53 # We want to test the OpenGL config not the GLES config on the X1 | 74 # We want to test the OpenGL config not the GLES config on the X1 |
54 if 'TegraX1' in bot: | 75 if 'TegraX1' in bot: |
55 configs.remove('gpu') | 76 configs = [x.replace('gpu', 'gl') for x in configs] |
56 configs.remove('gpusrgb') | 77 configs = [x.replace('msaa', 'glmsaa') for x in configs] |
57 configs.append('gl') | |
58 configs.append('glsrgb') | |
59 | 78 |
60 # The S4 crashes and the NP produces a long error stream when we run with | |
61 # MSAA. The Tegra2 and Tegra3 just don't support it. | |
62 if ('GalaxyS4' not in bot and | |
63 'NexusPlayer' not in bot and | |
64 'Tegra3' not in bot and | |
65 'iOS' not in bot): | |
66 if 'Android' in bot: | |
67 configs.append('msaa4') | |
68 else: | |
69 configs.append('msaa16') | |
70 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. | |
71 if 'Android' not in bot and 'Daisy' not in bot: | |
72 configs.append('pdf') | |
73 | |
74 # NP is running out of RAM when we run all these modes. skia:3255 | 79 # NP is running out of RAM when we run all these modes. skia:3255 |
75 if 'NexusPlayer' not in bot: | 80 if 'NexusPlayer' not in bot: |
76 configs.extend(mode + '-8888' for mode in | 81 configs.extend(mode + '-8888' for mode in |
77 ['serialize', 'tiles_rt', 'pic']) | 82 ['serialize', 'tiles_rt', 'pic']) |
78 | 83 |
79 if 'ANGLE' in bot: | 84 if 'ANGLE' in bot: |
80 configs.append('angle') | 85 configs.append('angle') |
81 | 86 |
82 # We want to run gpudft on atleast the mali 400 | 87 # We want to run gpudft on atleast the mali 400 |
83 if 'GalaxyS3' in bot: | 88 if 'GalaxyS3' in bot: |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 298 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
294 self_test() | 299 self_test() |
295 sys.exit(0) | 300 sys.exit(0) |
296 | 301 |
297 if len(sys.argv) != 3: | 302 if len(sys.argv) != 3: |
298 print usage | 303 print usage |
299 sys.exit(1) | 304 sys.exit(1) |
300 | 305 |
301 with open(sys.argv[1], 'w') as out: | 306 with open(sys.argv[1], 'w') as out: |
302 json.dump(get_args(sys.argv[2]), out) | 307 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |