1 # -*- coding: utf-8 -*-
3 """A quicker profile than all.
5 This profile filters out a number of very slow tests, and tests that are very
6 exhaustively tested, since they add a good deal of runtime to piglit.
8 There are 18000+ auto-generated tests that are exhaustive, but for quick.py we
9 don't want that level of exhaustiveness, so this filter removes 80% in a random
10 (but deterministic) way.
13 from __future__
import (
14 absolute_import
, division
, print_function
, unicode_literals
17 from framework
import grouptools
18 from framework
.test
import PiglitGLTest
19 from tests
.opengl
import profile
as _profile
23 # See the note in all.py about this warning
24 # pylint: disable=bad-continuation
27 profile
= _profile
.copy() # pylint: disable=invalid-name
29 # Set the --quick flag on a few image_load_store_tests
30 with profile
.test_list
.group_manager(
32 grouptools
.join('spec', 'arb_shader_image_load_store')) as g
:
33 with profile
.test_list
.allow_reassignment
:
34 g(['arb_shader_image_load_store-coherency', '--quick'], 'coherency')
35 g(['arb_shader_image_load_store-host-mem-barrier', '--quick'],
37 g(['arb_shader_image_load_store-max-size', '--quick'], 'max-size')
38 g(['arb_shader_image_load_store-semantics', '--quick'], 'semantics')
39 g(['arb_shader_image_load_store-shader-mem-barrier', '--quick'],
42 # Set the --quick flag on the image_size test
43 with profile
.test_list
.group_manager(
45 grouptools
.join('spec', 'arb_shader_image_size')) as g
:
46 with profile
.test_list
.allow_reassignment
:
47 g(['arb_shader_image_size-builtin', '--quick'], 'builtin')
49 # Set the --quick flag on the texture env combine test
50 with profile
.test_list
.group_manager(
52 grouptools
.join('spec', 'ext_texture_env_combine')) as g
:
53 with profile
.test_list
.allow_reassignment
:
54 g(['ext_texture_env_combine-combine', '--quick'], 'texture-env-combine')
56 # Set the --quick flag on the gl-1.0 blending test
57 with profile
.test_list
.group_manager(
59 grouptools
.join('spec', '!opengl 1.0')) as g
:
60 with profile
.test_list
.allow_reassignment
:
61 g(['gl-1.0-blend-func', '--quick'], 'gl-1.0-blend-func')
63 # Limit texture size to 512x512 for some texture_multisample tests.
64 # The default (max supported size) can be pretty slow.
65 with profile
.test_list
.group_manager(
67 grouptools
.join('spec', 'ARB_texture_multisample')) as g
:
68 with profile
.test_list
.allow_reassignment
:
69 size_arg
= ['--texsize', '512']
70 g(['arb_texture_multisample-large-float-texture'] + size_arg
,
71 'large-float-texture', run_concurrent
=False)
72 g(['arb_texture_multisample-large-float-texture', '--array'] +
73 size_arg
, 'large-float-texture-array', run_concurrent
=False)
74 g(['arb_texture_multisample-large-float-texture', '--fp16'] +
75 size_arg
, 'large-float-texture-fp16', run_concurrent
=False)
76 g(['arb_texture_multisample-large-float-texture', '--array',
78 'large-float-texture-array-fp16', run_concurrent
=False)