summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2016-07-22 08:07:59 +0200
committerAlejandro Piñeiro <apinheiro@igalia.com>2016-08-09 15:15:28 +0200
commit114739aa5bc5139864c8fbf1616eaedac6d38e45 (patch)
tree3b628dbedb17cb6808e946023113a928ffd01308
parent058ba1116555312b9f2fb82a1c210195eb25cd92 (diff)
arb_texture_barrier: use itertools.product instead of nested loops
v2: move the array definitions out of line (Ilia) Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
-rw-r--r--tests/all.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/all.py b/tests/all.py
index b39e99e42..4a8b6f840 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -4748,16 +4748,19 @@ with profile.group_manager(
'{} with {}'.format(object_type, operation))
# Group ARB_texture_barrier
+resolution_set = ['32', '512']
+blend_passes_set = ['1', '42']
+num_textures_set = ['1', '8']
+granularity_set = ['8', '64', '128']
+draw_passes_set = ['1', '2', '3', '4', '7', '8']
+
with profile.group_manager(
PiglitGLTest,
grouptools.join('spec', 'arb_texture_barrier')) as g:
- for resolution in ['32', '512']:
- for blend_passes in ['1', '42']:
- for num_textures in ['1', '8']:
- for granularity in ['8', '64', '128']:
- for draw_passes in ['1', '2', '3', '4', '7', '8']:
- g(['arb_texture_barrier-blending-in-shader', resolution,
- blend_passes, num_textures, granularity, draw_passes])
+ for resolution, blend_passes, num_textures, granularity, draw_passes in itertools.product(
+ resolution_set, blend_passes_set, num_textures_set, granularity_set, draw_passes_set):
+ g(['arb_texture_barrier-blending-in-shader', resolution,
+ blend_passes, num_textures, granularity, draw_passes])
# Group ARB_invalidate_subdata