1 # -*- coding: utf-8 -*-
2 # All tests that come with piglit, using default settings
8 from framework
import grouptools
9 from framework
import options
10 from framework
.profile
import TestProfile
11 from framework
.test
.piglit_test
import (
12 PiglitGLTest
, PiglitBaseTest
, BuiltInConstantsTest
14 from .py_modules
.constants
import TESTS_DIR
, GENERATED_TESTS_DIR
18 # Disable bad hanging indent errors in pylint
19 # There is a bug in pylint which causes the profile.test_list.group_manager to
20 # be tagged as bad hanging indent, even though it seems to be correct (and
21 # similar syntax doesn't trigger an error)
22 # pylint: disable=bad-continuation
24 # Shadowing variables is a bad practice. It's just nearly impossible with the
25 # format of this module to avoid it.
26 # pylint: disable=redefined-outer-name
29 def add_single_param_test_set(adder
, name
, *params
):
31 adder([name
, param
], '{}-{}'.format(name
, param
), run_concurrent
=False)
34 def add_depthstencil_render_miplevels_tests(adder
, test_types
):
35 # Note: the buffer sizes below have been chosen to exercise
36 # many possible combinations of buffer alignments on i965.
37 for texture_size
in ['146', '273', '292', '585', '1024']:
38 for test_type
in test_types
:
39 adder(['depthstencil-render-miplevels', texture_size
, test_type
],
43 def add_fbo_stencil_tests(adder
, format
):
44 adder(['fbo-stencil', 'clear', format
],
45 'fbo-stencil-{}-clear'.format(format
))
46 adder(['fbo-stencil', 'readpixels', format
],
47 'fbo-stencil-{}-readpixels'.format(format
))
48 adder(['fbo-stencil', 'drawpixels', format
],
49 'fbo-stencil-{}-drawpixels'.format(format
))
50 adder(['fbo-stencil', 'copypixels', format
],
51 'fbo-stencil-{}-copypixels'.format(format
))
52 adder(['fbo-stencil', 'blit', format
],
53 'fbo-stencil-{}-blit'.format(format
))
56 def add_fbo_depthstencil_tests(adder
, format
, num_samples
):
58 'add_fbo_depthstencil_tests argument "format" cannot be empty'
60 if format
== 'default_fb':
67 if int(num_samples
) > 1:
68 suffix
= ' samples=' + num_samples
69 psamples
= '-samples=' + num_samples
74 adder(['fbo-depthstencil', 'clear', format
, psamples
],
75 '{}depthstencil-{}-clear{}'.format(prefix
, format
, suffix
),
76 run_concurrent
=concurrent
)
77 adder(['fbo-depthstencil', 'readpixels', format
, 'FLOAT-and-USHORT',
79 '{}depthstencil-{}-readpixels-FLOAT-and-USHORT{}'.format(
80 prefix
, format
, suffix
),
81 run_concurrent
=concurrent
)
82 adder(['fbo-depthstencil', 'readpixels', format
, '24_8', psamples
],
83 '{}depthstencil-{}-readpixels-24_8{}'.format(prefix
, format
, suffix
),
84 run_concurrent
=concurrent
)
85 adder(['fbo-depthstencil', 'readpixels', format
, '32F_24_8_REV', psamples
],
86 '{}depthstencil-{}-readpixels-32F_24_8_REV{}'.format(
87 prefix
, format
, suffix
),
88 run_concurrent
=concurrent
)
89 adder(['fbo-depthstencil', 'drawpixels', format
, 'FLOAT-and-USHORT',
91 '{}depthstencil-{}-drawpixels-FLOAT-and-USHORT{}'.format(
92 prefix
, format
, suffix
),
93 run_concurrent
=concurrent
)
94 adder(['fbo-depthstencil', 'drawpixels', format
, '24_8', psamples
],
95 '{}depthstencil-{}-drawpixels-24_8{}'.format(prefix
, format
, suffix
),
96 run_concurrent
=concurrent
)
97 adder(['fbo-depthstencil', 'drawpixels', format
, '32F_24_8_REV', psamples
],
98 '{}depthstencil-{}-drawpixels-32F_24_8_REV{}'.format(
99 prefix
, format
, suffix
),
100 run_concurrent
=concurrent
)
101 adder(['fbo-depthstencil', 'copypixels', format
, psamples
],
102 '{}depthstencil-{}-copypixels{}'.format(prefix
, format
, suffix
),
103 run_concurrent
=concurrent
)
104 adder(['fbo-depthstencil', 'blit', format
, psamples
],
105 '{}depthstencil-{}-blit{}'.format(prefix
, format
, suffix
),
106 run_concurrent
=concurrent
)
109 def add_msaa_visual_plain_tests(adder
, args
, **kwargs
):
110 assert isinstance(args
, list)
112 adder(args
, **kwargs
)
113 for sample_count
in MSAA_SAMPLE_COUNTS
:
114 adder(args
+ ['-samples={}'.format(sample_count
)],
115 ' '.join(args
+ ['samples={}'.format(sample_count
)]),
119 def add_fbo_formats_tests(adder
, extension
, suffix
=''):
120 adder(['fbo-generatemipmap-formats', extension
],
121 'fbo-generatemipmap-formats{}'.format(suffix
))
122 adder(['fbo-clear-formats', extension
],
123 'fbo-clear-formats{}'.format(suffix
))
124 adder(['get-renderbuffer-internalformat', extension
],
125 'get-renderbuffer-internalformat{}'.format(suffix
))
126 if 'depth' not in extension
and 'stencil' not in extension
:
127 adder(['fbo-blending-formats', extension
],
128 'fbo-blending-formats{}'.format(suffix
))
129 adder(['fbo-alphatest-formats', extension
],
130 'fbo-alphatest-formats{}'.format(suffix
))
131 adder(['fbo-colormask-formats', extension
],
132 'fbo-colormask-formats{}'.format(suffix
))
133 adder(['ext_framebuffer_multisample-fast-clear',
136 'fbo-fast-clear{}'.format(suffix
))
139 def add_msaa_formats_tests(adder
, extension
):
140 for sample_count
in MSAA_SAMPLE_COUNTS
:
141 adder(['ext_framebuffer_multisample-formats', sample_count
,
143 'multisample-formats {} {}'.format(sample_count
, extension
))
144 adder(['ext_framebuffer_multisample-fast-clear', extension
],
145 'multisample-fast-clear {}'.format(extension
))
148 def add_texwrap_target_tests(adder
, target
):
149 adder(['texwrap', target
, 'GL_RGBA8'],
150 'texwrap {}'.format(target
))
152 adder(['texwrap', target
, 'GL_RGBA8', 'offset'],
153 'texwrap {} offset'.format(target
))
154 adder(['texwrap', target
, 'GL_RGBA8', 'bordercolor'],
155 'texwrap {} bordercolor'.format(target
))
156 adder(['texwrap', target
, 'GL_RGBA8', 'proj'],
157 'texwrap {} proj'.format(target
))
158 adder(['texwrap', target
, 'GL_RGBA8', 'proj', 'bordercolor'],
159 'texwrap {} proj bordercolor'.format(target
))
162 def add_texwrap_format_tests(adder
, ext
='', suffix
=''):
163 args
= [] if ext
== '' else [ext
]
164 adder(['texwrap'] + args
, 'texwrap formats{}'.format(suffix
))
165 if 'compression' not in ext
and 's3tc' not in ext
:
166 adder(['texwrap'] + args
+ ['offset'],
167 'texwrap formats{} offset'.format(suffix
))
168 adder(['texwrap'] + args
+ ['bordercolor'],
169 'texwrap formats{} bordercolor'.format(suffix
))
170 adder(['texwrap'] + args
+ ['bordercolor', 'swizzled'],
171 'texwrap formats{} bordercolor-swizzled'.format(suffix
))
174 def add_fbo_depth_tests(adder
, format
):
175 adder(['fbo-depth-tex1d', format
], 'fbo-depth-{}-tex1d'.format(format
))
176 adder(['fbo-depth', 'clear', format
], 'fbo-depth-{}-clear'.format(format
))
177 adder(['fbo-depth', 'readpixels', format
],
178 'fbo-depth-{}-readpixels'.format(format
))
179 adder(['fbo-depth', 'drawpixels', format
],
180 'fbo-depth-{}-drawpixels'.format(format
))
181 adder(['fbo-depth', 'copypixels', format
],
182 'fbo-depth-{}-copypixels'.format(format
))
183 adder(['fbo-depth', 'blit', format
], 'fbo-depth-{}-blit'.format(format
))
187 """Generate all possible subsets of the given set, including the empty set.
192 for p
in power_set(s
[:-1]):
194 result
.append(p
+ [s
[-1]])
198 # Collecting all tests
199 profile
= TestProfile() # pylint: disable=invalid-name
201 # List of all of the MSAA sample counts we wish to test
202 MSAA_SAMPLE_COUNTS
= ['2', '4', '6', '8', '16', '32']
204 with profile
.test_list
.group_manager(PiglitGLTest
, 'security') as g
:
205 g(['initialized-texmemory'], run_concurrent
=False)
206 g(['initialized-fbo'], run_concurrent
=False)
207 g(['initialized-vbo'], run_concurrent
=False)
209 with profile
.test_list
.group_manager(PiglitGLTest
, 'shaders') as g
:
210 g(['activeprogram-bad-program'])
211 g(['activeprogram-get'])
213 g(['createshaderprogram-bad-type'])
214 g(['createshaderprogram-attached-shaders'])
215 g(['glsl-arb-fragment-coord-conventions'])
216 g(['glsl-bug-110796'])
217 g(['glsl-bug-22603'])
218 g(['glsl-bindattriblocation'])
219 g(['glsl-dlist-getattriblocation'])
220 g(['glsl-getactiveuniform-array-size'])
221 g(['glsl-getactiveuniform-length'])
222 g(['glsl-getattriblocation'])
226 g(['glsl-invalid-asm-01'])
227 g(['glsl-invalid-asm-02'])
228 g(['glsl-novertexdata'])
229 g(['glsl-preprocessor-comments'])
230 g(['glsl-reload-source'])
231 g(['glsl-cache-fallback-shader-source'])
232 g(['glsl-uniform-out-of-bounds'])
233 g(['glsl-uniform-out-of-bounds-2'])
234 g(['glsl-uniform-update'])
235 g(['glsl-unused-varying'])
236 g(['glsl-fs-bug25902'])
237 g(['glsl-fs-color-matrix'])
238 g(['glsl-fs-discard-02'])
239 g(['glsl-fs-discard-mrt'])
241 g(['glsl-fs-flat-color'])
242 g(['glsl-fs-fogcolor-statechange'])
243 g(['glsl-fs-fogscale'])
244 g(['glsl-fs-fragcoord'])
245 g(['glsl-fs-fragcoord-zw-ortho'])
246 g(['glsl-fs-fragcoord-zw-perspective'])
248 g(['glsl-fs-loop-nested'])
249 g(['glsl-fs-pointcoord'])
250 g(['glsl-fs-raytrace-bug27060'])
251 g(['glsl-fs-sampler-numbering'])
252 g(['glsl-fs-shader-stencil-export'])
253 g(['glsl-fs-sqrt-branch'])
254 g(['glsl-fs-texturecube'])
255 g(['glsl-fs-texturecube', '-bias'], 'glsl-fs-texturecube-bias')
256 g(['glsl-fs-texturecube-2'])
257 g(['glsl-fs-texturecube-2', '-bias'], 'glsl-fs-texturecube-2-bias')
258 g(['glsl-fs-textureenvcolor-statechange'], run_concurrent
=False)
259 g(['glsl-fs-texture2drect'])
260 g(['glsl-fs-texture2drect', '-proj3'], 'glsl-fs-texture2drect-proj3')
261 g(['glsl-fs-texture2drect', '-proj4'], 'glsl-fs-texture2drect-proj4')
262 g(['glsl-fs-user-varying-ff'])
263 g(['glsl-mat-attribute'])
264 g(['glsl-max-varyings'])
265 g(['glsl-max-varyings', '--exceed-limits'],
266 'glsl-max-varyings >MAX_VARYING_COMPONENTS')
267 g(['glsl-orangebook-ch06-bump'])
269 g(['glsl-vs-arrays'])
270 g(['glsl-vs-normalscale'])
271 g(['glsl-vs-functions'])
272 g(['glsl-vs-user-varying-ff'])
273 g(['glsl-vs-texturematrix-1'])
274 g(['glsl-vs-texturematrix-2'])
277 g(['glsl-vs-if-bool'])
279 g(['glsl-vs-loop-nested'])
280 g(['glsl-vs-mov-after-deref'])
281 g(['glsl-vs-mvp-statechange'])
282 g(['glsl-vs-raytrace-bug26691'])
283 g(['glsl-vs-statechange-1'])
284 g(['vp-combined-image-units'])
288 g(['vp-ignore-input'])
289 g(['glsl-empty-vs-no-fs'])
290 g(['glsl-useprogram-displaylist'])
291 g(['glsl-vs-point-size'])
292 g(['glsl-light-model'])
293 g(['glsl-link-bug30552'])
294 g(['glsl-link-bug38015'])
295 g(['glsl-max-vertex-attrib'])
296 g(['glsl-kwin-blur-1'])
297 g(['glsl-kwin-blur-2'])
298 g(['gpu_shader4_attribs'])
299 g(['link-unresolved-function'])
300 g(['shadersource-no-compile'])
302 g(['sso-uniforms-01'])
303 g(['sso-uniforms-02'])
304 g(['sso-user-varying-01'])
305 g(['sso-user-varying-02'])
306 g(['useprogram-flushverts-1'])
307 g(['useprogram-flushverts-2'])
308 g(['useprogram-inside-begin'])
309 g(['useprogram-refcount-1'])
310 g(['useprogram-refcount-1', 'delete_dup'])
311 g(['useshaderprogram-bad-type'])
312 g(['useshaderprogram-bad-program'])
313 g(['useshaderprogram-flushverts-1'])
314 g(['point-vertex-id', 'gl_VertexID'])
315 g(['point-vertex-id', 'gl_InstanceID'])
316 g(['point-vertex-id', 'gl_VertexID', 'gl_InstanceID'])
317 g(['point-vertex-id', 'divisor'])
318 g(['point-vertex-id', 'gl_VertexID', 'divisor'])
319 g(['point-vertex-id', 'gl_InstanceID', 'divisor'])
320 g(['point-vertex-id', 'gl_VertexID', 'gl_InstanceID', 'divisor'])
321 g(['glsl-vs-int-attrib'])
322 g(['unsuccessful-relink'])
323 g(['glsl-link-initializer-03'],
324 'GLSL link two programs, global initializer')
325 g(['glsl-getactiveuniform-count',
326 os
.path
.join('shaders', 'glsl-getactiveuniform-length.vert'), '1'],
327 'glsl-getactiveuniform-count: {}'.format('glsl-getactiveuniform-length'))
328 g(['glsl-getactiveuniform-count',
329 os
.path
.join('shaders', 'glsl-getactiveuniform-ftransform.vert'), '2'],
330 'glsl-getactiveuniform-count: {}'.format(
331 'glsl-getactiveuniform-ftransform'))
332 g(['glsl-getactiveuniform-count',
333 os
.path
.join('shaders', 'glsl-getactiveuniform-mvp.vert'), '2'],
334 'glsl-getactiveuniform-count: {}'.format('glsl-getactiveuniform-mvp'))
336 for subtest
in ('interstage', 'intrastage', 'vs-gs'):
337 g(['version-mixing', subtest
])
339 for subtest
in ('texture2D',
347 g(['zero-tex-coord', subtest
])
349 with profile
.test_list
.group_manager(PiglitGLTest
, grouptools
.join('shaders', 'glsl-uniform-interstage-limits')) as g
:
350 g(['glsl-uniform-interstage-limits', '--subdivide', '5'], 'subdivide 5')
351 g(['glsl-uniform-interstage-limits', '--subdivide', '5', '--statechanges'], 'subdivide 5, statechanges')
352 g(['glsl-uniform-interstage-limits', '-v', '300', '-f', '300'], '300 VS, 300 FS')
353 g(['glsl-uniform-interstage-limits', '-v', '350', '-f', '350'], '350 VS, 350 FS')
354 g(['glsl-uniform-interstage-limits', '-v', '400', '-f', '400'], '400 VS, 400 FS')
355 g(['glsl-uniform-interstage-limits', '-v', '520', '-f', '1'], '520 VS, 1 FS')
356 g(['glsl-uniform-interstage-limits', '-v', '1', '-f', '520'], '1 VS, 520 FS')
358 with profile
.test_list
.group_manager(
360 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
361 g(['glx-destroycontext-1'], run_concurrent
=False)
362 g(['glx-destroycontext-2'], run_concurrent
=False)
363 g(['glx-destroycontext-3'], run_concurrent
=False)
364 g(['glx-dont-care-mask'], run_concurrent
=False)
365 g(['glx-close-display'], run_concurrent
=False)
366 g(['glx-fbconfig-sanity'], run_concurrent
=False)
367 g(['glx-fbconfig-compliance'], run_concurrent
=False)
368 g(['glx-fbconfig-bad'], run_concurrent
=False)
369 g(['glx-fbo-binding'], run_concurrent
=False)
370 g(['glx-multi-context-front'], run_concurrent
=False)
371 g(['glx-multi-context-ib-1'], run_concurrent
=False)
372 g(['glx-multi-context-single-window'], run_concurrent
=False)
373 g(['glx-multi-window-single-context'], run_concurrent
=False)
374 g(['glx-multithread'], run_concurrent
=False)
375 g(['glx-multithread-buffer'], run_concurrent
=False)
376 g(['glx-multithread-buffer-refcount-bug'], run_concurrent
=False)
377 g(['glx-multithread-clearbuffer'], run_concurrent
=False)
378 g(['glx-multithread-texture'])
379 g(['glx-multithread-makecurrent-1'], run_concurrent
=False)
380 g(['glx-multithread-makecurrent-2'], run_concurrent
=False)
381 g(['glx-multithread-makecurrent-3'], run_concurrent
=False)
382 g(['glx-multithread-makecurrent-4'], run_concurrent
=False)
383 g(['glx-multithread-shader-compile'], run_concurrent
=False)
384 g(['glx-shader-sharing'], run_concurrent
=False)
385 g(['glx-swap-exchange'], run_concurrent
=False)
386 g(['glx-swap-event', '--event'], 'glx-swap-event_event',
387 run_concurrent
=False)
388 g(['glx-swap-event', '--async'], 'glx-swap-event_async',
389 run_concurrent
=False)
390 g(['glx-swap-event', '--interval'], 'glx-swap-event_interval',
391 run_concurrent
=False)
392 g(['glx-swap-pixmap'], run_concurrent
=False)
393 g(['glx-swap-pixmap-bad'], run_concurrent
=False)
394 g(['glx-swap-singlebuffer'], run_concurrent
=False)
395 g(['glx-swap-copy'], run_concurrent
=False)
396 g(['glx-make-current'], run_concurrent
=False)
397 g(['glx-make-glxdrawable-current'], run_concurrent
=False)
398 g(['glx-context-flush-control'], run_concurrent
=False)
399 g(['glx-buffer-age'], run_concurrent
=False)
400 g(['glx-pixmap-life'])
401 g(['glx-pixmap13-life'])
402 g(['glx-pixmap-multi'])
403 g(['glx-tfp'], run_concurrent
=False)
404 g(['glx-visuals-depth'], run_concurrent
=False)
405 g(['glx-visuals-depth', '-pixmap'])
406 g(['glx-visuals-stencil'], run_concurrent
=False)
407 g(['glx-visuals-stencil', '-pixmap'])
408 g(['glx-window-life'])
409 g(['glx-pixmap-crosscheck'])
410 g(['glx-query-drawable', '--attr=GLX_WIDTH', '--type=GLXWINDOW'],
411 'glx-query-drawable-GLXWINDOW-GLX_WIDTH', run_concurrent
=False)
412 g(['glx-query-drawable', '--attr=GLX_HEIGHT', '--type=GLXWINDOW'],
413 'glx-query-drawable-GLXWINDOW-GLX_HEIGHT', run_concurrent
=False)
414 g(['glx-query-drawable', '--attr=GLX_WIDTH', '--type=GLXPIXMAP'],
415 'glx-query-drawable-GLXPIXMAP-GLX_WIDTH', run_concurrent
=False)
416 g(['glx-query-drawable', '--attr=GLX_HEIGHT', '--type=GLXPIXMAP'],
417 'glx-query-drawable-GLXPIXMAP-GLX_HEIGHT', run_concurrent
=False)
418 g(['glx-query-drawable', '--attr=GLX_WIDTH', '--type=GLXPBUFFER'],
419 'glx-query-drawable-GLXPBUFFER-GLX_WIDTH', run_concurrent
=False)
420 g(['glx-query-drawable', '--attr=GLX_HEIGHT', '--type=GLXPBUFFER'],
421 'glx-query-drawable-GLXPBUFFER-GLX_HEIGHT', run_concurrent
=False)
422 g(['glx-query-drawable', '--attr=GLX_WIDTH', '--type=WINDOW'],
423 'glx-query-drawable-GLX_WIDTH', run_concurrent
=False)
424 g(['glx-query-drawable', '--attr=GLX_HEIGHT', '--type=WINDOW'],
425 'glx-query-drawable-GLX_HEIGHT', run_concurrent
=False)
426 g(['glx-query-drawable', '--attr=GLX_FBCONFIG_ID', '--type=WINDOW'],
427 'glx-query-drawable-GLX_FBCONFIG_ID-WINDOW', run_concurrent
=False)
428 g(['glx-query-drawable', '--attr=GLX_FBCONFIG_ID', '--type=GLXWINDOW'],
429 'glx-query-drawable-GLX_FBCONFIG_ID-GLXWINDOW', run_concurrent
=False)
430 g(['glx-query-drawable', '--attr=GLX_FBCONFIG_ID', '--type=GLXPIXMAP'],
431 'glx-query-drawable-GLX_FBCONFIG_ID-GLXPIXMAP', run_concurrent
=False)
432 g(['glx-query-drawable', '--attr=GLX_FBCONFIG_ID', '--type=GLXPBUFFER'],
433 'glx-query-drawable-GLX_FBCONFIG_ID-GLXPBUFFER', run_concurrent
=False)
434 g(['glx-query-drawable', '--attr=GLX_FBCONFIG_ID', '--type=GLXPBUFFER'],
435 'glx-query-drawable-GLX_PRESERVED_CONTENTS', run_concurrent
=False)
436 g(['glx-query-drawable', '--bad-drawable'],
437 'glx-query-drawable-GLXBadDrawable', run_concurrent
=False)
438 g(['glx-string-sanity'], 'extension string sanity')
439 g(['glx-egl-switch-context'], run_concurrent
=False)
440 add_msaa_visual_plain_tests(g
, ['glx-copy-sub-buffer'],
441 run_concurrent
=False)
442 profile
.test_list
[grouptools
.join('glx', 'glx-buffer-age vblank_mode=0')] = \
443 PiglitGLTest(['glx-buffer-age'],
444 require_platforms
=['glx', 'mixed_glx_egl'],
445 run_concurrent
=False)
446 profile
.test_list
[grouptools
.join(
447 'glx', 'glx-buffer-age vblank_mode=0')].env
['vblank_mode'] = '0'
449 with profile
.test_list
.group_manager(
451 grouptools
.join('glx', 'glx_ext_import_context'),
452 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
453 g(['glx-free-context'], 'free context', run_concurrent
=False)
454 g(['glx-get-context-id'], 'get context ID', run_concurrent
=False)
455 g(['glx-get-current-display-ext'], 'get current display',
456 run_concurrent
=False)
457 g(['glx-import-context-has-same-context-id'],
458 'imported context has same context ID',
459 run_concurrent
=False)
460 g(['glx-import-context-multi-process'], 'import context, multi process',
461 run_concurrent
=False)
462 g(['glx-import-context-single-process'], 'import context, single process',
463 run_concurrent
=False)
464 g(['glx-make-current-multi-process'], 'make current, multi process',
465 run_concurrent
=False)
466 g(['glx-make-current-single-process'], 'make current, single process',
467 run_concurrent
=False)
468 g(['glx-query-context-info-ext'], 'query context info',
469 run_concurrent
=False)
471 with profile
.test_list
.group_manager(
473 grouptools
.join('glx', 'GLX_ARB_create_context'),
474 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
475 g(['glx-create-context-current-no-framebuffer'],
476 'current with no framebuffer')
477 g(['glx-create-context-default-major-version'], 'default major version')
478 g(['glx-create-context-default-minor-version'], 'default minor version')
479 g(['glx-create-context-invalid-attribute'], 'invalid attribute')
480 g(['glx-create-context-invalid-flag'], 'invalid flag')
481 g(['glx-create-context-invalid-flag-forward-compatible'],
482 'forward-compatible flag with pre-3.0')
483 g(['glx-create-context-invalid-gl-version'], 'invalid OpenGL version')
484 g(['glx-create-context-invalid-render-type'], 'invalid render type')
485 g(['glx-create-context-invalid-render-type-color-index'],
486 'color-index render type with 3.0')
487 g(['glx-create-context-valid-attribute-empty'], 'empty attribute list')
488 g(['glx-create-context-valid-attribute-null'], 'NULL attribute list')
489 g(['glx-create-context-valid-flag-forward-compatible'],
490 'forward-compatible flag with 3.0')
492 with profile
.test_list
.group_manager(
494 grouptools
.join('glx', 'GLX_EXT_no_config_context'),
495 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
496 g(['glx-create-context-ext-no-config-context'], 'no fbconfig')
498 with profile
.test_list
.group_manager(
500 grouptools
.join('glx', 'GLX_ARB_create_context_profile'),
501 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
502 g(['glx-create-context-core-profile'], '3.2 core profile required')
503 g(['glx-create-context-invalid-profile'], 'invalid profile')
504 g(['glx-create-context-pre-GL32-profile'], 'pre-GL3.2 profile')
506 with profile
.test_list
.group_manager(
508 grouptools
.join('glx', 'GLX_ARB_create_context_robustness'),
509 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
510 g(['glx-create-context-invalid-reset-strategy'],
511 'invalid reset notification strategy')
512 g(['glx-create-context-require-robustness'], 'require GL_ARB_robustness')
514 with profile
.test_list
.group_manager(
516 grouptools
.join('glx', 'GLX_ARB_create_context_es2_profile'),
517 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
518 g(['glx-create-context-indirect-es2-profile'],
519 'indirect rendering ES2 profile')
520 g(['glx-create-context-invalid-es-version'], 'invalid OpenGL ES version')
522 with profile
.test_list
.group_manager(
524 grouptools
.join('glx', 'GLX_ARB_create_context_no_error'),
525 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
526 g(['glx-create-context-no-error'], 'no error')
528 with profile
.test_list
.group_manager(
530 grouptools
.join('glx', 'GLX_ARB_sync_control'),
531 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
532 g(['glx-oml-sync-control-getmscrate'], 'glXGetMscRateOML')
533 g(['glx-oml-sync-control-swapbuffersmsc-divisor-zero'],
534 'swapbuffersmsc-divisor-zero')
535 g(['glx-oml-sync-control-swapbuffersmsc-return'], 'swapbuffersmsc-return')
536 g(['glx-oml-sync-control-swapbuffersmsc-return', '0'],
537 'swapbuffersmsc-return swap_interval 0')
538 g(['glx-oml-sync-control-swapbuffersmsc-return', '1'],
539 'swapbuffersmsc-return swap_interval 1')
540 g(['glx-oml-sync-control-waitformsc'], 'waitformsc')
542 oml_sync_control_nonzeros
= [
543 mode
+ [kind
, period
]
544 for mode
in [[], ['-fullscreen'], ['-waitformsc']]
545 for kind
in ['-divisor', '-msc-delta']
546 for period
in ['1', '2']
548 for args
in oml_sync_control_nonzeros
:
549 group
= grouptools
.join('glx', 'GLX_ARB_sync_control',
550 ' '.join(['timing'] + args
))
551 profile
.test_list
[group
] = PiglitGLTest(
552 ['glx-oml-sync-control-timing'] + args
,
553 require_platforms
=['glx', 'mixed_glx_egl'], run_concurrent
=False)
555 with profile
.test_list
.group_manager(
557 grouptools
.join('glx', 'GLX_MESA_query_renderer'),
558 require_platforms
=['glx', 'mixed_glx_egl']) as g
:
559 g(['glx-query-renderer-coverage'], 'coverage')
561 with profile
.test_list
.group_manager(
563 require_platforms
=['wgl']) as g
:
565 g(['wgl-multi-context-single-window'])
566 g(['wgl-multi-window-single-context'])
568 with profile
.test_list
.group_manager(
570 grouptools
.join('spec', '!opengl 1.0')) as g
:
571 g(['gl-1.0-beginend-coverage'])
572 g(['gl-1.0-bitmap-heart-dance'])
573 g(['gl-1.0-dlist-beginend'])
574 g(['gl-1.0-dlist-bitmap'])
575 g(['gl-1.0-dlist-materials'])
576 g(['gl-1.0-dlist-shademodel'])
577 g(['gl-1.0-drawpixels-color-index'])
578 g(['gl-1.0-drawpixels-depth-test'])
579 g(['gl-1.0-drawpixels-stencil-test'])
580 g(['gl-1.0-drawbuffer-modes'], run_concurrent
=False)
581 g(['gl-1.0-edgeflag'])
582 g(['gl-1.0-edgeflag-const'])
583 g(['gl-1.0-edgeflag-quads'])
584 g(['gl-1.0-empty-begin-end-clause'])
585 g(['gl-1.0-long-dlist'])
586 g(['gl-1.0-long-line-loop'])
587 g(['gl-1.0-readpixels-oob'])
588 g(['gl-1.0-rendermode-feedback'])
589 g(['gl-1.0-front-invalidate-back'], run_concurrent
=False)
590 g(['gl-1.0-swapbuffers-behavior'], run_concurrent
=False)
591 g(['gl-1.0-polygon-line-aa'])
592 g(['gl-1.0-push-no-attribs'])
593 g(['gl-1.0-blend-func'])
594 g(['gl-1.0-fpexceptions'])
595 g(['gl-1.0-ortho-pos'])
596 g(['gl-1.0-rastercolor'])
597 g(['gl-1.0-read-cache-stress-test'])
598 g(['gl-1.0-readpixsanity'])
599 g(['gl-1.0-logicop'])
600 g(['gl-1.0-no-op-paths'])
601 g(['gl-1.0-simple-readbuffer'])
602 g(['gl-1.0-spot-light'])
603 g(['gl-1.0-scissor-bitmap'])
604 g(['gl-1.0-scissor-clear'])
605 g(['gl-1.0-scissor-copypixels'])
606 g(['gl-1.0-scissor-depth-clear'])
607 g(['gl-1.0-scissor-depth-clear-negative-xy'])
608 g(['gl-1.0-scissor-many'])
609 g(['gl-1.0-scissor-offscreen'])
610 g(['gl-1.0-scissor-polygon'])
611 g(['gl-1.0-scissor-stencil-clear'])
613 g(['gl-1.0-textured-triangle'])
614 g(['gl-1.0-user-clip-all-planes'])
616 g(['depth-clear-precision-check'])
618 with profile
.test_list
.group_manager(
620 grouptools
.join('spec', '!opengl 1.1')) as g
:
621 # putting slower tests first
622 g(['streaming-texture-leak'])
623 g(['max-texture-size'])
624 g(['max-texture-size-level'])
625 g(['copyteximage', '1D'])
626 g(['copyteximage', '2D'])
627 g(['gl-1.1-color-material-array'])
628 g(['gl-1.1-color-material-unused-normal-array'])
629 g(['gl-1.1-draw-arrays-start'])
630 g(['gl-1.1-read-pixels-after-display-list'])
631 g(['gl-1.1-set-vertex-color-after-draw'])
633 g(['clear-accum'], run_concurrent
=False)
635 g(['copypixels-draw-sync'])
636 g(['copypixels-sync'])
637 g(['degenerate-prims'])
639 g(['depthrange-clear'])
641 g(['dlist-color-material'])
642 g(['dlist-fdo3129-01'])
643 g(['dlist-fdo3129-02'])
644 g(['dlist-fdo31590'])
645 g(['draw-arrays-colormaterial'])
646 g(['draw-copypixels-sync'])
647 g(['draw-pixel-with-texture'])
651 g(['fragment-center'])
652 g(['geterror-invalid-enum'])
653 g(['geterror-inside-begin'])
656 g(['gl-1.1-xor-copypixels'])
657 g(['gl-1.2-texture-base-level'])
658 g(['gl-1.3-alpha_to_coverage_nop'])
660 g(['infinite-spot-light'])
662 g(['line-flat-clip-color'])
664 g(['lineloop', '-dlist'], 'lineloop-dlist')
665 g(['linestipple'], run_concurrent
=False)
667 g(['masked-clear'], run_concurrent
=False)
668 g(['point-line-no-cull'])
670 g(['polygon-mode-facing'])
671 g(['polygon-mode-offset'])
672 g(['polygon-offset'])
673 g(['ppgtt_memory_alignment'])
674 g(['push-pop-texture-state'])
675 g(['quad-invariance'])
677 g(['roundmode-getintegerv'])
678 g(['roundmode-pixelstore'])
679 g(['select', 'gl11'], 'GL_SELECT - no test function')
680 g(['select', 'depth'], 'GL_SELECT - depth-test enabled')
681 g(['select', 'stencil'], 'GL_SELECT - stencil-test enabled')
682 g(['select', 'alpha'], 'GL_SELECT - alpha-test enabled')
683 g(['select', 'scissor'], 'GL_SELECT - scissor-test enabled')
684 g(['stencil-drawpixels'])
686 g(['two-sided-lighting'])
688 g(['varray-disabled'])
690 g(['copyteximage-border'])
691 g(['copyteximage-clipping'])
692 g(['copytexsubimage'])
693 g(['getteximage-formats'])
694 g(['getteximage-luminance'])
695 g(['getteximage-simple'])
696 g(['getteximage-depth'])
697 g(['incomplete-texture', 'fixed'], 'incomplete-texture-fixed')
699 g(['sized-texture-format-channels'])
702 g(['texsubimage-unpack'])
703 g(['texsubimage-depth-formats'])
705 g(['triangle-guardband-viewport'])
706 g(['getteximage-targets', '1D'])
707 g(['getteximage-targets', '2D'])
708 g(['teximage-scale-bias'])
709 g(['tex-upside-down-miptree'])
710 g(['vertex-fallbacks'])
712 for prim
in ['GL_POINTS', 'GL_LINE_LOOP', 'GL_LINE_STRIP', 'GL_LINES',
713 'GL_TRIANGLES', 'GL_TRIANGLE_STRIP', 'GL_TRIANGLE_FAN',
714 'GL_QUADS', 'GL_QUAD_STRIP', 'GL_POLYGON']:
715 for mode
in ['varray', 'vbo']:
716 g(['gl-1.1-drawarrays-vertex-count', '100000', mode
, prim
])
718 add_msaa_visual_plain_tests(g
, ['draw-pixels'])
719 add_msaa_visual_plain_tests(g
, ['read-front'], run_concurrent
=False)
720 add_msaa_visual_plain_tests(g
, ['read-front', 'clear-front-first'],
721 run_concurrent
=False)
722 add_texwrap_target_tests(g
, '1D')
723 add_texwrap_target_tests(g
, '2D')
724 add_texwrap_format_tests(g
)
727 'GL_RED', 'GL_R8', 'GL_R8_SNORM', 'GL_R16', 'GL_R16_SNORM',
728 'GL_R16F', 'GL_R32F',
730 'GL_RG', 'GL_RG8', 'GL_RG8_SNORM', 'GL_RG16', 'GL_RG16_SNORM',
731 'GL_RG16F', 'GL_RG32F',
733 'GL_RGB', 'GL_R3_G3_B2', 'GL_RGB4', 'GL_RGB5', 'GL_RGB8',
734 'GL_RGB8_SNORM', 'GL_SRGB8', 'GL_RGB10', 'GL_R11F_G11F_B10F',
735 'GL_RGB12', 'GL_RGB9_E5', 'GL_RGB16', 'GL_RGB16F',
736 'GL_RGB16_SNORM', 'GL_RGB32F',
738 'GL_RGBA', 'GL_RGBA2', 'GL_RGBA4', 'GL_RGB5_A1', 'GL_RGBA8',
739 'GL_RGB10_A2', 'GL_RGBA8_SNORM', 'GL_SRGB8_ALPHA8', 'GL_RGBA12',
740 'GL_RGBA16', 'GL_RGBA16_SNORM', 'GL_RGBA32F',
742 'GL_ALPHA', 'GL_ALPHA4', 'GL_ALPHA8', 'GL_ALPHA12', 'GL_ALPHA16',
744 'GL_LUMINANCE', 'GL_LUMINANCE4', 'GL_LUMINANCE8', 'GL_SLUMINANCE8',
745 'GL_LUMINANCE12', 'GL_LUMINANCE16',
747 'GL_LUMINANCE_ALPHA', 'GL_LUMINANCE4_ALPHA4',
748 'GL_LUMINANCE6_ALPHA2', 'GL_LUMINANCE8_ALPHA8',
749 'GL_SLUMINANCE8_ALPHA8', 'GL_LUMINANCE12_ALPHA4',
750 'GL_LUMINANCE12_ALPHA12', 'GL_LUMINANCE16_ALPHA16',
752 for format
in color_formats
:
753 g(['teximage-colors', format
])
755 for num_samples
in ['0'] + MSAA_SAMPLE_COUNTS
:
756 add_fbo_depthstencil_tests(g
, 'default_fb', num_samples
)
758 with profile
.test_list
.group_manager(
760 grouptools
.join('spec', '!opengl 1.2')) as g
:
761 g(['gl-1.2-texparameter-before-teximage'])
762 g(['draw-elements-vs-inputs'])
763 g(['two-sided-lighting-separate-specular'])
766 g(['lodclamp-between'])
767 g(['lodclamp-between-max'])
769 g(['gl-1.2-rescale-normal'])
770 g(['tex-skipped-unit'])
772 g(['tex3d-maxsize'], run_concurrent
=False)
773 g(['teximage-errors'])
774 g(['texture-packed-formats'])
775 g(['getteximage-targets', '3D'])
776 add_msaa_visual_plain_tests(g
, ['copyteximage', '3D'])
777 add_texwrap_target_tests(g
, '3D')
779 with profile
.test_list
.group_manager(
781 grouptools
.join('spec', '!opengl 1.3')) as g
:
784 g(['gl-1.3-texture-env'])
787 with profile
.test_list
.group_manager(
789 grouptools
.join('spec', '!opengl 1.4')) as g
:
790 g(['gl-1.4-rgba-mipmap-texture-with-rgb-visual'])
793 g(['gl-1.4-dlist-multidrawarrays'])
794 g(['gl-1.4-multidrawarrays-errors'])
795 g(['gl-1.4-polygon-offset'])
796 g(['gl-1.4-tex1d-2dborder'])
799 g(['triangle-rasterization'])
800 g(['triangle-rasterization', '-use_fbo'], 'triangle-rasterization-fbo')
801 g(['triangle-rasterization-overdraw'])
802 g(['tex-miplevel-selection', '-nobias', '-nolod'],
803 'tex-miplevel-selection')
804 g(['tex-miplevel-selection', '-nobias'], 'tex-miplevel-selection-lod')
805 g(['tex-miplevel-selection'], 'tex-miplevel-selection-lod-bias')
806 add_msaa_visual_plain_tests(g
, ['copy-pixels'])
808 with profile
.test_list
.group_manager(
810 grouptools
.join('spec', '!opengl 1.5')) as g
:
812 g(['draw-elements', 'user'], 'draw-elements-user')
814 g(['draw-vertices', 'user'], 'draw-vertices-user')
816 g(['depth-tex-compare'])
817 g(['gl-1.5-get-array-attribs'])
818 g(['gl-1.5-normal3b3s-invariance', 'GL_BYTE'],
819 'normal3b3s-invariance-byte')
820 g(['gl-1.5-normal3b3s-invariance', 'GL_SHORT'],
821 'normal3b3s-invariance-short')
822 g(['gl-1.5-vertex-buffer-offsets'], 'vertex-buffer-offsets')
824 with profile
.test_list
.group_manager(
826 grouptools
.join('spec', '!opengl 2.0')) as g
:
828 g(['gl-2.0-edgeflag'])
829 g(['gl-2.0-edgeflag-immediate'])
830 g(['gl-2.0-large-point-fs'])
831 g(['gl-2.0-link-empty-prog'])
832 g(['gl-2.0-two-sided-stencil'])
833 g(['gl-2.0-vertexattribpointer'])
834 g(['gl-2.0-vertexattribpointer-size-3'])
835 g(['gl-2.0-vertex-attr-0'])
836 g(['gl-2.0-vertex-const-attr'])
837 g(['gl-2.0-reuse_fragment_shader'])
838 g(['gl-2.0-shader-materials'])
839 g(['attrib-assignments'])
840 g(['getattriblocation-conventional'])
841 g(['clip-flag-behavior'])
842 g(['vertex-program-two-side', 'enabled', 'front', 'back', 'front2',
844 g(['vertex-program-two-side', 'enabled', 'front', 'back', 'front2'])
845 g(['vertex-program-two-side', 'enabled', 'front', 'back', 'back2'])
846 g(['vertex-program-two-side', 'enabled', 'front', 'back'])
847 g(['vertex-program-two-side', 'enabled', 'front', 'front2', 'back2'])
848 g(['vertex-program-two-side', 'enabled', 'front', 'front2'])
849 g(['vertex-program-two-side', 'enabled', 'front', 'back2'])
850 g(['vertex-program-two-side', 'enabled', 'front'])
851 g(['vertex-program-two-side', 'enabled', 'back', 'front2', 'back2'])
852 g(['vertex-program-two-side', 'enabled', 'back', 'front2'])
853 g(['vertex-program-two-side', 'enabled', 'back', 'back2'])
854 g(['vertex-program-two-side', 'enabled', 'back'])
855 g(['vertex-program-two-side', 'enabled', 'front2', 'back2'])
856 g(['vertex-program-two-side', 'enabled', 'front2'])
857 g(['vertex-program-two-side', 'enabled', 'back2'])
858 g(['vertex-program-two-side', 'enabled'])
859 g(['vertex-program-two-side', 'front', 'back', 'front2', 'back2'])
860 g(['vertex-program-two-side', 'front', 'back', 'front2'])
861 g(['vertex-program-two-side', 'front', 'back', 'back2'])
862 g(['vertex-program-two-side', 'front', 'back'])
863 g(['vertex-program-two-side', 'front', 'front2', 'back2'])
864 g(['vertex-program-two-side', 'front', 'front2'])
865 g(['vertex-program-two-side', 'front', 'back2'])
866 g(['vertex-program-two-side', 'front'])
867 g(['vertex-program-two-side', 'back', 'front2', 'back2'])
868 g(['vertex-program-two-side', 'back', 'front2'])
869 g(['vertex-program-two-side', 'back', 'back2'])
870 g(['vertex-program-two-side', 'back'])
871 g(['vertex-program-two-side', 'front2', 'back2'])
872 g(['vertex-program-two-side', 'front2'])
873 g(['vertex-program-two-side', 'back2'])
874 g(['vertex-program-two-side'])
875 g(['clear-varray-2.0'])
877 g(['occlusion-query-discard'])
878 g(['stencil-twoside'])
879 g(['vs-point_size-zero'])
880 g(['depth-tex-modes-glsl'])
881 g(['fragment-and-vertex-texturing'])
882 g(['incomplete-texture', 'glsl'], 'incomplete-texture-glsl')
885 g(['max-samplers', 'border'])
886 g(['gl-2.0-active-sampler-conflict'])
887 g(['incomplete-cubemap', 'size'], 'incomplete-cubemap-size')
888 g(['incomplete-cubemap', 'format'], 'incomplete-cubemap-format')
889 g(['gl-2.0-texture-units'])
890 g(['gl-2.0-uniform-neg-location'])
891 g(['shadersource-errors'])
893 with profile
.test_list
.group_manager(
895 grouptools
.join('spec', '!opengl 2.1')) as g
:
896 g(['gl-2.1-minmax'], 'minmax')
897 g(['gl-2.1-pbo'], 'pbo')
898 g(['gl-2.1-polygon-stipple-fs'], 'polygon-stipple-fs')
899 g(['gl-2.1-fbo-mrt-alphatest-no-buffer-zero-write'], 'fbo-mrt-alphatest-no-buffer-zero-write')
901 with profile
.test_list
.group_manager(
903 grouptools
.join('spec', '!opengl 3.0')) as g
:
904 g(['attribs', 'GL3'], 'attribs')
905 g(['bindfragdata-invalid-parameters'])
906 g(['bindfragdata-link-error'])
907 g(['bindfragdata-nonexistent-variable'])
908 g(['gl-3.0-bound-resource-limits'],
909 'bound-resource-limits')
910 g(['clearbuffer-depth'])
911 g(['clearbuffer-depth-cs-probe'])
912 g(['clearbuffer-depth-stencil'])
913 g(['clearbuffer-display-lists'])
914 g(['clearbuffer-invalid-drawbuffer'])
915 g(['clearbuffer-invalid-buffer'])
916 g(['clearbuffer-mixed-format'])
917 g(['clearbuffer-stencil'])
918 g(['clearbuffer-bug'])
919 g(['gl-3.0-dlist-uint-uniforms'],
920 'dlist-uint-uniforms')
921 g(['genmipmap-errors'])
922 g(['getfragdatalocation'])
923 g(['integer-errors'])
924 g(['gl-3.0-multidrawarrays-vertexid'],
925 'gl_VertexID used with glMultiDrawArrays')
926 g(['gl-3.0-minmax'], 'minmax')
927 g(['gl-3.0-render-integer'], 'render-integer')
928 g(['gl-3.0-required-sized-texture-formats', '30'],
929 'required-sized-texture-formats')
930 g(['gl-3.0-required-renderbuffer-attachment-formats', '30'],
931 'required-renderbuffer-attachment-formats')
932 g(['gl-3.0-required-texture-attachment-formats', '30'],
933 'required-texture-attachment-formats')
934 g(['gl-3.0-forward-compatible-bit', 'yes'],
935 'forward-compatible-bit yes')
936 g(['gl-3.0-forward-compatible-bit', 'no'],
937 'forward-compatible-bit no')
938 g(['gl-3.0-texparameteri'])
939 g(['gl-3.0-texture-integer'])
940 g(['gl-3.0-vertexattribipointer'])
941 g(['gl30basic'], run_concurrent
=False)
942 g(['array-depth-roundtrip'])
943 g(['depth-cube-map'])
944 g(['sampler-cube-shadow'])
945 g(['generatemipmap-base-change', 'size'])
946 g(['generatemipmap-base-change', 'format'])
947 g(['generatemipmap-cubemap'])
948 g(['viewport-clamp'])
950 with profile
.test_list
.group_manager(
952 grouptools
.join('spec', '!opengl 3.1')) as g
:
953 g(['gl-3.1-buffer-bindings'], 'buffer-bindings')
954 g(['gl-3.1-default-vao'], 'default-vao')
955 g(['gl-3.1-draw-buffers-errors'], 'draw-buffers-errors')
956 g(['gl-3.1-enable-vertex-array'])
957 g(['gl-3.1-genned-names'], 'genned-names')
958 g(['gl-3.1-link-empty-prog-core'])
959 g(['gl-3.1-minmax'], 'minmax')
960 g(['gl-3.1-mixed-int-float-fbo'])
961 g(['gl-3.1-mixed-int-float-fbo', 'int_second'])
962 g(['gl-3.1-vao-broken-attrib'], 'vao-broken-attrib')
963 g(['gl-3.0-required-renderbuffer-attachment-formats', '31'],
964 'required-renderbuffer-attachment-formats')
965 g(['gl-3.0-required-sized-texture-formats', '31'],
966 'required-sized-texture-formats')
967 g(['gl-3.0-required-texture-attachment-formats', '31'],
968 'required-texture-attachment-formats')
969 for subtest
in ['generated', 'written', 'flush']:
970 g(['gl-3.1-primitive-restart-xfb', subtest
],
971 'primitive-restart-xfb {0}'.format(subtest
))
973 with profile
.test_list
.group_manager(
975 grouptools
.join('spec', '!opengl 3.2')) as g
:
976 g(['glsl-resource-not-bound', '1D'])
977 g(['glsl-resource-not-bound', '2D'])
978 g(['glsl-resource-not-bound', '3D'])
979 g(['glsl-resource-not-bound', '2DRect'])
980 g(['glsl-resource-not-bound', '1DArray'])
981 g(['glsl-resource-not-bound', '2DArray'])
982 g(['glsl-resource-not-bound', '2DMS'])
983 g(['glsl-resource-not-bound', '2DMSArray'])
984 g(['glsl-resource-not-bound', 'Buffer'])
985 g(['glsl-resource-not-bound', 'Cube'])
986 g(['gl-3.2-basevertex-vertexid'],
987 'gl_VertexID used with glMultiDrawElementsBaseVertex')
988 g(['gl-3.2-minmax'], 'minmax')
989 g(['gl-3.2-adj-prims', 'pv-first'])
990 g(['gl-3.2-adj-prims', 'pv-last'])
991 g(['gl-3.2-adj-prims', 'cull-front', 'pv-first'])
992 g(['gl-3.2-adj-prims', 'cull-front', 'pv-last'])
993 g(['gl-3.2-adj-prims', 'cull-back', 'pv-first'])
994 g(['gl-3.2-adj-prims', 'cull-back', 'pv-last'])
995 g(['gl-3.2-adj-prims', 'line', 'cull-front', 'pv-first'])
996 g(['gl-3.2-adj-prims', 'line', 'cull-front', 'pv-last'])
997 g(['gl-3.2-adj-prims', 'line', 'cull-back', 'pv-first'])
998 g(['gl-3.2-adj-prims', 'line', 'cull-back', 'pv-last'])
999 g(['gl-3.2-clear-no-buffers'], 'clear-no-buffers')
1000 g(['gl-3.2-depth-tex-sampling'], 'depth-tex-sampling')
1001 g(['gl-3.2-get-buffer-parameter-i64v'], 'get-buffer-parameter-i64v')
1002 g(['gl-3.2-get-integer-64iv'], 'get-integer-64iv')
1003 g(['gl-3.2-get-integer-64v'], 'get-integer-64v')
1004 g(['gl-3.2-pointsprite-coord'], 'pointsprite-coord')
1005 g(['gl-3.2-pointsprite-origin'], 'pointsprite-origin')
1006 g(['gl-coord-replace-doesnt-eliminate-frag-tex-coords'],
1007 'coord-replace-doesnt-eliminate-frag-tex-coords')
1008 g(['gl-get-active-attrib-returns-all-inputs'],
1009 'get-active-attrib-returns-all-inputs')
1010 g(['gl-3.2-texture-border-deprecated'], 'texture-border-deprecated')
1012 with profile
.test_list
.group_manager(
1014 grouptools
.join('spec', '!opengl 3.2', 'layered-rendering')) as g
:
1015 g(['gl-3.2-layered-rendering-blit'], 'blit')
1016 g(['gl-3.2-layered-rendering-clear-color'], 'clear-color')
1017 g(['gl-3.2-layered-rendering-clear-color-mismatched-layer-count'],
1018 'clear-color-mismatched-layer-count')
1019 g(['gl-3.2-layered-rendering-clear-depth'], 'clear-depth')
1020 g(['gl-3.2-layered-rendering-framebuffertexture'], 'framebuffertexture')
1021 g(['gl-3.2-layered-rendering-framebuffertexture-buffer-textures'],
1022 'framebuffertexture-buffer-textures')
1023 g(['gl-3.2-layered-rendering-framebuffertexture-defaults'],
1024 'framebuffertexture-defaults')
1025 g(['gl-3.2-layered-rendering-readpixels'], 'readpixels')
1026 g(['gl-3.2-layered-rendering-framebuffer-layer-attachment-mismatch'],
1027 'framebuffer-layer-attachment-mismatch')
1028 g(['gl-3.2-layered-rendering-framebuffer-layer-complete'],
1029 'framebuffer-layer-complete')
1030 g(['gl-3.2-layered-rendering-framebuffer-layer-count-mismatch'],
1031 'framebuffer-layer-count-mismatch')
1032 g(['gl-3.2-layered-rendering-framebuffer-layered-attachments'],
1033 'framebuffer-layered-attachments')
1034 g(['gl-3.2-layered-rendering-gl-layer'], 'gl-layer')
1035 g(['gl-3.2-layered-rendering-gl-layer-cube-map'], 'gl-layer-cube-map')
1036 g(['gl-3.2-layered-rendering-gl-layer-not-layered'],
1037 'gl-layer-not-layered')
1038 g(['gl-3.2-layered-rendering-gl-layer-render'], 'gl-layer-render')
1039 g(['gl-3.2-layered-rendering-gl-layer-render-clipped'], 'gl-layer-render-clipped')
1040 g(['gl-3.2-layered-rendering-gl-layer-render-storage'], 'gl-layer-render-storage')
1042 for texture_type
in ['3d', '2d_array', '2d_multisample_array', '1d_array',
1043 'cube_map', 'cube_map_array']:
1044 for test_type
in ['single_level', 'mipmapped']:
1045 if texture_type
== '2d_multisample_array' and \
1046 test_type
== 'mipmapped':
1048 g(['gl-3.2-layered-rendering-clear-color-all-types', texture_type
,
1050 'clear-color-all-types {} {}'.format(texture_type
, test_type
))
1052 with profile
.test_list
.group_manager(
1054 grouptools
.join('spec', '!opengl 3.3')) as g
:
1055 g(['gl-3.3-minmax'], 'minmax')
1056 g(['gl-3.0-required-renderbuffer-attachment-formats', '33'],
1057 'required-renderbuffer-attachment-formats')
1058 g(['gl-3.0-required-sized-texture-formats', '33'],
1059 'required-sized-texture-formats')
1060 g(['gl-3.0-required-texture-attachment-formats', '33'],
1061 'required-texture-attachment-formats')
1063 with profile
.test_list
.group_manager(
1065 grouptools
.join('spec', '!opengl 4.2')) as g
:
1066 g(['gl-3.0-required-renderbuffer-attachment-formats', '42'],
1067 'required-renderbuffer-attachment-formats')
1068 g(['gl-3.0-required-sized-texture-formats', '42'],
1069 'required-sized-texture-formats')
1070 g(['gl-3.0-required-texture-attachment-formats', '42'],
1071 'required-texture-attachment-formats')
1072 g(['gl-4.4-max_vertex_attrib_stride'], 'gl-max-vertex-attrib-stride')
1074 with profile
.test_list
.group_manager(
1076 grouptools
.join('spec', '!opengl 4.5')) as g
:
1077 g(['gl-4.5-named-framebuffer-draw-buffers-errors'], 'named-framebuffer-draw-buffers-errors')
1078 g(['gl-4.5-named-framebuffer-read-buffer-errors'], 'named-framebuffer-read-buffer-errors')
1079 g(['gl-4.5-compare-framebuffer-parameter-with-get'], 'compare-framebuffer-parameter-with-get')
1081 with profile
.test_list
.group_manager(
1083 grouptools
.join('spec', '!opengl 4.3')) as g
:
1084 g(['gl-4.3-get_glsl_versions'], 'get_glsl_version')
1086 with profile
.test_list
.group_manager(
1088 grouptools
.join('spec', '!opengl 4.4')) as g
:
1091 # Group spec/glsl-es-1.00
1092 with profile
.test_list
.group_manager(
1093 BuiltInConstantsTest
,
1094 grouptools
.join('spec', 'glsl-es-1.00')) as g
:
1095 g(['built-in-constants_gles2',
1096 os
.path
.join('spec', 'glsl-es-1.00', 'minimum-maximums.txt')],
1097 'built-in constants')
1099 with profile
.test_list
.group_manager(
1101 grouptools
.join('spec', 'glsl-es-1.00', 'linker')) as g
:
1102 g(['glsl-es-1.00-fface-invariant'], 'glsl-fface-invariant')
1104 # Group spec/glsl-1.10
1105 with profile
.test_list
.group_manager(
1107 grouptools
.join('spec', 'glsl-1.10', 'execution')) as g
:
1108 g(['glsl-render-after-bad-attach'])
1109 g(['glsl-1.10-built-in-matrix-state'])
1110 g(['glsl-1.10-built-in-uniform-state'])
1111 g(['glsl-1.10-fragdepth'])
1112 g(['glsl-1.10-linear-fog'])
1113 g(['glsl-1.10-uniform-matrix-transposed'])
1115 with profile
.test_list
.group_manager(
1117 grouptools
.join('spec', 'glsl-1.10', 'execution', 'clipping')) as g
:
1118 for mode
in ['fixed', 'pos_clipvert', 'clipvert_pos']:
1119 g(['clip-plane-transformation', mode
],
1120 'clip-plane-transformation {}'.format(mode
))
1122 with profile
.test_list
.group_manager(
1124 grouptools
.join('spec', 'glsl-1.10', 'execution',
1125 'varying-packing')) as g
:
1126 for type_
in ['int', 'uint', 'float', 'vec2', 'vec3', 'vec4', 'ivec2',
1127 'ivec3', 'ivec4', 'uvec2', 'uvec3', 'uvec4', 'mat2', 'mat3',
1128 'mat4', 'mat2x3', 'mat2x4', 'mat3x2', 'mat3x4', 'mat4x2',
1130 for arrayspec
in ['array', 'separate', 'arrays_of_arrays']:
1131 g(['varying-packing-simple', type_
, arrayspec
],
1132 'simple {} {}'.format(type_
, arrayspec
))
1134 with profile
.test_list
.group_manager(
1135 BuiltInConstantsTest
,
1136 grouptools
.join('spec', 'glsl-1.10')) as g
:
1137 g(['built-in-constants',
1138 os
.path
.join('spec', 'glsl-1.10', 'minimum-maximums.txt')],
1139 'built-in constants')
1141 with profile
.test_list
.group_manager(
1143 grouptools
.join('spec', 'glsl-1.10', 'api')) as g
:
1144 g(['getactiveattrib', '110'], 'getactiveattrib 110')
1146 # Group spec/glsl-1.20
1147 with profile
.test_list
.group_manager(
1149 grouptools
.join('spec', 'glsl-1.20')) as g
:
1150 g(['glsl-1.20-getactiveuniform-constant'])
1151 g(['glsl-1.20-negative-mult-matNxN-matNxN'])
1152 g(['built-in-constants',
1153 os
.path
.join('spec', 'glsl-1.20', 'minimum-maximums.txt')],
1154 'built-in constants',
1155 override_class
=BuiltInConstantsTest
)
1157 with profile
.test_list
.group_manager(
1159 grouptools
.join('spec', 'glsl-1.20', 'api')) as g
:
1160 g(['getactiveattrib', '120'])
1162 with profile
.test_list
.group_manager(
1164 grouptools
.join('spec', 'glsl-1.20', 'recursion')) as g
:
1165 g(['recursion', '-rlmit', '268435456', 'simple'], 'simple',
1166 run_concurrent
=False)
1167 g(['recursion', '-rlmit', '268435456', 'unreachable'], 'unreachable',
1168 run_concurrent
=False)
1169 g(['recursion', '-rlmit', '268435456', 'unreachable-constant-folding'],
1170 'unreachable-constant-folding', run_concurrent
=False)
1171 g(['recursion', '-rlmit', '268435456', 'indirect'], 'indirect',
1172 run_concurrent
=False)
1173 g(['recursion', '-rlmit', '268435456', 'indirect-separate'],
1174 'indirect-separate', run_concurrent
=False)
1175 g(['recursion', '-rlmit', '268435456', 'indirect-complex'],
1176 'indirect-complex', run_concurrent
=False)
1177 g(['recursion', '-rlmit', '268435456', 'indirect-complex-separate'],
1178 'indirect-complex-separate', run_concurrent
=False)
1180 with profile
.test_list
.group_manager(
1182 grouptools
.join('spec', 'glsl-1.20', 'execution')) as g
:
1183 for test
in ['1D', '2D', '3D', 'Cube', '1DShadow', '2DShadow']:
1184 g(['tex-miplevel-selection', 'GL2:texture()', test
])
1185 g(['tex-miplevel-selection', 'GL2:texture(bias)', test
])
1187 for test
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
1189 g(['tex-miplevel-selection', 'GL2:textureProj', test
])
1190 g(['tex-miplevel-selection', 'GL2:textureProj(bias)', test
])
1192 textureSize_samplers_130
= [
1193 'sampler1D', 'sampler2D', 'sampler3D', 'samplerCube', 'sampler1DShadow',
1194 'sampler2DShadow', 'samplerCubeShadow', 'sampler1DArray', 'sampler2DArray',
1195 'sampler1DArrayShadow', 'sampler2DArrayShadow', 'isampler1D', 'isampler2D',
1196 'isampler3D', 'isamplerCube', 'isampler1DArray', 'isampler2DArray',
1197 'usampler1D', 'usampler2D', 'usampler3D', 'usamplerCube',
1198 'usampler1DArray', 'usampler2DArray']
1199 textureSize_samplers_gpu_shader4
= [
1200 'sampler1D', 'sampler2D', 'sampler3D', 'samplerCube',
1201 'sampler1DArray', 'sampler2DArray',
1202 'isampler1D', 'isampler2D',
1203 'isampler3D', 'isamplerCube', 'isampler1DArray', 'isampler2DArray',
1204 'usampler1D', 'usampler2D', 'usampler3D', 'usamplerCube',
1205 'usampler1DArray', 'usampler2DArray']
1206 for stage
in ['vs', 'gs', 'fs']:
1213 # These will be added in the textureSize_samplers_140 loop for gs, because
1214 # it is a special case and is actually 1.50 feature.
1215 # Despite the differences in the commands lines of the two lists (this one
1216 # does not add '140', the two tests are equivalent.
1218 for sampler
in textureSize_samplers_130
:
1219 profile
.test_list
[grouptools
.join(
1220 'spec', 'glsl-{}'.format(version
), 'execution', 'textureSize',
1221 '{}-textureSize-{}'.format(stage
, sampler
))] = PiglitGLTest(
1222 ['textureSize', stage
, sampler
])
1223 for sampler
in textureSize_samplers_gpu_shader4
:
1224 profile
.test_list
[grouptools
.join(
1225 'spec', 'ext_gpu_shader4', 'execution', 'textureSize',
1226 '{}-textureSize-{}'.format(stage
, sampler
))] = PiglitGLTest(
1227 ['textureSize', 'gpu_shader4', stage
, sampler
])
1230 for sampler
in ['sampler1D', 'sampler2D', 'sampler3D', 'sampler1DArray',
1231 'sampler2DArray', 'isampler1D', 'isampler2D', 'isampler3D',
1232 'isampler1DArray', 'isampler2DArray', 'usampler1D',
1233 'usampler2D', 'usampler3D', 'usampler1DArray',
1235 profile
.test_list
[grouptools
.join(
1236 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetch',
1237 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1238 ['texelFetch', stage
, sampler
])
1239 profile
.test_list
[grouptools
.join(
1240 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetchOffset',
1241 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1242 ['texelFetch', 'offset', stage
, sampler
])
1244 profile
.test_list
[grouptools
.join(
1245 'spec', 'ext_gpu_shader4', 'execution', 'texelFetch',
1246 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1247 ['texelFetch', 'gpu_shader4', stage
, sampler
])
1248 profile
.test_list
[grouptools
.join(
1249 'spec', 'ext_gpu_shader4', 'execution', 'texelFetchOffset',
1250 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1251 ['texelFetch', 'gpu_shader4', 'offset', stage
, sampler
])
1254 # texelFetch() with EXT_texture_swizzle mode "b0r1":
1255 for type in ['i', 'u', '']:
1256 profile
.test_list
[grouptools
.join(
1257 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetch',
1258 '{}-texelFetch-{}sampler2Darray-swizzle'.format(stage
, type))] = \
1259 PiglitGLTest(['texelFetch', stage
, '{}sampler2DArray'.format(type),
1262 for type in ('i', 'u', ''):
1263 for sampler
in ('sampler2DMS', 'sampler2DMSArray'):
1264 for sample_count
in MSAA_SAMPLE_COUNTS
:
1265 stype
= '{}{}'.format(type, sampler
)
1266 profile
.test_list
[grouptools
.join(
1267 'spec', 'arb_shader_texture_image_samples',
1268 'textureSamples', '{}-{}-{}'.format(stage
, stype
, sample_count
))
1270 'textureSamples', stage
, stype
, sample_count
])
1272 with profile
.test_list
.group_manager(
1274 grouptools
.join('spec', 'glsl-1.30')) as g
:
1275 g(['glsl-1.30-texel-offset-limits'], 'texel-offset-limits')
1276 g(['built-in-constants',
1277 os
.path
.join('spec', 'glsl-1.30', 'minimum-maximums.txt')],
1278 'built-in constants',
1279 override_class
=BuiltInConstantsTest
)
1281 with profile
.test_list
.group_manager(
1283 grouptools
.join('spec', 'glsl-1.30', 'execution')) as g
:
1284 g(['texelFetch', 'fs', 'sampler1D', '1-513'])
1285 g(['texelFetch', 'fs', 'sampler1DArray', '1x71-501x71'])
1286 g(['texelFetch', 'fs', 'sampler1DArray', '1x281-501x281'])
1287 g(['texelFetch', 'fs', 'sampler1DArray', '71x1-71x281'])
1288 g(['texelFetch', 'fs', 'sampler1DArray', '281x1-281x281'])
1289 g(['texelFetch', 'fs', 'sampler2D', '1x71-501x71'])
1290 g(['texelFetch', 'fs', 'sampler2D', '1x281-501x281'])
1291 g(['texelFetch', 'fs', 'sampler2D', '71x1-71x281'])
1292 g(['texelFetch', 'fs', 'sampler2D', '281x1-281x281'])
1293 g(['texelFetch', 'fs', 'sampler3D', '1x129x9-98x129x9'])
1294 g(['texelFetch', 'fs', 'sampler3D', '98x1x9-98x129x9'])
1295 g(['texelFetch', 'fs', 'sampler3D', '98x129x1-98x129x9'])
1296 g(['texelFetch', 'fs', 'sampler2DArray', '1x129x9-98x129x9'])
1297 g(['texelFetch', 'fs', 'sampler2DArray', '98x1x9-98x129x9'])
1298 g(['texelFetch', 'fs', 'sampler2DArray', '98x129x1-98x129x9'])
1299 g(['fs-texelFetch-2D'])
1300 g(['fs-texelFetchOffset-2D'])
1301 g(['fs-textureOffset-2D'])
1302 g(['fs-discard-exit-2'])
1303 g(['vertexid-beginend'])
1304 g(['vertexid-drawarrays'])
1305 g(['vertexid-drawelements'])
1306 g(['fs-execution-ordering'])
1308 for stage
in ['1D', '2D', '3D', 'Cube', '1DShadow', '2DShadow', '1DArray',
1309 '2DArray', '1DArrayShadow', 'CubeArray']:
1310 g(['tex-miplevel-selection', 'textureLod', stage
])
1312 for stage
in ['1D', '2D', '3D', 'Cube', '1DShadow', '2DShadow',
1313 'CubeShadow', '1DArray', '2DArray', 'CubeArray',
1315 g(['tex-miplevel-selection', 'texture(bias)', stage
])
1317 for stage
in ['1D', '2D', '3D', 'Cube', '1DShadow', '2DShadow',
1318 'CubeShadow', '1DArray', '2DArray', 'CubeArray',
1319 '1DArrayShadow', '2DArrayShadow', '2DRect', '2DRectShadow',
1321 g(['tex-miplevel-selection', 'texture()', stage
])
1323 for stage
in ['1D', '2D', '3D', '2DRect', '2DRectShadow', '1DShadow',
1324 '2DShadow', '1DArray', '2DArray', '1DArrayShadow',
1326 g(['tex-miplevel-selection', 'textureOffset', stage
])
1328 for stage
in ['1D', '2D', '3D', '1DShadow', '2DShadow', '1DArray',
1329 '2DArray', '1DArrayShadow']:
1330 g(['tex-miplevel-selection', 'textureOffset(bias)', stage
])
1332 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
1333 '2DShadow', '2DRect', '2DRect_ProjVec4', '2DRectShadow']:
1334 g(['tex-miplevel-selection', 'textureProj', stage
])
1336 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
1338 g(['tex-miplevel-selection', 'textureProj(bias)', stage
])
1340 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '2DRect',
1341 '2DRect_ProjVec4', '2DRectShadow', '1DShadow', '2DShadow']:
1342 g(['tex-miplevel-selection', 'textureProjOffset', stage
])
1344 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
1346 g(['tex-miplevel-selection', 'textureProjOffset(bias)', stage
])
1348 for stage
in ['1D', '2D', '3D', '1DShadow', '2DShadow', '1DArray',
1349 '2DArray', '1DArrayShadow']:
1350 g(['tex-miplevel-selection', 'textureLodOffset', stage
])
1352 for stage
in ['1D', '2D', '3D', '1D_ProjVec4', '2D_ProjVec4', '1DShadow',
1354 g(['tex-miplevel-selection', 'textureProjLod', stage
])
1355 g(['tex-miplevel-selection', 'textureProjLodOffset', stage
])
1357 for stage
in ['1D', '2D', '3D', 'Cube', '2DRect', '2DRectShadow',
1358 '1DShadow', '2DShadow', 'CubeShadow', '1DArray', '2DArray',
1359 '1DArrayShadow', '2DArrayShadow', 'CubeArray']:
1360 g(['tex-miplevel-selection', 'textureGrad', stage
])
1362 for stage
in ['1D', '2D', '3D', '2DRect', '2DRectShadow', '1DShadow',
1363 '2DShadow', '1DArray', '2DArray', '1DArrayShadow',
1365 g(['tex-miplevel-selection', 'textureGradOffset', stage
])
1367 for stage
in ['1D', '2D', '3D', '1D_ProjVec4', '2D_ProjVec4', '2DRect',
1368 '2DRect_ProjVec4', '1DShadow', '2DShadow', '2DRectShadow']:
1369 g(['tex-miplevel-selection', 'textureProjGrad', stage
])
1370 g(['tex-miplevel-selection', 'textureProjGradOffset', stage
])
1372 with profile
.test_list
.group_manager(
1374 grouptools
.join('spec', 'glsl-1.30', 'linker', 'clipping')) as g
:
1375 g(['mixing-clip-distance-and-clip-vertex-disallowed'])
1377 with profile
.test_list
.group_manager(
1379 grouptools
.join('spec', 'glsl-1.30', 'execution')) as g
:
1380 for arg
in ['vs_basic', 'vs_xfb', 'vs_fbo', 'fs_basic', 'fs_fbo']:
1381 g(['isinf-and-isnan', arg
])
1383 with profile
.test_list
.group_manager(
1385 grouptools
.join('spec', 'glsl-1.30', 'execution', 'clipping')) as g
:
1386 g(['max-clip-distances'])
1387 g(['clip-plane-transformation', 'pos'])
1389 with profile
.test_list
.group_manager(
1391 grouptools
.join('spec', 'glsl-1.30', 'api')) as g
:
1392 g(['getactiveattrib', '130'], 'getactiveattrib 130')
1394 # Group spec/glsl-1.40
1395 with profile
.test_list
.group_manager(
1396 BuiltInConstantsTest
,
1397 grouptools
.join('spec', 'glsl-1.40')) as g
:
1398 g(['built-in-constants',
1399 os
.path
.join('spec', 'glsl-1.40', 'minimum-maximums.txt')],
1400 'built-in constants')
1402 with profile
.test_list
.group_manager(
1404 grouptools
.join('spec', 'glsl-1.40', 'execution')) as g
:
1405 g(['glsl-1.40-tf-no-position'], 'tf-no-position')
1407 textureSize_samplers_140
= textureSize_samplers_130
+ [
1408 'sampler2DRect', 'isampler2DRect', 'sampler2DRectShadow', 'samplerBuffer',
1409 'isamplerBuffer', 'usamplerBuffer']
1410 for stage
in ['vs', 'gs', 'fs', 'tes']:
1411 if stage
== 'gs' or stage
== 'tes':
1416 for sampler
in textureSize_samplers_140
:
1417 profile
.test_list
[grouptools
.join(
1418 'spec', 'glsl-{}'.format(version
), 'execution', 'textureSize',
1419 '{}-textureSize-{}'.format(stage
, sampler
))] = PiglitGLTest(
1420 ['textureSize', '140', stage
, sampler
])
1421 for stage
in ['vs', 'gs', 'fs']:
1427 for sampler
in ['sampler2DRect', 'usampler2DRect', 'isampler2DRect']:
1428 profile
.test_list
[grouptools
.join(
1429 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetch',
1430 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1431 ['texelFetch', '140', stage
, sampler
])
1432 profile
.test_list
[grouptools
.join(
1433 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetchOffset',
1434 '{}-{}'.format(stage
, sampler
))] = PiglitGLTest(
1435 ['texelFetch', 'offset', '140', stage
, sampler
])
1437 with profile
.test_list
.group_manager(
1439 grouptools
.join('spec', 'glsl-1.50')) as g
:
1440 g(['built-in-constants',
1441 os
.path
.join('spec', 'glsl-1.50', 'minimum-maximums.txt')],
1442 'built-in constants',
1443 override_class
=BuiltInConstantsTest
)
1444 g(['built-in-constants',
1445 os
.path
.join('spec', 'glsl-1.50', 'minimum-maximums-compat.txt')],
1446 'built-in constants compatibility',
1447 override_class
=BuiltInConstantsTest
)
1448 g(['glsl-1.50-gs-emits-too-few-verts'], 'gs-emits-too-few-verts')
1449 g(['glsl-1.50-geometry-end-primitive-optional-with-points-out'],
1450 'gs-end-primitive-optional-with-points-out')
1451 g(['glsl-1.50-gs-max-output', '-scan', '1', '20'], 'gs-max-output')
1452 g(['glsl-1.50-gs-max-output-components'], 'gs-max-output-components')
1453 g(['glsl-1.50-getshaderiv-may-return-GS'], 'getshaderiv-may-return-GS')
1454 g(['glsl-1.50-query-gs-prim-types'], 'query-gs-prim-types')
1455 g(['glsl-1.50-transform-feedback-type-and-size'],
1456 'transform-feedback-type-and-size')
1457 g(['glsl-1.50-transform-feedback-vertex-id'],
1458 'transform-feedback-vertex-id')
1459 g(['glsl-1.50-transform-feedback-builtins'], 'transform-feedback-builtins')
1461 for draw
in ['', 'indexed']:
1462 for prim
in ['GL_LINES_ADJACENCY', 'GL_LINE_STRIP_ADJACENCY',
1463 'GL_TRIANGLES_ADJACENCY', 'GL_TRIANGLE_STRIP_ADJACENCY']:
1464 g(['arb_geometry_shader4-ignore-adjacent-vertices',
1465 'core', draw
, prim
], run_concurrent
=False)
1467 for subtest
in ['unnamed', 'named', 'array']:
1468 g(['glsl-1.50-interface-block-centroid', subtest
])
1470 for layout_type
in ['points', 'lines', 'lines_adjacency', 'triangles',
1471 'triangles_adjacency']:
1472 g(['glsl-1.50-gs-mismatch-prim-type', layout_type
])
1474 for layout
in ['points', 'lines', 'lines_adjacency', 'triangles',
1475 'triangles_adjacency', 'line_strip', 'triangle_strip']:
1476 g(['glsl-1.50-gs-input-layout-qualifiers', layout
])
1477 g(['glsl-1.50-gs-output-layout-qualifiers', layout
])
1479 with profile
.test_list
.group_manager(
1481 grouptools
.join('spec', 'glsl-1.50', 'execution')) as g
:
1482 g(['glsl-1.50-get-active-attrib-array'], 'get-active-attrib-array')
1483 g(['glsl-1.50-interface-blocks-api-access-members'],
1484 'interface-blocks-api-access-members')
1485 g(['glsl-1.50-vs-input-arrays'], 'vs-input-arrays')
1486 g(['glsl-1.50-vs-named-block-no-modify'], 'vs-named-block-no-modify')
1488 # max_vertices of 32 and 128 are important transition points for
1489 # mesa/i965 (they are the number of bits in a float and a vec4,
1490 # respectively), so test around there. Also test 0, which means the
1491 # maximum number of geometry shader output vertices supported by the
1493 with profile
.test_list
.group_manager(
1495 grouptools
.join('spec', 'glsl-1.50', 'execution', 'geometry')) as g
:
1496 for i
in [31, 32, 33, 34, 127, 128, 129, 130, 0]:
1497 g(['glsl-1.50-geometry-end-primitive', str(i
)],
1498 'end-primitive {0}'.format(i
))
1500 for prim_type
in ['GL_POINTS', 'GL_LINE_LOOP', 'GL_LINE_STRIP', 'GL_LINES',
1501 'GL_TRIANGLES', 'GL_TRIANGLE_STRIP', 'GL_TRIANGLE_FAN',
1502 'GL_LINES_ADJACENCY', 'GL_LINE_STRIP_ADJACENCY',
1503 'GL_TRIANGLES_ADJACENCY', 'GL_TRIANGLE_STRIP_ADJACENCY']:
1504 g(['glsl-1.50-geometry-primitive-types', prim_type
],
1505 'primitive-types {0}'.format(prim_type
))
1507 for restart_index
in ['ffs', 'other']:
1508 g(['glsl-1.50-geometry-primitive-id-restart', prim_type
,
1510 'primitive-id-restart {0} {1}'.format(prim_type
, restart_index
))
1512 for prim_type
in ['GL_TRIANGLE_STRIP', 'GL_TRIANGLE_STRIP_ADJACENCY']:
1513 for restart_index
in ['ffs', 'other']:
1514 g(['glsl-1.50-geometry-tri-strip-ordering-with-prim-restart',
1515 prim_type
, restart_index
],
1516 'tri-strip-ordering-with-prim-restart {0} {1}'.format(
1517 prim_type
, restart_index
))
1519 with profile
.test_list
.group_manager(
1520 BuiltInConstantsTest
, grouptools
.join('spec', 'glsl-3.30')) as g
:
1521 g(['built-in-constants',
1522 os
.path
.join('spec', 'glsl-3.30', 'minimum-maximums.txt')],
1523 'built-in constants')
1525 with profile
.test_list
.group_manager(
1526 BuiltInConstantsTest
, grouptools
.join('spec', 'glsl-es-3.00')) as g
:
1527 g(['built-in-constants_gles3',
1528 os
.path
.join('spec', 'glsl-es-3.00', 'minimum-maximums.txt')],
1529 'built-in constants')
1531 with profile
.test_list
.group_manager(
1533 grouptools
.join('spec', 'glsl-es-3.00', 'execution')) as g
:
1534 g(['varying-struct-centroid_gles3'])
1536 with profile
.test_list
.group_manager(
1537 BuiltInConstantsTest
, grouptools
.join('spec', 'glsl-es-3.10')) as g
:
1538 g(['built-in-constants_gles3',
1539 os
.path
.join('spec', 'glsl-es-3.10', 'minimum-maximums.txt')],
1540 'built-in constants')
1542 # AMD_performance_monitor
1543 with profile
.test_list
.group_manager(
1544 PiglitGLTest
, grouptools
.join('spec', 'AMD_performance_monitor')) as g
:
1545 g(['amd_performance_monitor_api'], 'api', run_concurrent
=False)
1546 g(['amd_performance_monitor_api'], 'vc4')
1547 g(['amd_performance_monitor_measure'], 'measure', run_concurrent
=False)
1549 # Group ARB_arrays_of_arrays
1550 with profile
.test_list
.group_manager(
1552 grouptools
.join('spec', 'ARB_arrays_of_arrays')) as g
:
1553 g(['arb_arrays_of_arrays-max-binding'], run_concurrent
=False)
1555 # Group ARB_point_sprite
1556 with profile
.test_list
.group_manager(
1557 PiglitGLTest
, grouptools
.join('spec', 'ARB_point_sprite')) as g
:
1558 g(['arb_point_sprite-checkerboard'], run_concurrent
=False)
1559 g(['arb_point_sprite-mipmap'])
1560 g(['arb_point_sprite-interactions', '1.0'])
1562 # Group OES_point_sprite
1563 with profile
.test_list
.group_manager(
1564 PiglitGLTest
, grouptools
.join('spec', 'OES_point_sprite')) as g
:
1565 g(['arb_point_sprite-checkerboard_gles1'], run_concurrent
=False)
1567 # Group ARB_tessellation_shader
1568 with profile
.test_list
.group_manager(
1569 PiglitGLTest
, grouptools
.join('spec', 'ARB_tessellation_shader')) as g
:
1570 g(['arb_tessellation_shader-get-tcs-params'])
1571 g(['arb_tessellation_shader-get-tes-params'])
1572 g(['arb_tessellation_shader-minmax'])
1573 g(['arb_tessellation_shader-immediate-mode-draw-patches'])
1574 g(['arb_tessellation_shader-invalid-get-program-params'])
1575 g(['arb_tessellation_shader-invalid-patch-vertices-range'])
1576 g(['arb_tessellation_shader-invalid-primitive'])
1577 g(['built-in-constants',
1578 os
.path
.join('spec', 'arb_tessellation_shader', 'minimum-maximums.txt')],
1579 'built-in-constants',
1580 override_class
=BuiltInConstantsTest
)
1581 g(['arb_tessellation_shader-large-uniforms'])
1582 g(['arb_tessellation_shader-layout-mismatch'])
1583 g(['arb_tessellation_shader-tes-gs-max-output', '-small', '-scan', '1', '50'])
1585 # Group ARB_texture_multisample
1586 with profile
.test_list
.group_manager(
1587 PiglitGLTest
, grouptools
.join('spec', 'ARB_texture_multisample')) as g
:
1588 g(['arb_texture_multisample-large-float-texture'], 'large-float-texture',
1589 run_concurrent
=False)
1590 g(['arb_texture_multisample-large-float-texture', '--array'],
1591 'large-float-texture-array', run_concurrent
=False)
1592 g(['arb_texture_multisample-large-float-texture', '--fp16'],
1593 'large-float-texture-fp16', run_concurrent
=False)
1594 g(['arb_texture_multisample-large-float-texture', '--array', '--fp16'],
1595 'large-float-texture-array-fp16', run_concurrent
=False)
1596 g(['arb_texture_multisample-minmax'])
1597 g(['texelFetch', 'fs', 'sampler2DMS', '4', '1x71-501x71'])
1598 g(['texelFetch', 'fs', 'sampler2DMS', '4', '1x130-501x130'])
1599 g(['texelFetch', 'fs', 'sampler2DMS', '4', '71x1-71x130'])
1600 g(['texelFetch', 'fs', 'sampler2DMS', '4', '281x1-281x130'])
1601 g(['texelFetch', 'fs', 'sampler2DMSArray', '4', '1x129x9-98x129x9'])
1602 g(['texelFetch', 'fs', 'sampler2DMSArray', '4', '98x1x9-98x129x9'])
1603 g(['texelFetch', 'fs', 'sampler2DMSArray', '4', '98x129x1-98x129x9'])
1604 g(['arb_texture_multisample-texstate'])
1605 g(['arb_texture_multisample-errors'])
1606 for sample_count
in MSAA_SAMPLE_COUNTS
:
1607 g(['arb_texture_multisample-texelfetch', sample_count
])
1608 g(['arb_texture_multisample-sample-mask'])
1609 g(['arb_texture_multisample-dsa-texelfetch'])
1610 g(['arb_texture_multisample-sample-mask-value'])
1611 g(['arb_texture_multisample-sample-mask-execution'])
1612 g(['arb_texture_multisample-sample-mask-execution', '-tex'])
1613 g(['arb_texture_multisample-negative-max-samples'])
1614 g(['arb_texture_multisample-teximage-3d-multisample'])
1615 g(['arb_texture_multisample-teximage-2d-multisample'])
1616 g(['arb_texture_multisample-sample-depth']),
1617 g(['arb_texture_multisample-stencil-clear']),
1618 g(['arb_texture_multisample-clear'])
1620 samplers_atm
= ['sampler2DMS', 'isampler2DMS', 'usampler2DMS',
1621 'sampler2DMSArray', 'isampler2DMSArray', 'usampler2DMSArray']
1622 with profile
.test_list
.group_manager(
1624 grouptools
.join('spec', 'ARB_texture_multisample',
1625 'fb-completeness')) as g
:
1627 for sample_count
in MSAA_SAMPLE_COUNTS
:
1629 g(['arb_texture_multisample-fb-completeness', sample_count
],
1632 with profile
.test_list
.group_manager(
1634 grouptools
.join('spec', 'ARB_texture_multisample', 'texelFetch')) as g
:
1636 stages
= ['vs', 'gs', 'fs']
1637 for sampler
, stage
, sample_count
in itertools
.product(
1638 samplers_atm
, stages
, MSAA_SAMPLE_COUNTS
):
1639 g(['texelFetch', stage
, sampler
, sample_count
],
1640 '{}-{}-{}'.format(sample_count
, stage
, sampler
))
1642 with profile
.test_list
.group_manager(
1644 grouptools
.join('spec', 'ARB_texture_multisample',
1645 'sample-position')) as g
:
1647 for sample_count
in MSAA_SAMPLE_COUNTS
:
1648 g(['arb_texture_multisample-sample-position', sample_count
],
1652 with profile
.test_list
.group_manager(
1654 grouptools
.join('spec', 'ARB_texture_multisample',
1655 'textureSize')) as g
:
1657 stages
= ['vs', 'gs', 'fs', 'tes']
1658 for stage
, sampler
in itertools
.product(stages
, samplers_atm
):
1659 g(['textureSize', stage
, sampler
],
1660 '{}-textureSize-{}'.format(stage
, sampler
))
1662 # Group ARB_texture_gather
1663 with profile
.test_list
.group_manager(
1665 grouptools
.join('spec', 'ARB_texture_gather')) as g
:
1666 stages
= ['vs', 'fs']
1667 comps
= ['r', 'rg', 'rgb', 'rgba']
1668 types
= ['unorm', 'float', 'int', 'uint']
1669 samplers
= ['2D', '2DArray', 'Cube', 'CubeArray']
1670 for stage
, comp
, type_
, sampler
in itertools
.product(
1671 stages
, comps
, types
, samplers
):
1672 for swiz
in ['red', 'green', 'blue', 'alpha'][:len(comp
)] + ['', 'zero', 'one']:
1673 for func
in ['textureGather'] if 'Cube' in sampler
else ['textureGather', 'textureGatherOffset']:
1674 testname
= grouptools
.join(
1675 func
, '{}-{}-{}-{}-{}'.format(
1677 swiz
if swiz
else 'none',
1679 g(['textureGather', stage
,
1680 'offset' if func
== 'textureGatherOffset' else '',
1681 comp
, swiz
, type_
, sampler
], testname
)
1684 with profile
.test_list
.group_manager(
1686 grouptools
.join('spec', 'ARB_stencil_texturing')) as g
:
1687 g(['arb_stencil_texturing-draw'], 'draw')
1689 with profile
.test_list
.group_manager(
1691 grouptools
.join('spec', 'ARB_stencil_texturing', 'glBlitFramebuffer corrupts state')) as g
:
1692 for t
in ['1D', '2D', 'CUBE_MAP', '1D_ARRAY', '2D_ARRAY', 'CUBE_MAP_ARRAY', '2D_MULTISAMPLE', '2D_MULTISAMPLE_ARRAY', 'RECTANGLE']:
1693 target
= 'GL_TEXTURE_' + t
1694 g(['arb_stencil_texturing-blit_corrupts_state', target
], target
)
1697 with profile
.test_list
.group_manager(
1698 PiglitGLTest
, grouptools
.join('spec', 'ARB_sync')) as g
:
1699 g(['arb_sync-client-wait-errors'], 'ClientWaitSync-errors')
1700 g(['arb_sync-delete'], 'DeleteSync')
1701 g(['arb_sync-fence-sync-errors'], 'FenceSync-errors')
1702 g(['arb_sync-get-sync-errors'], 'GetSynciv-errors')
1703 g(['arb_sync-is-sync'], 'IsSync')
1704 g(['arb_sync-repeat-wait'], 'repeat-wait')
1705 g(['arb_sync-sync-initialize'], 'sync-initialize')
1706 g(['arb_sync-timeout-zero'], 'timeout-zero')
1707 g(['arb_sync-WaitSync-errors'], 'WaitSync-errors')
1708 g(['arb_sync-ClientWaitSync-timeout'], 'ClientWaitSync-timeout')
1709 g(['sync_api'], run_concurrent
=False)
1711 # Group ARB_ES2_compatibility
1712 with profile
.test_list
.group_manager(
1713 PiglitGLTest
, grouptools
.join('spec', 'ARB_ES2_compatibility')) as g
:
1714 g(['arb_es2_compatibility-depthrangef'], run_concurrent
=False)
1715 g(['arb_es2_compatibility-drawbuffers'], run_concurrent
=False)
1716 g(['arb_es2_compatibility-getshaderprecisionformat'], run_concurrent
=False)
1717 g(['arb_es2_compatibility-maxvectors'], run_concurrent
=False)
1718 g(['arb_es2_compatibility-shadercompiler'], run_concurrent
=False)
1719 g(['arb_es2_compatibility-releaseshadercompiler'], run_concurrent
=False)
1720 g(['arb_es2_compatibility-fixed-type'], run_concurrent
=False)
1721 g(['fbo-missing-attachment-clear'], run_concurrent
=False)
1722 g(['fbo-missing-attachment-blit', 'es2', 'to'],
1723 'FBO blit to missing attachment (ES2 completeness rules)')
1724 g(['fbo-missing-attachment-blit', 'es2', 'from'],
1725 'FBO blit from missing attachment (ES2 completeness rules)')
1726 g(['arb_get_program_binary-overrun', 'shader'],
1727 'NUM_SHADER_BINARY_FORMATS over-run check')
1728 add_texwrap_format_tests(g
, 'GL_ARB_ES2_compatibility')
1729 add_fbo_formats_tests(g
, 'GL_ARB_ES2_compatibility')
1732 # Group ARB_get_program_binary
1733 with profile
.test_list
.group_manager(
1734 PiglitGLTest
, grouptools
.join('spec', 'ARB_get_program_binary')) as g
:
1735 g(['arb_get_program_binary-api-errors'],
1736 'misc. API error checks')
1737 g(['arb_get_program_binary-overrun', 'program'],
1738 'NUM_PROGRAM_BINARY_FORMATS over-run check')
1739 g(['arb_get_program_binary-retrievable_hint'],
1740 'PROGRAM_BINARY_RETRIEVABLE_HINT')
1741 g(['arb_get_program_binary-xfb-varyings'],
1743 g(['arb_get_program_binary-restore-implicit-use-program'],
1744 'restore-implicit-use-program')
1745 g(['arb_get_program_binary-restore-sso-program'],
1746 'restore-sso-program')
1747 g(['arb_get_program_binary-reset-uniform'],
1750 with profile
.test_list
.group_manager(
1751 PiglitGLTest
, grouptools
.join('spec', 'EXT_depth_bounds_test')) as g
:
1754 with profile
.test_list
.group_manager(
1755 PiglitGLTest
, grouptools
.join('spec', 'ARB_depth_clamp')) as g
:
1757 g(['depth-clamp-range'])
1758 g(['depth-clamp-status'])
1760 # AMD_depth_clamp_separate
1761 with profile
.test_list
.group_manager(
1762 PiglitGLTest
, grouptools
.join('spec', 'AMD_depth_clamp_separate')) as g
:
1763 g(['amd_depth_clamp_separate_status'])
1764 g(['amd_depth_clamp_separate_range'])
1766 # Group ARB_draw_elements_base_vertex
1767 # Group ARB_draw_elements_base_vertex
1768 with profile
.test_list
.group_manager(
1770 grouptools
.join('spec', 'ARB_draw_elements_base_vertex')) as g
:
1771 g(['arb_draw_elements_base_vertex-dlist'], 'dlist')
1772 g(['arb_draw_elements_base_vertex-drawelements'])
1773 g(['arb_draw_elements_base_vertex-drawelements', 'user_varrays'],
1774 'arb_draw_elements_base_vertex-drawelements-user_varrays')
1775 g(['arb_draw_elements_base_vertex-negative-index'])
1776 g(['arb_draw_elements_base_vertex-bounds'])
1777 g(['arb_draw_elements_base_vertex-negative-index', 'user_varrays'],
1778 'arb_draw_elements_base_vertex-negative-index-user_varrays')
1779 g(['arb_draw_elements_base_vertex-drawelements-instanced'])
1780 g(['arb_draw_elements_base_vertex-drawrangeelements'])
1781 g(['arb_draw_elements_base_vertex-multidrawelements'])
1783 # Group ARB_draw_instanced
1784 with profile
.test_list
.group_manager(
1786 grouptools
.join('spec', 'ARB_draw_instanced')) as g
:
1787 g(['arb_draw_instanced-dlist'], 'dlist')
1788 g(['arb_draw_instanced-elements'], 'elements')
1789 g(['arb_draw_instanced-negative-arrays-first-negative'],
1790 'negative-arrays-first-negative')
1791 g(['arb_draw_instanced-negative-elements-type'],
1792 'negative-elements-type')
1793 g(['arb_draw_instanced-drawarrays'])
1795 # Group EXT_draw_instanced
1796 with profile
.test_list
.group_manager(
1798 grouptools
.join('spec', 'EXT_draw_instanced')) as g
:
1799 g(['ext_draw_instanced-drawarrays'])
1801 # Group ARB_draw_indirect
1802 with profile
.test_list
.group_manager(
1804 grouptools
.join('spec', 'ARB_draw_indirect')) as g
:
1805 g(['arb_draw_indirect-api-errors'])
1806 g(['arb_draw_indirect-draw-arrays'])
1807 g(['arb_draw_indirect-draw-arrays-compat'])
1808 g(['arb_draw_indirect-draw-arrays-prim-restart'])
1809 g(['arb_draw_indirect-draw-elements'])
1810 g(['arb_draw_indirect-draw-elements-compat'])
1811 g(['arb_draw_indirect-draw-arrays-base-instance'])
1812 g(['arb_draw_indirect-draw-elements-base-instance'])
1813 g(['arb_draw_indirect-draw-elements-prim-restart'])
1814 g(['arb_draw_indirect-draw-elements-prim-restart-ugly'])
1815 g(['arb_draw_indirect-draw-arrays-instances'])
1816 g(['arb_draw_indirect-draw-arrays-shared-binding'])
1817 g(['arb_draw_indirect-transform-feedback'])
1818 g(['arb_draw_indirect-vertexid'],
1819 'gl_VertexID used with glDrawArraysIndirect')
1820 g(['arb_draw_indirect-vertexid', 'elements'],
1821 'gl_VertexID used with glDrawElementsIndirect')
1823 # Group ARB_draw_indirect
1824 with profile
.test_list
.group_manager(
1826 grouptools
.join('spec', 'ARB_multi_draw_indirect')) as g
:
1827 g(['gl-3.0-multidrawarrays-vertexid', '-indirect'])
1828 g(['arb_draw_elements_base_vertex-multidrawelements', '-indirect'])
1830 # Group ARB_fragment_program
1831 with profile
.test_list
.group_manager(
1833 grouptools
.join('spec', 'ARB_fragment_program')) as g
:
1834 g(['arb_fragment_program-minmax'], 'minmax')
1838 g(['fp-fragment-position'])
1839 g(['fp-incomplete-tex'])
1840 g(['fp-indirections'])
1841 g(['fp-indirections2'])
1844 g(['fp-lit-src-equals-dst'])
1848 g(['arb_fragment_program-sparse-samplers'], 'sparse-samplers')
1849 g(['arb_fragment_program-no-newline'], 'no-newline')
1850 g(['incomplete-texture', 'arb_fp'], 'incomplete-texture-arb_fp')
1852 with profile
.test_list
.group_manager(
1854 grouptools
.join('spec', 'NV_fragment_program_option')) as g
:
1856 g(['fp-condition_codes-01'])
1861 with profile
.test_list
.group_manager(
1863 grouptools
.join('spec', 'ATI_fragment_shader')) as g
:
1864 g(['ati_fragment_shader-api-alphafirst'])
1865 g(['ati_fragment_shader-api-gen'])
1866 g(['ati_fragment_shader-error01-genzero'])
1867 g(['ati_fragment_shader-error02-inside'])
1868 g(['ati_fragment_shader-error03-outside'])
1869 g(['ati_fragment_shader-error04-endshader'])
1870 g(['ati_fragment_shader-error05-passes'])
1871 g(['ati_fragment_shader-error06-regswizzle'])
1872 g(['ati_fragment_shader-error07-instcount'])
1873 g(['ati_fragment_shader-error08-secondary'])
1874 g(['ati_fragment_shader-error09-allconst'])
1875 g(['ati_fragment_shader-error10-dotx'])
1876 g(['ati_fragment_shader-error11-invaliddst'])
1877 g(['ati_fragment_shader-error12-invalidsrc'])
1878 g(['ati_fragment_shader-error13-invalidarg'])
1879 g(['ati_fragment_shader-error14-invalidmod'])
1880 g(['ati_fragment_shader-render-constants'])
1881 g(['ati_fragment_shader-render-default'])
1882 g(['ati_fragment_shader-render-fog'])
1883 g(['ati_fragment_shader-render-notexture'])
1884 g(['ati_fragment_shader-render-ops'])
1885 g(['ati_fragment_shader-render-precedence'])
1886 g(['ati_fragment_shader-render-sources'])
1887 g(['ati_fragment_shader-render-textargets'])
1889 # Group ARB_framebuffer_object
1890 with profile
.test_list
.group_manager(
1892 grouptools
.join('spec', 'ARB_framebuffer_object')) as g
:
1893 g(['same-attachment-glFramebufferTexture2D-GL_DEPTH_STENCIL_ATTACHMENT'])
1894 g(['same-attachment-glFramebufferRenderbuffer-GL_DEPTH_STENCIL_ATTACHMENT'])
1895 g(['arb_framebuffer_object-get-attachment-parameter-default-framebuffer'], run_concurrent
=False)
1897 g(['fbo-blit-stretch'], run_concurrent
=False)
1898 g(['fbo-blit-scaled-linear'])
1899 g(['fbo-attachments-blit-scaled-linear'])
1901 g(['fbo-luminance-alpha'])
1902 g(['fbo-getframebufferattachmentparameter-01'])
1903 g(['fbo-gl_pointcoord'])
1904 g(['fbo-incomplete'])
1905 g(['fbo-incomplete-invalid-texture'])
1906 g(['fbo-incomplete-texture-01'])
1907 g(['fbo-incomplete-texture-02'])
1908 g(['fbo-incomplete-texture-03'])
1909 g(['fbo-incomplete-texture-04'])
1910 g(['fbo-mipmap-copypix'])
1911 g(['fbo-viewport'], run_concurrent
=False)
1912 g(['fbo-missing-attachment-blit', 'to'], 'FBO blit to missing attachment')
1913 g(['fbo-missing-attachment-blit', 'from'],
1914 'FBO blit from missing attachment')
1915 g(['fbo-scissor-blit', 'fbo'], 'fbo-scissor-blit fbo')
1916 g(['fbo-scissor-blit', 'window'], 'fbo-scissor-blit window',
1917 run_concurrent
=False)
1918 g(['fbo-tex-rgbx'], 'fbo-tex-rgbx')
1919 g(['arb_framebuffer_object-mixed-buffer-sizes'], 'mixed-buffer-sizes')
1920 g(['arb_framebuffer_object-negative-readpixels-no-rb'],
1921 'negative-readpixels-no-rb')
1922 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH_COMPONENT16'])
1923 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH_COMPONENT24'])
1924 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH_COMPONENT32'])
1925 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH_COMPONENT32F'])
1926 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_STENCIL_INDEX1'])
1927 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_STENCIL_INDEX4'])
1928 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_STENCIL_INDEX8'])
1929 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_STENCIL_INDEX16'])
1930 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH24_STENCIL8'])
1931 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_DEPTH24_STENCIL8'])
1932 g(['arb_framebuffer_object-depth-stencil-blit', 'depth_stencil', 'GL_DEPTH24_STENCIL8'])
1933 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH32F_STENCIL8'])
1934 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_DEPTH32F_STENCIL8'])
1935 g(['arb_framebuffer_object-depth-stencil-blit', 'depth_stencil', 'GL_DEPTH32F_STENCIL8'])
1936 g(['fbo-drawbuffers-none', 'glClear'])
1937 g(['fbo-drawbuffers-none', 'glClearBuffer'])
1938 g(['fbo-drawbuffers-none', 'gl_FragColor'])
1939 g(['fbo-drawbuffers-none', 'gl_FragData'])
1940 g(['fbo-drawbuffers-none', 'use_frag_out'])
1941 g(['fbo-drawbuffers-none', 'glColorMaskIndexed'])
1942 g(['fbo-drawbuffers-none', 'glBlendFunci'])
1943 g(['fbo-drawbuffers-none', 'glDrawPixels'])
1944 g(['fbo-drawbuffers-none', 'glBlitFramebuffer'])
1945 g(['fbo-generatemipmap-cubemap'])
1946 g(['fbo-generatemipmap-cubemap', 'RGB9_E5'])
1947 g(['fbo-generatemipmap-cubemap', 'S3TC_DXT1'])
1948 g(['fbo-generatemipmap-1d'])
1949 g(['fbo-generatemipmap-1d', 'RGB9_E5'])
1950 g(['fbo-generatemipmap-3d'])
1951 g(['fbo-generatemipmap-3d', 'RGB9_E5'])
1952 g(['framebuffer-blit-mipmap'])
1953 for format
in ('rgba', 'depth', 'stencil'):
1954 for test_mode
in ('draw', 'read'):
1955 g(['framebuffer-blit-levels', test_mode
, format
],
1956 'framebuffer-blit-levels {} {}'.format(test_mode
, format
))
1958 # Group ARB_framebuffer_sRGB
1959 with profile
.test_list
.group_manager(
1961 grouptools
.join('spec', 'ARB_framebuffer_sRGB')) as g
:
1962 for backing_type
in ('texture', 'renderbuffer'):
1963 for srgb_types
in ('linear', 'srgb', 'linear_to_srgb',
1965 for blit_type
in ('single_sampled', 'upsample', 'downsample',
1967 for framebuffer_srgb_setting
in ('enabled',
1969 for src_fill_mode
in ('clear', 'render'):
1970 g(['arb_framebuffer_srgb-blit', backing_type
,
1971 srgb_types
, blit_type
, framebuffer_srgb_setting
,
1973 'blit {} {} {} {} {}'.format(
1974 backing_type
, srgb_types
, blit_type
,
1975 framebuffer_srgb_setting
, src_fill_mode
))
1976 g(['framebuffer-srgb'], run_concurrent
=False)
1977 g(['arb_framebuffer_srgb-clear'])
1978 g(['arb_framebuffer_srgb-pushpop'])
1979 g(['ext_framebuffer_multisample-fast-clear',
1980 'GL_EXT_texture_sRGB',
1983 g(['ext_framebuffer_multisample-fast-clear',
1984 'GL_EXT_texture_sRGB',
1988 g(['arb_framebuffer_srgb-fast-clear-blend'])
1989 g(['arb_framebuffer_srgb-srgb_conformance'])
1990 g(['arb_framebuffer_srgb-srgb_pbo'])
1993 with profile
.test_list
.group_manager(
1995 grouptools
.join('spec', 'ARB_gpu_shader5')) as g
:
1996 stages
= ['vs', 'fs']
1997 types
= ['unorm', 'float', 'int', 'uint']
1998 comps
= ['r', 'rg', 'rgb', 'rgba']
1999 samplers
= ['2D', '2DArray', 'Cube', 'CubeArray', '2DRect']
2000 for stage
, type_
, comp
, sampler
in itertools
.product(
2001 stages
, types
, comps
, samplers
):
2002 for func
in ['textureGather'] if 'Cube' in sampler
else ['textureGather', 'textureGatherOffset', 'textureGatherOffsets']:
2003 for cs
in range(len(comp
)):
2005 address_mode
= 'clamp' if sampler
== '2DRect' else 'repeat'
2006 cmd
= ['textureGather', stage
,
2007 'offsets' if func
== 'textureGatherOffsets' else 'nonconst' if func
== 'textureGatherOffset' else '',
2008 comp
, str(cs
), type_
, sampler
, address_mode
]
2009 testname
= grouptools
.join(func
, '{}-{}-{}-{}-{}'.format(
2010 stage
, comp
, cs
, type_
, sampler
))
2013 if func
== 'textureGatherOffset':
2014 # also add a constant offset version.
2015 testname
= grouptools
.join(
2016 func
, '{}-{}-{}-{}-{}-const'.format(
2017 stage
, comp
, cs
, type_
, sampler
))
2018 cmd
= ['textureGather', stage
, 'offset',
2019 comp
, str(cs
), type_
, sampler
, address_mode
]
2022 # test shadow samplers
2023 samplers
= ['2D', '2DArray', 'Cube', 'CubeArray', '2DRect']
2024 for stage
, sampler
in itertools
.product(stages
, samplers
):
2025 for func
in ['textureGather'] if 'Cube' in sampler
else ['textureGather', 'textureGatherOffset', 'textureGatherOffsets']:
2026 testname
= grouptools
.join(func
, '{}-r-none-shadow-{}'.format(
2028 cmd
= ['textureGather', stage
, 'shadow', 'r',
2029 'offsets' if func
== 'textureGatherOffsets' else 'nonconst' if func
== 'textureGatherOffset' else '',
2031 'clamp' if sampler
== '2DRect' else 'repeat']
2034 g(['arb_gpu_shader5-minmax'])
2035 g(['arb_gpu_shader5-invocation-id'])
2036 g(['arb_gpu_shader5-invocations_count_too_large'])
2037 g(['arb_gpu_shader5-xfb-streams'])
2038 g(['arb_gpu_shader5-stream_value_too_large'])
2039 g(['arb_gpu_shader5-emitstreamvertex_stream_too_large'])
2040 g(['arb_gpu_shader5-tf-wrong-stream-value'])
2041 g(['arb_gpu_shader5-xfb-streams-without-invocations'])
2042 g(['arb_gpu_shader5-xfb-streams-without-invocations', 'spirv'])
2043 g(['arb_gpu_shader5-emitstreamvertex_nodraw'])
2044 g(['arb_gpu_shader5-interpolateAtCentroid'])
2045 g(['arb_gpu_shader5-interpolateAtCentroid-packing'])
2046 g(['arb_gpu_shader5-interpolateAtCentroid-flat'])
2047 g(['arb_gpu_shader5-interpolateAtCentroid-centroid'])
2048 g(['arb_gpu_shader5-interpolateAtCentroid-noperspective'])
2049 g(['arb_gpu_shader5-interpolateAtSample'])
2050 g(['arb_gpu_shader5-interpolateAtSample-nonconst'])
2051 g(['arb_gpu_shader5-interpolateAtSample-different'])
2052 g(['arb_gpu_shader5-interpolateAtSample-different', 'uniform'])
2053 g(['arb_gpu_shader5-interpolateAtSample-dynamically-nonuniform'])
2054 g(['arb_gpu_shader5-interpolateAtOffset'])
2055 g(['arb_gpu_shader5-interpolateAtOffset-nonconst'])
2058 with profile
.test_list
.group_manager(
2060 grouptools
.join('spec', 'ARB_gpu_shader_fp64',
2061 'varying-packing')) as g
:
2062 for type in ['double', 'dvec2', 'dvec3', 'dvec4', 'dmat2', 'dmat3',
2063 'dmat4', 'dmat2x3', 'dmat2x4', 'dmat3x2', 'dmat3x4',
2064 'dmat4x2', 'dmat4x3']:
2065 for arrayspec
in ['array', 'separate', 'arrays_of_arrays']:
2066 g(['varying-packing-simple', type, arrayspec
],
2067 'simple {0} {1}'.format(type, arrayspec
))
2069 with profile
.test_list
.group_manager(
2071 grouptools
.join('spec', 'ARB_gpu_shader_fp64', 'execution')) as g
:
2072 g(['arb_gpu_shader_fp64-tf-separate'])
2073 g(['arb_gpu_shader_fp64-double-gettransformfeedbackvarying'])
2074 g(['arb_gpu_shader_fp64-tf-interleaved'])
2075 g(['arb_gpu_shader_fp64-tf-interleaved-aligned'])
2076 g(['arb_gpu_shader_fp64-vs-getuniformdv'])
2077 g(['arb_gpu_shader_fp64-fs-getuniformdv'])
2078 g(['arb_gpu_shader_fp64-gs-getuniformdv'])
2079 g(['arb_gpu_shader_fp64-wrong-type-setter'])
2080 g(['arb_gpu_shader_fp64-dlist-uniforms'])
2081 g(['arb_gpu_shader_fp64-double_in_bool_uniform'])
2082 g(['arb_gpu_shader_fp64-uniform-invalid-operation'])
2083 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-const'])
2084 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-const'])
2085 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-ubo'])
2086 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-ubo'])
2087 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-ssbo'])
2088 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-ssbo'])
2089 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-alu'])
2090 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-alu'])
2091 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-packing'])
2092 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-packing'])
2094 with profile
.test_list
.group_manager(
2096 grouptools
.join('spec', 'ARB_gpu_shader_fp64', 'shader_storage')) as g
:
2097 g(['arb_gpu_shader_fp64-layout-std140-fp64-shader'], 'layout-std140-fp64-shader')
2098 g(['arb_gpu_shader_fp64-layout-std140-fp64-mixed-shader'], 'layout-std140-fp64-mixed-shader')
2099 g(['arb_gpu_shader_fp64-layout-std430-fp64-shader'], 'layout-std430-fp64-shader')
2100 g(['arb_gpu_shader_fp64-layout-std430-fp64-mixed-shader'], 'layout-std430-fp64-mixed-shader')
2102 with profile
.test_list
.group_manager(
2104 grouptools
.join('spec', 'ARB_shader_subroutine')) as g
:
2105 g(['arb_shader_subroutine-minmax'])
2106 g(['arb_shader_subroutine-uniformsubroutinesuiv'])
2108 with profile
.test_list
.group_manager(
2110 grouptools
.join('spec', 'ARB_occlusion_query')) as g
:
2111 g(['occlusion_query'])
2112 g(['occlusion_query_conform'])
2113 g(['occlusion_query_lifetime'])
2114 g(['occlusion_query_meta_fragments'])
2115 g(['occlusion_query_meta_no_fragments'])
2116 g(['occlusion_query_meta_save'])
2117 g(['occlusion_query_order'])
2118 g(['gen_delete_while_active'])
2120 with profile
.test_list
.group_manager(
2122 grouptools
.join('spec', 'ARB_point_parameters')) as g
:
2123 g(['arb_point_parameters-point-attenuation'])
2125 # Group ARB_separate_shader_objects
2126 with profile
.test_list
.group_manager(
2128 grouptools
.join('spec', 'ARB_separate_shader_objects')) as g
:
2129 g(['arb_separate_shader_object-ActiveShaderProgram-invalid-program'],
2130 'ActiveShaderProgram with invalid program')
2131 g(['arb_separate_shader_object-GetProgramPipelineiv'],
2132 'GetProgramPipelineiv')
2133 g(['arb_separate_shader_object-dlist'], 'Display lists (Compat)')
2134 g(['arb_separate_shader_object-IsProgramPipeline'],
2135 'IsProgramPipeline')
2136 g(['arb_separate_shader_object-UseProgramStages-non-separable'],
2137 'UseProgramStages - non-separable program')
2138 g(['arb_separate_shader_object-ProgramUniform-coverage'],
2139 'ProgramUniform coverage')
2140 g(['arb_separate_shader_object-rendezvous_by_name'],
2141 'Rendezvous by name')
2142 g(['arb_separate_shader_object-rendezvous_by_name_interpolation'],
2143 'Rendezvous by name with multiple interpolation qualifier')
2144 g(['arb_separate_shader_object-mix-and-match-tcs-tes'],
2145 'mix-and-match-tcs-tes'),
2146 g(['arb_separate_shader_object-mixed_explicit_and_non_explicit_locations'],
2147 'Mixed explicit and non-explicit locations')
2148 g(['arb_separate_shader_object-api-errors'], 'misc. API error checks')
2149 g(['arb_separate_shader_object-rendezvous_by_location', '-fbo'],
2150 'Rendezvous by location', run_concurrent
=False)
2151 g(['arb_separate_shader_object-rendezvous_by_location-5-stages'],
2152 'Rendezvous by location (5 stages)')
2153 g(['arb_separate_shader_object-ValidateProgramPipeline'],
2154 'ValidateProgramPipeline')
2155 g(['arb_separate_shader_object-400-combinations', '-fbo', '--by-location'],
2156 '400 combinations by location', run_concurrent
=False)
2157 g(['arb_separate_shader_object-400-combinations', '-fbo'],
2158 '400 combinations by name', run_concurrent
=False)
2159 g(['arb_separate_shader_object-active-sampler-conflict'],
2160 'active sampler conflict')
2161 g(['arb_separate_shader_object-atomic-counter'],
2163 g(['arb_separate_shader_object-compat-builtins'], 'compat-builtins')
2164 g(['arb_separate_shader_object-rendezvous_by_location-3-stages'],
2165 'rendezvous_by_location-3-stages')
2166 g(['arb_separate_shader_object-uniform-namespace'],
2167 'uniform namespace is per-program')
2168 g(['arb_separate_shader_object-xfb-rendezvous_by_location'],
2169 'Transform feedback with rendezvous by location')
2171 # Group ARB_sampler_objects
2172 with profile
.test_list
.group_manager(
2174 grouptools
.join('spec', 'ARB_sampler_objects')) as g
:
2175 g(['arb_sampler_objects-sampler-objects'], 'sampler-objects',)
2176 g(['arb_sampler_objects-sampler-incomplete'], 'sampler-incomplete',)
2177 g(['arb_sampler_objects-srgb-decode'], 'GL_EXT_texture_sRGB_decode',)
2178 g(['arb_sampler_objects-framebufferblit'], 'framebufferblit',
2179 run_concurrent
=False)
2181 # Group ARB_sample_shading
2182 with profile
.test_list
.group_manager(
2184 grouptools
.join('spec', 'ARB_sample_shading')) as g
:
2185 g(['arb_sample_shading-api'], run_concurrent
=False)
2187 for num_samples
in ['0'] + MSAA_SAMPLE_COUNTS
:
2188 g(['arb_sample_shading-builtin-gl-num-samples', num_samples
],
2189 'builtin-gl-num-samples {0}'.format(num_samples
),
2190 run_concurrent
=False)
2191 g(['arb_sample_shading-builtin-gl-sample-id', num_samples
],
2192 'builtin-gl-sample-id {}'.format(num_samples
), run_concurrent
=False)
2193 g(['arb_sample_shading-builtin-gl-sample-mask', num_samples
],
2194 'builtin-gl-sample-mask {}'.format(num_samples
),
2195 run_concurrent
=False)
2196 g(['arb_sample_shading-builtin-gl-sample-position', num_samples
],
2197 'builtin-gl-sample-position {}'.format(num_samples
),
2198 run_concurrent
=False)
2200 for sample_count
in MSAA_SAMPLE_COUNTS
:
2201 g(['arb_sample_shading-interpolate-at-sample-position', sample_count
],
2202 'interpolate-at-sample-position {}'.format(sample_count
))
2203 g(['arb_sample_shading-ignore-centroid-qualifier', sample_count
],
2204 'ignore-centroid-qualifier {}'.format(sample_count
))
2205 g(['arb_sample_shading-samplemask', sample_count
, 'all', 'all'],
2206 'samplemask {}'.format(sample_count
))
2208 for num_samples
in ['0'] + MSAA_SAMPLE_COUNTS
:
2209 g(['arb_sample_shading-builtin-gl-sample-mask-simple',
2211 'builtin-gl-sample-mask-simple {}'.format(num_samples
))
2212 g(['arb_sample_shading-samplemask', num_samples
, 'all', 'all'],
2213 'samplemask {} all'.format(num_samples
))
2215 g(['arb_sample_shading-builtin-gl-sample-mask-mrt-alpha'])
2216 g(['arb_sample_shading-builtin-gl-sample-mask-mrt-alpha-to-coverage-combinations'])
2218 # Group ARB_debug_output
2219 with profile
.test_list
.group_manager(
2221 grouptools
.join('spec', 'ARB_debug_output')) as g
:
2222 g(['arb_debug_output-api_error'], run_concurrent
=False)
2225 with profile
.test_list
.group_manager(
2227 grouptools
.join('spec', 'KHR_debug')) as g
:
2228 g(['khr_debug-object-label_gl'], 'object-label_gl')
2229 g(['khr_debug-object-label_gles2'], 'object-label_gles2')
2230 g(['khr_debug-object-label_gles3'], 'object-label_gles3')
2231 g(['khr_debug-push-pop-group_gl'], 'push-pop-group_gl')
2232 g(['khr_debug-push-pop-group_gles2'], 'push-pop-group_gles2')
2233 g(['khr_debug-push-pop-group_gles3'], 'push-pop-group_gles3')
2235 # Group ARB_occlusion_query2
2236 with profile
.test_list
.group_manager(
2238 grouptools
.join('spec', 'ARB_occlusion_query2')) as g
:
2239 g(['arb_occlusion_query2-api'], 'api')
2240 g(['arb_occlusion_query2-render'], 'render')
2242 # Group EXT_external_objects tests
2243 with profile
.test_list
.group_manager(
2245 grouptools
.join('spec', 'EXT_external_objects')) as g
:
2246 g(['ext_external_objects-memory-object-api-errors'], 'memory-object-api-errors')
2247 g(['ext_external_objects-semaphore-api-errors'], 'semaphore-api-errors')
2248 g(['ext_external_objects-vk-image-overwrite'], 'vk-image-overwrite')
2249 g(['ext_external_objects-vk-image-display'], 'vk-image-display')
2250 g(['ext_external_objects-vk-image-display-overwrite'], 'vk-image-display-overwrite')
2251 g(['ext_external_objects-vk-buf-exchange'], 'vk-buf-exchange')
2252 g(['ext_external_objects-vk-pix-buf-update-errors'], 'vk-pix-buf-update-errors')
2253 g(['ext_external_objects-vk-vert-buf-update-errors'], 'vk-vert-buf-update-errors')
2254 g(['ext_external_objects-vk-vert-buf-reuse'], 'vk-vert-buf-reuse')
2255 g(['ext_external_objects-vk-depth-display'], 'vk-depth-display')
2256 g(['ext_external_objects-vk-stencil-display'], 'vk-stencil-display')
2257 g(['ext_external_objects-vk-semaphores'], 'vk-semaphores')
2258 g(['ext_external_objects-vk-semaphores-2'], 'vk-semaphores-2')
2259 g(['ext_external_objects-vk-image-display-multiple-textures'], 'vk-image-display-muliple-textures')
2261 # Group EXT_external_objects_fd tests
2262 with profile
.test_list
.group_manager(
2264 grouptools
.join('spec', 'EXT_external_objects_fd')) as g
:
2265 g(['ext_external_objects_fd-memory-object-api-errors'], 'memory-object-api-errors')
2266 g(['ext_external_objects_fd-semaphore-api-errors'], 'semaphore-api-errors')
2268 # Group EXT_texture_format_BGRA8888 tests
2269 with profile
.test_list
.group_manager(
2271 grouptools
.join('spec', 'EXT_texture_format_BGRA8888')) as g
:
2272 g(['ext_texture_format_bgra8888-api-errors'], 'api-errors')
2274 with profile
.test_list
.group_manager(
2276 grouptools
.join('spec', 'ARB_pixel_buffer_object')) as g
:
2277 g(['cubemap', 'pbo'])
2278 g(['cubemap', 'npot', 'pbo'])
2279 g(['fbo-pbo-readpixels-small'], run_concurrent
=False)
2280 g(['pbo-drawpixels'], run_concurrent
=False)
2281 g(['pbo-getteximage'], run_concurrent
=False)
2282 g(['pbo-read-argb8888'], run_concurrent
=False)
2283 g(['pbo-readpixels-small'], run_concurrent
=False)
2284 g(['pbo-teximage'], run_concurrent
=False)
2285 g(['pbo-teximage-tiling'], run_concurrent
=False)
2286 g(['pbo-teximage-tiling-2'], run_concurrent
=False)
2287 g(['texsubimage', 'pbo'])
2288 g(['texsubimage', 'pbo', 'manual', 'GL_TEXTURE_2D', 'GL_RGB8', '6',
2289 '10', '0', '94', '53', '0'])
2290 g(['texsubimage', 'array', 'pbo'])
2291 g(['texsubimage', 'cube_map_array', 'pbo'])
2292 g(['texsubimage-depth-formats', 'pbo'])
2293 g(['texsubimage-unpack', 'pbo'])
2295 # Group ARB_provoking_vertex
2296 with profile
.test_list
.group_manager(
2298 grouptools
.join('spec', 'ARB_provoking_vertex')) as g
:
2299 g(['arb-provoking-vertex-control'], run_concurrent
=False)
2300 g(['arb-provoking-vertex-initial'], run_concurrent
=False)
2301 g(['arb-provoking-vertex-render'], run_concurrent
=False)
2302 g(['arb-provoking-vertex-clipped-geometry-flatshading'], run_concurrent
=False)
2303 g(['arb-quads-follow-provoking-vertex'], run_concurrent
=False)
2304 g(['arb-xfb-before-flatshading'], run_concurrent
=False)
2306 # Group ARB_robustness
2307 with profile
.test_list
.group_manager(
2309 grouptools
.join('spec', 'ARB_robustness')) as g
:
2310 g(['arb_robustness_client-mem-bounds'], run_concurrent
=False)
2312 # Group ARB_shader_texture_lod
2313 with profile
.test_list
.group_manager(
2315 grouptools
.join('spec', 'ARB_shader_texture_lod', 'execution')) as g
:
2316 g(['arb_shader_texture_lod-texgrad'])
2317 g(['arb_shader_texture_lod-texgradcube'])
2318 g(['tex-miplevel-selection', '*Lod', '1D'])
2319 g(['tex-miplevel-selection', '*Lod', '2D'])
2320 g(['tex-miplevel-selection', '*Lod', '3D'])
2321 g(['tex-miplevel-selection', '*Lod', 'Cube'])
2322 g(['tex-miplevel-selection', '*Lod', '1DShadow'])
2323 g(['tex-miplevel-selection', '*Lod', '2DShadow'])
2324 g(['tex-miplevel-selection', '*ProjLod', '1D'])
2325 g(['tex-miplevel-selection', '*ProjLod', '1D_ProjVec4'])
2326 g(['tex-miplevel-selection', '*ProjLod', '2D'])
2327 g(['tex-miplevel-selection', '*ProjLod', '2D_ProjVec4'])
2328 g(['tex-miplevel-selection', '*ProjLod', '3D'])
2329 g(['tex-miplevel-selection', '*ProjLod', '1DShadow'])
2330 g(['tex-miplevel-selection', '*ProjLod', '2DShadow'])
2331 g(['tex-miplevel-selection', '*GradARB', '1D'])
2332 g(['tex-miplevel-selection', '*GradARB', '2D'])
2333 g(['tex-miplevel-selection', '*GradARB', '3D'])
2334 g(['tex-miplevel-selection', '*GradARB', 'Cube'])
2335 g(['tex-miplevel-selection', '*GradARB', '1DShadow'])
2336 g(['tex-miplevel-selection', '*GradARB', '2DShadow'])
2337 g(['tex-miplevel-selection', '*GradARB', '2DRect'])
2338 g(['tex-miplevel-selection', '*GradARB', '2DRectShadow'])
2339 g(['tex-miplevel-selection', '*ProjGradARB', '1D'])
2340 g(['tex-miplevel-selection', '*ProjGradARB', '1D_ProjVec4'])
2341 g(['tex-miplevel-selection', '*ProjGradARB', '2D'])
2342 g(['tex-miplevel-selection', '*ProjGradARB', '2D_ProjVec4'])
2343 g(['tex-miplevel-selection', '*ProjGradARB', '3D'])
2344 g(['tex-miplevel-selection', '*ProjGradARB', '1DShadow'])
2345 g(['tex-miplevel-selection', '*ProjGradARB', '2DShadow'])
2346 g(['tex-miplevel-selection', '*ProjGradARB', '2DRect'])
2347 g(['tex-miplevel-selection', '*ProjGradARB', '2DRect_ProjVec4'])
2348 g(['tex-miplevel-selection', '*ProjGradARB', '2DRectShadow'])
2351 # Group ARB_shader_objects
2352 with profile
.test_list
.group_manager(
2354 grouptools
.join('spec', 'ARB_shader_objects')) as g
:
2355 g(['arb_shader_objects-getuniform'], 'getuniform')
2356 g(['arb_shader_objects-bindattriblocation-scratch-name'],
2357 'bindattriblocation-scratch-name')
2358 g(['arb_shader_objects-getactiveuniform-beginend'],
2359 'getactiveuniform-beginend')
2360 g(['arb_shader_objects-getuniformlocation-array-of-struct-of-array'],
2361 'getuniformlocation-array-of-struct-of-array')
2362 g(['arb_shader_objects-clear-with-deleted'], 'clear-with-deleted')
2363 g(['arb_shader_objects-delete-repeat'], 'delete-repeat')
2364 g(['arb_shader_objects-delete-non-existent'], 'delete-non-existent')
2366 with profile
.test_list
.group_manager(
2368 grouptools
.join('spec', 'ARB_shading_language_420pack')) as g
:
2369 g(['built-in-constants',
2370 os
.path
.join('spec', 'arb_shading_language_420pack', 'minimum-maximums.txt')],
2371 'built-in constants',
2372 override_class
=BuiltInConstantsTest
)
2373 g(['arb_shading_language_420pack-multiple-layout-qualifiers'],
2374 'multiple layout qualifiers')
2375 g(['arb_shading_language_420pack-active-sampler-conflict'], 'active sampler conflict')
2376 g(['arb_shading_language_420pack-binding-layout'], 'binding layout')
2378 with profile
.test_list
.group_manager(
2380 grouptools
.join('spec', 'ARB_shading_language_include')) as g
:
2381 g(['arb_shading_language_include-api'], 'API tests')
2383 # Group ARB_enhanced_layouts
2384 with profile
.test_list
.group_manager(
2386 grouptools
.join('spec', 'arb_enhanced_layouts')) as g
:
2387 g(['arb_enhanced_layouts-explicit-offset-bufferstorage'],
2388 'explicit-offset-bufferstorage')
2389 g(['arb_enhanced_layouts-gs-stream-location-aliasing'],
2390 'gs-stream-location-aliasing')
2391 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'vs'],
2392 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_vs',
2393 run_concurrent
=False)
2394 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'vs_ifc'],
2395 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_vs_interface',
2396 run_concurrent
=False)
2397 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'vs_named_ifc'],
2398 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_vs_named_interface',
2399 run_concurrent
=False)
2400 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'vs_struct'],
2401 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_vs_struct',
2402 run_concurrent
=False)
2403 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'gs'],
2404 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_gs',
2405 run_concurrent
=False)
2406 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'gs_max'],
2407 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_gs_max',
2408 run_concurrent
=False)
2409 g(['arb_enhanced_layouts-transform-feedback-layout-query-api'],
2410 'arb_enhanced_layouts-transform-feedback-layout-query-api')
2412 # Group ARB_explicit_attrib_location
2413 with profile
.test_list
.group_manager(
2415 grouptools
.join('spec', 'ARB_explicit_attrib_location')) as g
:
2416 g(['glsl-explicit-location-01'], run_concurrent
=False)
2417 g(['glsl-explicit-location-02'], run_concurrent
=False)
2418 g(['glsl-explicit-location-03'], run_concurrent
=False)
2419 g(['glsl-explicit-location-04'], run_concurrent
=False)
2420 g(['glsl-explicit-location-05'], run_concurrent
=False)
2421 for test_type
in ('shader', 'api'):
2422 g(['overlapping-locations-input-attribs', test_type
],
2423 run_concurrent
=False)
2425 with profile
.test_list
.group_manager(
2427 grouptools
.join('spec', 'ARB_program_interface_query')) as g
:
2428 g(['arb_program_interface_query-resource-location'], run_concurrent
=False)
2429 g(['arb_program_interface_query-resource-query'], run_concurrent
=False)
2430 g(['arb_program_interface_query-getprograminterfaceiv'], run_concurrent
=False)
2431 g(['arb_program_interface_query-getprogramresourceindex'], run_concurrent
=False)
2432 g(['arb_program_interface_query-getprogramresourcename'], run_concurrent
=False)
2433 g(['arb_program_interface_query-getprogramresourceiv'], run_concurrent
=False)
2434 g(['arb_program_interface_query-compare-with-shader-subroutine'], run_concurrent
=False)
2436 with profile
.test_list
.group_manager(
2438 grouptools
.join('spec', 'ARB_framebuffer_no_attachments')) as g
:
2439 g(['arb_framebuffer_no_attachments-minmax'])
2440 g(['arb_framebuffer_no_attachments-params'])
2441 g(['arb_framebuffer_no_attachments-atomic'])
2442 g(['arb_framebuffer_no_attachments-query'])
2443 g(['arb_framebuffer_no_attachments-roundup-samples'])
2445 # Group ARB_explicit_uniform_location
2446 with profile
.test_list
.group_manager(
2448 grouptools
.join('spec', 'ARB_explicit_uniform_location')) as g
:
2449 g(['arb_explicit_uniform_location-minmax'], run_concurrent
=False)
2450 g(['arb_explicit_uniform_location-boundaries'], run_concurrent
=False)
2451 g(['arb_explicit_uniform_location-array-elements'], run_concurrent
=False)
2452 g(['arb_explicit_uniform_location-inactive-uniform'], run_concurrent
=False)
2453 g(['arb_explicit_uniform_location-use-of-unused-loc'],
2454 run_concurrent
=False)
2456 with profile
.test_list
.group_manager(
2458 grouptools
.join('spec', 'ARB_texture_buffer_object')) as g
:
2459 g(['arb_texture_buffer_object-bufferstorage'], 'bufferstorage')
2460 g(['arb_texture_buffer_object-data-sync'], 'data-sync')
2461 g(['arb_texture_buffer_object-dlist'], 'dlist')
2462 g(['arb_texture_buffer_object-formats', 'fs', 'core'],
2463 'formats (FS, 3.1 core)')
2464 g(['arb_texture_buffer_object-formats', 'vs', 'core'],
2465 'formats (VS, 3.1 core)')
2466 g(['arb_texture_buffer_object-formats', 'fs', 'arb'], 'formats (FS, ARB)')
2467 g(['arb_texture_buffer_object-formats', 'vs', 'arb'], 'formats (VS, ARB)')
2468 g(['arb_texture_buffer_object-formats', 'fs', 'gpu_shader4'], 'formats (FS, EXT_gpu_shader4)')
2469 g(['arb_texture_buffer_object-formats', 'vs', 'gpu_shader4'], 'formats (VS, EXT_gpu_shader4)')
2470 g(['arb_texture_buffer_object-get'], 'get')
2471 g(['arb_texture_buffer_object-fetch-outside-bounds'],
2472 'fetch-outside-bounds')
2473 g(['arb_texture_buffer_object-max-size'], 'max-size')
2474 g(['arb_texture_buffer_object-minmax'], 'minmax')
2475 g(['arb_texture_buffer_object-negative-bad-bo'], 'negative-bad-bo')
2476 g(['arb_texture_buffer_object-negative-bad-format'], 'negative-bad-format')
2477 g(['arb_texture_buffer_object-negative-bad-target'], 'negative-bad-target')
2478 g(['arb_texture_buffer_object-negative-unsupported'],
2479 'negative-unsupported')
2480 g(['arb_texture_buffer_object-subdata-sync'], 'subdata-sync')
2481 g(['arb_texture_buffer_object-unused-name'], 'unused-name')
2482 g(['arb_texture_buffer_object-render-no-bo'], 'render-no-bo')
2483 g(['arb_texture_buffer_object-indexed'], 'indexed')
2484 g(['arb_texture_buffer_object-re-init'], 're-init')
2485 g(['arb_texture_buffer_object-texture-buffer-size-clamp'], 'texture-buffer-size-clamp')
2487 with profile
.test_list
.group_manager(
2489 grouptools
.join('spec', 'ARB_texture_buffer_range')) as g
:
2490 g(['arb_texture_buffer_range-dlist'], 'dlist')
2491 g(['arb_texture_buffer_range-errors'], 'errors')
2492 g(['arb_texture_buffer_range-ranges'], 'ranges')
2493 g(['arb_texture_buffer_range-ranges-2'], 'ranges-2')
2494 g(['arb_texture_buffer_range-ranges-2', '-compat'], 'ranges-2 compat')
2496 with profile
.test_list
.group_manager(
2498 grouptools
.join('spec', 'ARB_texture_rectangle')) as g
:
2499 g(['1-1-linear-texture'])
2500 g(['texrect-many'], run_concurrent
=False)
2501 g(['getteximage-targets', 'RECT'])
2502 g(['texrect_simple_arb_texrect'], run_concurrent
=False)
2503 g(['arb_texrect-texture-base-level-error'], run_concurrent
=False)
2504 g(['fbo-blit', 'rect'], run_concurrent
=False)
2505 g(['tex-miplevel-selection', 'GL2:texture()', '2DRect'])
2506 g(['tex-miplevel-selection', 'GL2:texture()', '2DRectShadow'])
2507 g(['tex-miplevel-selection', 'GL2:textureProj', '2DRect'])
2508 g(['tex-miplevel-selection', 'GL2:textureProj', '2DRect_ProjVec4'])
2509 g(['tex-miplevel-selection', 'GL2:textureProj', '2DRectShadow'])
2510 add_msaa_visual_plain_tests(g
, ['copyteximage', 'RECT'],
2511 run_concurrent
=False)
2512 add_texwrap_target_tests(g
, 'RECT')
2514 with profile
.test_list
.group_manager(
2515 PiglitGLTest
, grouptools
.join('spec', 'ARB_texture_storage')) as g
:
2516 g(['arb_texture_storage-texture-storage'], 'texture-storage',
2517 run_concurrent
=False)
2518 g(['arb_texture_storage-texture-storage-attach-before'], 'attach-before',
2519 run_concurrent
=False)
2521 with profile
.test_list
.group_manager(
2523 grouptools
.join('spec', 'ARB_texture_storage_multisample')) as g
:
2524 g(['arb_texture_storage_multisample-tex-storage'], 'tex-storage')
2525 g(['arb_texture_storage_multisample-tex-param'], 'tex-param')
2527 with profile
.test_list
.group_manager(
2529 grouptools
.join('spec', 'ARB_texture_view')) as g
:
2530 g(['arb_texture_view-bug-layers-image'], 'bug-layers-image')
2531 g(['arb_texture_view-cubemap-view'], 'cubemap-view')
2532 g(['arb_texture_view-texture-immutable-levels'], 'immutable_levels')
2533 g(['arb_texture_view-max-level'], 'max-level')
2534 g(['arb_texture_view-mipgen'], 'mipgen')
2535 g(['arb_texture_view-params'], 'params')
2536 g(['arb_texture_view-formats'], 'formats')
2537 g(['arb_texture_view-targets'], 'targets')
2538 g(['arb_texture_view-queries'], 'queries')
2539 g(['arb_texture_view-rendering-target'], 'rendering-target')
2540 g(['arb_texture_view-rendering-levels'], 'rendering-levels')
2541 g(['arb_texture_view-rendering-layers'], 'rendering-layers')
2542 g(['arb_texture_view-rendering-layers-image'], 'rendering-layers-image')
2543 g(['arb_texture_view-rendering-formats'], 'rendering-formats')
2544 g(['arb_texture_view-rendering-r32ui'], 'rendering-r32ui')
2545 g(['arb_texture_view-lifetime-format'], 'lifetime-format')
2546 g(['arb_texture_view-getteximage-srgb'], 'getteximage-srgb')
2547 g(['arb_texture_view-texsubimage-levels'], 'texsubimage-levels')
2548 g(['arb_texture_view-texsubimage-levels', 'pbo'], 'texsubimage-levels pbo')
2549 g(['arb_texture_view-texsubimage-layers'], 'texsubimage-layers')
2550 g(['arb_texture_view-texsubimage-layers', 'pbo'], 'texsubimage-layers pbo')
2551 g(['arb_texture_view-clear-into-view-2d'], 'clear-into-view-2d')
2552 g(['arb_texture_view-clear-into-view-2d-array'],
2553 'clear-into-view-2d-array')
2554 g(['arb_texture_view-clear-into-view-layered'], 'clear-into-view-layered')
2555 g(['arb_texture_view-copytexsubimage-layers'], 'copytexsubimage-layers')
2556 g(['arb_texture_view-sampling-2d-array-as-cubemap'],
2557 'sampling-2d-array-as-cubemap')
2558 g(['arb_texture_view-sampling-2d-array-as-cubemap-array'],
2559 'sampling-2d-array-as-cubemap-array')
2560 g(['arb_texture_view-sampling-2d-array-as-2d-layer'],
2561 'sampling-2d-array-as-2d-layer')
2562 g(['arb_texture_view-fbo-blit'],
2565 with profile
.test_list
.group_manager(
2567 grouptools
.join('spec', 'OES_texture_view')) as g
:
2568 g(['arb_texture_view-rendering-formats_gles3'], 'rendering-formats')
2569 g(['arb_texture_view-rendering-layers_gles3'], 'rendering-layers')
2570 g(['arb_texture_view-rendering-levels_gles3'], 'rendering-levels')
2571 g(['arb_texture_view-rendering-target_gles3'], 'rendering-target')
2572 g(['arb_texture_view-sampling-2d-array-as-cubemap_gles3'],
2573 'sampling-2d-array-as-cubemap')
2574 g(['arb_texture_view-sampling-2d-array-as-cubemap-array_gles3'],
2575 'sampling-2d-array-as-cubemap-array')
2576 g(['arb_texture_view-sampling-2d-array-as-2d-layer_gles3'],
2577 'sampling-2d-array-as-2d-layer')
2578 g(['arb_texture_view-texture-immutable-levels_gles3'], 'immutable_levels')
2579 g(['arb_texture_view-formats_gles3'], 'formats')
2580 g(['arb_texture_view-queries_gles3'], 'queries')
2581 g(['arb_texture_view-targets_gles3'], 'targets')
2582 g(['arb_texture_view-clear-into-view-2d_gles3'], 'clear-into-view-2d')
2583 g(['arb_texture_view-clear-into-view-2d-array_gles3'],
2584 'clear-into-view-2d-array')
2585 g(['arb_texture_view-clear-into-view-layered_gles3'],
2586 'clear-into-view-layered')
2587 g(['arb_texture_view-copytexsubimage-layers_gles3'],
2588 'copytexsubimage-layers')
2589 g(['arb_texture_view-texsubimage-levels_gles3'], 'texsubimage-levels')
2590 g(['arb_texture_view-texsubimage-levels_gles3', 'pbo'],
2591 'texsubimage-levels pbo')
2592 g(['arb_texture_view-texsubimage-layers_gles3'], 'texsubimage-layers')
2593 g(['arb_texture_view-texsubimage-layers_gles3', 'pbo'],
2594 'texsubimage-layers pbo')
2596 with profile
.test_list
.group_manager(
2598 grouptools
.join('spec', '3DFX_texture_compression_FXT1')) as g
:
2599 g(['compressedteximage', 'GL_COMPRESSED_RGB_FXT1_3DFX'])
2600 g(['compressedteximage', 'GL_COMPRESSED_RGBA_FXT1_3DFX'])
2601 g(['fxt1-teximage'], run_concurrent
=False)
2602 g(['arb_texture_compression-invalid-formats', 'fxt1'],
2604 g(['fbo-generatemipmap-formats', 'GL_3DFX_texture_compression_FXT1'],
2605 'fbo-generatemipmap-formats')
2607 with profile
.test_list
.group_manager(
2608 PiglitGLTest
, grouptools
.join('spec', 'arb_clip_control')) as g
:
2609 g(['arb_clip_control-clip-control'])
2610 g(['arb_clip_control-depth-precision'])
2611 g(['arb_clip_control-viewport'])
2613 with profile
.test_list
.group_manager(
2614 PiglitGLTest
, grouptools
.join('spec', 'arb_color_buffer_float')) as g
:
2616 def f(name
, format
, p1
=None, p2
=None):
2617 testname
= '{}-{}{}{}'.format(
2619 '-{}'.format(p1
) if p1
else '',
2620 '-{}'.format(p2
) if p2
else '')
2621 cmd
= ['arb_color_buffer_float-{}'.format(name
), format
, p1
, p2
]
2622 g([c
for c
in cmd
if c
is not None], testname
)
2625 f('getteximage', 'GL_RGBA8')
2626 f('queries', 'GL_RGBA8')
2627 f('readpixels', 'GL_RGBA8')
2628 f('probepixel', 'GL_RGBA8')
2629 f('drawpixels', 'GL_RGBA8')
2630 f('clear', 'GL_RGBA8')
2631 f('render', 'GL_RGBA8')
2632 f('render', 'GL_RGBA8', 'fog')
2633 f('render', 'GL_RGBA8', 'sanity')
2634 f('render', 'GL_RGBA8', 'sanity', 'fog')
2635 f('queries', 'GL_RGBA8_SNORM')
2636 f('readpixels', 'GL_RGBA8_SNORM')
2637 f('probepixel', 'GL_RGBA8_SNORM')
2638 f('drawpixels', 'GL_RGBA8_SNORM')
2639 f('getteximage', 'GL_RGBA8_SNORM')
2640 f('clear', 'GL_RGBA8_SNORM')
2641 f('render', 'GL_RGBA8_SNORM')
2642 f('render', 'GL_RGBA8_SNORM', 'fog')
2643 f('render', 'GL_RGBA8_SNORM', 'sanity')
2644 f('render', 'GL_RGBA8_SNORM', 'sanity', 'fog')
2645 f('getteximage', 'GL_RGBA16F')
2646 f('queries', 'GL_RGBA16F')
2647 f('readpixels', 'GL_RGBA16F')
2648 f('probepixel', 'GL_RGBA16F')
2649 f('drawpixels', 'GL_RGBA16F')
2650 f('clear', 'GL_RGBA16F')
2651 f('render', 'GL_RGBA16F')
2652 f('render', 'GL_RGBA16F', 'fog')
2653 f('render', 'GL_RGBA16F', 'sanity')
2654 f('render', 'GL_RGBA16F', 'sanity', 'fog')
2655 f('getteximage', 'GL_RGBA32F')
2656 f('queries', 'GL_RGBA32F')
2657 f('readpixels', 'GL_RGBA32F')
2658 f('probepixel', 'GL_RGBA32F')
2659 f('drawpixels', 'GL_RGBA32F')
2660 f('clear', 'GL_RGBA32F')
2661 f('render', 'GL_RGBA32F')
2662 f('render', 'GL_RGBA32F', 'fog')
2663 f('render', 'GL_RGBA32F', 'sanity')
2664 f('render', 'GL_RGBA32F', 'sanity', 'fog')
2666 with profile
.test_list
.group_manager(
2667 PiglitGLTest
, grouptools
.join('spec', 'arb_depth_texture')) as g
:
2668 g(['depth-level-clamp'], run_concurrent
=False)
2669 g(['depth-tex-modes'], run_concurrent
=False)
2670 g(['texdepth'], run_concurrent
=False)
2671 add_depthstencil_render_miplevels_tests(g
, ('d=z24', 'd=z16'))
2672 add_texwrap_format_tests(g
, 'GL_ARB_depth_texture')
2673 add_fbo_depth_tests(g
, 'GL_DEPTH_COMPONENT16')
2674 add_fbo_depth_tests(g
, 'GL_DEPTH_COMPONENT24')
2675 add_fbo_depth_tests(g
, 'GL_DEPTH_COMPONENT32')
2676 add_fbo_formats_tests(g
, 'GL_ARB_depth_texture')
2678 with profile
.test_list
.group_manager(
2679 PiglitGLTest
, grouptools
.join('spec', 'arb_depth_buffer_float')) as g
:
2680 g(['fbo-clear-formats', 'GL_ARB_depth_buffer_float', 'stencil'],
2681 'fbo-clear-formats stencil')
2682 add_depthstencil_render_miplevels_tests(
2684 ['d=z32f_s8', 'd=z32f', 'd=z32f_s8_s=z24_s8', 'd=z32f_s=z24_s8',
2685 's=z24_s8_d=z32f_s8', 's=z24_s8_d=z32f', 'd=s=z32f_s8', 's=d=z32f_s8',
2687 add_fbo_stencil_tests(g
, 'GL_DEPTH32F_STENCIL8')
2688 add_texwrap_format_tests(g
, 'GL_ARB_depth_buffer_float')
2689 add_fbo_depth_tests(g
, 'GL_DEPTH_COMPONENT32F')
2690 add_fbo_depth_tests(g
, 'GL_DEPTH32F_STENCIL8')
2691 add_fbo_formats_tests(g
, 'GL_ARB_depth_buffer_float')
2692 add_fbo_depthstencil_tests(g
, 'GL_DEPTH32F_STENCIL8', 0)
2694 with profile
.test_list
.group_manager(
2695 PiglitGLTest
, grouptools
.join('spec', 'arb_get_texture_sub_image')) as g
:
2696 g(['arb_get_texture_sub_image-cubemap'])
2697 g(['arb_get_texture_sub_image-errors'])
2698 g(['arb_get_texture_sub_image-get'])
2699 g(['arb_get_texture_sub_image-getcompressed'])
2701 with profile
.test_list
.group_manager(
2703 grouptools
.join('spec', 'ext_texture_env_combine')) as g
:
2704 g(['ext_texture_env_combine-combine'], 'texture-env-combine')
2706 with profile
.test_list
.group_manager(
2708 grouptools
.join('spec', 'arb_texture_env_crossbar')) as g
:
2709 g(['crossbar'], run_concurrent
=False)
2711 with profile
.test_list
.group_manager(
2712 PiglitGLTest
, grouptools
.join('spec', 'arb_texture_compression')) as g
:
2713 g(['arb_texture_compression-internal-format-query'],
2714 'GL_TEXTURE_INTERNAL_FORMAT query')
2715 g(['arb_texture_compression-invalid-formats', 'unknown'],
2717 g(['fbo-generatemipmap-formats', 'GL_ARB_texture_compression'],
2718 'fbo-generatemipmap-formats')
2719 add_texwrap_format_tests(g
, 'GL_ARB_texture_compression')
2721 with profile
.test_list
.group_manager(
2723 grouptools
.join('spec', 'arb_texture_compression_bptc')) as g
:
2724 g(['arb_texture_compression-invalid-formats', 'bptc'], 'invalid formats')
2726 g(['bptc-float-modes'])
2727 g(['compressedteximage', 'GL_COMPRESSED_RGBA_BPTC_UNORM'])
2728 g(['compressedteximage', 'GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM'])
2729 g(['compressedteximage', 'GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT'])
2730 g(['compressedteximage', 'GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT'])
2731 g(['fbo-generatemipmap-formats', 'GL_ARB_texture_compression_bptc-unorm'],
2732 'fbo-generatemipmap-formats unorm')
2733 g(['fbo-generatemipmap-formats', 'GL_ARB_texture_compression_bptc-float'],
2734 'fbo-generatemipmap-formats float')
2735 add_texwrap_format_tests(g
, 'GL_ARB_texture_compression_bptc')
2737 with profile
.test_list
.group_manager(
2739 grouptools
.join('spec', 'ext_texture_compression_bptc')) as g
:
2740 g(['bptc-api_gles2'])
2742 with profile
.test_list
.group_manager(
2744 grouptools
.join('spec', 'ext_vertex_array_bgra')) as g
:
2745 g(['bgra-sec-color-pointer'], run_concurrent
=False)
2746 g(['bgra-vert-attrib-pointer'], run_concurrent
=False)
2748 with profile
.test_list
.group_manager(
2750 grouptools
.join('spec', 'apple_vertex_array_object')) as g
:
2751 g(['vao-01'], run_concurrent
=False)
2752 g(['vao-02'], run_concurrent
=False)
2753 g(['arb_vertex_array-isvertexarray', 'apple'], 'isvertexarray')
2755 with profile
.test_list
.group_manager(
2757 grouptools
.join('spec', 'arb_vertex_array_bgra')) as g
:
2758 g(['arb_vertex_array_bgra-api-errors'], 'api-errors', run_concurrent
=False)
2759 g(['arb_vertex_array_bgra-get'], 'get', run_concurrent
=False)
2761 with profile
.test_list
.group_manager(
2763 grouptools
.join('spec', 'arb_vertex_array_object')) as g
:
2764 g(['vao-element-array-buffer'])
2765 g(['arb_vertex_array-delete-object-0'], 'delete-object-0')
2766 g(['arb_vertex_array-isvertexarray'], 'isvertexarray')
2768 with profile
.test_list
.group_manager(
2770 grouptools
.join('spec', 'arb_vertex_buffer_object')) as g
:
2771 g(['arb_vertex_buffer_object-combined-vertex-index'],
2772 'combined-vertex-index')
2773 g(['arb_vertex_buffer_object-elements-negative-offset'],
2774 'elements-negative-offset')
2775 g(['arb_vertex_buffer_object-mixed-immediate-and-vbo'],
2776 'mixed-immediate-and-vbo')
2777 g(['arb_vertex_buffer_object-delete-mapped-buffer'])
2778 g(['arb_vertex_buffer_object-map-after-draw'])
2779 g(['arb_vertex_buffer_object-map-empty'])
2780 g(['arb_vertex_buffer_object-ib-data-sync'], 'ib-data-sync')
2781 g(['arb_vertex_buffer_object-ib-subdata-sync'], 'ib-subdata-sync')
2783 g(['vbo-bufferdata'])
2784 g(['vbo-map-remap'])
2785 g(['vbo-map-unsync'])
2786 g(['arb_vertex_buffer_object-vbo-subdata-many', 'drawarrays'],
2787 'vbo-subdata-many drawarrays')
2788 g(['arb_vertex_buffer_object-vbo-subdata-many', 'drawelements'],
2789 'vbo-subdata-many drawelements')
2790 g(['arb_vertex_buffer_object-vbo-subdata-many', 'drawrangeelements'],
2791 'vbo-subdata-many drawrangeelements')
2792 g(['vbo-subdata-sync'])
2793 g(['vbo-subdata-zero'])
2795 with profile
.test_list
.group_manager(
2797 grouptools
.join('spec', 'arb_vertex_program')) as g
:
2798 g(['arb_vertex_program-getenv4d-with-error'], 'getenv4d-with-error',
2799 run_concurrent
=False)
2800 g(['arb_vertex_program-getlocal4d-with-error'], 'getlocal4d-with-error',
2801 run_concurrent
=False)
2802 g(['arb_vertex_program-getlocal4f-max'], 'getlocal4f-max')
2803 g(['arb_vertex_program-getlocal4-errors'], 'getlocal4-errors')
2804 g(['clip-plane-transformation', 'arb'],
2805 'clip-plane-transformation arb')
2806 g(['arb_vertex_program-matrix-property-bindings'])
2807 g(['arb_vertex_program-minmax'], 'minmax')
2808 g(['arb_vertex_program-property-bindings'])
2809 g(['arb_vertex_program-unused-attributes'])
2810 g(['arb_vertex_program-get-limits-without-fp'], run_concurrent
=False)
2811 g(['vp-address-01'], run_concurrent
=False)
2812 g(['vp-address-02'], run_concurrent
=False)
2813 g(['vp-address-04'], run_concurrent
=False)
2814 g(['vp-bad-program'], run_concurrent
=False)
2815 g(['vp-max-array'], run_concurrent
=False)
2817 with profile
.test_list
.group_manager(
2819 grouptools
.join('spec', 'arb_viewport_array')) as g
:
2820 g(['arb_viewport_array-viewport-indices'], 'viewport-indices')
2821 g(['arb_viewport_array-depthrange-indices'], 'depthrange-indices')
2822 g(['arb_viewport_array-dlist'], 'display-list')
2823 g(['arb_viewport_array-scissor-check'], 'scissor-check')
2824 g(['arb_viewport_array-scissor-indices'], 'scissor-indices')
2825 g(['arb_viewport_array-bounds'], 'bounds')
2826 g(['arb_viewport_array-queries'], 'queries')
2827 g(['arb_viewport_array-minmax'], 'minmax')
2828 g(['arb_viewport_array-render-viewport'], 'render-viewport')
2829 g(['arb_viewport_array-render-viewport-2'], 'render-viewport-2')
2830 g(['arb_viewport_array-render-depthrange'], 'render-depthrange')
2831 g(['arb_viewport_array-render-scissor'], 'render-scissor')
2832 g(['arb_viewport_array-clear'], 'clear')
2834 with profile
.test_list
.group_manager(
2836 grouptools
.join('spec', 'oes_viewport_array')) as g
:
2837 g(['arb_viewport_array-viewport-indices_gles3'], 'viewport-indices')
2838 g(['arb_viewport_array-depthrange-indices_gles3'], 'depthrange-indices')
2839 g(['arb_viewport_array-scissor-check_gles3'], 'scissor-check')
2840 g(['arb_viewport_array-scissor-indices_gles3'], 'scissor-indices')
2841 g(['arb_viewport_array-bounds_gles3'], 'bounds')
2842 g(['arb_viewport_array-queries_gles3'], 'queries')
2843 g(['arb_viewport_array-minmax_gles3'], 'minmax')
2844 g(['arb_viewport_array-render-viewport_gles3'], 'render-viewport')
2845 g(['arb_viewport_array-render-viewport-2_gles3'], 'render-viewport-2')
2846 g(['arb_viewport_array-render-depthrange_gles3'], 'render-depthrange')
2847 g(['arb_viewport_array-render-scissor_gles3'], 'render-scissor')
2848 g(['arb_viewport_array-clear_gles3'], 'clear')
2850 with profile
.test_list
.group_manager(
2852 grouptools
.join('spec', 'nv_vertex_program2_option')) as g
:
2853 g(['vp-address-03'], run_concurrent
=False)
2854 g(['vp-address-05'], run_concurrent
=False)
2855 g(['vp-address-06'], run_concurrent
=False)
2856 g(['vp-clipdistance-01'], run_concurrent
=False)
2857 g(['vp-clipdistance-02'], run_concurrent
=False)
2858 g(['vp-clipdistance-03'], run_concurrent
=False)
2859 g(['vp-clipdistance-04'], run_concurrent
=False)
2861 with profile
.test_list
.group_manager(
2862 PiglitGLTest
, grouptools
.join('spec', 'ext_framebuffer_blit')) as g
:
2863 g(['fbo-blit'], run_concurrent
=False)
2864 g(['fbo-copypix'], run_concurrent
=False)
2865 g(['fbo-readdrawpix'], run_concurrent
=False)
2866 g(['fbo-sys-blit'], run_concurrent
=False)
2867 g(['fbo-sys-sub-blit'], run_concurrent
=False)
2868 g(['fbo-blit-check-limits'], run_concurrent
=False)
2869 g(['fbo-generatemipmap-versus-READ_FRAMEBUFFER'])
2871 with profile
.test_list
.group_manager(
2873 grouptools
.join('spec',
2874 'ext_framebuffer_multisample_blit_scaled')) as g
:
2875 g(['ext_framebuffer_multisample_blit_scaled-negative-blit-scaled'],
2876 'negative-blit-scaled')
2878 for sample_count
in MSAA_SAMPLE_COUNTS
:
2879 g(['ext_framebuffer_multisample_blit_scaled-blit-scaled',
2881 'blit-scaled samples={}'.format(sample_count
))
2883 for sample_count
in MSAA_SAMPLE_COUNTS
:
2884 g(['ext_framebuffer_multisample_blit_scaled-blit-scaled',
2885 sample_count
, 'array'],
2886 'blit-scaled samples={} with GL_TEXTURE_2D_MULTISAMPLE_ARRAY'.format(sample_count
))
2888 with profile
.test_list
.group_manager(
2890 grouptools
.join('spec', 'ext_framebuffer_multisample')) as g
:
2891 g(['ext_framebuffer_multisample-blit-mismatched-samples'],
2892 'blit-mismatched-samples')
2893 g(['ext_framebuffer_multisample-blit-mismatched-sizes'],
2894 'blit-mismatched-sizes')
2895 g(['ext_framebuffer_multisample-blit-mismatched-formats'],
2896 'blit-mismatched-formats')
2897 g(['ext_framebuffer_multisample-dlist'], 'dlist')
2898 g(['ext_framebuffer_multisample-enable-flag'], 'enable-flag')
2899 g(['ext_framebuffer_multisample-minmax'], 'minmax')
2900 g(['ext_framebuffer_multisample-negative-copypixels'],
2901 'negative-copypixels')
2902 g(['ext_framebuffer_multisample-negative-copyteximage'],
2903 'negative-copyteximage')
2904 g(['ext_framebuffer_multisample-negative-max-samples'],
2905 'negative-max-samples')
2906 g(['ext_framebuffer_multisample-negative-mismatched-samples'],
2907 'negative-mismatched-samples')
2908 g(['ext_framebuffer_multisample-negative-readpixels'],
2909 'negative-readpixels')
2910 g(['ext_framebuffer_multisample-renderbufferstorage-samples'],
2911 'renderbufferstorage-samples')
2912 g(['ext_framebuffer_multisample-renderbuffer-samples'],
2913 'renderbuffer-samples')
2914 g(['ext_framebuffer_multisample-samples'], 'samples')
2915 g(['ext_framebuffer_multisample-alpha-blending'], 'alpha-blending')
2916 g(['ext_framebuffer_multisample-alpha-blending', 'slow_cc'],
2917 'alpha-blending slow_cc')
2918 g(['ext_framebuffer_multisample-fast-clear'], 'fast-clear')
2920 for sample_count
in MSAA_SAMPLE_COUNTS
:
2921 g(['ext_framebuffer_multisample-alpha-blending-after-rendering',
2923 'alpha-blending-after-rendering {}'.format(sample_count
))
2925 for num_samples
in ['all_samples'] + MSAA_SAMPLE_COUNTS
:
2926 g(['ext_framebuffer_multisample-formats', num_samples
],
2927 'formats {}'.format(num_samples
))
2929 for test_type
in ('color', 'srgb', 'stencil_draw', 'stencil_resolve',
2930 'depth_draw', 'depth_resolve'):
2931 sensible_options
= ['small', 'depthstencil']
2932 if test_type
in ('color', 'srgb'):
2933 sensible_options
.append('linear')
2934 for options
in power_set(sensible_options
):
2935 g(['ext_framebuffer_multisample-accuracy', num_samples
,
2936 test_type
] + options
,
2937 ' '.join(['accuracy', num_samples
, test_type
] + options
))
2939 # Note: the interpolation tests also check for sensible behaviour with
2940 # non-multisampled framebuffers, so go ahead and test them with
2941 # num_samples==0 as well.
2942 for num_samples
in ['0'] + MSAA_SAMPLE_COUNTS
:
2943 g(['ext_framebuffer_multisample-blit-multiple-render-targets',
2945 'blit-multiple-render-targets {}'.format(num_samples
))
2947 for test_type
in ('non-centroid-disabled', 'centroid-disabled',
2948 'centroid-edges', 'non-centroid-deriv',
2949 'non-centroid-deriv-disabled', 'centroid-deriv',
2950 'centroid-deriv-disabled'):
2951 g(['ext_framebuffer_multisample-interpolation', num_samples
,
2953 'interpolation {} {}'.format(num_samples
, test_type
))
2955 for sample_count
in MSAA_SAMPLE_COUNTS
:
2956 g(['ext_framebuffer_multisample-turn-on-off', sample_count
],
2957 'turn-on-off {}'.format(sample_count
), run_concurrent
=False)
2959 for buffer_type
in ('color', 'depth', 'stencil'):
2960 if buffer_type
== 'color':
2961 sensible_options
= ['linear']
2963 sensible_options
= []
2965 for options
in power_set(sensible_options
):
2966 g(['ext_framebuffer_multisample-upsample', sample_count
,
2967 buffer_type
] + options
,
2968 'upsample {} {}'.format(
2969 sample_count
, ' '.join([buffer_type
] + options
)))
2970 g(['ext_framebuffer_multisample-multisample-blit',
2971 sample_count
, buffer_type
] + options
,
2972 'multisample-blit {}'.format(
2973 ' '.join([sample_count
, buffer_type
] + options
)))
2975 for blit_type
in ('msaa', 'upsample', 'downsample'):
2976 g(['ext_framebuffer_multisample-unaligned-blit',
2977 sample_count
, buffer_type
, blit_type
],
2978 'unaligned-blit {} {} {}'.format(
2979 sample_count
, buffer_type
, blit_type
))
2981 for test_mode
in ('inverted', 'non-inverted'):
2982 g(['ext_framebuffer_multisample-sample-coverage', sample_count
,
2984 'sample-coverage {} {}'.format(sample_count
, test_mode
))
2986 for buffer_type
in ('color', 'depth'):
2987 g(['ext_framebuffer_multisample-sample-alpha-to-coverage',
2988 sample_count
, buffer_type
],
2989 'sample-alpha-to-coverage {} {}'.format(
2990 sample_count
, buffer_type
))
2992 for test
in ['line-smooth', 'point-smooth', 'polygon-smooth',
2993 'sample-alpha-to-one',
2994 'draw-buffers-alpha-to-one',
2995 'draw-buffers-alpha-to-coverage',
2996 'alpha-to-coverage-dual-src-blend',
2997 'alpha-to-coverage-no-draw-buffer-zero',
2998 'alpha-to-coverage-no-draw-buffer-zero-write',
2999 'alpha-to-one-dual-src-blend',
3000 'int-draw-buffers-alpha-to-one',
3001 'int-draw-buffers-alpha-to-coverage',
3002 'alpha-to-one-msaa-disabled',
3003 'alpha-to-one-single-sample-buffer',
3004 'bitmap', 'polygon-stipple']:
3005 g(['ext_framebuffer_multisample-{}'.format(test
),
3007 '{} {}'.format(test
, sample_count
))
3009 for blit_type
in ('msaa', 'upsample', 'downsample', 'normal'):
3010 g(['ext_framebuffer_multisample-clip-and-scissor-blit',
3011 sample_count
, blit_type
],
3012 'clip-and-scissor-blit {} {}'.format(sample_count
, blit_type
))
3014 for flip_direction
in ('x', 'y'):
3015 g(['ext_framebuffer_multisample-blit-flipped', sample_count
,
3017 'blit-flipped {} {}'.format(sample_count
, flip_direction
))
3019 for buffer_type
in ('color', 'depth', 'stencil'):
3020 g(['ext_framebuffer_multisample-clear', sample_count
, buffer_type
],
3021 'clear {} {}'.format(sample_count
, buffer_type
))
3023 for test_type
in ('depth', 'depth-computed', 'stencil'):
3024 for buffer_config
in ('combined', 'separate', 'single'):
3025 g(['ext_framebuffer_multisample-no-color', sample_count
,
3026 test_type
, buffer_config
],
3027 'no-color {} {} {}'.format(
3028 sample_count
, test_type
, buffer_config
))
3030 with profile
.test_list
.group_manager(
3032 grouptools
.join('spec', 'amd_framebuffer_multisample_advanced')) as g
:
3033 g(['amd_framebuffer_multisample_advanced-api'], 'api-glcore')
3034 g(['amd_framebuffer_multisample_advanced-api-gles'], 'api-gles3')
3036 with profile
.test_list
.group_manager(
3038 grouptools
.join('spec', 'ext_framebuffer_object')) as g
:
3039 g(['fbo-generatemipmap-noimage'])
3042 g(['fbo-alphatest-formats'])
3043 g(['fbo-alphatest-nocolor'])
3044 g(['fbo-alphatest-nocolor-ff'])
3045 g(['fbo-blending-formats'])
3046 g(['fbo-blending-format-quirks'])
3047 g(['fbo-blending-snorm'])
3048 g(['fbo-bind-renderbuffer'])
3049 g(['fbo-clearmipmap'])
3050 g(['fbo-clear-formats'])
3051 g(['fbo-colormask-formats'])
3052 g(['fbo-copyteximage'])
3053 g(['fbo-copyteximage-simple'])
3056 g(['fbo-depth-sample-compare'])
3057 g(['fbo-drawbuffers'])
3058 g(['fbo-drawbuffers', 'masked-clear'])
3059 g(['fbo-drawbuffers-arbfp'])
3060 g(['fbo-drawbuffers-blend-add'])
3061 g(['fbo-drawbuffers-fragcolor'])
3062 g(['fbo-drawbuffers-maxtargets'])
3063 g(['ext_framebuffer_object-error-handling'])
3064 g(['fbo-finish-deleted'])
3066 g(['fbo-flushing-2'])
3067 g(['fbo-fragcoord'])
3068 g(['fbo-fragcoord2'])
3069 g(['fbo-generatemipmap'])
3070 g(['fbo-generatemipmap-filtering'])
3071 g(['fbo-generatemipmap-formats'])
3072 g(['fbo-generatemipmap-scissor'])
3073 g(['fbo-generatemipmap-swizzle'])
3074 g(['fbo-generatemipmap-nonsquare'])
3075 g(['fbo-generatemipmap-npot'])
3076 g(['fbo-generatemipmap-viewport'])
3078 g(['ext_framebuffer_object-mipmap'])
3079 g(['fbo-nodepth-test'])
3080 g(['fbo-nostencil-test'])
3081 g(['fbo-readpixels'])
3082 g(['fbo-readpixels-depth-formats'])
3083 g(['fbo-scissor-bitmap'])
3084 g(['fbo-storage-completeness'])
3085 g(['fbo-storage-formats'])
3086 g(['getteximage-formats', 'init-by-rendering'])
3087 g(['getteximage-formats', 'init-by-clear-and-render'])
3088 g(['ext_framebuffer_multisample-fast-clear', 'single-sample'],
3090 g(['ext_framebuffer_object-border-texture-finish'])
3091 add_fbo_stencil_tests(g
, 'GL_STENCIL_INDEX1')
3092 add_fbo_stencil_tests(g
, 'GL_STENCIL_INDEX4')
3093 add_fbo_stencil_tests(g
, 'GL_STENCIL_INDEX8')
3094 add_fbo_stencil_tests(g
, 'GL_STENCIL_INDEX16')
3097 with profile
.test_list
.group_manager(
3099 grouptools
.join('spec', 'ext_gpu_shader4')) as g
:
3100 g(['gl-3.1-mixed-int-float-fbo', 'ext_gpu_shader4'], 'bindfragdatalocation mixed-int-float-fbo')
3101 g(['gl-3.1-mixed-int-float-fbo', 'ext_gpu_shader4', 'int_second'], 'bindfragdatalocation mixed-int-float-fbo int_second')
3102 g(['ext_gpu_shader4-vertexid-beginend'])
3103 g(['ext_gpu_shader4-vertexid-drawarrays'])
3104 g(['ext_gpu_shader4-vertexid-drawelements'])
3106 for test
in ['1DArray', '2DArray', '1DArrayShadow', '2DArrayShadow', 'CubeShadow']:
3107 g(['tex-miplevel-selection', 'GPU4texture()', test
])
3108 g(['tex-miplevel-selection', 'GPU4texture(bias)', test
])
3110 for stage
in ['1DArray', '2DArray', '1DArrayShadow']:
3111 g(['tex-miplevel-selection', 'GPU4textureLod', stage
])
3113 for stage
in ['1D', '2D', '3D', '2DRect', '2DRectShadow', '1DShadow',
3114 '2DShadow', '1DArray', '2DArray', '1DArrayShadow',
3116 g(['tex-miplevel-selection', 'GPU4textureOffset', stage
])
3118 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '2DRect',
3119 '2DRect_ProjVec4', '2DRectShadow', '1DShadow', '2DShadow']:
3120 g(['tex-miplevel-selection', 'GPU4textureProjOffset', stage
])
3122 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
3124 g(['tex-miplevel-selection', 'GPU4textureProjOffset(bias)', stage
])
3126 for stage
in ['1D', '2D', '3D', 'Cube', '2DRect', '2DRectShadow',
3127 '1DShadow', '2DShadow', 'CubeShadow', '1DArray', '2DArray',
3128 '1DArrayShadow', '2DArrayShadow', 'CubeArray']:
3129 g(['tex-miplevel-selection', 'GPU4textureGrad', stage
])
3131 for stage
in ['1D', '2D', '3D', '2DRect', '2DRectShadow', '1DShadow',
3132 '2DShadow', '1DArray', '2DArray', '1DArrayShadow',
3134 g(['tex-miplevel-selection', 'GPU4textureGradOffset', stage
])
3136 for stage
in ['1D', '2D', '3D', '1D_ProjVec4', '2D_ProjVec4', '2DRect',
3137 '2DRect_ProjVec4', '1DShadow', '2DShadow', '2DRectShadow']:
3138 g(['tex-miplevel-selection', 'GPU4textureProjGrad', stage
])
3139 g(['tex-miplevel-selection', 'GPU4textureProjGradOffset', stage
])
3141 for stage
in ['1D', '2D', '3D', '1DShadow', '2DShadow', '1DArray',
3142 '2DArray', '1DArrayShadow']:
3143 g(['tex-miplevel-selection', 'GPU4textureLodOffset', stage
])
3145 for stage
in ['1D', '2D', '3D', '1D_ProjVec4', '2D_ProjVec4', '1DShadow',
3147 g(['tex-miplevel-selection', 'GPU4textureProjLodOffset', stage
])
3149 with profile
.test_list
.group_manager(
3150 PiglitGLTest
, grouptools
.join('spec', 'ext_image_dma_buf_import')) as \
3152 g(['ext_image_dma_buf_import-invalid_hints'], run_concurrent
=False)
3153 g(['ext_image_dma_buf_import-invalid_attributes'], run_concurrent
=False)
3154 g(['ext_image_dma_buf_import-missing_attributes'], run_concurrent
=False)
3155 g(['ext_image_dma_buf_import-ownership_transfer'], run_concurrent
=False)
3156 g(['ext_image_dma_buf_import-unsupported_format'], run_concurrent
=False)
3157 g(['ext_image_dma_buf_import-intel_external_sampler_only'],
3158 run_concurrent
=False)
3159 g(['ext_image_dma_buf_import-refcount'])
3160 g(['ext_image_dma_buf_import-sample_rgb', '-fmt=AR24'],
3161 'ext_image_dma_buf_import-sample_argb8888', run_concurrent
=False)
3162 g(['ext_image_dma_buf_import-sample_rgb', '-fmt=XR24', '-alpha-one'],
3163 'ext_image_dma_buf_import-sample_xrgb8888', run_concurrent
=False)
3164 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=NV12'],
3165 'ext_image_dma_buf_import-sample_nv12', run_concurrent
=False)
3166 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=YU12'],
3167 'ext_image_dma_buf_import-sample_yuv420', run_concurrent
=False)
3168 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=YV12'],
3169 'ext_image_dma_buf_import-sample_yvu420', run_concurrent
=False)
3170 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=AYUV'],
3171 'ext_image_dma_buf_import-sample_ayuv', run_concurrent
=False)
3172 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=XYUV'],
3173 'ext_image_dma_buf_import-sample_xyuv', run_concurrent
=False)
3174 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=P010'],
3175 'ext_image_dma_buf_import-sample_p010', run_concurrent
=False)
3176 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=P012'],
3177 'ext_image_dma_buf_import-sample_p012', run_concurrent
=False)
3178 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=P016'],
3179 'ext_image_dma_buf_import-sample_p016', run_concurrent
=False)
3180 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y210'],
3181 'ext_image_dma_buf_import-sample_y210', run_concurrent
=False)
3182 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y212'],
3183 'ext_image_dma_buf_import-sample_y212', run_concurrent
=False)
3184 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y216'],
3185 'ext_image_dma_buf_import-sample_y216', run_concurrent
=False)
3186 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y410'],
3187 'ext_image_dma_buf_import-sample_y410', run_concurrent
=False)
3188 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y412'],
3189 'ext_image_dma_buf_import-sample_y412', run_concurrent
=False)
3190 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y416'],
3191 'ext_image_dma_buf_import-sample_y416', run_concurrent
=False)
3192 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=YUYV'],
3193 'ext_image_dma_buf_import-sample_yuyv', run_concurrent
=False)
3194 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=UYVY'],
3195 'ext_image_dma_buf_import-sample_uyvy', run_concurrent
=False)
3196 g(['ext_image_dma_buf_import-transcode-nv12-as-r8-gr88'],
3197 'ext_image_dma_buf_import-transcode-nv12-as-r8-gr88',
3198 run_concurrent
=False)
3199 g(['ext_image_dma_buf_import-export'], run_concurrent
=False)
3200 g(['ext_image_dma_buf_import-export-tex'], run_concurrent
=False)
3201 g(['ext_image_dma_buf_import-reimport-bug'], run_concurrent
=False)
3203 with profile
.test_list
.group_manager(
3205 grouptools
.join('spec', 'ext_packed_depth_stencil')) as g
:
3206 g(['fbo-blit-d24s8'], run_concurrent
=False)
3207 g(['fbo-clear-formats', 'GL_EXT_packed_depth_stencil', 'stencil'],
3208 'fbo-clear-formats stencil')
3209 g(['ext_packed_depth_stencil-depth-stencil-texture'],
3210 'DEPTH_STENCIL texture')
3211 g(['ext_packed_depth_stencil-errors'], 'errors')
3212 g(['ext_packed_depth_stencil-getteximage'], 'getteximage')
3213 g(['ext_packed_depth_stencil-readdrawpixels'], 'readdrawpixels')
3214 g(['ext_packed_depth_stencil-texsubimage'], 'texsubimage')
3215 g(['ext_packed_depth_stencil-readpixels-24_8'], 'readpixels-24_8',
3216 run_concurrent
=False)
3217 add_depthstencil_render_miplevels_tests(
3219 ['s=z24_s8', 'd=z24_s8', 'd=z24_s8_s=z24_s8', 'd=z24_s=z24_s8',
3220 's=z24_s8_d=z24_s8', 's=z24_s8_d=z24', 'd=s=z24_s8', 's=d=z24_s8',
3222 add_fbo_stencil_tests(g
, 'GL_DEPTH24_STENCIL8')
3223 add_texwrap_format_tests(g
, 'GL_EXT_packed_depth_stencil')
3224 add_fbo_depth_tests(g
, 'GL_DEPTH24_STENCIL8')
3225 add_fbo_formats_tests(g
, 'GL_EXT_packed_depth_stencil')
3226 add_fbo_depthstencil_tests(g
, 'GL_DEPTH24_STENCIL8', 0)
3228 with profile
.test_list
.group_manager(
3230 grouptools
.join('spec', 'oes_packed_depth_stencil')) as g
:
3231 g(['oes_packed_depth_stencil-depth-stencil-texture_gles2'],
3232 'DEPTH_STENCIL texture GLES2')
3233 g(['oes_packed_depth_stencil-depth-stencil-texture_gles1'],
3234 'DEPTH_STENCIL texture GLES1')
3236 with profile
.test_list
.group_manager(
3238 grouptools
.join('spec', 'oes_required_internalformat')) as g
:
3239 g(['oes_required_internalformat-renderbuffer'], 'renderbuffer')
3241 with profile
.test_list
.group_manager(
3243 grouptools
.join('spec', 'ext_occlusion_query_boolean')) as g
:
3244 g(['ext_occlusion_query_boolean-any-samples'], 'any-samples')
3246 with profile
.test_list
.group_manager(
3248 grouptools
.join('spec', 'ext_disjoint_timer_query')) as g
:
3249 g(['ext_disjoint_timer_query-simple'], 'simple')
3251 with profile
.test_list
.group_manager(
3253 grouptools
.join('spec', 'ext_texture_norm16')) as g
:
3254 g(['ext_texture_norm16-render'], 'render')
3256 with profile
.test_list
.group_manager(
3258 grouptools
.join('spec', 'ext_render_snorm')) as g
:
3259 g(['ext_render_snorm-render'], 'render')
3261 with profile
.test_list
.group_manager(
3263 grouptools
.join('spec', 'ext_frag_depth')) as g
:
3264 g(['fragdepth_gles2'])
3266 with profile
.test_list
.group_manager(
3268 grouptools
.join('spec', 'ext_texture_array')) as g
:
3269 g(['fbo-generatemipmap-array'])
3270 g(['fbo-generatemipmap-array', 'RGB9_E5'])
3271 g(['fbo-generatemipmap-array', 'S3TC_DXT1'])
3272 g(['ext_texture_array-maxlayers'], 'maxlayers')
3273 g(['ext_texture_array-gen-mipmap'], 'gen-mipmap')
3274 g(['fbo-array'], run_concurrent
=False)
3275 g(['array-texture'], run_concurrent
=False)
3276 g(['ext_texture_array-errors'])
3277 g(['getteximage-targets', '1D_ARRAY'])
3278 g(['getteximage-targets', '2D_ARRAY'])
3279 g(['texsubimage', 'array'])
3280 add_msaa_visual_plain_tests(g
, ['copyteximage', '1D_ARRAY'],
3281 run_concurrent
=False)
3282 add_msaa_visual_plain_tests(g
, ['copyteximage', '2D_ARRAY'],
3283 run_concurrent
=False)
3284 for test
in ('depth-clear', 'depth-layered-clear', 'depth-draw',
3285 'fs-writes-depth', 'stencil-clear', 'stencil-layered-clear',
3286 'stencil-draw', 'fs-writes-stencil'):
3287 g(['fbo-depth-array', test
])
3288 for test_mode
in ['teximage', 'texsubimage']:
3289 g(['ext_texture_array-compressed', test_mode
, '-fbo'],
3290 'compressed {0}'.format(test_mode
),
3291 run_concurrent
=False)
3292 g(['ext_texture_array-compressed', test_mode
, 'pbo', '-fbo'],
3293 'compressed {0} pbo'.format(test_mode
),
3294 run_concurrent
=False)
3296 with profile
.test_list
.group_manager(
3298 grouptools
.join('spec', 'arb_texture_cube_map')) as g
:
3299 g(['arb_texture_cube_map-unusual-order'], run_concurrent
=False)
3300 g(['cubemap'], run_concurrent
=False)
3301 g(['cubemap-getteximage-pbo'])
3302 g(['cubemap-mismatch'], run_concurrent
=False)
3303 g(['cubemap', 'npot'], 'cubemap npot', run_concurrent
=False)
3304 g(['cubemap-shader'], run_concurrent
=False)
3305 g(['cubemap-shader', 'lod'], 'cubemap-shader lod', run_concurrent
=False)
3306 g(['cubemap-shader', 'bias'], 'cubemap-shader bias', run_concurrent
=False)
3307 g(['getteximage-targets', 'CUBE'])
3308 add_msaa_visual_plain_tests(g
, ['copyteximage', 'CUBE'],
3309 run_concurrent
=False)
3311 with profile
.test_list
.group_manager(
3313 grouptools
.join('spec', 'arb_texture_cube_map_array')) as g
:
3314 g(['arb_texture_cube_map_array-get'], run_concurrent
=False)
3315 g(['arb_texture_cube_map_array-teximage3d-invalid-values'],
3316 run_concurrent
=False)
3317 g(['arb_texture_cube_map_array-cubemap'], run_concurrent
=False)
3318 g(['arb_texture_cube_map_array-cubemap-lod'], run_concurrent
=False)
3319 g(['arb_texture_cube_map_array-fbo-cubemap-array'], run_concurrent
=False)
3320 g(['arb_texture_cube_map_array-sampler-cube-array-shadow'],
3321 run_concurrent
=False)
3322 g(['getteximage-targets', 'CUBE_ARRAY'])
3323 g(['glsl-resource-not-bound', 'CubeArray'])
3324 g(['fbo-generatemipmap-cubemap', 'array'])
3325 g(['fbo-generatemipmap-cubemap', 'array', 'RGB9_E5'])
3326 g(['fbo-generatemipmap-cubemap', 'array', 'S3TC_DXT1'])
3327 g(['texsubimage', 'cube_map_array'])
3329 for stage
in ['vs', 'gs', 'fs', 'tes']:
3331 for sampler
in['samplerCubeArray', 'isamplerCubeArray',
3332 'usamplerCubeArray', 'samplerCubeArrayShadow']:
3333 g(['textureSize', stage
, sampler
],
3334 grouptools
.join('textureSize', '{}-textureSize-{}'.format(
3337 with profile
.test_list
.group_manager(
3339 grouptools
.join('spec', 'ext_texture_swizzle')) as g
:
3340 g(['ext_texture_swizzle-api'])
3341 g(['ext_texture_swizzle-swizzle'])
3342 g(['depth_texture_mode_and_swizzle'], 'depth_texture_mode_and_swizzle')
3344 with profile
.test_list
.group_manager(
3346 grouptools
.join('spec', 'ext_texture_compression_latc')) as g
:
3347 g(['arb_texture_compression-invalid-formats', 'latc'], 'invalid formats')
3348 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_latc'],
3349 'fbo-generatemipmap-formats')
3350 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_latc-signed'],
3351 'fbo-generatemipmap-formats-signed')
3352 add_texwrap_format_tests(g
, 'GL_EXT_texture_compression_latc')
3354 with profile
.test_list
.group_manager(
3356 grouptools
.join('spec', 'ext_texture_compression_rgtc')) as g
:
3357 g(['compressedteximage', 'GL_COMPRESSED_RED_RGTC1_EXT'])
3358 g(['compressedteximage', 'GL_COMPRESSED_RED_GREEN_RGTC2_EXT'])
3359 g(['compressedteximage', 'GL_COMPRESSED_SIGNED_RED_RGTC1_EXT'])
3360 g(['compressedteximage', 'GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT'])
3361 g(['arb_texture_compression-invalid-formats', 'rgtc'], 'invalid formats')
3362 g(['rgtc-teximage-01'], run_concurrent
=False)
3363 g(['rgtc-teximage-02'], run_concurrent
=False)
3364 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_rgtc'],
3365 'fbo-generatemipmap-formats')
3366 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_rgtc-signed'],
3367 'fbo-generatemipmap-formats-signed')
3368 add_texwrap_format_tests(g
, 'GL_EXT_texture_compression_rgtc')
3369 g(['rgtc-api_gles2'])
3371 with profile
.test_list
.group_manager(
3373 grouptools
.join('spec', 'ext_texture_compression_s3tc')) as g
:
3374 g(['compressedteximage', 'GL_COMPRESSED_RGB_S3TC_DXT1_EXT'])
3375 g(['compressedteximage', 'GL_COMPRESSED_RGBA_S3TC_DXT1_EXT'])
3376 g(['compressedteximage', 'GL_COMPRESSED_RGBA_S3TC_DXT3_EXT'])
3377 g(['compressedteximage', 'GL_COMPRESSED_RGBA_S3TC_DXT5_EXT'])
3378 g(['arb_texture_compression-invalid-formats', 's3tc'], 'invalid formats')
3379 g(['gen-compressed-teximage'], run_concurrent
=False)
3381 g(['s3tc-errors_gles2'])
3382 g(['s3tc-targeted'])
3383 g(['s3tc-teximage'], run_concurrent
=False)
3384 g(['s3tc-teximage_gles2'], run_concurrent
=False)
3385 g(['s3tc-texsubimage'], run_concurrent
=False)
3386 g(['s3tc-texsubimage_gles2'], run_concurrent
=False)
3387 g(['getteximage-targets', '2D', 'S3TC'])
3388 g(['getteximage-targets', '2D_ARRAY', 'S3TC'])
3389 g(['getteximage-targets', 'CUBE', 'S3TC'])
3390 g(['getteximage-targets', 'CUBE_ARRAY', 'S3TC'])
3391 g(['compressedteximage', 'GL_COMPRESSED_SRGB_S3TC_DXT1_EXT'])
3392 g(['compressedteximage', 'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT'])
3393 g(['compressedteximage', 'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT'])
3394 g(['compressedteximage', 'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT'])
3395 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_s3tc'],
3396 'fbo-generatemipmap-formats')
3397 add_texwrap_format_tests(g
, 'GL_EXT_texture_compression_s3tc')
3399 with profile
.test_list
.group_manager(
3401 grouptools
.join('spec', 'ati_texture_compression_3dc')) as g
:
3402 g(['arb_texture_compression-invalid-formats', '3dc'], 'invalid formats')
3403 g(['fbo-generatemipmap-formats', 'GL_ATI_texture_compression_3dc'],
3404 'fbo-generatemipmap-formats')
3405 add_texwrap_format_tests(g
, 'GL_ATI_texture_compression_3dc')
3407 with profile
.test_list
.group_manager(
3409 grouptools
.join('spec', 'ext_packed_float')) as g
:
3410 g(['ext_packed_float-pack'], 'pack')
3411 g(['query-rgba-signed-components'], 'query-rgba-signed-components')
3412 g(['getteximage-invalid-format-for-packed-type'],
3413 'getteximage-invalid-format-for-packed-type')
3414 add_msaa_formats_tests(g
, 'GL_EXT_packed_float')
3415 add_texwrap_format_tests(g
, 'GL_EXT_packed_float')
3416 add_fbo_formats_tests(g
, 'GL_EXT_packed_float')
3418 with profile
.test_list
.group_manager(
3420 grouptools
.join('spec', 'arb_texture_float')) as g
:
3421 g(['arb_texture_float-texture-float-formats'], run_concurrent
=False)
3422 g(['arb_texture_float-get-tex3d'], run_concurrent
=False)
3423 add_msaa_formats_tests(g
, 'GL_ARB_texture_float')
3424 add_texwrap_format_tests(g
, 'GL_ARB_texture_float')
3425 add_fbo_formats_tests(g
, 'GL_ARB_texture_float')
3427 with profile
.test_list
.group_manager(
3429 grouptools
.join('spec', 'oes_texture_float')) as g
:
3430 g(['oes_texture_float'])
3431 g(['oes_texture_float', 'half'])
3432 g(['oes_texture_float', 'linear'])
3433 g(['oes_texture_float', 'half', 'linear'])
3436 with profile
.test_list
.group_manager(
3438 grouptools
.join('spec', 'ext_texture_integer')) as g
:
3439 g(['ext_texture_integer-api-drawpixels'], 'api-drawpixels')
3440 g(['ext_texture_integer-api-teximage'], 'api-teximage')
3441 g(['ext_texture_integer-api-readpixels'], 'api-readpixels')
3442 g(['ext_texture_integer-fbo-blending'], 'fbo-blending')
3443 g(['ext_texture_integer-fbo-blending', 'GL_ARB_texture_rg'],
3444 'fbo-blending GL_ARB_texture_rg')
3445 g(['ext_texture_integer-fbo_integer_precision_clear'],
3446 'fbo_integer_precision_clear', run_concurrent
=False)
3447 g(['ext_texture_integer-fbo_integer_readpixels_sint_uint'],
3448 'fbo_integer_readpixels_sint_uint', run_concurrent
=False)
3449 g(['ext_texture_integer-getteximage-clamping'], 'getteximage-clamping')
3450 g(['ext_texture_integer-getteximage-clamping', 'GL_ARB_texture_rg'],
3451 'getteximage-clamping GL_ARB_texture_rg')
3452 g(['ext_texture_integer-texformats']),
3453 g(['ext_texture_integer-texture_integer_glsl130'],
3454 'texture_integer_glsl130')
3455 g(['fbo-integer'], run_concurrent
=False)
3456 # TODO: unsupported for int yet
3457 # g(['fbo-clear-formats', 'GL_EXT_texture_integer'], 'fbo-clear-formats')
3458 add_msaa_formats_tests(g
, 'GL_EXT_texture_integer')
3459 add_texwrap_format_tests(g
, 'GL_EXT_texture_integer')
3461 with profile
.test_list
.group_manager(
3463 grouptools
.join('spec', 'arb_texture_rg')) as g
:
3464 g(['depth-tex-modes-rg'], run_concurrent
=False)
3465 g(['rg-draw-pixels'], run_concurrent
=False)
3466 g(['rg-teximage-01'], run_concurrent
=False)
3467 g(['rg-teximage-02'], run_concurrent
=False)
3468 g(['texture-rg'], run_concurrent
=False)
3469 # TODO: unsupported for int yet
3470 # g(['fbo-clear-formats', 'GL_ARB_texture_rg-int'],
3471 # 'fbo-clear-formats-int')
3472 add_msaa_formats_tests(g
, 'GL_ARB_texture_rg')
3473 add_msaa_formats_tests(g
, 'GL_ARB_texture_rg-int')
3474 add_msaa_formats_tests(g
, 'GL_ARB_texture_rg-float')
3475 add_texwrap_format_tests(g
, 'GL_ARB_texture_rg')
3476 add_texwrap_format_tests(g
, 'GL_ARB_texture_rg-float', '-float')
3477 add_texwrap_format_tests(g
, 'GL_ARB_texture_rg-int', '-int')
3479 for format
in ['GL_RED', 'GL_R8', 'GL_R16', 'GL_RG', 'GL_RG8', 'GL_RG16']:
3480 g(['fbo-rg', format
], "fbo-rg-{}".format(format
))
3481 add_fbo_formats_tests(g
, 'GL_ARB_texture_rg')
3482 add_fbo_formats_tests(g
, 'GL_ARB_texture_rg-float', '-float')
3484 with profile
.test_list
.group_manager(
3486 grouptools
.join('spec', 'arb_texture_rgb10_a2ui')) as g
:
3487 g(['ext_texture_integer-fbo-blending', 'GL_ARB_texture_rgb10_a2ui'],
3489 add_texwrap_format_tests(g
, 'GL_ARB_texture_rgb10_a2ui')
3491 with profile
.test_list
.group_manager(
3493 grouptools
.join('spec', 'ext_texture_shared_exponent')) as g
:
3494 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_shared_exponent'],
3495 'fbo-generatemipmap-formats')
3496 add_texwrap_format_tests(g
, 'GL_EXT_texture_shared_exponent')
3498 with profile
.test_list
.group_manager(
3500 grouptools
.join('spec', 'ext_texture_snorm')) as g
:
3501 add_msaa_formats_tests(g
, 'GL_EXT_texture_snorm')
3502 add_texwrap_format_tests(g
, 'GL_EXT_texture_snorm')
3503 add_fbo_formats_tests(g
, 'GL_EXT_texture_snorm')
3505 with profile
.test_list
.group_manager(
3506 PiglitGLTest
, grouptools
.join('spec', 'ext_texture_srgb')) as g
:
3507 g(['fbo-srgb'], run_concurrent
=False)
3508 g(['tex-srgb'], run_concurrent
=False)
3509 g(['arb_texture_compression-invalid-formats', 'srgb'], 'invalid formats')
3510 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_sRGB'],
3511 'fbo-generatemipmap-formats')
3512 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_sRGB-s3tc'],
3513 'fbo-generatemipmap-formats-s3tc')
3514 # TODO: also use GL_ARB_framebuffer_sRGB:
3515 # g(['fbo-blending-formats', 'GL_EXT_texture_sRGB'],
3516 # 'fbo-blending-formats')
3517 g(['fbo-alphatest-formats', 'GL_EXT_texture_sRGB'],
3518 'fbo-alphatest-formats')
3519 g(['ext_framebuffer_multisample-fast-clear',
3520 'GL_EXT_texture_sRGB',
3523 add_msaa_formats_tests(g
, 'GL_EXT_texture_sRGB')
3524 add_texwrap_format_tests(g
, 'GL_EXT_texture_sRGB')
3525 add_texwrap_format_tests(g
, 'GL_EXT_texture_sRGB-s3tc', '-s3tc')
3527 with profile
.test_list
.group_manager(
3528 PiglitGLTest
, grouptools
.join('spec', 'ext_timer_query')) as g
:
3529 g(['ext_timer_query-time-elapsed'], 'time-elapsed', run_concurrent
=False)
3530 g(['timer_query'], run_concurrent
=False)
3532 with profile
.test_list
.group_manager(
3533 PiglitGLTest
, grouptools
.join('spec', 'arb_timer_query')) as g
:
3534 g(['ext_timer_query-time-elapsed', 'timestamp'], 'query GL_TIMESTAMP', run_concurrent
=False)
3535 g(['ext_timer_query-lifetime'], 'query-lifetime')
3536 g(['arb_timer_query-timestamp-get'], 'timestamp-get', run_concurrent
=False)
3538 with profile
.test_list
.group_manager(
3539 PiglitGLTest
, grouptools
.join('spec', 'ext_transform_feedback')) as g
:
3540 for mode
in ['interleaved_ok_base', 'interleaved_ok_range',
3541 'interleaved_ok_offset', 'interleaved_unbound',
3542 'interleaved_no_varyings', 'separate_ok_1',
3543 'separate_unbound_0_1', 'separate_ok_2',
3544 'separate_unbound_0_2', 'separate_unbound_1_2',
3545 'separate_no_varyings', 'no_prog_active', 'begin_active',
3546 'useprog_active', 'link_current_active', 'link_other_active',
3547 'bind_base_active', 'bind_range_active', 'bind_offset_active',
3548 'end_inactive', 'bind_base_max', 'bind_range_max',
3549 'bind_offset_max', 'bind_range_size_m4', 'bind_range_size_0',
3550 'bind_range_size_1', 'bind_range_size_2', 'bind_range_size_3',
3551 'bind_range_size_5', 'bind_range_offset_1',
3552 'bind_range_offset_2', 'bind_range_offset_3',
3553 'bind_range_offset_5', 'bind_offset_offset_1',
3554 'bind_offset_offset_2', 'bind_offset_offset_3',
3555 'bind_offset_offset_5', 'not_a_program',
3556 'useprogstage_noactive', 'useprogstage_active',
3558 g(['ext_transform_feedback-api-errors', mode
],
3559 'api-errors {}'.format(mode
))
3561 for varying
in ['gl_Color', 'gl_SecondaryColor', 'gl_TexCoord',
3562 'gl_FogFragCoord', 'gl_Position', 'gl_PointSize',
3563 'gl_ClipVertex', 'gl_ClipDistance',
3564 'gl_ClipDistance[1]-no-subscript',
3565 'gl_ClipDistance[2]-no-subscript',
3566 'gl_ClipDistance[3]-no-subscript',
3567 'gl_ClipDistance[4]-no-subscript',
3568 'gl_ClipDistance[5]-no-subscript',
3569 'gl_ClipDistance[6]-no-subscript',
3570 'gl_ClipDistance[7]-no-subscript',
3571 'gl_ClipDistance[8]-no-subscript']:
3572 g(['ext_transform_feedback-builtin-varyings', varying
],
3573 'builtin-varyings {}'.format(varying
), run_concurrent
=False)
3575 for mode
in ['main_binding', 'indexed_binding', 'buffer_start',
3577 g(['ext_transform_feedback-get-buffer-state', mode
],
3578 'get-buffer-state {}'.format(mode
))
3580 for mode
in ['output', 'prims_generated', 'prims_written']:
3581 g(['ext_transform_feedback-intervening-read', mode
],
3582 'intervening-read {0}'.format(mode
))
3583 g(['ext_transform_feedback-intervening-read', mode
, 'use_gs'],
3584 'intervening-read {0} use_gs'.format(mode
))
3586 for drawcall
in ['arrays', 'elements']:
3587 for mode
in ['triangles', 'lines', 'points']:
3588 g(['ext_transform_feedback-order', drawcall
, mode
],
3589 'order {0} {1}'.format(drawcall
, mode
))
3591 for draw_mode
in ['points', 'lines', 'line_loop', 'line_strip',
3592 'triangles', 'triangle_strip', 'triangle_fan',
3593 'quads', 'quad_strip', 'polygon']:
3594 for shade_mode
in ['monochrome', 'smooth', 'flat_first', 'flat_last',
3596 if (draw_mode
in ['points', 'lines', 'line_loop', 'line_strip'] and
3597 shade_mode
== 'wireframe'):
3599 g(['ext_transform_feedback-tessellation', draw_mode
, shade_mode
],
3600 'tessellation {0} {1}'.format(draw_mode
, shade_mode
))
3602 for alignment
in [0, 4, 8, 12]:
3603 g(['ext_transform_feedback-alignment', str(alignment
)],
3604 'alignment {0}'.format(alignment
))
3606 for output_type
in ['float', 'vec2', 'vec3', 'vec4', 'mat2', 'mat2x3',
3607 'mat2x4', 'mat3x2', 'mat3', 'mat3x4', 'mat4x2',
3608 'mat4x3', 'mat4', 'int', 'ivec2', 'ivec3', 'ivec4',
3609 'uint', 'uvec2', 'uvec3', 'uvec4']:
3610 for suffix
in ['', '[2]', '[2]-no-subscript']:
3611 g(['ext_transform_feedback-output-type', output_type
, suffix
],
3612 'output-type {0}{1}'.format(output_type
, suffix
))
3614 for mode
in ['discard', 'buffer', 'prims_generated', 'prims_written']:
3615 g(['ext_transform_feedback-generatemipmap', mode
],
3616 'generatemipmap {0}'.format(mode
))
3618 for test_case
in ['base-shrink', 'base-grow', 'offset-shrink',
3619 'offset-grow', 'range-shrink', 'range-grow']:
3620 g(['ext_transform_feedback-change-size', test_case
],
3621 'change-size {0}'.format(test_case
))
3623 for api_suffix
, possible_options
in [('', [[], ['interface']]),
3625 if api_suffix
== '_gles3':
3626 subtest_list
= ['basic-struct']
3628 subtest_list
= ['basic-struct', 'struct-whole-array',
3629 'struct-array-elem', 'array-struct',
3630 'array-struct-whole-array',
3631 'array-struct-array-elem', 'struct-struct',
3632 'array-struct-array-struct']
3633 for subtest
in subtest_list
:
3634 for mode
in ['error', 'get', 'run', 'run-no-fs']:
3635 for options
in possible_options
:
3636 g(['ext_transform_feedback-structs{0}'.format(api_suffix
),
3637 subtest
, mode
] + options
,
3638 'structs{0} {1}'.format(
3639 api_suffix
, ' '.join([subtest
, mode
] + options
)))
3641 g(['ext_transform_feedback-buffer-usage'], 'buffer-usage')
3642 g(['ext_transform_feedback-discard-api'], 'discard-api')
3643 g(['ext_transform_feedback-discard-bitmap'], 'discard-bitmap')
3644 g(['ext_transform_feedback-discard-clear'], 'discard-clear')
3645 g(['ext_transform_feedback-discard-copypixels'], 'discard-copypixels')
3646 g(['ext_transform_feedback-discard-drawarrays'], 'discard-drawarrays')
3647 g(['ext_transform_feedback-discard-drawpixels'], 'discard-drawpixels')
3648 g(['ext_transform_feedback-immediate-reuse'], 'immediate-reuse')
3649 g(['ext_transform_feedback-immediate-reuse-index-buffer'],
3650 'immediate-reuse-index-buffer')
3651 g(['ext_transform_feedback-immediate-reuse-uniform-buffer'],
3652 'immediate-reuse-uniform-buffer')
3653 g(['ext_transform_feedback-max-varyings'], 'max-varyings')
3654 g(['ext_transform_feedback-nonflat-integral'], 'nonflat-integral')
3655 g(['ext_transform_feedback-overflow-edge-cases'], 'overflow-edge-cases')
3656 g(['ext_transform_feedback-overflow-edge-cases', 'use_gs'],
3657 'overflow-edge-cases use_gs')
3658 g(['ext_transform_feedback-points'], 'points')
3659 g(['ext_transform_feedback-points', 'large'], 'points-large')
3660 g(['ext_transform_feedback-position'], 'position-readback-bufferbase')
3661 g(['ext_transform_feedback-position', 'discard'],
3662 'position-readback-bufferbase-discard')
3663 g(['ext_transform_feedback-position', 'offset'],
3664 'position-readback-bufferoffset')
3665 g(['ext_transform_feedback-position', 'offset', 'discard'],
3666 'position-readback-bufferoffset-discard')
3667 g(['ext_transform_feedback-position', 'range'],
3668 'position-readback-bufferrange')
3669 g(['ext_transform_feedback-position', 'range', 'discard'],
3670 'position-readback-bufferrange-discard')
3671 g(['ext_transform_feedback-negative-prims'], 'negative-prims')
3672 g(['ext_transform_feedback-primgen'],
3673 'primgen-query transform-feedback-disabled')
3674 g(['ext_transform_feedback-pipeline-basic-primgen'],
3675 'pipeline-basic-primgen')
3676 g(['ext_transform_feedback-position', 'render'],
3677 'position-render-bufferbase')
3678 g(['ext_transform_feedback-position', 'render', 'discard'],
3679 'position-render-bufferbase-discard')
3680 g(['ext_transform_feedback-position', 'render', 'offset'],
3681 'position-render-bufferoffset')
3682 g(['ext_transform_feedback-position', 'render', 'offset', 'discard'],
3683 'position-render-bufferoffset-discard')
3684 g(['ext_transform_feedback-position', 'render', 'range'],
3685 'position-render-bufferrange')
3686 g(['ext_transform_feedback-position', 'render', 'range', 'discard'],
3687 'position-render-bufferrange-discard')
3688 g(['ext_transform_feedback-position', 'primgen'],
3689 'query-primitives_generated-bufferbase')
3690 g(['ext_transform_feedback-position', 'primgen', 'discard'],
3691 'query-primitives_generated-bufferbase-discard')
3692 g(['ext_transform_feedback-position', 'primgen', 'offset'],
3693 'query-primitives_generated-bufferoffset')
3694 g(['ext_transform_feedback-position', 'primgen', 'offset', 'discard'],
3695 'query-primitives_generated-bufferoffset-discard')
3696 g(['ext_transform_feedback-position', 'primgen', 'range'],
3697 'query-primitives_generated-bufferrange')
3698 g(['ext_transform_feedback-position', 'primgen', 'range', 'discard'],
3699 'query-primitives_generated-bufferrange-discard')
3700 g(['ext_transform_feedback-position', 'primwritten'],
3701 'query-primitives_written-bufferbase')
3702 g(['ext_transform_feedback-position', 'primwritten', 'discard'],
3703 'query-primitives_written-bufferbase-discard')
3704 g(['ext_transform_feedback-position', 'primwritten', 'offset'],
3705 'query-primitives_written-bufferoffset')
3706 g(['ext_transform_feedback-position', 'primwritten', 'offset', 'discard'],
3707 'query-primitives_written-bufferoffset-discard')
3708 g(['ext_transform_feedback-position', 'primwritten', 'range'],
3709 'query-primitives_written-bufferrange')
3710 g(['ext_transform_feedback-position', 'primwritten', 'range', 'discard'],
3711 'query-primitives_written-bufferrange-discard')
3712 g(['ext_transform_feedback-interleaved'], 'interleaved-attribs')
3713 g(['ext_transform_feedback-separate'], 'separate-attribs')
3714 g(['ext_transform_feedback-geometry-shaders-basic'],
3715 'geometry-shaders-basic')
3717 with profile
.test_list
.group_manager(
3718 PiglitGLTest
, grouptools
.join('spec', 'arb_transform_feedback2')) as g
:
3719 g(['arb_transform_feedback2-change-objects-while-paused'],
3720 'Change objects while paused', run_concurrent
=False)
3721 g(['arb_transform_feedback2-change-objects-while-paused_gles3'],
3722 'Change objects while paused (GLES3)', run_concurrent
=False)
3724 with profile
.test_list
.group_manager(
3725 PiglitGLTest
, grouptools
.join('spec', 'ext_transform_feedback2')) as g
:
3726 g(['arb_transform_feedback2-draw-auto'], 'draw-auto', run_concurrent
=False)
3727 g(['arb_transform_feedback2-istransformfeedback'], 'istranformfeedback',
3728 run_concurrent
=False)
3729 g(['arb_transform_feedback2-gen-names-only'],
3730 'glGenTransformFeedbacks names only')
3731 g(['arb_transform_feedback2-cannot-bind-when-active'],
3732 'cannot bind when another object is active')
3733 g(['arb_transform_feedback2-api-queries'], 'misc. API queries')
3734 g(['arb_transform_feedback2-pause-counting'], 'counting with pause')
3736 with profile
.test_list
.group_manager(
3737 PiglitGLTest
, grouptools
.join('spec', 'arb_transform_feedback_instanced')) as g
:
3738 g(['arb_transform_feedback2-draw-auto', 'instanced'],
3739 'draw-auto instanced', run_concurrent
=False)
3741 with profile
.test_list
.group_manager(
3742 PiglitGLTest
, grouptools
.join('spec', 'arb_transform_feedback3')) as g
:
3743 g(['arb_transform_feedback3-bind_buffer_invalid_index'],
3744 'arb_transform_feedback3-bind_buffer_invalid_index',
3745 run_concurrent
=False)
3746 g(['arb_transform_feedback3-query_with_invalid_index'],
3747 'arb_transform_feedback3-query_with_invalid_index', run_concurrent
=False)
3748 g(['arb_transform_feedback3-end_query_with_name_zero'],
3749 'arb_transform_feedback3-end_query_with_name_zero', run_concurrent
=False)
3750 g(['arb_transform_feedback3-draw_using_invalid_stream_index'],
3751 'arb_transform_feedback3-draw_using_invalid_stream_index',
3752 run_concurrent
=False)
3753 g(['arb_transform_feedback3-set_varyings_with_invalid_args'],
3754 'arb_transform_feedback3-set_varyings_with_invalid_args',
3755 run_concurrent
=False)
3756 g(['arb_transform_feedback3-set_invalid_varyings'],
3757 'arb_transform_feedback3-set_invalid_varyings', run_concurrent
=False)
3758 g(['arb_transform_feedback3-ext_interleaved_two_bufs', 'vs'],
3759 'arb_transform_feedback3-ext_interleaved_two_bufs_vs',
3760 run_concurrent
=False)
3761 g(['arb_transform_feedback3-ext_interleaved_two_bufs', 'gs'],
3762 'arb_transform_feedback3-ext_interleaved_two_bufs_gs',
3763 run_concurrent
=False)
3764 g(['arb_transform_feedback3-ext_interleaved_two_bufs', 'gs_max'],
3765 'arb_transform_feedback3-ext_interleaved_two_bufs_gs_max',
3766 run_concurrent
=False)
3767 g(['arb_transform_feedback3-begin_end'], run_concurrent
=False)
3769 for param
in ['gl_NextBuffer-1', 'gl_NextBuffer-2', 'gl_SkipComponents1-1',
3770 'gl_SkipComponents1-2', 'gl_SkipComponents1-3',
3771 'gl_SkipComponents2', 'gl_SkipComponents3',
3772 'gl_SkipComponents4',
3773 'gl_NextBuffer-gl_SkipComponents1-gl_NextBuffer',
3774 'gl_NextBuffer-gl_NextBuffer', 'gl_SkipComponents1234', 'gl_SkipComponents1-gl_NextBuffer']:
3775 g(['ext_transform_feedback-output-type', param
], param
)
3777 with profile
.test_list
.group_manager(
3779 grouptools
.join('spec', 'arb_transform_feedback_overflow_query')) as g
:
3780 g(['arb_transform_feedback_overflow_query-basic'])
3781 g(['arb_transform_feedback_overflow_query-errors'])
3783 with profile
.test_list
.group_manager(
3785 grouptools
.join('spec', 'arb_uniform_buffer_object')) as g
:
3786 g(['arb_uniform_buffer_object-bindbuffer-general-point'],
3787 'bindbuffer-general-point')
3788 g(['arb_uniform_buffer_object-buffer-targets'], 'buffer-targets')
3789 g(['arb_uniform_buffer_object-bufferstorage'], 'bufferstorage')
3790 g(['arb_uniform_buffer_object-deletebuffers'], 'deletebuffers')
3791 g(['arb_uniform_buffer_object-dlist'], 'dlist')
3792 g(['arb_uniform_buffer_object-getactiveuniformblockiv-uniform-block-data-size'],
3793 'getactiveuniformblockiv-uniform-block-data-size')
3794 g(['arb_uniform_buffer_object-getactiveuniformblockname'],
3795 'getactiveuniformblockname')
3796 g(['arb_uniform_buffer_object-getactiveuniformname'],
3797 'getactiveuniformname')
3798 g(['arb_uniform_buffer_object-getactiveuniformsiv-uniform-array-stride'],
3799 'getactiveuniformsiv-uniform-array-stride')
3800 g(['arb_uniform_buffer_object-getactiveuniformsiv-uniform-block-index'],
3801 'getactiveuniformsiv-uniform-block-index')
3802 g(['arb_uniform_buffer_object-getactiveuniformsiv-uniform-matrix-stride'],
3803 'getactiveuniformsiv-uniform-matrix-stride')
3804 g(['arb_uniform_buffer_object-getactiveuniformsiv-uniform-type'],
3805 'getactiveuniformsiv-uniform-type')
3806 g(['arb_uniform_buffer_object-getintegeri_v'], 'getintegeri_v')
3807 g(['arb_uniform_buffer_object-getprogramiv'], 'getprogramiv')
3808 g(['arb_uniform_buffer_object-getuniformblockindex'],
3809 'getuniformblockindex')
3810 g(['arb_uniform_buffer_object-getuniformindices'], 'getuniformindices')
3811 g(['arb_uniform_buffer_object-getuniformlocation'], 'getuniformlocation')
3812 g(['arb_uniform_buffer_object-layout-std140-base-size-and-alignment'],
3813 'layout-std140-base-size-and-alignment')
3814 g(['arb_uniform_buffer_object-link-mismatch-blocks'],
3815 'link-mismatch-blocks')
3816 g(['arb_uniform_buffer_object-maxblocks'], 'maxblocks')
3817 g(['arb_uniform_buffer_object-minmax'], 'minmax')
3818 g(['arb_uniform_buffer_object-negative-bindbuffer-index'],
3819 'negative-bindbuffer-index')
3820 g(['arb_uniform_buffer_object-negative-bindbuffer-target'],
3821 'negative-bindbuffer-target')
3822 g(['arb_uniform_buffer_object-negative-bindbufferrange-range'],
3823 'negative-bindbufferrange-range')
3824 g(['arb_uniform_buffer_object-negative-getactiveuniformblockiv'],
3825 'negative-getactiveuniformblockiv')
3826 g(['arb_uniform_buffer_object-negative-getactiveuniformsiv'],
3827 'negative-getactiveuniformsiv')
3828 g(['arb_uniform_buffer_object-referenced-by-shader'],
3829 'referenced-by-shader')
3830 g(['arb_uniform_buffer_object-rendering'], 'rendering')
3831 g(['arb_uniform_buffer_object-rendering', 'offset'], 'rendering-offset')
3832 g(['arb_uniform_buffer_object-rendering-array'], 'rendering-array')
3833 g(['arb_uniform_buffer_object-rendering-array', 'offset'], 'rendering-array-offset')
3834 g(['arb_uniform_buffer_object-rendering-dsa'], 'rendering-dsa')
3835 g(['arb_uniform_buffer_object-rendering-dsa', 'offset'], 'rendering-dsa-offset')
3836 g(['arb_uniform_buffer_object-row-major'], 'row-major')
3837 g(['arb_uniform_buffer_object-uniformblockbinding'], 'uniformblockbinding')
3839 with profile
.test_list
.group_manager(
3841 grouptools
.join('spec', 'arb_uniform_buffer_object',
3842 'maxuniformblocksize')) as g
:
3843 g(['arb_uniform_buffer_object-maxuniformblocksize', 'vs'], 'vs')
3844 g(['arb_uniform_buffer_object-maxuniformblocksize', 'vsexceed'],
3846 g(['arb_uniform_buffer_object-maxuniformblocksize', 'fs'], 'fs')
3847 g(['arb_uniform_buffer_object-maxuniformblocksize', 'fsexceed'],
3850 with profile
.test_list
.group_manager(
3851 PiglitGLTest
, grouptools
.join('spec', 'ati_draw_buffers')) as g
:
3852 g(['ati_draw_buffers-arbfp'])
3853 g(['ati_draw_buffers-arbfp-no-index'], 'arbfp-no-index')
3854 g(['ati_draw_buffers-arbfp-no-option'], 'arbfp-no-option')
3856 with profile
.test_list
.group_manager(
3857 PiglitGLTest
, grouptools
.join('spec', 'ati_envmap_bumpmap')) as g
:
3858 g(['ati_envmap_bumpmap-bump'], run_concurrent
=False)
3860 with profile
.test_list
.group_manager(
3861 PiglitGLTest
, grouptools
.join('spec', 'arb_instanced_arrays')) as g
:
3862 g(['arb_instanced_arrays-vertex-attrib-divisor-index-error'])
3863 g(['arb_instanced_arrays-instanced_arrays'])
3864 g(['arb_instanced_arrays-drawarrays'])
3865 add_single_param_test_set(g
, 'arb_instanced_arrays-instanced_arrays',
3868 with profile
.test_list
.group_manager(
3870 grouptools
.join('spec', 'arb_internalformat_query')) as g
:
3871 g(['arb_internalformat_query-api-errors'], 'misc. API error checks')
3872 g(['arb_internalformat_query-overrun'], 'buffer over-run checks')
3873 g(['arb_internalformat_query-minmax'], 'minmax')
3875 with profile
.test_list
.group_manager(
3877 grouptools
.join('spec', 'arb_internalformat_query2')) as g
:
3878 g(['arb_internalformat_query2-api-errors'], 'API error checks')
3879 g(['arb_internalformat_query2-generic-pname-checks'], 'Individual most generic pname checks')
3880 g(['arb_internalformat_query2-samples-pnames'], 'SAMPLES and NUM_SAMPLE_COUNTS pname checks')
3881 g(['arb_internalformat_query2-internalformat-size-checks'], 'All INTERNALFORMAT_<X>_SIZE pname checks')
3882 g(['arb_internalformat_query2-internalformat-type-checks'], 'All INTERNALFORMAT_<X>_TYPE pname checks')
3883 g(['arb_internalformat_query2-image-format-compatibility-type'], 'IMAGE_FORMAT_COMPATIBILITY_TYPE pname checks')
3884 g(['arb_internalformat_query2-max-dimensions'], 'Max dimensions related pname checks')
3885 g(['arb_internalformat_query2-color-encoding'], 'COLOR_ENCODING pname check')
3886 g(['arb_internalformat_query2-texture-compressed-block'], 'All TEXTURE_COMPRESSED_BLOCK_<X> pname checks')
3887 g(['arb_internalformat_query2-minmax'], 'minmax check for SAMPLES/NUM_SAMPLE_COUNTS')
3888 g(['arb_internalformat_query2-image-texture'], 'Checks for pnames related to ARB_image_load_store that return values from Table 3.22 (OpenGL 4.2)')
3889 g(['arb_internalformat_query2-filter'], 'FILTER pname checks.')
3890 g(['arb_internalformat_query2-format-components'], '{COLOR,DEPTH,STENCIL}_COMPONENTS pname checks')
3892 with profile
.test_list
.group_manager(
3893 PiglitGLTest
, grouptools
.join('spec', 'arb_map_buffer_range')) as g
:
3894 g(['map_buffer_range_error_check'], run_concurrent
=False)
3895 g(['map_buffer_range_test'], run_concurrent
=False)
3896 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_RANGE_BIT', 'offset=0'],
3897 'MAP_INVALIDATE_RANGE_BIT offset=0')
3898 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_RANGE_BIT',
3899 'increment-offset'], 'MAP_INVALIDATE_RANGE_BIT increment-offset')
3900 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_RANGE_BIT',
3901 'decrement-offset'], 'MAP_INVALIDATE_RANGE_BIT decrement-offset')
3902 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_BUFFER_BIT', 'offset=0'],
3903 'MAP_INVALIDATE_BUFFER_BIT offset=0')
3904 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_BUFFER_BIT',
3905 'increment-offset'], 'MAP_INVALIDATE_BUFFER_BIT increment-offset')
3906 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_BUFFER_BIT',
3907 'decrement-offset'], 'MAP_INVALIDATE_BUFFER_BIT decrement-offset')
3908 g(['map_buffer_range-invalidate', 'CopyBufferSubData', 'offset=0'],
3909 'CopyBufferSubData offset=0')
3910 g(['map_buffer_range-invalidate', 'CopyBufferSubData', 'increment-offset'],
3911 'CopyBufferSubData increment-offset')
3912 g(['map_buffer_range-invalidate', 'CopyBufferSubData', 'decrement-offset'],
3913 'CopyBufferSubData decrement-offset')
3915 with profile
.test_list
.group_manager(
3916 PiglitGLTest
, grouptools
.join('spec', 'arb_multisample')) as g
:
3917 g(['arb_multisample-beginend'], 'beginend')
3918 g(['arb_multisample-pushpop'], 'pushpop')
3920 with profile
.test_list
.group_manager(
3921 PiglitGLTest
, grouptools
.join('spec', 'arb_seamless_cube_map')) as g
:
3922 g(['arb_seamless_cubemap'])
3923 g(['arb_seamless_cubemap-initially-disabled'])
3924 g(['arb_seamless_cubemap-three-faces-average'])
3926 with profile
.test_list
.group_manager(
3927 PiglitGLTest
, grouptools
.join('spec', 'AMD_pinned_memory')) as g
:
3928 g(['amd_pinned_memory', 'offset=0'], 'offset=0')
3929 g(['amd_pinned_memory', 'increment-offset'], 'increment-offset')
3930 g(['amd_pinned_memory', 'decrement-offset'], 'decrement-offset')
3931 g(['amd_pinned_memory', 'offset=0', 'map-buffer'], 'map-buffer offset=0')
3932 g(['amd_pinned_memory', 'increment-offset', 'map-buffer'],
3933 'map-buffer increment-offset')
3934 g(['amd_pinned_memory', 'decrement-offset', 'map-buffer'],
3935 'map-buffer decrement-offset')
3937 with profile
.test_list
.group_manager(
3939 grouptools
.join('spec', 'amd_seamless_cubemap_per_texture')) as g
:
3940 g(['amd_seamless_cubemap_per_texture'], run_concurrent
=False)
3942 with profile
.test_list
.group_manager(
3944 grouptools
.join('spec', 'amd_vertex_shader_layer')) as g
:
3945 g(['amd_vertex_shader_layer-layered-2d-texture-render'],
3946 run_concurrent
=False)
3947 g(['amd_vertex_shader_layer-layered-depth-texture-render'],
3948 run_concurrent
=False)
3950 with profile
.test_list
.group_manager(
3952 grouptools
.join('spec', 'amd_vertex_shader_viewport_index')) as g
:
3953 g(['amd_vertex_shader_viewport_index-render'])
3955 with profile
.test_list
.group_manager(
3957 grouptools
.join('spec', 'ext_fog_coord')) as g
:
3958 g(['ext_fog_coord-modes'], run_concurrent
=False)
3960 with profile
.test_list
.group_manager(
3962 grouptools
.join('spec', 'nv_half_float')) as g
:
3963 g(['attribs-half-float'])
3964 g(['ext_fog_coord-modes-half-float'], run_concurrent
=False)
3966 with profile
.test_list
.group_manager(
3968 grouptools
.join('spec', 'nv_texture_barrier')) as g
:
3969 g(['blending-in-shader'], run_concurrent
=False)
3970 g(['arb_texture_barrier-texture-halves-ping-pong-operation-chain'])
3972 with profile
.test_list
.group_manager(
3974 grouptools
.join('spec', 'nv_texture_env_combine4')) as g
:
3975 g(['nv_texture_env_combine4-combine'])
3977 with profile
.test_list
.group_manager(
3979 grouptools
.join('spec', 'nv_conditional_render')) as g
:
3980 g(['nv_conditional_render-begin-while-active'], 'begin-while-active')
3981 g(['nv_conditional_render-begin-zero'], 'begin-zero')
3982 g(['nv_conditional_render-bitmap'], 'bitmap')
3983 g(['nv_conditional_render-blitframebuffer'], 'blitframebuffer')
3984 g(['nv_conditional_render-clear'], 'clear')
3985 g(['nv_conditional_render-clear-bug'], 'clear-bug')
3986 g(['nv_conditional_render-copypixels'], 'copypixels')
3987 g(['nv_conditional_render-copyteximage'], 'copyteximage')
3988 g(['nv_conditional_render-copytexsubimage'], 'copytexsubimage')
3989 g(['nv_conditional_render-dlist'], 'dlist')
3990 g(['nv_conditional_render-drawpixels'], 'drawpixels')
3991 g(['nv_conditional_render-generatemipmap'], 'generatemipmap')
3992 g(['nv_conditional_render-vertex_array'], 'vertex_array')
3994 with profile
.test_list
.group_manager(
3996 grouptools
.join('spec', 'nv_fill_rectangle')) as g
:
3997 g(['nv_fill_rectangle-invalid-draw-mode'], 'invalid-draw-mode')
3999 with profile
.test_list
.group_manager(
4001 grouptools
.join('spec', 'nv_fog_distance')) as g
:
4002 g(['nv_fog_distance-coverage'], 'coverage')
4003 g(['nv_fog_distance-simple-draw', 'radial'], 'simple draw - GL_EYE_RADIAL_NV')
4004 g(['nv_fog_distance-simple-draw', 'eye-plane'], 'simple draw - GL_EYE_PLANE')
4005 g(['nv_fog_distance-simple-draw', 'eye-plane-absolute'], 'simple draw - GL_EYE_PLANE_ABSOLUTE_NV')
4006 g(['nv_fog_distance-fog-coord'], 'GL_FOG_COORDINATE interaction')
4008 with profile
.test_list
.group_manager(
4010 grouptools
.join('spec', 'oes_matrix_get')) as g
:
4011 g(['oes_matrix_get-api'], 'All queries')
4013 with profile
.test_list
.group_manager(
4015 grouptools
.join('spec', 'oes_fixed_point')) as g
:
4016 g(['oes_fixed_point-attribute-arrays'], 'attribute-arrays')
4018 with profile
.test_list
.group_manager(
4020 grouptools
.join('spec', 'arb_clear_buffer_object')) as g
:
4021 g(['arb_clear_buffer_object-formats'])
4022 g(['arb_clear_buffer_object-invalid-internal-format'])
4023 g(['arb_clear_buffer_object-invalid-size'])
4024 g(['arb_clear_buffer_object-mapped'])
4025 g(['arb_clear_buffer_object-no-bound-buffer'])
4026 g(['arb_clear_buffer_object-null-data'])
4027 g(['arb_clear_buffer_object-sub-invalid-size'])
4028 g(['arb_clear_buffer_object-sub-mapped'])
4029 g(['arb_clear_buffer_object-sub-overlap'])
4030 g(['arb_clear_buffer_object-sub-simple'])
4031 g(['arb_clear_buffer_object-unaligned'])
4032 g(['arb_clear_buffer_object-zero-size'])
4034 with profile
.test_list
.group_manager(
4036 grouptools
.join('spec', 'arb_clear_texture')) as g
:
4037 g(['arb_clear_texture-clear-max-level'])
4038 g(['arb_clear_texture-simple'])
4039 g(['arb_clear_texture-error'])
4040 g(['arb_clear_texture-3d'])
4041 g(['arb_clear_texture-cube'])
4042 g(['arb_clear_texture-multisample'])
4043 g(['arb_clear_texture-integer'])
4044 g(['arb_clear_texture-base-formats'])
4045 g(['arb_clear_texture-sized-formats'])
4046 g(['arb_clear_texture-float'])
4047 g(['arb_clear_texture-rg'])
4048 g(['arb_clear_texture-depth-stencil'])
4049 g(['arb_clear_texture-srgb'])
4050 g(['arb_clear_texture-stencil'])
4051 g(['arb_clear_texture-texview'])
4052 g(['arb_clear_texture-depth'])
4054 with profile
.test_list
.group_manager(
4056 grouptools
.join('spec', 'arb_copy_buffer')) as g
:
4057 g(['copy_buffer_coherency'], run_concurrent
=False)
4058 g(['copybuffersubdata'], run_concurrent
=False)
4059 g(['arb_copy_buffer-data-sync'], 'data-sync')
4060 g(['arb_copy_buffer-dlist'], 'dlist')
4061 g(['arb_copy_buffer-get'], 'get')
4062 g(['arb_copy_buffer-intra-buffer-copy'], 'intra-buffer-copy')
4063 g(['arb_copy_buffer-negative-bound-zero'], 'negative-bound-zero')
4064 g(['arb_copy_buffer-negative-bounds'], 'negative-bounds')
4065 g(['arb_copy_buffer-negative-mapped'], 'negative-mapped')
4066 g(['arb_copy_buffer-overlap'], 'overlap')
4067 g(['arb_copy_buffer-targets'], 'targets')
4068 g(['arb_copy_buffer-subdata-sync'], 'subdata-sync')
4070 with profile
.test_list
.group_manager(
4072 grouptools
.join('spec', 'arb_copy_image')) as g
:
4073 g(['arb_copy_image-simple', '--tex-to-tex'])
4074 g(['arb_copy_image-simple', '--rb-to-tex'])
4075 g(['arb_copy_image-simple', '--rb-to-rb'])
4076 g(['arb_copy_image-srgb-copy'])
4077 g(['arb_copy_image-api_errors'])
4078 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4079 'GL_TEXTURE_1D', '32', '1', '1', '11', '0', '0', '5', '0', '0', '14',
4081 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4082 'GL_TEXTURE_1D_ARRAY', '32', '1', '12', '11', '0', '0', '5', '0', '9',
4084 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4085 'GL_TEXTURE_2D', '32', '32', '1', '11', '0', '0', '5', '13', '0', '14',
4087 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4088 'GL_TEXTURE_RECTANGLE', '32', '32', '1', '11', '0', '0', '5', '13',
4089 '0', '14', '1', '1'])
4090 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4091 'GL_TEXTURE_2D_ARRAY', '32', '32', '10', '11', '0', '0', '5', '13',
4092 '4', '14', '1', '1'])
4093 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4094 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '0', '0', '5', '13', '4',
4096 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4097 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '30', '11', '0', '0', '5',
4098 '13', '8', '14', '1', '1'])
4099 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4100 'GL_TEXTURE_3D', '32', '32', '32', '11', '0', '0', '5', '13', '4',
4102 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4103 'GL_TEXTURE_1D', '32', '1', '1', '11', '0', '7', '5', '0', '0', '14',
4105 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4106 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '0', '3', '5', '0', '7',
4108 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4109 'GL_TEXTURE_2D', '32', '16', '1', '11', '0', '3', '5', '7', '0', '14',
4111 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4112 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '0', '3', '5', '7', '0',
4114 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4115 'GL_TEXTURE_2D_ARRAY', '32', '16', '18', '11', '0', '3', '5', '9', '7',
4117 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4118 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '0', '3', '5', '17', '2',
4120 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4121 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '0', '3', '5',
4122 '17', '2', '14', '1', '7'])
4123 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4124 'GL_TEXTURE_3D', '32', '16', '18', '11', '0', '3', '5', '9', '2', '14',
4126 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4127 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '0', '5', '0', '0', '14',
4129 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4130 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '0', '5', '0', '7',
4132 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4133 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '0', '5', '7', '0', '14',
4135 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4136 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '0', '5', '7',
4137 '0', '14', '9', '1'])
4138 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4139 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '0', '5', '7',
4140 '12', '14', '8', '1'])
4141 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4142 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '5', '0', '5', '9', '2',
4144 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4145 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '5', '0', '5',
4146 '9', '7', '14', '7', '1'])
4147 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4148 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '0', '5', '9', '7', '14',
4150 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4151 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '0', '5', '0', '0', '14',
4153 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4154 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '0', '5', '0', '7',
4156 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4157 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '0', '5', '7', '0', '14',
4159 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4160 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '0', '5', '7',
4161 '0', '14', '9', '1'])
4162 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4163 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '0', '5', '7',
4164 '12', '14', '8', '1'])
4165 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4166 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '5', '0', '5', '9', '2',
4168 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4169 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '5', '0', '5',
4170 '9', '7', '14', '7', '1'])
4171 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4172 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '0', '5', '9', '7', '14',
4174 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4175 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '7', '5', '0', '0', '14',
4177 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4178 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '5', '5', '0', '7',
4180 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4181 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '13', '5', '4', '0',
4183 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4184 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '13', '5', '7',
4185 '0', '14', '7', '1'])
4186 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4187 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '5', '5', '7',
4188 '2', '14', '9', '9'])
4189 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4190 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '5', '1', '5', '9', '2',
4192 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4193 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '5', '2', '5',
4194 '9', '7', '14', '7', '11'])
4195 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4196 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '2', '5', '9', '7', '14',
4198 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4199 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '3', '5', '0', '0', '14',
4201 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4202 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '3', '5', '0', '7',
4204 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4205 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '3', '5', '7', '0', '14',
4207 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4208 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '3', '5', '3',
4209 '0', '14', '12', '1'])
4210 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4211 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '1', '5', '3',
4212 '2', '14', '11', '4'])
4213 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4214 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '5', '1', '5', '9', '2',
4216 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4217 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '5', '1', '5',
4218 '9', '9', '14', '7', '5'])
4219 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4220 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '0', '5', '9', '7', '14',
4222 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4223 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '7', '5', '0', '0', '14',
4225 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4226 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '5', '5', '0', '7',
4228 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4229 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '13', '5', '7', '0',
4231 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4232 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '13', '5', '7',
4233 '0', '14', '6', '1'])
4234 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4235 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '5', '5', '1',
4236 '2', '14', '15', '9'])
4237 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4238 'GL_TEXTURE_CUBE_MAP', '16', '16', '6', '11', '5', '1', '5', '9', '2',
4240 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4241 'GL_TEXTURE_CUBE_MAP_ARRAY', '16', '16', '18', '11', '5', '2', '5',
4242 '9', '7', '5', '7', '11'])
4243 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4244 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '2', '5', '9', '7', '14',
4246 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4247 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '7', '5', '0', '0', '14',
4249 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4250 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '5', '5', '0', '7',
4252 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4253 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '13', '5', '7', '0',
4255 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4256 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '13', '5', '7',
4257 '0', '14', '9', '1'])
4258 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4259 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '5', '5', '3',
4260 '2', '14', '13', '9'])
4261 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4262 'GL_TEXTURE_CUBE_MAP', '16', '16', '6', '11', '5', '1', '5', '9', '2',
4264 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4265 'GL_TEXTURE_CUBE_MAP_ARRAY', '16', '16', '18', '11', '5', '2', '5',
4266 '9', '7', '5', '7', '11'])
4267 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4268 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '2', '5', '9', '7', '14',
4270 g(['arb_copy_image-formats'])
4271 g(['arb_copy_image-formats', '--samples=2'])
4272 g(['arb_copy_image-formats', '--samples=4'])
4273 g(['arb_copy_image-formats', '--samples=8'])
4274 g(['arb_copy_image-format-swizzle'])
4275 g(['arb_copy_image-texview'])
4277 with profile
.test_list
.group_manager(
4279 grouptools
.join('spec', 'nv_copy_image')) as g
:
4280 g(['nv_copy_image-simple', '--tex-to-tex'])
4281 g(['nv_copy_image-simple', '--rb-to-tex'])
4282 g(['nv_copy_image-simple', '--rb-to-rb'])
4283 g(['nv_copy_image-api_errors'])
4284 g(['nv_copy_image-formats'])
4285 g(['nv_copy_image-formats', '--samples=2'])
4286 g(['nv_copy_image-formats', '--samples=4'])
4287 g(['nv_copy_image-formats', '--samples=8'])
4289 with profile
.test_list
.group_manager(
4291 grouptools
.join('spec', 'nv_alpha_to_coverage_dither_control')) as g
:
4292 g(['nv_alpha_to_coverage_dither_control-error'])
4293 g(['nv_alpha_to_coverage_dither_control','-1'])
4294 g(['nv_alpha_to_coverage_dither_control','0'])
4295 g(['nv_alpha_to_coverage_dither_control','1'])
4296 g(['nv_alpha_to_coverage_dither_control','2'])
4297 g(['nv_alpha_to_coverage_dither_control','3'])
4298 g(['nv_alpha_to_coverage_dither_control','4'])
4299 g(['nv_alpha_to_coverage_dither_control','5'])
4300 g(['nv_alpha_to_coverage_dither_control','6'])
4301 g(['nv_alpha_to_coverage_dither_control','7'])
4302 g(['nv_alpha_to_coverage_dither_control','8'])
4303 g(['nv_alpha_to_coverage_dither_control','9'])
4304 g(['nv_alpha_to_coverage_dither_control','8', '0', '0'])
4305 g(['nv_alpha_to_coverage_dither_control','8', '0', '1'])
4306 g(['nv_alpha_to_coverage_dither_control','8', '1', '0'])
4307 g(['nv_alpha_to_coverage_dither_control','8', '1', '1'])
4309 with profile
.test_list
.group_manager(
4311 grouptools
.join('spec', 'nv_copy_depth_to_color')) as g
:
4312 g(['nv_copy_depth_to_color'])
4313 g(['nv_copy_depth_to_color','1', '0x223344ff'])
4314 g(['nv_copy_depth_to_color','0', '0x223344ff'])
4315 g(['nv_copy_depth_to_color','1', '0x76356278'])
4316 g(['nv_copy_depth_to_color','0', '0x76356278'])
4318 with profile
.test_list
.group_manager(
4319 PiglitGLTest
, grouptools
.join('spec', 'arb_cull_distance')) as g
:
4320 g(['arb_cull_distance-max-distances'])
4321 g(['arb_cull_distance-exceed-limits', 'cull'])
4322 g(['arb_cull_distance-exceed-limits', 'clip'])
4323 g(['arb_cull_distance-exceed-limits', 'total'])
4325 with profile
.test_list
.group_manager(
4326 PiglitGLTest
, grouptools
.join('spec', 'arb_half_float_vertex')) as g
:
4327 g(['draw-vertices-half-float'])
4328 g(['draw-vertices-half-float', 'user'], 'draw-vertices-half-float-user')
4330 with profile
.test_list
.group_manager(
4331 PiglitGLTest
, grouptools
.join('spec', 'oes_vertex_half_float')) as g
:
4332 g(['draw-vertices-half-float_gles2'], run_concurrent
=False)
4333 g(['draw-vertices-half-float_gles2', 'user'], 'draw-vertices-half-float-user_gles2',
4334 run_concurrent
=False)
4336 with profile
.test_list
.group_manager(
4338 grouptools
.join('spec', 'arb_vertex_type_2_10_10_10_rev')) as g
:
4339 g(['draw-vertices-2101010'], run_concurrent
=False)
4340 g(['attribs', 'GL_ARB_vertex_type_2_10_10_10_rev'], 'attribs')
4341 g(['arb_vertex_type_2_10_10_10_rev-array_types'])
4342 g(['gl-3.3-vertex-attrib-p-types'], 'attrib-p-types')
4343 g(['gl-3.3-vertex-attrib-pointer-type-size-match'], 'attrib-pointer-type-size-match')
4345 with profile
.test_list
.group_manager(
4347 grouptools
.join('spec', 'arb_vertex_type_10f_11f_11f_rev')) as g
:
4348 g(['arb_vertex_type_10f_11f_11f_rev-api-errors'], run_concurrent
=False)
4349 g(['arb_vertex_type_10f_11f_11f_rev-draw-vertices'])
4351 with profile
.test_list
.group_manager(
4353 grouptools
.join('spec', 'arb_draw_buffers')) as g
:
4354 g(['arb_draw_buffers-state_change'])
4355 g(['fbo-mrt-alphatest'])
4356 g(['fbo-mrt-new-bind'])
4358 with profile
.test_list
.group_manager(
4360 grouptools
.join('spec', 'ext_draw_buffers2')) as g
:
4361 g(['fbo-drawbuffers2-blend'])
4362 g(['fbo-drawbuffers2-colormask'])
4363 g(['fbo-drawbuffers2-colormask', 'clear'])
4365 with profile
.test_list
.group_manager(
4367 grouptools
.join('spec', 'arb_draw_buffers_blend')) as g
:
4368 g(['arb_draw_buffers_blend-state_set_get'])
4369 g(['fbo-draw-buffers-blend'])
4371 with profile
.test_list
.group_manager(
4373 grouptools
.join('spec', 'arb_blend_func_extended')) as g
:
4374 g(['arb_blend_func_extended-bindfragdataindexed-invalid-parameters'])
4375 g(['arb_blend_func_extended-blend-api'])
4376 g(['arb_blend_func_extended-error-at-begin'])
4377 g(['arb_blend_func_extended-getfragdataindex'])
4378 g(['arb_blend_func_extended-output-location'])
4379 g(['arb_blend_func_extended-fbo-extended-blend'])
4380 g(['arb_blend_func_extended-fbo-extended-blend-explicit'])
4381 g(['arb_blend_func_extended-fbo-extended-blend-pattern'])
4382 g(['arb_blend_func_extended-dual-src-blending-discard-without-src1'])
4383 g(['arb_blend_func_extended-dual-src-blending-issue-1917'])
4384 g(['arb_blend_func_extended-blend-api_gles2'])
4385 g(['arb_blend_func_extended-builtins_gles2'])
4386 g(['arb_blend_func_extended-bindfragdataindexed-invalid-parameters_gles3'])
4387 g(['arb_blend_func_extended-output-location_gles3'])
4388 g(['arb_blend_func_extended-getfragdataindex_gles3'])
4389 g(['arb_blend_func_extended-fbo-extended-blend-pattern_gles2'])
4390 g(['arb_blend_func_extended-fbo-extended-blend-pattern_gles3'])
4391 g(['arb_blend_func_extended-fbo-extended-blend_gles3'])
4392 g(['arb_blend_func_extended-fbo-extended-blend-explicit_gles3'])
4393 g(['arb_blend_func_extended-dual-src-blending-discard-without-src1_gles3'])
4394 g(['arb_blend_func_extended-dual-src-blending-issue-1917_gles3'])
4396 with profile
.test_list
.group_manager(
4398 grouptools
.join('spec', 'arb_base_instance')) as g
:
4399 g(['arb_base_instance-baseinstance-doesnt-affect-gl-instance-id'],
4400 run_concurrent
=False)
4401 g(['arb_base_instance-drawarrays'])
4403 with profile
.test_list
.group_manager(
4405 grouptools
.join('spec', 'ext_base_instance')) as g
:
4406 g(['arb_base_instance-baseinstance-doesnt-affect-gl-instance-id_gles3'],
4407 run_concurrent
=False)
4408 g(['arb_base_instance-drawarrays_gles3'])
4410 with profile
.test_list
.group_manager(
4412 grouptools
.join('spec', 'arb_buffer_storage')) as g
:
4413 for mode
in ['read', 'draw']:
4414 g(['bufferstorage-persistent', mode
])
4415 g(['bufferstorage-persistent', mode
, 'coherent'])
4416 g(['bufferstorage-persistent', mode
, 'client-storage'])
4417 g(['bufferstorage-persistent', mode
, 'coherent', 'client-storage'])
4418 g(['bufferstorage-persistent_gles3', mode
])
4419 g(['bufferstorage-persistent_gles3', mode
, 'coherent'])
4420 g(['bufferstorage-persistent_gles3', mode
, 'client-storage'])
4421 g(['bufferstorage-persistent_gles3', mode
, 'coherent', 'client-storage'])
4423 with profile
.test_list
.group_manager(
4425 grouptools
.join('spec', 'apple_object_purgeable')) as g
:
4426 g(['object_purgeable-api-pbo'], run_concurrent
=False)
4427 g(['object_purgeable-api-texture'], run_concurrent
=False)
4428 g(['object_purgeable-api-vbo'], run_concurrent
=False)
4430 with profile
.test_list
.group_manager(
4432 grouptools
.join('spec', 'mesa_pack_invert')) as g
:
4433 g(['mesa_pack_invert-readpixels'])
4435 with profile
.test_list
.group_manager(
4437 grouptools
.join('spec', 'oes_read_format')) as g
:
4438 g(['oes-read-format'], run_concurrent
=False)
4440 with profile
.test_list
.group_manager(
4442 grouptools
.join('spec', 'nv_primitive_restart')) as g
:
4443 add_single_param_test_set(
4445 'primitive-restart',
4447 "VBO_VERTEX_ONLY", "VBO_INDEX_ONLY",
4448 "VBO_SEPARATE_VERTEX_AND_INDEX", "VBO_COMBINED_VERTEX_AND_INDEX")
4449 add_single_param_test_set(
4451 'primitive-restart-draw-mode',
4452 'points', 'lines', 'line_loop', 'line_strip', 'triangles',
4453 'triangle_strip', 'triangle_fan', 'quads', 'quad_strip', 'polygon')
4455 g(['nv_primitive_restart-dlist'], 'dlist')
4456 g(['nv_primitive_restart-errors'], 'errors')
4457 g(['nv_primitive_restart-no-core-profile'], 'no-core-profile')
4459 with profile
.test_list
.group_manager(
4461 grouptools
.join('spec', 'ext_provoking_vertex')) as g
:
4462 g(['provoking-vertex'], run_concurrent
=False)
4464 with profile
.test_list
.group_manager(
4466 grouptools
.join('spec', 'ext_texture_lod_bias')) as g
:
4467 g(['lodbias'], run_concurrent
=False)
4469 with profile
.test_list
.group_manager(
4471 grouptools
.join('spec', 'sgis_generate_mipmap')) as g
:
4472 g(['gen-nonzero-unit'], run_concurrent
=False)
4473 g(['gen-teximage'], run_concurrent
=False)
4474 g(['gen-texsubimage'], run_concurrent
=False)
4476 with profile
.test_list
.group_manager(
4478 grouptools
.join('spec', 'arb_map_buffer_alignment')) as g
:
4479 g(['arb_map_buffer_alignment-sanity_test'], run_concurrent
=False)
4480 g(['arb_map_buffer_alignment-map-invalidate-range'])
4482 with profile
.test_list
.group_manager(
4484 grouptools
.join('spec', 'arb_geometry_shader4')) as g
:
4485 g(['arb_geometry_shader4-program-parameter-input-type'])
4486 g(['arb_geometry_shader4-program-parameter-input-type-draw'])
4487 g(['arb_geometry_shader4-program-parameter-output-type'])
4488 g(['arb_geometry_shader4-vertices-in'])
4490 for draw
in ['', 'indexed']:
4491 for prim
in ['GL_LINES_ADJACENCY', 'GL_LINE_STRIP_ADJACENCY',
4492 'GL_TRIANGLES_ADJACENCY', 'GL_TRIANGLE_STRIP_ADJACENCY']:
4493 g(['arb_geometry_shader4-ignore-adjacent-vertices', draw
, prim
])
4495 for mode
in ['1', 'tf 1', 'max', 'tf max']:
4496 g(['arb_geometry_shader4-program-parameter-vertices-out', mode
])
4498 with profile
.test_list
.group_manager(
4500 grouptools
.join('spec', 'arb_compute_shader')) as g
:
4501 g(['arb_compute_shader-api_errors'], 'api_errors')
4502 g(['arb_compute_shader-minmax'], 'minmax')
4503 g(['built-in-constants',
4504 os
.path
.join('spec', 'arb_compute_shader', 'minimum-maximums.txt')],
4505 'built-in constants',
4506 override_class
=BuiltInConstantsTest
)
4507 g(['arb_compute_shader-work_group_size_too_large'],
4508 grouptools
.join('compiler', 'work_group_size_too_large'))
4509 g(['arb_compute_shader-dlist'], 'display-list')
4510 g(['arb_compute_shader-indirect-compute'], 'indirect-compute')
4511 g(['arb_compute_shader-local-id'], 'local-id' + '-explosion')
4512 g(['arb_compute_shader-render-and-compute'], 'render-and-compute')
4513 g(['arb_compute_shader-zero-dispatch-size'], 'zero-dispatch-size')
4514 g(['arb_compute_shader-compute-and-render-bug-109630'], 'compute-and-render-bug-109630')
4516 with profile
.test_list
.group_manager(
4518 grouptools
.join('spec', 'arb_shader_storage_buffer_object')) as g
:
4519 g(['arb_shader_storage_buffer_object-minmax'], 'minmax')
4520 g(['arb_shader_storage_buffer_object-rendering'], 'rendering')
4521 g(['arb_shader_storage_buffer_object-issue1258'], 'issue1258')
4522 g(['arb_shader_storage_buffer_object-getintegeri_v'], 'getintegeri_v')
4523 g(['arb_shader_storage_buffer_object-deletebuffers'], 'deletebuffers')
4524 g(['arb_shader_storage_buffer_object-maxblocks'], 'maxblocks')
4525 g(['arb_shader_storage_buffer_object-ssbo-binding'], 'ssbo-binding')
4526 g(['arb_shader_storage_buffer_object-array-ssbo-binding'], 'array-ssbo-binding')
4527 g(['arb_shader_storage_buffer_object-array-ssbo-auto-binding'], 'array-ssbo-auto-binding')
4528 g(['arb_shader_storage_buffer_object-layout-std430-write-shader'], 'layout-std430-write-shader')
4529 g(['arb_shader_storage_buffer_object-layout-std140-write-shader'], 'layout-std140-write-shader')
4530 g(['arb_shader_storage_buffer_object-program_interface_query'], 'program-interface-query')
4532 with profile
.test_list
.group_manager(
4534 grouptools
.join('spec', 'arb_shader_storage_buffer_object',
4535 'max-ssbo-size')) as g
:
4536 g(['arb_shader_storage_buffer_object-max-ssbo-size', 'vs'], 'vs')
4537 g(['arb_shader_storage_buffer_object-max-ssbo-size', 'vsexceed'],
4539 g(['arb_shader_storage_buffer_object-max-ssbo-size', 'fs'], 'fs')
4540 g(['arb_shader_storage_buffer_object-max-ssbo-size', 'fsexceed'],
4543 with profile
.test_list
.group_manager(
4545 grouptools
.join('spec', 'arb_sparse_buffer')) as g
:
4546 g(['arb_sparse_buffer-basic'], 'basic')
4547 g(['arb_sparse_buffer-buffer-data'], 'buffer-data')
4548 g(['arb_sparse_buffer-commit'], 'commit')
4549 g(['arb_sparse_buffer-minmax'], 'minmax')
4551 with profile
.test_list
.group_manager(
4553 grouptools
.join('spec', 'ext_polygon_offset_clamp')) as g
:
4554 g(['ext_polygon_offset_clamp-draw'])
4555 g(['ext_polygon_offset_clamp-draw_gles2'])
4556 g(['ext_polygon_offset_clamp-dlist'])
4558 with profile
.test_list
.group_manager(
4560 grouptools
.join('spec', 'ARB_pipeline_statistics_query')) as g
:
4561 g(['arb_pipeline_statistics_query-extra_prims'])
4562 g(['arb_pipeline_statistics_query-vert'])
4563 g(['arb_pipeline_statistics_query-vert_adj'])
4564 g(['arb_pipeline_statistics_query-clip'])
4565 g(['arb_pipeline_statistics_query-geom'])
4566 g(['arb_pipeline_statistics_query-frag'])
4567 g(['arb_pipeline_statistics_query-comp'])
4569 with profile
.test_list
.group_manager(PiglitGLTest
, 'hiz') as g
:
4570 g(['hiz-depth-stencil-test-fbo-d0-s8'], run_concurrent
=False)
4571 g(['hiz-depth-stencil-test-fbo-d24-s0'], run_concurrent
=False)
4572 g(['hiz-depth-stencil-test-fbo-d24-s8'], run_concurrent
=False)
4573 g(['hiz-depth-stencil-test-fbo-d24s8'], run_concurrent
=False)
4574 g(['hiz-depth-read-fbo-d24-s0'], run_concurrent
=False)
4575 g(['hiz-depth-read-fbo-d24-s8'], run_concurrent
=False)
4576 g(['hiz-depth-read-fbo-d24s8'], run_concurrent
=False)
4577 g(['hiz-depth-read-window-stencil0'], run_concurrent
=False)
4578 g(['hiz-depth-read-window-stencil1'], run_concurrent
=False)
4579 g(['hiz-depth-test-fbo-d24-s0'], run_concurrent
=False)
4580 g(['hiz-depth-test-fbo-d24-s8'], run_concurrent
=False)
4581 g(['hiz-depth-test-fbo-d24s8'], run_concurrent
=False)
4582 g(['hiz-depth-test-window-stencil0'], run_concurrent
=False)
4583 g(['hiz-depth-test-window-stencil1'], run_concurrent
=False)
4584 g(['hiz-stencil-read-fbo-d0-s8'], run_concurrent
=False)
4585 g(['hiz-stencil-read-fbo-d24-s8'], run_concurrent
=False)
4586 g(['hiz-stencil-read-fbo-d24s8'], run_concurrent
=False)
4587 g(['hiz-stencil-read-window-depth0'], run_concurrent
=False)
4588 g(['hiz-stencil-read-window-depth1'], run_concurrent
=False)
4589 g(['hiz-stencil-test-fbo-d0-s8'], run_concurrent
=False)
4590 g(['hiz-stencil-test-fbo-d24-s8'], run_concurrent
=False)
4591 g(['hiz-stencil-test-fbo-d24s8'], run_concurrent
=False)
4592 g(['hiz-stencil-test-window-depth0'], run_concurrent
=False)
4593 g(['hiz-stencil-test-window-depth1'], run_concurrent
=False)
4595 with profile
.test_list
.group_manager(PiglitGLTest
, 'fast_color_clear') as g
:
4596 g(['fcc-blit-between-clears'])
4597 g(['fcc-clear-tex'])
4598 g(['fcc-write-after-clear'])
4599 g(['fcc-read-to-pbo-after-clear'], run_concurrent
=False)
4600 g(['fcc-front-buffer-distraction'], run_concurrent
=False)
4602 for subtest
in ('sample', 'read_pixels', 'blit', 'copy'):
4603 for buffer_type
in ('rb', 'tex'):
4604 if subtest
== 'sample' and buffer_type
== 'rb':
4606 g(['fcc-read-after-clear', subtest
, buffer_type
])
4608 with profile
.test_list
.group_manager(
4609 PiglitGLTest
, grouptools
.join('spec', 'ext_unpack_subimage')) as g
:
4610 g(['ext_unpack_subimage'], 'basic')
4612 with profile
.test_list
.group_manager(
4613 PiglitGLTest
, grouptools
.join('spec', 'oes_draw_texture')) as g
:
4614 g(['oes_draw_texture'])
4616 with profile
.test_list
.group_manager(
4618 grouptools
.join('spec', 'oes_compressed_etc1_rgb8_texture')) as g
:
4619 g(['oes_compressed_etc1_rgb8_texture-basic'], 'basic')
4620 g(['oes_compressed_etc1_rgb8_texture-miptree'], 'miptree')
4622 with profile
.test_list
.group_manager(
4624 grouptools
.join('spec', 'khr_parallel_shader_compile')) as g
:
4625 g(['khr_parallel_shader_compile-basic'], 'basic')
4626 g(['khr_parallel_shader_compile-basic_gles2'], 'basic_gles2')
4628 with profile
.test_list
.group_manager(
4630 grouptools
.join('spec', 'khr_texture_compression_astc')) as g
:
4631 g(['arb_texture_compression-invalid-formats', 'astc'], 'invalid formats')
4632 g(['khr_compressed_astc-array_gl'], 'array-gl')
4633 g(['khr_compressed_astc-array_gles3'], 'array-gles')
4634 g(['khr_compressed_astc-basic_gl'], 'basic-gl')
4635 g(['khr_compressed_astc-basic_gles2'], 'basic-gles')
4636 g(['void-extent-dl-bug'], 'void-extent-dl-bug')
4638 for subtest
in ('hdr', 'ldr', 'srgb', "srgb-fp", "srgb-sd"):
4639 g(['khr_compressed_astc-miptree_gl', '-subtest', subtest
],
4640 'miptree-gl {}'.format(subtest
))
4641 g(['khr_compressed_astc-miptree_gles2', '-subtest', subtest
],
4642 'miptree-gles {}'.format(subtest
))
4643 for subtest
in ('hdr', 'ldr', 'srgb', 'srgb-fp'):
4644 g(['khr_compressed_astc-sliced-3d-miptree_gl', '-subtest', subtest
],
4645 'sliced-3d-miptree-gl {}'.format(subtest
))
4646 g(['khr_compressed_astc-sliced-3d-miptree_gles3', '-subtest', subtest
],
4647 'sliced-3d-miptree-gles {}'.format(subtest
))
4649 with profile
.test_list
.group_manager(
4651 grouptools
.join('spec', 'oes_texture_compression_astc')) as g
:
4652 for subtest
in ('hdr', 'ldr', 'srgb'):
4653 g(['oes_compressed_astc-miptree-3d_gl', '-subtest', subtest
],
4654 'miptree-3d-gl {}'.format(subtest
))
4655 g(['oes_compressed_astc-miptree-3d_gles3', '-subtest', subtest
],
4656 'miptree-3d-gles {}'.format(subtest
))
4658 with profile
.test_list
.group_manager(
4660 grouptools
.join('spec', 'nv_read_depth')) as g
:
4661 g(['read_depth_gles3'])
4663 with profile
.test_list
.group_manager(
4665 grouptools
.join('spec', 'oes_compressed_paletted_texture')) as g
:
4666 g(['oes_compressed_paletted_texture-api'], 'basic API')
4667 g(['arb_texture_compression-invalid-formats', 'paletted'],
4670 with profile
.test_list
.group_manager(
4672 grouptools
.join('spec', 'egl 1.4'),
4673 exclude_platforms
=['glx']) as g
:
4674 g(['egl-create-surface'], 'eglCreateSurface', run_concurrent
=False)
4675 g(['egl-query-surface', '--bad-attr'], 'eglQuerySurface EGL_BAD_ATTRIBUTE',
4676 run_concurrent
=False)
4677 g(['egl-query-surface', '--bad-surface'],
4678 'eglQuerySurface EGL_BAD_SURFACE',
4679 run_concurrent
=False)
4680 g(['egl-query-surface', '--attr=EGL_HEIGHT'], 'eglQuerySurface EGL_HEIGHT',
4681 run_concurrent
=False)
4682 g(['egl-query-surface', '--attr=EGL_WIDTH'], 'eglQuerySurface EGL_WIDTH',
4683 run_concurrent
=False)
4684 g(['egl-terminate-then-unbind-context'],
4685 'eglTerminate then unbind context',
4686 run_concurrent
=False)
4687 g(['egl-create-pbuffer-surface'],
4688 'eglCreatePbufferSurface and then glClear',
4689 run_concurrent
=False)
4690 g(['egl-create-msaa-pbuffer-surface'],
4691 'eglCreatePbufferSurface with EGL_SAMPLES set',
4692 run_concurrent
=False)
4693 g(['egl-create-largest-pbuffer-surface'],
4694 'largest possible eglCreatePbufferSurface and then glClear',
4695 run_concurrent
=False)
4696 g(['egl-invalid-attr'])
4697 g(['egl-context-priority'])
4698 g(['egl-blob-cache'])
4699 g(['egl-copy-buffers'])
4700 g(['egl-gl_oes_egl_image'])
4701 g(['egl-flush-external'])
4702 g(['egl-ext_egl_image_storage'])
4704 with profile
.test_list
.group_manager(
4706 grouptools
.join('spec', 'egl_nok_swap_region'),
4707 exclude_platforms
=['glx']) as g
:
4708 g(['egl-nok-swap-region'], 'basic', run_concurrent
=False)
4710 with profile
.test_list
.group_manager(
4712 grouptools
.join('spec', 'egl_nok_texture_from_pixmap'),
4713 exclude_platforms
=['glx']) as g
:
4714 g(['egl-nok-texture-from-pixmap'], 'basic', run_concurrent
=False)
4716 with profile
.test_list
.group_manager(
4718 grouptools
.join('spec', 'egl_khr_create_context'),
4719 exclude_platforms
=['glx']) as g
:
4720 g(['egl-create-context-default-major-version-gles'],
4721 'default major version GLES', run_concurrent
=False)
4722 g(['egl-create-context-default-major-version-gl'],
4723 'default major version GL', run_concurrent
=False)
4724 g(['egl-create-context-default-minor-version-gles'],
4725 'default minor version GLES', run_concurrent
=False)
4726 g(['egl-create-context-default-minor-version-gl'],
4727 'default minor version GL', run_concurrent
=False)
4728 g(['egl-create-context-valid-attribute-empty-gles'],
4729 'valid attribute empty GLES', run_concurrent
=False)
4730 g(['egl-create-context-valid-attribute-empty-gl'],
4731 'valid attribute empty GL', run_concurrent
=False)
4732 g(['egl-create-context-valid-attribute-null-gles'],
4733 'NULL valid attribute GLES', run_concurrent
=False)
4734 g(['egl-create-context-valid-attribute-null-gl'],
4735 'NULL valid attribute GL', run_concurrent
=False)
4736 g(['egl-create-context-invalid-gl-version'], 'invalid OpenGL version',
4737 run_concurrent
=False)
4738 g(['egl-create-context-invalid-attribute-gles'], 'invalid attribute GLES',
4739 run_concurrent
=False)
4740 g(['egl-create-context-invalid-attribute-gl'], 'invalid attribute GL',
4741 run_concurrent
=False)
4742 g(['egl-create-context-invalid-flag-gles'], 'invalid flag GLES',
4743 run_concurrent
=False)
4744 g(['egl-create-context-invalid-flag-gl'], 'invalid flag GL',
4745 run_concurrent
=False)
4746 g(['egl-create-context-valid-flag-forward-compatible-gl'],
4747 'valid forward-compatible flag GL', run_concurrent
=False)
4748 g(['egl-create-context-invalid-profile'], 'invalid profile',
4749 run_concurrent
=False)
4750 g(['egl-create-context-core-profile'], '3.2 core profile required',
4751 run_concurrent
=False)
4752 g(['egl-create-context-pre-GL32-profile'], 'pre-GL3.2 profile',
4753 run_concurrent
=False)
4754 g(['egl-create-context-verify-gl-flavor'], 'verify GL flavor',
4755 run_concurrent
=False)
4756 g(['egl-create-context-valid-flag-debug-gl', 'gl'], 'valid debug flag GL',
4757 run_concurrent
=False)
4758 g(['egl-create-context-no-error', 'gl'], 'no-error context GL',
4759 run_concurrent
=False)
4761 for api
in ('gles1', 'gles2', 'gles3'):
4762 g(['egl-create-context-valid-flag-debug-gles', api
],
4763 'valid debug flag {}'.format(api
), run_concurrent
=False)
4765 with profile
.test_list
.group_manager(
4767 grouptools
.join('spec', 'egl_khr_gl_image'),
4768 exclude_platforms
=['glx']) as g
:
4769 for internal_format
in ('GL_RGBA', 'GL_DEPTH_COMPONENT24'):
4770 g(['egl_khr_gl_renderbuffer_image-clear-shared-image', internal_format
],
4771 run_concurrent
=False)
4773 with profile
.test_list
.group_manager(
4775 grouptools
.join('spec', 'egl_khr_surfaceless_context'),
4776 exclude_platforms
=['glx']) as g
:
4777 g(['egl-surfaceless-context-viewport'], 'viewport',
4778 run_concurrent
=False)
4780 with profile
.test_list
.group_manager(
4782 grouptools
.join('spec', 'egl_mesa_configless_context'),
4783 exclude_platforms
=['glx']) as g
:
4784 g(['egl-configless-context'], 'basic')
4786 with profile
.test_list
.group_manager(
4788 grouptools
.join('spec', 'egl_ext_client_extensions'),
4789 exclude_platforms
=['glx']) as g
:
4791 g(['egl_ext_client_extensions', str(i
)],
4792 'conformance test {0}'.format(i
))
4794 with profile
.test_list
.group_manager(
4796 grouptools
.join('spec', 'egl_khr_fence_sync'),
4797 exclude_platforms
=['glx']) as g
:
4798 g(['egl_khr_fence_sync'], 'conformance')
4800 with profile
.test_list
.group_manager(
4802 grouptools
.join('spec', 'egl_android_native_fence_sync'),
4803 exclude_platforms
=['glx']) as g
:
4804 g(['egl_khr_fence_sync', 'android_native'])
4806 with profile
.test_list
.group_manager(
4808 grouptools
.join('spec', 'egl_khr_gl_colorspace'),
4809 exclude_platforms
=['glx']) as g
:
4810 g(['egl-gl-colorspace'], 'linear')
4811 g(['egl-gl-colorspace', 'srgb'], 'srgb')
4813 with profile
.test_list
.group_manager(
4815 grouptools
.join('spec', 'egl_khr_wait_sync'),
4816 exclude_platforms
=['glx']) as g
:
4817 g(['egl_khr_fence_sync', 'wait_sync'], 'conformance')
4819 with profile
.test_list
.group_manager(
4821 grouptools
.join('spec', 'egl_khr_get_all_proc_addresses'),
4822 exclude_platforms
=['glx']) as g
:
4823 g(['egl_khr_get_all_proc_addresses'], 'conformance')
4825 with profile
.test_list
.group_manager(
4827 grouptools
.join('spec', 'egl_chromium_sync_control'),
4828 exclude_platforms
=['glx']) as g
:
4829 g(['egl_chromium_sync_control'], 'conformance')
4831 with profile
.test_list
.group_manager(
4833 grouptools
.join('spec', 'egl_ext_device_query'),
4834 exclude_platforms
=['glx']) as g
:
4835 g(['egl_ext_device_query'], 'conformance')
4837 with profile
.test_list
.group_manager(
4839 grouptools
.join('spec', 'egl_ext_device_enumeration'),
4840 exclude_platforms
=['glx']) as g
:
4841 g(['egl_ext_device_enumeration'], 'conformance')
4843 with profile
.test_list
.group_manager(
4845 grouptools
.join('spec', 'egl_ext_device_drm'),
4846 exclude_platforms
=['glx']) as g
:
4847 g(['egl_ext_device_drm'], 'conformance')
4849 with profile
.test_list
.group_manager(
4851 grouptools
.join('spec', 'egl_ext_platform_device'),
4852 exclude_platforms
=['glx']) as g
:
4853 g(['egl_ext_platform_device'], 'conformance')
4855 with profile
.test_list
.group_manager(
4857 grouptools
.join('spec', 'egl_ext_device_base'),
4858 exclude_platforms
=['glx']) as g
:
4859 g(['egl_ext_device_base'], 'conformance')
4861 with profile
.test_list
.group_manager(
4863 grouptools
.join('spec', 'egl_mesa_device_software'),
4864 exclude_platforms
=['glx']) as g
:
4865 g(['egl_mesa_device_software'], 'conformance')
4867 with profile
.test_list
.group_manager(
4869 grouptools
.join('spec', 'egl_mesa_query_driver'),
4870 exclude_platforms
=['glx']) as g
:
4871 g(['egl_mesa_query_driver'], 'conformance')
4873 with profile
.test_list
.group_manager(
4875 grouptools
.join('spec', 'egl_mesa_platform_surfaceless'),
4876 exclude_platforms
=['glx']) as g
:
4877 g(['egl_mesa_platform_surfaceless'], 'conformance')
4879 with profile
.test_list
.group_manager(
4881 grouptools
.join('spec', 'egl_ext_image_dma_buf_import_modifiers'),
4882 exclude_platforms
=['glx']) as g
:
4883 g(['egl_ext_image_dma_buf_import_modifiers-query'], 'conformance')
4885 with profile
.test_list
.group_manager(
4887 grouptools
.join('spec', 'egl_ext_protected_content'),
4888 exclude_platforms
=['glx']) as g
:
4889 g(['egl_ext_protected_content'], 'conformance')
4891 with profile
.test_list
.group_manager(
4892 PiglitGLTest
, grouptools
.join('spec', '!opengl ES 2.0')) as g
:
4893 g(['glsl-fs-pointcoord_gles2'], 'glsl-fs-pointcoord')
4894 g(['invalid-es3-queries_gles2'])
4895 g(['link-no-vsfs_gles2'], 'link-no-vsfs')
4897 g(['multiple-shader-objects_gles2'])
4898 g(['fbo_discard_gles2'])
4899 g(['draw_buffers_gles2'])
4901 with profile
.test_list
.group_manager(
4902 PiglitGLTest
, grouptools
.join('spec', '!opengl ES 3.0')) as g
:
4903 g(['minmax_gles3'], 'minmax')
4904 g(['texture-immutable-levels_gles3'], 'texture-immutable-levels')
4905 g(['gles-3.0-drawarrays-vertexid'], 'gl_VertexID used with glDrawArrays')
4906 g(['gles-3.0-transform-feedback-uniform-buffer-object'])
4907 g(['gles-3.0-attribute-aliasing'], 'vertex attribute aliasing')
4909 for test_mode
in ['teximage', 'texsubimage']:
4910 g(['ext_texture_array-compressed_gles3', test_mode
, '-fbo'],
4911 'ext_texture_array-compressed_gles3 {0}'.format(test_mode
),
4912 run_concurrent
=False)
4914 for tex_format
in ['rgb8', 'srgb8', 'rgba8', 'srgb8-alpha8', 'r11', 'rg11',
4915 'rgb8-punchthrough-alpha1',
4916 'srgb8-punchthrough-alpha1']:
4917 g(['oes_compressed_etc2_texture-miptree_gles3', tex_format
])
4919 with profile
.test_list
.group_manager(
4920 PiglitGLTest
, grouptools
.join('spec', 'arb_es3_compatibility')) as g
:
4921 g(['es3-primrestart-fixedindex'])
4922 g(['es3-drawarrays-primrestart-fixedindex'])
4924 for tex_format
in ['rgb8', 'srgb8', 'rgba8', 'srgb8-alpha8', 'r11', 'rg11',
4925 'rgb8-punchthrough-alpha1',
4926 'srgb8-punchthrough-alpha1']:
4927 for context
in ['core', 'compat']:
4928 g(['oes_compressed_etc2_texture-miptree', tex_format
, context
])
4930 with profile
.test_list
.group_manager(
4932 grouptools
.join('spec', 'arb_shader_atomic_counters')) as g
:
4933 g(['arb_shader_atomic_counters-active-counters'], 'active-counters')
4934 g(['arb_shader_atomic_counters-array-indexing'], 'array-indexing')
4935 g(['arb_shader_atomic_counters-buffer-binding'], 'buffer-binding')
4936 g(['arb_shader_atomic_counters-default-partition'], 'default-partition')
4937 g(['arb_shader_atomic_counters-fragment-discard'], 'fragment-discard')
4938 g(['arb_shader_atomic_counters-function-argument'], 'function-argument')
4939 g(['arb_shader_atomic_counters-max-counters'], 'max-counters')
4940 g(['arb_shader_atomic_counters-minmax'], 'minmax')
4941 g(['arb_shader_atomic_counters-multiple-defs'], 'multiple-defs')
4942 g(['arb_shader_atomic_counters-semantics'], 'semantics')
4943 g(['arb_shader_atomic_counters-unique-id'], 'unique-id')
4944 g(['arb_shader_atomic_counters-unused-result'], 'unused-result')
4945 g(['arb_shader_atomic_counters-respecify-buffer'], 'respecify-buffer')
4947 with profile
.test_list
.group_manager(
4949 grouptools
.join('spec', 'arb_direct_state_access')) as g
:
4950 g(['arb_direct_state_access-create-transformfeedbacks'],
4951 'create-transformfeedbacks')
4952 g(['arb_direct_state_access-transformfeedback-bufferbase'],
4953 'transformfeedback-bufferbase')
4954 g(['arb_direct_state_access-transformfeedback-bufferrange'],
4955 'transformfeedback-bufferrange')
4956 g(['arb_direct_state_access-gettransformfeedback'], 'gettransformfeedback')
4957 g(['arb_direct_state_access-create-renderbuffers'], 'create-renderbuffers')
4958 g(['arb_direct_state_access-namedrenderbuffer'], 'namedrenderbuffer')
4959 g(['arb_direct_state_access-dsa-textures'], 'dsa-textures')
4960 g(['arb_direct_state_access-texturesubimage'], 'texturesubimage')
4961 g(['arb_direct_state_access-bind-texture-unit'], 'bind-texture-unit')
4962 g(['arb_direct_state_access-create-textures'], 'create-textures')
4963 g(['arb_direct_state_access-texture-storage'], 'textures-storage')
4964 g(['arb_direct_state_access-texunits'], 'texunits')
4965 g(['arb_direct_state_access-texture-params'], 'texture-params')
4966 g(['arb_direct_state_access-copytexturesubimage'], 'copytexturesubimage')
4967 g(['arb_direct_state_access-texture-errors'], 'texture-errors')
4968 g(['arb_direct_state_access-get-textures'], 'get-textures')
4969 g(['arb_direct_state_access-gettextureimage-formats'],
4970 'gettextureimage-formats')
4971 g(['arb_direct_state_access-gettextureimage-formats', 'init-by-rendering'],
4972 'gettextureimage-formats init-by-rendering')
4973 g(['arb_direct_state_access-gettextureimage-luminance'],
4974 'gettextureimage-luminance')
4975 g(['arb_direct_state_access-gettextureimage-targets'],
4976 'gettextureimage-targets')
4977 g(['arb_direct_state_access-compressedtextureimage',
4978 'GL_COMPRESSED_RGBA_S3TC_DXT5_EXT'],
4979 'compressedtextureimage GL_COMPRESSED_RGBA_S3TC_DXT5_EXT')
4980 g(['arb_direct_state_access-getcompressedtextureimage'],
4981 'getcompressedtextureimage')
4982 g(['arb_direct_state_access-texture-storage-multisample'],
4983 'texture-storage-multisample')
4984 g(['arb_direct_state_access-texture-buffer'], 'texture-buffer')
4985 g(['arb_direct_state_access-create-samplers'], 'create-samplers')
4986 g(['arb_direct_state_access-create-programpipelines'],
4987 'create-programpipelines')
4988 g(['arb_direct_state_access-create-queries'], 'create-queries')
4989 g(['arb_direct_state_access-generatetexturemipmap'], 'generatetexturemipmap')
4991 with profile
.test_list
.group_manager(
4993 grouptools
.join('spec', 'ext_direct_state_access')) as g
:
4994 g(['ext_direct_state_access-matrix-commands'],
4996 g(['ext_direct_state_access-textures'],
4998 g(['ext_direct_state_access-multi-texture'],
5000 g(['ext_direct_state_access-named-buffers', '15'],
5002 g(['ext_direct_state_access-named-buffers', '30'],
5004 g(['ext_direct_state_access-compressedtextureimage',
5005 'GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT'],
5006 'compressedtextureimage GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT')
5007 g(['ext_direct_state_access-client-state-indexed', '12'],
5008 'client-state-indexed 12')
5009 g(['ext_direct_state_access-client-state-indexed', '30'],
5010 'client-state-indexed 30')
5011 g(['ext_direct_state_access-indexed-state-queries', '12'],
5012 'indexed-state-queries 12')
5013 g(['ext_direct_state_access-indexed-state-queries', '30'],
5014 'indexed-state-queries 30')
5015 g(['ext_direct_state_access-program-uniform'],
5017 g(['ext_direct_state_access-named-program'],
5019 g(['ext_direct_state_access-renderbuffer'], 'renderbuffer')
5020 g(['ext_direct_state_access-framebuffer'], 'framebuffer')
5021 g(['ext_direct_state_access-compressedmultiteximage',
5022 'GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT'],
5023 'compressedmultiteximage GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT')
5024 g(['ext_direct_state_access-vao'], 'vao')
5026 with profile
.test_list
.group_manager(
5028 grouptools
.join('spec', 'arb_shader_image_load_store')) as g
:
5029 g(['arb_shader_image_load_store-atomicity'], 'atomicity')
5030 g(['arb_shader_image_load_store-bitcast'], 'bitcast')
5031 g(['arb_shader_image_load_store-coherency'], 'coherency')
5032 g(['arb_shader_image_load_store-dead-fragments'], 'dead-fragments')
5033 g(['arb_shader_image_load_store-early-z'], 'early-z')
5034 g(['arb_shader_image_load_store-host-mem-barrier'], 'host-mem-barrier')
5035 g(['arb_shader_image_load_store-indexing'], 'indexing')
5036 g(['arb_shader_image_load_store-invalid'], 'invalid')
5037 g(['arb_shader_image_load_store-layer'], 'layer')
5038 g(['arb_shader_image_load_store-level'], 'level')
5039 g(['arb_shader_image_load_store-max-images'], 'max-images')
5040 g(['arb_shader_image_load_store-max-size'], 'max-size')
5041 g(['arb_shader_image_load_store-minmax'], 'minmax')
5042 g(['arb_shader_image_load_store-qualifiers'], 'qualifiers')
5043 g(['arb_shader_image_load_store-restrict'], 'restrict')
5044 g(['arb_shader_image_load_store-semantics'], 'semantics')
5045 g(['arb_shader_image_load_store-shader-mem-barrier'], 'shader-mem-barrier')
5046 g(['arb_shader_image_load_store-state'], 'state')
5047 g(['arb_shader_image_load_store-unused'], 'unused')
5049 with profile
.test_list
.group_manager(
5051 grouptools
.join('spec', 'arb_post_depth_coverage')) as g
:
5052 g(['arb_post_depth_coverage-basic'])
5053 g(['arb_post_depth_coverage-multisampling'])
5054 g(['arb_post_depth_coverage-sample-shading'])
5056 with profile
.test_list
.group_manager(
5058 grouptools
.join('spec', 'arb_fragment_shader_interlock')) as g
:
5059 g(['arb_fragment_shader_interlock-image-load-store'])
5061 with profile
.test_list
.group_manager(
5063 grouptools
.join('spec', 'arb_shader_image_size')) as g
:
5064 g(['arb_shader_image_size-builtin'], 'builtin')
5066 with profile
.test_list
.group_manager(
5068 grouptools
.join('spec', 'arb_shader_texture_image_samples')) as g
:
5069 g(['arb_shader_texture_image_samples-builtin-image'], 'builtin-image')
5071 with profile
.test_list
.group_manager(
5073 grouptools
.join('spec', 'arb_texture_stencil8')) as g
:
5074 g(['arb_texture_stencil8-draw'], 'draw')
5075 g(['arb_texture_stencil8-getteximage'], 'getteximage')
5076 g(['arb_texture_stencil8-stencil-texture'], 'stencil-texture')
5077 g(['arb_texture_stencil8-fbo-stencil8', 'clear', 'GL_STENCIL_INDEX8'], 'fbo-stencil-clear')
5078 g(['arb_texture_stencil8-fbo-stencil8', 'blit', 'GL_STENCIL_INDEX8'], 'fbo-stencil-blit')
5079 g(['arb_texture_stencil8-fbo-stencil8', 'readpixels', 'GL_STENCIL_INDEX8'], 'fbo-stencil-readpixels')
5080 add_fbo_formats_tests(g
, 'GL_ARB_texture_stencil8')
5081 add_texwrap_format_tests(g
, 'GL_ARB_texture_stencil8')
5083 with profile
.test_list
.group_manager(
5085 grouptools
.join('spec', 'arb_vertex_attrib_64bit')) as g
:
5086 g(['arb_vertex_attrib_64bit-double_attribs'], 'double_attribs')
5087 g(['arb_vertex_attrib_64bit-double_attribs_dlist'], 'get_double_attribs-display-lists')
5088 g(['arb_vertex_attrib_64bit-check-explicit-location'], 'check-explicit-location')
5089 g(['arb_vertex_attrib_64bit-getactiveattrib'], 'getactiveattrib')
5090 g(['arb_vertex_attrib_64bit-max-vertex-attrib'], 'max-vertex-attrib')
5091 for test_type
in ('shader', 'api'):
5092 g(['arb_vertex_attrib_64bit-overlapping-locations', test_type
],
5093 run_concurrent
=False)
5095 with profile
.test_list
.group_manager(
5097 grouptools
.join('spec', 'arb_query_buffer_object')) as g
:
5098 g(['arb_query_buffer_object-qbo'], 'qbo')
5099 g(['arb_query_buffer_object-coherency'], 'coherency')
5101 with profile
.test_list
.group_manager(
5103 grouptools
.join('spec', 'ext_framebuffer_blit')) as g
:
5104 g(['ext_framebuffer_blit-blit-early'], 'blit-early')
5106 # Group OES_draw_elements_base_vertex
5107 with profile
.test_list
.group_manager(
5109 grouptools
.join('spec', 'OES_draw_elements_base_vertex')) as g
:
5110 g(['oes_draw_elements_base_vertex-drawelements'], run_concurrent
=False)
5111 g(['oes_draw_elements_base_vertex-drawelements-instanced'],
5112 run_concurrent
=False)
5113 g(['oes_draw_elements_base_vertex-drawrangeelements'],
5114 run_concurrent
=False)
5115 g(['oes_draw_elements_base_vertex-multidrawelements'],
5116 run_concurrent
=False)
5118 with profile
.test_list
.group_manager(
5119 BuiltInConstantsTest
,
5120 grouptools
.join('spec', 'oes_geometry_shader')) as g
:
5121 g(['built-in-constants_gles3',
5122 os
.path
.join('spec', 'oes_geometry_shader', 'minimum-maximums.txt')],
5123 'built-in constants')
5125 # Group EXT_shader_samples_identical
5126 with profile
.test_list
.group_manager(
5128 grouptools
.join('spec', 'EXT_shader_samples_identical')) as g
:
5129 for sample_count
in MSAA_SAMPLE_COUNTS
:
5130 g(['ext_shader_samples_identical-simple-fs', sample_count
])
5132 # Group ARB_shader_draw_parameters
5133 with profile
.test_list
.group_manager(
5135 grouptools
.join('spec', 'ARB_shader_draw_parameters')) as g
:
5136 g(['arb_shader_draw_parameters-drawid', 'drawid'], 'drawid')
5137 g(['arb_shader_draw_parameters-drawid', 'vertexid'], 'drawid-vertexid')
5138 g(['arb_shader_draw_parameters-drawid-indirect', 'drawid'], 'drawid-indirect')
5139 g(['arb_shader_draw_parameters-drawid-indirect', 'basevertex'], 'drawid-indirect-basevertex')
5140 g(['arb_shader_draw_parameters-drawid-indirect', 'baseinstance'], 'drawid-indirect-baseinstance')
5141 g(['arb_shader_draw_parameters-drawid-indirect', 'vertexid'], 'drawid-indirect-vertexid')
5142 g(['arb_shader_draw_parameters-drawid-single-draw'], 'drawid-single-draw')
5143 g(['arb_shader_draw_parameters-drawid-single-draw', 'dlist'], 'drawid-single-draw-display-list')
5144 g(['arb_shader_draw_parameters-drawid-single-draw', 'restart'], 'drawid-single-draw-primitive-restart')
5146 variables
= ('basevertex', 'baseinstance', 'basevertex-baseinstance', 'vertexid-zerobased')
5148 g(['arb_shader_draw_parameters-basevertex', v
], v
)
5150 g(['arb_shader_draw_parameters-basevertex', v
, 'indirect'], v
+ '-indirect')
5152 # Group ARB_indirect_parameters
5153 with profile
.test_list
.group_manager(
5155 grouptools
.join('spec', 'ARB_indirect_parameters')) as g
:
5156 g(['arb_indirect_parameters-tf-count-arrays'], 'tf-count-arrays')
5157 g(['arb_indirect_parameters-tf-count-elements'], 'tf-count-elements')
5158 g(['arb_indirect_parameters-conditional-render'], 'conditional-render')
5160 with profile
.test_list
.group_manager(
5162 grouptools
.join('object namespace pollution')) as g
:
5163 for object_type
in ("buffer", "framebuffer", "program", "renderbuffer", "texture", "vertex-array"):
5164 for operation
in ("glBitmap", "glBlitFramebuffer", "glClear", "glClearTexSubImage", "glCopyImageSubData", "glCopyPixels", "glCopyTexSubImage2D", "glDrawPixels", "glGenerateMipmap", "glGetTexImage", "glGetTexImage-compressed", "glTexSubImage2D"):
5165 g(['object-namespace-pollution', operation
, object_type
],
5166 '{} with {}'.format(object_type
, operation
))
5168 # Group ARB_texture_barrier
5169 resolution_set
= ['32', '512']
5170 blend_passes_set
= ['1', '42']
5171 num_textures_set
= ['1', '8']
5172 granularity_set
= ['8', '64', '128']
5173 draw_passes_set
= ['1', '2', '3', '4', '7', '8']
5175 with profile
.test_list
.group_manager(
5177 grouptools
.join('spec', 'arb_texture_barrier')) as g
:
5178 for resolution
, blend_passes
, num_textures
, granularity
, draw_passes
in itertools
.product(
5179 resolution_set
, blend_passes_set
, num_textures_set
, granularity_set
, draw_passes_set
):
5180 g(['arb_texture_barrier-blending-in-shader', resolution
,
5181 blend_passes
, num_textures
, granularity
, draw_passes
])
5184 # Group ARB_invalidate_subdata
5185 with profile
.test_list
.group_manager(
5187 grouptools
.join('spec', 'ARB_invalidate_subdata')) as g
:
5188 g(['arb_invalidate_subdata-buffer'], 'buffer')
5190 # Group EXT_window_rectangles
5191 with profile
.test_list
.group_manager(
5193 grouptools
.join('spec', 'EXT_window_rectangles')) as g
:
5194 g(['ext_window_rectangles-dlist'], 'dlist')
5195 g(['ext_window_rectangles-errors'], 'errors')
5196 g(['ext_window_rectangles-render'], 'render')
5198 g(['ext_window_rectangles-errors_gles3'], 'errors_gles3')
5199 g(['ext_window_rectangles-render_gles3'], 'render_gles3')
5201 # Group ARB_compute_variable_group_size
5202 with profile
.test_list
.group_manager(
5204 grouptools
.join('spec', 'ARB_compute_variable_group_size')) as g
:
5205 g(['arb_compute_variable_group_size-errors'], 'errors')
5206 g(['arb_compute_variable_group_size-local-size'], 'local-size')
5207 g(['arb_compute_variable_group_size-minmax'], 'minmax')
5209 # Group INTEL_conservative_rasterization
5210 with profile
.test_list
.group_manager(
5212 grouptools
.join('spec', 'INTEL_conservative_rasterization')) as g
:
5213 g(['intel_conservative_rasterization-depthcoverage'])
5214 g(['intel_conservative_rasterization-innercoverage'])
5215 g(['intel_conservative_rasterization-invalid'])
5216 g(['intel_conservative_rasterization-tri'])
5217 g(['intel_conservative_rasterization-depthcoverage_gles3'])
5218 g(['intel_conservative_rasterization-innercoverage_gles3'])
5219 g(['intel_conservative_rasterization-invalid_gles3'])
5220 g(['intel_conservative_rasterization-tri_gles3'])
5222 # Group INTEL_blackhole_render
5223 with profile
.test_list
.group_manager(
5225 grouptools
.join('spec', 'INTEL_blackhole_render')) as g
:
5226 g(['intel_blackhole-blit'])
5227 g(['intel_blackhole-draw'])
5228 g(['intel_blackhole-dispatch'])
5229 g(['intel_blackhole-blit_gles2'])
5230 g(['intel_blackhole-draw_gles2'])
5231 g(['intel_blackhole-blit_gles3'])
5232 g(['intel_blackhole-draw_gles3'])
5234 # Group INTEL_performance_query
5235 with profile
.test_list
.group_manager(
5237 grouptools
.join('spec', 'INTEL_performance_query')) as g
:
5238 g(['intel_performance_query-issue_2235'])
5240 # Group ARB_bindless_texture
5241 with profile
.test_list
.group_manager(
5243 grouptools
.join('spec', 'ARB_bindless_texture')) as g
:
5244 g(['arb_bindless_texture-border-color'], 'border-color')
5245 g(['arb_bindless_texture-conversions'], 'conversions')
5246 g(['arb_bindless_texture-errors'], 'errors')
5247 g(['arb_bindless_texture-handles'], 'handles')
5248 g(['arb_bindless_texture-illegal'], 'illegal')
5249 g(['arb_bindless_texture-legal'], 'legal')
5250 g(['arb_bindless_texture-limit'], 'limit')
5251 g(['arb_bindless_texture-uint64_attribs'], 'uint64_attribs')
5252 g(['arb_bindless_texture-uniform'], 'uniform')
5254 with profile
.test_list
.group_manager(
5256 grouptools
.join('spec', 'ext_shader_image_load_store')) as g
:
5257 g(['ext_shader_image_load_store-image_functions'], 'image_functions')
5258 g(['ext_shader_image_load_store-bind_image_error'], 'bind_image_error')
5260 # Group ARB_sample_locations
5261 with profile
.test_list
.group_manager(
5263 grouptools
.join('spec', 'ARB_sample_locations')) as g
:
5264 g(['arb_sample_locations'], 'test')
5266 with profile
.test_list
.group_manager(
5268 grouptools
.join('spec', 'NV_image_formats')) as g
:
5269 g(['nv_image_formats-gles3'])
5271 with profile
.test_list
.group_manager(
5273 grouptools
.join('spec', 'EXT_color_buffer_float')) as g
:
5274 g(['ext_color_buffer_float-draw_gles3'])
5276 with profile
.test_list
.group_manager(
5278 grouptools
.join('spec', 'AMD_compressed_atc_texture')) as g
:
5279 g(['amd_compressed_atc_texture-miptree'], 'miptree')
5281 with profile
.test_list
.group_manager(
5283 grouptools
.join('spec', 'OES_EGL_image_external_essl3')) as g
:
5284 g(['oes_egl_image_external_essl3'])
5286 with profile
.test_list
.group_manager(
5288 grouptools
.join('spec', 'NV_viewport_swizzle')) as g
:
5289 g(['nv_viewport_swizzle-errors'])
5290 g(['nv_viewport_swizzle-errors_gles3'])
5292 with profile
.test_list
.group_manager(
5294 grouptools
.join('spec', 'ext_clear_texture')) as g
:
5295 g(['ext_clear_texture-clear-max-level'])
5296 g(['ext_clear_texture-error'])
5297 g(['ext_clear_texture-3d'])
5298 g(['ext_clear_texture-cube'])
5299 g(['ext_clear_texture-multisample'])
5300 g(['ext_clear_texture-base-formats'])
5301 g(['ext_clear_texture-stencil'])
5302 g(['ext_clear_texture-texview'])
5304 with profile
.test_list
.group_manager(
5306 grouptools
.join('spec', 'EXT_texture_sRGB_R8')) as g
:
5307 g(['teximage-colors', 'GL_SR8_EXT'])
5309 with profile
.test_list
.group_manager(
5311 grouptools
.join('spec', 'EXT_texture_sRGB_RG8')) as g
:
5312 g(['teximage-colors', 'GL_SRG8_EXT'])
5314 if platform
.system() == 'Windows':
5315 profile
.filters
.append(lambda p
, _
: not p
.startswith('glx'))