glx-multithread-texture: Avoid front-buffer rendering.
[piglit.git] / tests / quick_gl.py
blobec21d2b7d82e1266ce2fedd2af9d7580c29ab516
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.
11 """
13 from framework import grouptools
14 from framework.test import PiglitGLTest
15 from tests.opengl import profile as _profile
17 __all__ = ['profile']
19 # See the note in all.py about this warning
20 # pylint: disable=bad-continuation
23 profile = _profile.copy() # pylint: disable=invalid-name
25 # Set the --quick flag on a few image_load_store_tests
26 with profile.test_list.group_manager(
27 PiglitGLTest,
28 grouptools.join('spec', 'arb_shader_image_load_store')) as g:
29 with profile.test_list.allow_reassignment:
30 g(['arb_shader_image_load_store-coherency', '--quick'], 'coherency')
31 g(['arb_shader_image_load_store-host-mem-barrier', '--quick'],
32 'host-mem-barrier')
33 g(['arb_shader_image_load_store-max-size', '--quick'], 'max-size')
34 g(['arb_shader_image_load_store-semantics', '--quick'], 'semantics')
35 g(['arb_shader_image_load_store-shader-mem-barrier', '--quick'],
36 'shader-mem-barrier')
38 # Set the --quick flag on the image_size test
39 with profile.test_list.group_manager(
40 PiglitGLTest,
41 grouptools.join('spec', 'arb_shader_image_size')) as g:
42 with profile.test_list.allow_reassignment:
43 g(['arb_shader_image_size-builtin', '--quick'], 'builtin')
45 # Set the --quick flag on the texture env combine test
46 with profile.test_list.group_manager(
47 PiglitGLTest,
48 grouptools.join('spec', 'ext_texture_env_combine')) as g:
49 with profile.test_list.allow_reassignment:
50 g(['ext_texture_env_combine-combine', '--quick'], 'texture-env-combine')
52 # Set the --quick flag on the gl-1.0 blending test
53 with profile.test_list.group_manager(
54 PiglitGLTest,
55 grouptools.join('spec', '!opengl 1.0')) as g:
56 with profile.test_list.allow_reassignment:
57 g(['gl-1.0-blend-func', '--quick'], 'gl-1.0-blend-func')
59 # Set the --quick flag on the GL_ARB_sample_locations test
60 with profile.test_list.group_manager(
61 PiglitGLTest,
62 grouptools.join('spec', 'arb_sample_locations')) as g:
63 with profile.test_list.allow_reassignment:
64 g(['arb_sample_locations', '--quick'], 'test')
66 # Limit texture size to 512x512 for some texture_multisample tests.
67 # The default (max supported size) can be pretty slow.
68 with profile.test_list.group_manager(
69 PiglitGLTest,
70 grouptools.join('spec', 'ARB_texture_multisample')) as g:
71 with profile.test_list.allow_reassignment:
72 size_arg = ['--texsize', '512']
73 g(['arb_texture_multisample-large-float-texture'] + size_arg,
74 'large-float-texture', run_concurrent=False)
75 g(['arb_texture_multisample-large-float-texture', '--array'] +
76 size_arg, 'large-float-texture-array', run_concurrent=False)
77 g(['arb_texture_multisample-large-float-texture', '--fp16'] +
78 size_arg, 'large-float-texture-fp16', run_concurrent=False)
79 g(['arb_texture_multisample-large-float-texture', '--array',
80 '--fp16'] + size_arg,
81 'large-float-texture-array-fp16', run_concurrent=False)