diff options
author | bsalomon <bsalomon@google.com> | 2016-04-06 09:22:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-06 09:22:36 -0700 |
commit | 3ddf967ffeb311b3ead780aaad2368cfdf064562 (patch) | |
tree | c06956943b8e70da64a0a5f558ed39df22bf7360 /tools | |
parent | 4693a1748f19fa4ee83c6eee2333b39ffb3febd4 (diff) |
Alter dm_flags.py logic flow for certain configs to be subtractive
Replace msaa4 on Shield Tablet with glmsaa4.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1868473003
Review URL: https://codereview.chromium.org/1868473003
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dm_flags.json | 26 | ||||
-rwxr-xr-x | tools/dm_flags.py | 43 |
2 files changed, 37 insertions, 32 deletions
diff --git a/tools/dm_flags.json b/tools/dm_flags.json index 6df7a252bf..c842db72ec 100644 --- a/tools/dm_flags.json +++ b/tools/dm_flags.json @@ -1203,7 +1203,7 @@ "8888", "gl", "glsrgb", - "msaa4", + "glmsaa4", "serialize-8888", "tiles_rt-8888", "pic-8888", @@ -1818,8 +1818,8 @@ "8888", "gpu", "gpusrgb", - "nvprdit4", "msaa4", + "nvprdit4", "serialize-8888", "tiles_rt-8888", "pic-8888", @@ -2343,8 +2343,8 @@ "8888", "gpu", "gpusrgb", - "msaa16", "pdf", + "msaa16", "serialize-8888", "tiles_rt-8888", "pic-8888", @@ -2688,8 +2688,8 @@ "8888", "gpu", "gpusrgb", - "msaa16", "pdf", + "msaa16", "serialize-8888", "tiles_rt-8888", "pic-8888", @@ -2937,12 +2937,12 @@ "8888", "gpu", "gpusrgb", + "pdf", + "msaa16", "f16", "srgb", "sp-8888", "2ndpic-8888", - "msaa16", - "pdf", "serialize-8888", "tiles_rt-8888", "pic-8888", @@ -3161,12 +3161,12 @@ "8888", "gpu", "gpusrgb", + "pdf", + "msaa16", "f16", "srgb", "sp-8888", "2ndpic-8888", - "msaa16", - "pdf", "serialize-8888", "tiles_rt-8888", "pic-8888", @@ -3382,12 +3382,12 @@ "8888", "gpu", "gpusrgb", + "pdf", + "msaa16", "f16", "srgb", "sp-8888", "2ndpic-8888", - "msaa16", - "pdf", "serialize-8888", "tiles_rt-8888", "pic-8888", @@ -3625,9 +3625,9 @@ "8888", "gpu", "gpusrgb", - "nvprdit16", - "msaa16", "pdf", + "msaa16", + "nvprdit16", "serialize-8888", "tiles_rt-8888", "pic-8888", @@ -3959,8 +3959,8 @@ "8888", "gpu", "gpusrgb", - "msaa16", "pdf", + "msaa16", "serialize-8888", "tiles_rt-8888", "pic-8888", diff --git a/tools/dm_flags.py b/tools/dm_flags.py index fb4522c74a..19739866c1 100755 --- a/tools/dm_flags.py +++ b/tools/dm_flags.py @@ -34,7 +34,28 @@ def get_args(bot): if '-x86-' in bot and not 'NexusPlayer' in bot: args.extend('--threads 4'.split(' ')) - configs = ['565', '8888', 'gpu', 'gpusrgb'] + # These are the canonical configs that we would ideally run on all bots. We + # may opt out or substitute some below for specific bots + configs = ['565', '8888', 'gpu', 'gpusrgb', 'pdf'] + # Add in either msaa4 or msaa16 to the canonical set of configs to run + if 'Android' in bot or 'iOS' in bot: + configs.append('msaa4') + else: + configs.append('msaa16') + + # With msaa, the S4 crashes and the NP produces a long error stream when we + # run with MSAA. The Tegra2 and Tegra3 just don't support it. No record of + # why we're not running msaa on iOS, probably started with gpu config and just + # haven't tried. + if ('GalaxyS4' in bot or + 'NexusPlayer' in bot or + 'Tegra3' in bot or + 'iOS' in bot): + configs = [x for x in configs if 'msaa' not in x] + + # Runs out of memory on Android bots and Daisy. Everyone else seems fine. + if 'Android' in bot or 'Daisy' in bot: + configs.remove('pdf') if '-GCE-' in bot: configs.extend(['f16', 'srgb']) # Gamma-correct formats. @@ -52,25 +73,9 @@ def get_args(bot): # We want to test the OpenGL config not the GLES config on the X1 if 'TegraX1' in bot: - configs.remove('gpu') - configs.remove('gpusrgb') - configs.append('gl') - configs.append('glsrgb') + configs = [x.replace('gpu', 'gl') for x in configs] + configs = [x.replace('msaa', 'glmsaa') for x in configs] - # The S4 crashes and the NP produces a long error stream when we run with - # MSAA. The Tegra2 and Tegra3 just don't support it. - if ('GalaxyS4' not in bot and - 'NexusPlayer' not in bot and - 'Tegra3' not in bot and - 'iOS' not in bot): - if 'Android' in bot: - configs.append('msaa4') - else: - configs.append('msaa16') - # Runs out of memory on Android bots and Daisy. Everyone else seems fine. - if 'Android' not in bot and 'Daisy' not in bot: - configs.append('pdf') - # NP is running out of RAM when we run all these modes. skia:3255 if 'NexusPlayer' not in bot: configs.extend(mode + '-8888' for mode in |