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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 config.extend(['msaa16', 'nvprmsaa16']) | 45 config.extend(['msaa16', 'nvprmsaa16']) |
46 args.append('--config') | 46 args.append('--config') |
47 args.extend(config) | 47 args.extend(config) |
48 | 48 |
49 if 'Valgrind' in bot: | 49 if 'Valgrind' in bot: |
50 # Don't care about Valgrind performance. | 50 # Don't care about Valgrind performance. |
51 args.extend(['--loops', '1']) | 51 args.extend(['--loops', '1']) |
52 args.extend(['--samples', '1']) | 52 args.extend(['--samples', '1']) |
53 | 53 |
54 if 'HD2000' in bot: | 54 if 'HD2000' in bot: |
55 args.extend(['--benchTileW', '256']) | 55 args.extend(['--GPUbenchTileW', '256']) |
56 args.extend(['--benchTileH', '256']) | 56 args.extend(['--GPUbenchTileH', '256']) |
57 | 57 |
58 match = [] | 58 match = [] |
59 if 'Android' in bot: | 59 if 'Android' in bot: |
60 # Segfaults when run as GPU bench. Very large texture? | 60 # Segfaults when run as GPU bench. Very large texture? |
61 match.append('~blurroundrect') | 61 match.append('~blurroundrect') |
62 match.append('~patch_grid') # skia:2847 | 62 match.append('~patch_grid') # skia:2847 |
63 match.append('~desk_carsvg') | 63 match.append('~desk_carsvg') |
64 if 'HD2000' in bot: | 64 if 'HD2000' in bot: |
65 match.extend(['~gradient', '~etc1bitmap']) # skia:2895 | 65 match.extend(['~gradient', '~etc1bitmap']) # skia:2895 |
66 if 'Nexus7' in bot: | 66 if 'Nexus7' in bot: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 116 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
117 self_test() | 117 self_test() |
118 sys.exit(0) | 118 sys.exit(0) |
119 | 119 |
120 if len(sys.argv) != 3: | 120 if len(sys.argv) != 3: |
121 print usage | 121 print usage |
122 sys.exit(1) | 122 sys.exit(1) |
123 | 123 |
124 with open(sys.argv[1], 'w') as out: | 124 with open(sys.argv[1], 'w') as out: |
125 json.dump(get_args(sys.argv[2]), out) | 125 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |