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-smooth-coverage'])
663 g(['line-smooth-stipple'])
664 g(['line-flat-clip-color'])
666 g(['lineloop', '-dlist'], 'lineloop-dlist')
667 g(['linestipple'], run_concurrent
=False)
669 g(['masked-clear'], run_concurrent
=False)
670 g(['point-line-no-cull'])
672 g(['polygon-mode-facing'])
673 g(['polygon-mode-offset'])
674 g(['polygon-offset'])
675 g(['ppgtt_memory_alignment'])
676 g(['push-pop-texture-state'])
677 g(['quad-invariance'])
679 g(['roundmode-getintegerv'])
680 g(['roundmode-pixelstore'])
681 g(['select', 'gl11'], 'GL_SELECT - no test function')
682 g(['select', 'depth'], 'GL_SELECT - depth-test enabled')
683 g(['select', 'stencil'], 'GL_SELECT - stencil-test enabled')
684 g(['select', 'alpha'], 'GL_SELECT - alpha-test enabled')
685 g(['select', 'scissor'], 'GL_SELECT - scissor-test enabled')
686 g(['stencil-drawpixels'])
688 g(['two-sided-lighting'])
690 g(['varray-disabled'])
692 g(['copyteximage-border'])
693 g(['copyteximage-clipping'])
694 g(['copytexsubimage'])
695 g(['getteximage-formats'])
696 g(['getteximage-luminance'])
697 g(['getteximage-simple'])
698 g(['getteximage-depth'])
699 g(['incomplete-texture', 'fixed'], 'incomplete-texture-fixed')
701 g(['sized-texture-format-channels'])
704 g(['texsubimage-unpack'])
705 g(['texsubimage-depth-formats'])
707 g(['triangle-guardband-viewport'])
708 g(['getteximage-targets', '1D'])
709 g(['getteximage-targets', '2D'])
710 g(['teximage-scale-bias'])
711 g(['tex-upside-down-miptree'])
712 g(['vertex-fallbacks'])
714 for prim
in ['GL_POINTS', 'GL_LINE_LOOP', 'GL_LINE_STRIP', 'GL_LINES',
715 'GL_TRIANGLES', 'GL_TRIANGLE_STRIP', 'GL_TRIANGLE_FAN',
716 'GL_QUADS', 'GL_QUAD_STRIP', 'GL_POLYGON']:
717 for mode
in ['varray', 'vbo']:
718 g(['gl-1.1-drawarrays-vertex-count', '100000', mode
, prim
])
720 add_msaa_visual_plain_tests(g
, ['draw-pixels'])
721 add_msaa_visual_plain_tests(g
, ['read-front'], run_concurrent
=False)
722 add_msaa_visual_plain_tests(g
, ['read-front', 'clear-front-first'],
723 run_concurrent
=False)
724 add_texwrap_target_tests(g
, '1D')
725 add_texwrap_target_tests(g
, '2D')
726 add_texwrap_format_tests(g
)
729 'GL_RED', 'GL_R8', 'GL_R8_SNORM', 'GL_R16', 'GL_R16_SNORM',
730 'GL_R16F', 'GL_R32F',
732 'GL_RG', 'GL_RG8', 'GL_RG8_SNORM', 'GL_RG16', 'GL_RG16_SNORM',
733 'GL_RG16F', 'GL_RG32F',
735 'GL_RGB', 'GL_R3_G3_B2', 'GL_RGB4', 'GL_RGB5', 'GL_RGB8',
736 'GL_RGB8_SNORM', 'GL_SRGB8', 'GL_RGB10', 'GL_R11F_G11F_B10F',
737 'GL_RGB12', 'GL_RGB9_E5', 'GL_RGB16', 'GL_RGB16F',
738 'GL_RGB16_SNORM', 'GL_RGB32F',
740 'GL_RGBA', 'GL_RGBA2', 'GL_RGBA4', 'GL_RGB5_A1', 'GL_RGBA8',
741 'GL_RGB10_A2', 'GL_RGBA8_SNORM', 'GL_SRGB8_ALPHA8', 'GL_RGBA12',
742 'GL_RGBA16', 'GL_RGBA16_SNORM', 'GL_RGBA32F',
744 'GL_ALPHA', 'GL_ALPHA4', 'GL_ALPHA8', 'GL_ALPHA12', 'GL_ALPHA16',
746 'GL_LUMINANCE', 'GL_LUMINANCE4', 'GL_LUMINANCE8', 'GL_SLUMINANCE8',
747 'GL_LUMINANCE12', 'GL_LUMINANCE16',
749 'GL_LUMINANCE_ALPHA', 'GL_LUMINANCE4_ALPHA4',
750 'GL_LUMINANCE6_ALPHA2', 'GL_LUMINANCE8_ALPHA8',
751 'GL_SLUMINANCE8_ALPHA8', 'GL_LUMINANCE12_ALPHA4',
752 'GL_LUMINANCE12_ALPHA12', 'GL_LUMINANCE16_ALPHA16',
754 for format
in color_formats
:
755 g(['teximage-colors', format
])
757 for num_samples
in ['0'] + MSAA_SAMPLE_COUNTS
:
758 add_fbo_depthstencil_tests(g
, 'default_fb', num_samples
)
760 with profile
.test_list
.group_manager(
762 grouptools
.join('spec', '!opengl 1.2')) as g
:
763 g(['gl-1.2-texparameter-before-teximage'])
764 g(['draw-elements-vs-inputs'])
765 g(['two-sided-lighting-separate-specular'])
768 g(['lodclamp-between'])
769 g(['lodclamp-between-max'])
771 g(['gl-1.2-rescale-normal'])
772 g(['tex-skipped-unit'])
774 g(['tex3d-maxsize'], run_concurrent
=False)
775 g(['teximage-errors'])
776 g(['texture-packed-formats'])
777 g(['getteximage-targets', '3D'])
778 add_msaa_visual_plain_tests(g
, ['copyteximage', '3D'])
779 add_texwrap_target_tests(g
, '3D')
781 with profile
.test_list
.group_manager(
783 grouptools
.join('spec', '!opengl 1.3')) as g
:
786 g(['gl-1.3-texture-env'])
789 with profile
.test_list
.group_manager(
791 grouptools
.join('spec', '!opengl 1.4')) as g
:
792 g(['gl-1.4-rgba-mipmap-texture-with-rgb-visual'])
795 g(['gl-1.4-dlist-multidrawarrays'])
796 g(['gl-1.4-multidrawarrays-errors'])
797 g(['gl-1.4-polygon-offset'])
798 g(['gl-1.4-tex1d-2dborder'])
801 g(['triangle-rasterization'])
802 g(['triangle-rasterization', '-use_fbo'], 'triangle-rasterization-fbo')
803 g(['triangle-rasterization-overdraw'])
804 g(['tex-miplevel-selection', '-nobias', '-nolod'],
805 'tex-miplevel-selection')
806 g(['tex-miplevel-selection', '-nobias'], 'tex-miplevel-selection-lod')
807 g(['tex-miplevel-selection'], 'tex-miplevel-selection-lod-bias')
808 add_msaa_visual_plain_tests(g
, ['copy-pixels'])
810 with profile
.test_list
.group_manager(
812 grouptools
.join('spec', '!opengl 1.5')) as g
:
814 g(['draw-elements', 'user'], 'draw-elements-user')
816 g(['draw-vertices', 'user'], 'draw-vertices-user')
818 g(['depth-tex-compare'])
819 g(['gl-1.5-get-array-attribs'])
820 g(['gl-1.5-normal3b3s-invariance', 'GL_BYTE'],
821 'normal3b3s-invariance-byte')
822 g(['gl-1.5-normal3b3s-invariance', 'GL_SHORT'],
823 'normal3b3s-invariance-short')
824 g(['gl-1.5-vertex-buffer-offsets'], 'vertex-buffer-offsets')
826 with profile
.test_list
.group_manager(
828 grouptools
.join('spec', '!opengl 2.0')) as g
:
830 g(['gl-2.0-edgeflag'])
831 g(['gl-2.0-edgeflag-immediate'])
832 g(['gl-2.0-large-point-fs'])
833 g(['gl-2.0-link-empty-prog'])
834 g(['gl-2.0-two-sided-stencil'])
835 g(['gl-2.0-vertexattribpointer'])
836 g(['gl-2.0-vertexattribpointer-size-3'])
837 g(['gl-2.0-vertex-attr-0'])
838 g(['gl-2.0-vertex-const-attr'])
839 g(['gl-2.0-reuse_fragment_shader'])
840 g(['gl-2.0-shader-materials'])
841 g(['attrib-assignments'])
842 g(['getattriblocation-conventional'])
843 g(['clip-flag-behavior'])
844 g(['vertex-program-two-side', 'enabled', 'front', 'back', 'front2',
846 g(['vertex-program-two-side', 'enabled', 'front', 'back', 'front2'])
847 g(['vertex-program-two-side', 'enabled', 'front', 'back', 'back2'])
848 g(['vertex-program-two-side', 'enabled', 'front', 'back'])
849 g(['vertex-program-two-side', 'enabled', 'front', 'front2', 'back2'])
850 g(['vertex-program-two-side', 'enabled', 'front', 'front2'])
851 g(['vertex-program-two-side', 'enabled', 'front', 'back2'])
852 g(['vertex-program-two-side', 'enabled', 'front'])
853 g(['vertex-program-two-side', 'enabled', 'back', 'front2', 'back2'])
854 g(['vertex-program-two-side', 'enabled', 'back', 'front2'])
855 g(['vertex-program-two-side', 'enabled', 'back', 'back2'])
856 g(['vertex-program-two-side', 'enabled', 'back'])
857 g(['vertex-program-two-side', 'enabled', 'front2', 'back2'])
858 g(['vertex-program-two-side', 'enabled', 'front2'])
859 g(['vertex-program-two-side', 'enabled', 'back2'])
860 g(['vertex-program-two-side', 'enabled'])
861 g(['vertex-program-two-side', 'front', 'back', 'front2', 'back2'])
862 g(['vertex-program-two-side', 'front', 'back', 'front2'])
863 g(['vertex-program-two-side', 'front', 'back', 'back2'])
864 g(['vertex-program-two-side', 'front', 'back'])
865 g(['vertex-program-two-side', 'front', 'front2', 'back2'])
866 g(['vertex-program-two-side', 'front', 'front2'])
867 g(['vertex-program-two-side', 'front', 'back2'])
868 g(['vertex-program-two-side', 'front'])
869 g(['vertex-program-two-side', 'back', 'front2', 'back2'])
870 g(['vertex-program-two-side', 'back', 'front2'])
871 g(['vertex-program-two-side', 'back', 'back2'])
872 g(['vertex-program-two-side', 'back'])
873 g(['vertex-program-two-side', 'front2', 'back2'])
874 g(['vertex-program-two-side', 'front2'])
875 g(['vertex-program-two-side', 'back2'])
876 g(['vertex-program-two-side'])
877 g(['clear-varray-2.0'])
879 g(['occlusion-query-discard'])
880 g(['stencil-twoside'])
881 g(['vs-point_size-zero'])
882 g(['depth-tex-modes-glsl'])
883 g(['fragment-and-vertex-texturing'])
884 g(['incomplete-texture', 'glsl'], 'incomplete-texture-glsl')
887 g(['max-samplers', 'border'])
888 g(['gl-2.0-active-sampler-conflict'])
889 g(['incomplete-cubemap', 'size'], 'incomplete-cubemap-size')
890 g(['incomplete-cubemap', 'format'], 'incomplete-cubemap-format')
891 g(['gl-2.0-texture-units'])
892 g(['gl-2.0-uniform-neg-location'])
893 g(['shadersource-errors'])
895 with profile
.test_list
.group_manager(
897 grouptools
.join('spec', '!opengl 2.1')) as g
:
898 g(['gl-2.1-minmax'], 'minmax')
899 g(['gl-2.1-pbo'], 'pbo')
900 g(['gl-2.1-polygon-stipple-fs'], 'polygon-stipple-fs')
901 g(['gl-2.1-fbo-mrt-alphatest-no-buffer-zero-write'], 'fbo-mrt-alphatest-no-buffer-zero-write')
903 with profile
.test_list
.group_manager(
905 grouptools
.join('spec', '!opengl 3.0')) as g
:
906 g(['attribs', 'GL3'], 'attribs')
907 g(['bindfragdata-invalid-parameters'])
908 g(['bindfragdata-link-error'])
909 g(['bindfragdata-nonexistent-variable'])
910 g(['gl-3.0-bound-resource-limits'],
911 'bound-resource-limits')
912 g(['clearbuffer-depth'])
913 g(['clearbuffer-depth-cs-probe'])
914 g(['clearbuffer-depth-stencil'])
915 g(['clearbuffer-display-lists'])
916 g(['clearbuffer-invalid-drawbuffer'])
917 g(['clearbuffer-invalid-buffer'])
918 g(['clearbuffer-mixed-format'])
919 g(['clearbuffer-stencil'])
920 g(['clearbuffer-bug'])
921 g(['gl-3.0-dlist-uint-uniforms'],
922 'dlist-uint-uniforms')
923 g(['genmipmap-errors'])
924 g(['getfragdatalocation'])
925 g(['integer-errors'])
926 g(['gl-3.0-multidrawarrays-vertexid'],
927 'gl_VertexID used with glMultiDrawArrays')
928 g(['gl-3.0-minmax'], 'minmax')
929 g(['gl-3.0-render-integer'], 'render-integer')
930 g(['gl-3.0-required-sized-texture-formats', '30'],
931 'required-sized-texture-formats')
932 g(['gl-3.0-required-renderbuffer-attachment-formats', '30'],
933 'required-renderbuffer-attachment-formats')
934 g(['gl-3.0-required-texture-attachment-formats', '30'],
935 'required-texture-attachment-formats')
936 g(['gl-3.0-forward-compatible-bit', 'yes'],
937 'forward-compatible-bit yes')
938 g(['gl-3.0-forward-compatible-bit', 'no'],
939 'forward-compatible-bit no')
940 g(['gl-3.0-texparameteri'])
941 g(['gl-3.0-texture-integer'])
942 g(['gl-3.0-vertexattribipointer'])
943 g(['gl30basic'], run_concurrent
=False)
944 g(['array-depth-roundtrip'])
945 g(['depth-cube-map'])
946 g(['sampler-cube-shadow'])
947 g(['generatemipmap-base-change', 'size'])
948 g(['generatemipmap-base-change', 'format'])
949 g(['generatemipmap-cubemap'])
950 g(['viewport-clamp'])
952 with profile
.test_list
.group_manager(
954 grouptools
.join('spec', '!opengl 3.1')) as g
:
955 g(['gl-3.1-buffer-bindings'], 'buffer-bindings')
956 g(['gl-3.1-default-vao'], 'default-vao')
957 g(['gl-3.1-draw-buffers-errors'], 'draw-buffers-errors')
958 g(['gl-3.1-enable-vertex-array'])
959 g(['gl-3.1-genned-names'], 'genned-names')
960 g(['gl-3.1-link-empty-prog-core'])
961 g(['gl-3.1-minmax'], 'minmax')
962 g(['gl-3.1-mixed-int-float-fbo'])
963 g(['gl-3.1-mixed-int-float-fbo', 'int_second'])
964 g(['gl-3.1-vao-broken-attrib'], 'vao-broken-attrib')
965 g(['gl-3.0-required-renderbuffer-attachment-formats', '31'],
966 'required-renderbuffer-attachment-formats')
967 g(['gl-3.0-required-sized-texture-formats', '31'],
968 'required-sized-texture-formats')
969 g(['gl-3.0-required-texture-attachment-formats', '31'],
970 'required-texture-attachment-formats')
971 for subtest
in ['generated', 'written', 'flush']:
972 g(['gl-3.1-primitive-restart-xfb', subtest
],
973 'primitive-restart-xfb {0}'.format(subtest
))
975 with profile
.test_list
.group_manager(
977 grouptools
.join('spec', '!opengl 3.2')) as g
:
978 g(['glsl-resource-not-bound', '1D'])
979 g(['glsl-resource-not-bound', '2D'])
980 g(['glsl-resource-not-bound', '3D'])
981 g(['glsl-resource-not-bound', '2DRect'])
982 g(['glsl-resource-not-bound', '1DArray'])
983 g(['glsl-resource-not-bound', '2DArray'])
984 g(['glsl-resource-not-bound', '2DMS'])
985 g(['glsl-resource-not-bound', '2DMSArray'])
986 g(['glsl-resource-not-bound', 'Buffer'])
987 g(['glsl-resource-not-bound', 'Cube'])
988 g(['gl-3.2-basevertex-vertexid'],
989 'gl_VertexID used with glMultiDrawElementsBaseVertex')
990 g(['gl-3.2-minmax'], 'minmax')
991 g(['gl-3.2-adj-prims', 'pv-first'])
992 g(['gl-3.2-adj-prims', 'pv-last'])
993 g(['gl-3.2-adj-prims', 'cull-front', 'pv-first'])
994 g(['gl-3.2-adj-prims', 'cull-front', 'pv-last'])
995 g(['gl-3.2-adj-prims', 'cull-back', 'pv-first'])
996 g(['gl-3.2-adj-prims', 'cull-back', 'pv-last'])
997 g(['gl-3.2-adj-prims', 'line', 'cull-front', 'pv-first'])
998 g(['gl-3.2-adj-prims', 'line', 'cull-front', 'pv-last'])
999 g(['gl-3.2-adj-prims', 'line', 'cull-back', 'pv-first'])
1000 g(['gl-3.2-adj-prims', 'line', 'cull-back', 'pv-last'])
1001 g(['gl-3.2-clear-no-buffers'], 'clear-no-buffers')
1002 g(['gl-3.2-depth-tex-sampling'], 'depth-tex-sampling')
1003 g(['gl-3.2-get-buffer-parameter-i64v'], 'get-buffer-parameter-i64v')
1004 g(['gl-3.2-get-integer-64iv'], 'get-integer-64iv')
1005 g(['gl-3.2-get-integer-64v'], 'get-integer-64v')
1006 g(['gl-3.2-pointsprite-coord'], 'pointsprite-coord')
1007 g(['gl-3.2-pointsprite-origin'], 'pointsprite-origin')
1008 g(['gl-coord-replace-doesnt-eliminate-frag-tex-coords'],
1009 'coord-replace-doesnt-eliminate-frag-tex-coords')
1010 g(['gl-get-active-attrib-returns-all-inputs'],
1011 'get-active-attrib-returns-all-inputs')
1012 g(['gl-3.2-texture-border-deprecated'], 'texture-border-deprecated')
1014 with profile
.test_list
.group_manager(
1016 grouptools
.join('spec', '!opengl 3.2', 'layered-rendering')) as g
:
1017 g(['gl-3.2-layered-rendering-blit'], 'blit')
1018 g(['gl-3.2-layered-rendering-clear-color'], 'clear-color')
1019 g(['gl-3.2-layered-rendering-clear-color-mismatched-layer-count'],
1020 'clear-color-mismatched-layer-count')
1021 g(['gl-3.2-layered-rendering-clear-depth'], 'clear-depth')
1022 g(['gl-3.2-layered-rendering-framebuffertexture'], 'framebuffertexture')
1023 g(['gl-3.2-layered-rendering-framebuffertexture-buffer-textures'],
1024 'framebuffertexture-buffer-textures')
1025 g(['gl-3.2-layered-rendering-framebuffertexture-defaults'],
1026 'framebuffertexture-defaults')
1027 g(['gl-3.2-layered-rendering-readpixels'], 'readpixels')
1028 g(['gl-3.2-layered-rendering-framebuffer-layer-attachment-mismatch'],
1029 'framebuffer-layer-attachment-mismatch')
1030 g(['gl-3.2-layered-rendering-framebuffer-layer-complete'],
1031 'framebuffer-layer-complete')
1032 g(['gl-3.2-layered-rendering-framebuffer-layer-count-mismatch'],
1033 'framebuffer-layer-count-mismatch')
1034 g(['gl-3.2-layered-rendering-framebuffer-layered-attachments'],
1035 'framebuffer-layered-attachments')
1036 g(['gl-3.2-layered-rendering-gl-layer'], 'gl-layer')
1037 g(['gl-3.2-layered-rendering-gl-layer-cube-map'], 'gl-layer-cube-map')
1038 g(['gl-3.2-layered-rendering-gl-layer-not-layered'],
1039 'gl-layer-not-layered')
1040 g(['gl-3.2-layered-rendering-gl-layer-render'], 'gl-layer-render')
1041 g(['gl-3.2-layered-rendering-gl-layer-render-clipped'], 'gl-layer-render-clipped')
1042 g(['gl-3.2-layered-rendering-gl-layer-render-storage'], 'gl-layer-render-storage')
1044 for texture_type
in ['3d', '2d_array', '2d_multisample_array', '1d_array',
1045 'cube_map', 'cube_map_array']:
1046 for test_type
in ['single_level', 'mipmapped']:
1047 if texture_type
== '2d_multisample_array' and \
1048 test_type
== 'mipmapped':
1050 g(['gl-3.2-layered-rendering-clear-color-all-types', texture_type
,
1052 'clear-color-all-types {} {}'.format(texture_type
, test_type
))
1054 with profile
.test_list
.group_manager(
1056 grouptools
.join('spec', '!opengl 3.3')) as g
:
1057 g(['gl-3.3-minmax'], 'minmax')
1058 g(['gl-3.0-required-renderbuffer-attachment-formats', '33'],
1059 'required-renderbuffer-attachment-formats')
1060 g(['gl-3.0-required-sized-texture-formats', '33'],
1061 'required-sized-texture-formats')
1062 g(['gl-3.0-required-texture-attachment-formats', '33'],
1063 'required-texture-attachment-formats')
1065 with profile
.test_list
.group_manager(
1067 grouptools
.join('spec', '!opengl 4.2')) as g
:
1068 g(['gl-3.0-required-renderbuffer-attachment-formats', '42'],
1069 'required-renderbuffer-attachment-formats')
1070 g(['gl-3.0-required-sized-texture-formats', '42'],
1071 'required-sized-texture-formats')
1072 g(['gl-3.0-required-texture-attachment-formats', '42'],
1073 'required-texture-attachment-formats')
1074 g(['gl-4.4-max_vertex_attrib_stride'], 'gl-max-vertex-attrib-stride')
1076 with profile
.test_list
.group_manager(
1078 grouptools
.join('spec', '!opengl 4.5')) as g
:
1079 g(['gl-4.5-named-framebuffer-draw-buffers-errors'], 'named-framebuffer-draw-buffers-errors')
1080 g(['gl-4.5-named-framebuffer-read-buffer-errors'], 'named-framebuffer-read-buffer-errors')
1081 g(['gl-4.5-compare-framebuffer-parameter-with-get'], 'compare-framebuffer-parameter-with-get')
1083 with profile
.test_list
.group_manager(
1085 grouptools
.join('spec', '!opengl 4.3')) as g
:
1086 g(['gl-4.3-get_glsl_versions'], 'get_glsl_version')
1088 with profile
.test_list
.group_manager(
1090 grouptools
.join('spec', '!opengl 4.4')) as g
:
1093 # Group spec/glsl-es-1.00
1094 with profile
.test_list
.group_manager(
1095 BuiltInConstantsTest
,
1096 grouptools
.join('spec', 'glsl-es-1.00')) as g
:
1097 g(['built-in-constants_gles2',
1098 os
.path
.join('spec', 'glsl-es-1.00', 'minimum-maximums.txt')],
1099 'built-in constants')
1101 with profile
.test_list
.group_manager(
1103 grouptools
.join('spec', 'glsl-es-1.00', 'linker')) as g
:
1104 g(['glsl-es-1.00-fface-invariant'], 'glsl-fface-invariant')
1106 # Group spec/glsl-1.10
1107 with profile
.test_list
.group_manager(
1109 grouptools
.join('spec', 'glsl-1.10', 'execution')) as g
:
1110 g(['glsl-render-after-bad-attach'])
1111 g(['glsl-1.10-built-in-matrix-state'])
1112 g(['glsl-1.10-built-in-uniform-state'])
1113 g(['glsl-1.10-fragdepth'])
1114 g(['glsl-1.10-linear-fog'])
1115 g(['glsl-1.10-uniform-matrix-transposed'])
1117 with profile
.test_list
.group_manager(
1119 grouptools
.join('spec', 'glsl-1.10', 'execution', 'clipping')) as g
:
1120 for mode
in ['fixed', 'pos_clipvert', 'clipvert_pos']:
1121 g(['clip-plane-transformation', mode
],
1122 'clip-plane-transformation {}'.format(mode
))
1124 with profile
.test_list
.group_manager(
1126 grouptools
.join('spec', 'glsl-1.10', 'execution',
1127 'varying-packing')) as g
:
1128 for type_
in ['int', 'uint', 'float', 'vec2', 'vec3', 'vec4', 'ivec2',
1129 'ivec3', 'ivec4', 'uvec2', 'uvec3', 'uvec4', 'mat2', 'mat3',
1130 'mat4', 'mat2x3', 'mat2x4', 'mat3x2', 'mat3x4', 'mat4x2',
1132 for arrayspec
in ['array', 'separate', 'arrays_of_arrays']:
1133 g(['varying-packing-simple', type_
, arrayspec
],
1134 'simple {} {}'.format(type_
, arrayspec
))
1136 with profile
.test_list
.group_manager(
1137 BuiltInConstantsTest
,
1138 grouptools
.join('spec', 'glsl-1.10')) as g
:
1139 g(['built-in-constants',
1140 os
.path
.join('spec', 'glsl-1.10', 'minimum-maximums.txt')],
1141 'built-in constants')
1143 with profile
.test_list
.group_manager(
1145 grouptools
.join('spec', 'glsl-1.10', 'api')) as g
:
1146 g(['getactiveattrib', '110'], 'getactiveattrib 110')
1148 # Group spec/glsl-1.20
1149 with profile
.test_list
.group_manager(
1151 grouptools
.join('spec', 'glsl-1.20')) as g
:
1152 g(['glsl-1.20-getactiveuniform-constant'])
1153 g(['glsl-1.20-negative-mult-matNxN-matNxN'])
1154 g(['built-in-constants',
1155 os
.path
.join('spec', 'glsl-1.20', 'minimum-maximums.txt')],
1156 'built-in constants',
1157 override_class
=BuiltInConstantsTest
)
1159 with profile
.test_list
.group_manager(
1161 grouptools
.join('spec', 'glsl-1.20', 'api')) as g
:
1162 g(['getactiveattrib', '120'])
1164 with profile
.test_list
.group_manager(
1166 grouptools
.join('spec', 'glsl-1.20', 'recursion')) as g
:
1167 g(['recursion', '-rlmit', '268435456', 'simple'], 'simple',
1168 run_concurrent
=False)
1169 g(['recursion', '-rlmit', '268435456', 'unreachable'], 'unreachable',
1170 run_concurrent
=False)
1171 g(['recursion', '-rlmit', '268435456', 'unreachable-constant-folding'],
1172 'unreachable-constant-folding', run_concurrent
=False)
1173 g(['recursion', '-rlmit', '268435456', 'indirect'], 'indirect',
1174 run_concurrent
=False)
1175 g(['recursion', '-rlmit', '268435456', 'indirect-separate'],
1176 'indirect-separate', run_concurrent
=False)
1177 g(['recursion', '-rlmit', '268435456', 'indirect-complex'],
1178 'indirect-complex', run_concurrent
=False)
1179 g(['recursion', '-rlmit', '268435456', 'indirect-complex-separate'],
1180 'indirect-complex-separate', run_concurrent
=False)
1182 with profile
.test_list
.group_manager(
1184 grouptools
.join('spec', 'glsl-1.20', 'execution')) as g
:
1185 for test
in ['1D', '2D', '3D', 'Cube', '1DShadow', '2DShadow']:
1186 g(['tex-miplevel-selection', 'GL2:texture()', test
])
1187 g(['tex-miplevel-selection', 'GL2:texture(bias)', test
])
1189 for test
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
1191 g(['tex-miplevel-selection', 'GL2:textureProj', test
])
1192 g(['tex-miplevel-selection', 'GL2:textureProj(bias)', test
])
1194 textureSize_samplers_130
= [
1195 'sampler1D', 'sampler2D', 'sampler3D', 'samplerCube', 'sampler1DShadow',
1196 'sampler2DShadow', 'samplerCubeShadow', 'sampler1DArray', 'sampler2DArray',
1197 'sampler1DArrayShadow', 'sampler2DArrayShadow', 'isampler1D', 'isampler2D',
1198 'isampler3D', 'isamplerCube', 'isampler1DArray', 'isampler2DArray',
1199 'usampler1D', 'usampler2D', 'usampler3D', 'usamplerCube',
1200 'usampler1DArray', 'usampler2DArray']
1201 textureSize_samplers_gpu_shader4
= [
1202 'sampler1D', 'sampler2D', 'sampler3D', 'samplerCube',
1203 'sampler1DArray', 'sampler2DArray',
1204 'isampler1D', 'isampler2D',
1205 'isampler3D', 'isamplerCube', 'isampler1DArray', 'isampler2DArray',
1206 'usampler1D', 'usampler2D', 'usampler3D', 'usamplerCube',
1207 'usampler1DArray', 'usampler2DArray']
1208 for stage
in ['vs', 'gs', 'fs']:
1215 # These will be added in the textureSize_samplers_140 loop for gs, because
1216 # it is a special case and is actually 1.50 feature.
1217 # Despite the differences in the commands lines of the two lists (this one
1218 # does not add '140', the two tests are equivalent.
1220 for sampler
in textureSize_samplers_130
:
1221 profile
.test_list
[grouptools
.join(
1222 'spec', 'glsl-{}'.format(version
), 'execution', 'textureSize',
1223 '{}-textureSize-{}'.format(stage
, sampler
))] = PiglitGLTest(
1224 ['textureSize', stage
, sampler
])
1225 for sampler
in textureSize_samplers_gpu_shader4
:
1226 profile
.test_list
[grouptools
.join(
1227 'spec', 'ext_gpu_shader4', 'execution', 'textureSize',
1228 '{}-textureSize-{}'.format(stage
, sampler
))] = PiglitGLTest(
1229 ['textureSize', 'gpu_shader4', stage
, sampler
])
1232 for sampler
in ['sampler1D', 'sampler2D', 'sampler3D', 'sampler1DArray',
1233 'sampler2DArray', 'isampler1D', 'isampler2D', 'isampler3D',
1234 'isampler1DArray', 'isampler2DArray', 'usampler1D',
1235 'usampler2D', 'usampler3D', 'usampler1DArray',
1237 profile
.test_list
[grouptools
.join(
1238 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetch',
1239 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1240 ['texelFetch', stage
, sampler
])
1241 profile
.test_list
[grouptools
.join(
1242 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetchOffset',
1243 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1244 ['texelFetch', 'offset', stage
, sampler
])
1246 profile
.test_list
[grouptools
.join(
1247 'spec', 'ext_gpu_shader4', 'execution', 'texelFetch',
1248 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1249 ['texelFetch', 'gpu_shader4', stage
, sampler
])
1250 profile
.test_list
[grouptools
.join(
1251 'spec', 'ext_gpu_shader4', 'execution', 'texelFetchOffset',
1252 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1253 ['texelFetch', 'gpu_shader4', 'offset', stage
, sampler
])
1256 # texelFetch() with EXT_texture_swizzle mode "b0r1":
1257 for type in ['i', 'u', '']:
1258 profile
.test_list
[grouptools
.join(
1259 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetch',
1260 '{}-texelFetch-{}sampler2Darray-swizzle'.format(stage
, type))] = \
1261 PiglitGLTest(['texelFetch', stage
, '{}sampler2DArray'.format(type),
1264 for type in ('i', 'u', ''):
1265 for sampler
in ('sampler2DMS', 'sampler2DMSArray'):
1266 for sample_count
in MSAA_SAMPLE_COUNTS
:
1267 stype
= '{}{}'.format(type, sampler
)
1268 profile
.test_list
[grouptools
.join(
1269 'spec', 'arb_shader_texture_image_samples',
1270 'textureSamples', '{}-{}-{}'.format(stage
, stype
, sample_count
))
1272 'textureSamples', stage
, stype
, sample_count
])
1274 with profile
.test_list
.group_manager(
1276 grouptools
.join('spec', 'glsl-1.30')) as g
:
1277 g(['glsl-1.30-texel-offset-limits'], 'texel-offset-limits')
1278 g(['built-in-constants',
1279 os
.path
.join('spec', 'glsl-1.30', 'minimum-maximums.txt')],
1280 'built-in constants',
1281 override_class
=BuiltInConstantsTest
)
1283 with profile
.test_list
.group_manager(
1285 grouptools
.join('spec', 'glsl-1.30', 'execution')) as g
:
1286 g(['texelFetch', 'fs', 'sampler1D', '1-513'])
1287 g(['texelFetch', 'fs', 'sampler1DArray', '1x71-501x71'])
1288 g(['texelFetch', 'fs', 'sampler1DArray', '1x281-501x281'])
1289 g(['texelFetch', 'fs', 'sampler1DArray', '71x1-71x281'])
1290 g(['texelFetch', 'fs', 'sampler1DArray', '281x1-281x281'])
1291 g(['texelFetch', 'fs', 'sampler2D', '1x71-501x71'])
1292 g(['texelFetch', 'fs', 'sampler2D', '1x281-501x281'])
1293 g(['texelFetch', 'fs', 'sampler2D', '71x1-71x281'])
1294 g(['texelFetch', 'fs', 'sampler2D', '281x1-281x281'])
1295 g(['texelFetch', 'fs', 'sampler3D', '1x129x9-98x129x9'])
1296 g(['texelFetch', 'fs', 'sampler3D', '98x1x9-98x129x9'])
1297 g(['texelFetch', 'fs', 'sampler3D', '98x129x1-98x129x9'])
1298 g(['texelFetch', 'fs', 'sampler2DArray', '1x129x9-98x129x9'])
1299 g(['texelFetch', 'fs', 'sampler2DArray', '98x1x9-98x129x9'])
1300 g(['texelFetch', 'fs', 'sampler2DArray', '98x129x1-98x129x9'])
1301 g(['fs-texelFetch-2D'])
1302 g(['fs-texelFetchOffset-2D'])
1303 g(['fs-textureOffset-2D'])
1304 g(['fs-discard-exit-2'])
1305 g(['vertexid-beginend'])
1306 g(['vertexid-drawarrays'])
1307 g(['vertexid-drawelements'])
1308 g(['fs-execution-ordering'])
1310 for stage
in ['1D', '2D', '3D', 'Cube', '1DShadow', '2DShadow', '1DArray',
1311 '2DArray', '1DArrayShadow', 'CubeArray']:
1312 g(['tex-miplevel-selection', 'textureLod', stage
])
1314 for stage
in ['1D', '2D', '3D', 'Cube', '1DShadow', '2DShadow',
1315 'CubeShadow', '1DArray', '2DArray', 'CubeArray',
1317 g(['tex-miplevel-selection', 'texture(bias)', stage
])
1319 for stage
in ['1D', '2D', '3D', 'Cube', '1DShadow', '2DShadow',
1320 'CubeShadow', '1DArray', '2DArray', 'CubeArray',
1321 '1DArrayShadow', '2DArrayShadow', '2DRect', '2DRectShadow',
1323 g(['tex-miplevel-selection', 'texture()', stage
])
1325 for stage
in ['1D', '2D', '3D', '2DRect', '2DRectShadow', '1DShadow',
1326 '2DShadow', '1DArray', '2DArray', '1DArrayShadow',
1328 g(['tex-miplevel-selection', 'textureOffset', stage
])
1330 for stage
in ['1D', '2D', '3D', '1DShadow', '2DShadow', '1DArray',
1331 '2DArray', '1DArrayShadow']:
1332 g(['tex-miplevel-selection', 'textureOffset(bias)', stage
])
1334 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
1335 '2DShadow', '2DRect', '2DRect_ProjVec4', '2DRectShadow']:
1336 g(['tex-miplevel-selection', 'textureProj', stage
])
1338 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
1340 g(['tex-miplevel-selection', 'textureProj(bias)', stage
])
1342 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '2DRect',
1343 '2DRect_ProjVec4', '2DRectShadow', '1DShadow', '2DShadow']:
1344 g(['tex-miplevel-selection', 'textureProjOffset', stage
])
1346 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
1348 g(['tex-miplevel-selection', 'textureProjOffset(bias)', stage
])
1350 for stage
in ['1D', '2D', '3D', '1DShadow', '2DShadow', '1DArray',
1351 '2DArray', '1DArrayShadow']:
1352 g(['tex-miplevel-selection', 'textureLodOffset', stage
])
1354 for stage
in ['1D', '2D', '3D', '1D_ProjVec4', '2D_ProjVec4', '1DShadow',
1356 g(['tex-miplevel-selection', 'textureProjLod', stage
])
1357 g(['tex-miplevel-selection', 'textureProjLodOffset', stage
])
1359 for stage
in ['1D', '2D', '3D', 'Cube', '2DRect', '2DRectShadow',
1360 '1DShadow', '2DShadow', 'CubeShadow', '1DArray', '2DArray',
1361 '1DArrayShadow', '2DArrayShadow', 'CubeArray']:
1362 g(['tex-miplevel-selection', 'textureGrad', stage
])
1364 for stage
in ['1D', '2D', '3D', '2DRect', '2DRectShadow', '1DShadow',
1365 '2DShadow', '1DArray', '2DArray', '1DArrayShadow',
1367 g(['tex-miplevel-selection', 'textureGradOffset', stage
])
1369 for stage
in ['1D', '2D', '3D', '1D_ProjVec4', '2D_ProjVec4', '2DRect',
1370 '2DRect_ProjVec4', '1DShadow', '2DShadow', '2DRectShadow']:
1371 g(['tex-miplevel-selection', 'textureProjGrad', stage
])
1372 g(['tex-miplevel-selection', 'textureProjGradOffset', stage
])
1374 with profile
.test_list
.group_manager(
1376 grouptools
.join('spec', 'glsl-1.30', 'linker', 'clipping')) as g
:
1377 g(['mixing-clip-distance-and-clip-vertex-disallowed'])
1379 with profile
.test_list
.group_manager(
1381 grouptools
.join('spec', 'glsl-1.30', 'execution')) as g
:
1382 for arg
in ['vs_basic', 'vs_xfb', 'vs_fbo', 'fs_basic', 'fs_fbo']:
1383 g(['isinf-and-isnan', arg
])
1385 with profile
.test_list
.group_manager(
1387 grouptools
.join('spec', 'glsl-1.30', 'execution', 'clipping')) as g
:
1388 g(['max-clip-distances'])
1389 g(['clip-plane-transformation', 'pos'])
1391 with profile
.test_list
.group_manager(
1393 grouptools
.join('spec', 'glsl-1.30', 'api')) as g
:
1394 g(['getactiveattrib', '130'], 'getactiveattrib 130')
1396 # Group spec/glsl-1.40
1397 with profile
.test_list
.group_manager(
1398 BuiltInConstantsTest
,
1399 grouptools
.join('spec', 'glsl-1.40')) as g
:
1400 g(['built-in-constants',
1401 os
.path
.join('spec', 'glsl-1.40', 'minimum-maximums.txt')],
1402 'built-in constants')
1404 with profile
.test_list
.group_manager(
1406 grouptools
.join('spec', 'glsl-1.40', 'execution')) as g
:
1407 g(['glsl-1.40-tf-no-position'], 'tf-no-position')
1409 textureSize_samplers_140
= textureSize_samplers_130
+ [
1410 'sampler2DRect', 'isampler2DRect', 'sampler2DRectShadow', 'samplerBuffer',
1411 'isamplerBuffer', 'usamplerBuffer']
1412 for stage
in ['vs', 'gs', 'fs', 'tes']:
1413 if stage
== 'gs' or stage
== 'tes':
1418 for sampler
in textureSize_samplers_140
:
1419 profile
.test_list
[grouptools
.join(
1420 'spec', 'glsl-{}'.format(version
), 'execution', 'textureSize',
1421 '{}-textureSize-{}'.format(stage
, sampler
))] = PiglitGLTest(
1422 ['textureSize', '140', stage
, sampler
])
1423 for stage
in ['vs', 'gs', 'fs']:
1429 for sampler
in ['sampler2DRect', 'usampler2DRect', 'isampler2DRect']:
1430 profile
.test_list
[grouptools
.join(
1431 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetch',
1432 '{}-texelFetch-{}'.format(stage
, sampler
))] = PiglitGLTest(
1433 ['texelFetch', '140', stage
, sampler
])
1434 profile
.test_list
[grouptools
.join(
1435 'spec', 'glsl-{}'.format(version
), 'execution', 'texelFetchOffset',
1436 '{}-{}'.format(stage
, sampler
))] = PiglitGLTest(
1437 ['texelFetch', 'offset', '140', stage
, sampler
])
1439 with profile
.test_list
.group_manager(
1441 grouptools
.join('spec', 'glsl-1.50')) as g
:
1442 g(['built-in-constants',
1443 os
.path
.join('spec', 'glsl-1.50', 'minimum-maximums.txt')],
1444 'built-in constants',
1445 override_class
=BuiltInConstantsTest
)
1446 g(['built-in-constants',
1447 os
.path
.join('spec', 'glsl-1.50', 'minimum-maximums-compat.txt')],
1448 'built-in constants compatibility',
1449 override_class
=BuiltInConstantsTest
)
1450 g(['glsl-1.50-gs-emits-too-few-verts'], 'gs-emits-too-few-verts')
1451 g(['glsl-1.50-geometry-end-primitive-optional-with-points-out'],
1452 'gs-end-primitive-optional-with-points-out')
1453 g(['glsl-1.50-gs-max-output', '-scan', '1', '20'], 'gs-max-output')
1454 g(['glsl-1.50-gs-max-output-components'], 'gs-max-output-components')
1455 g(['glsl-1.50-getshaderiv-may-return-GS'], 'getshaderiv-may-return-GS')
1456 g(['glsl-1.50-query-gs-prim-types'], 'query-gs-prim-types')
1457 g(['glsl-1.50-transform-feedback-type-and-size'],
1458 'transform-feedback-type-and-size')
1459 g(['glsl-1.50-transform-feedback-vertex-id'],
1460 'transform-feedback-vertex-id')
1461 g(['glsl-1.50-transform-feedback-builtins'], 'transform-feedback-builtins')
1463 for draw
in ['', 'indexed']:
1464 for prim
in ['GL_LINES_ADJACENCY', 'GL_LINE_STRIP_ADJACENCY',
1465 'GL_TRIANGLES_ADJACENCY', 'GL_TRIANGLE_STRIP_ADJACENCY']:
1466 g(['arb_geometry_shader4-ignore-adjacent-vertices',
1467 'core', draw
, prim
], run_concurrent
=False)
1469 for subtest
in ['unnamed', 'named', 'array']:
1470 g(['glsl-1.50-interface-block-centroid', subtest
])
1472 for layout_type
in ['points', 'lines', 'lines_adjacency', 'triangles',
1473 'triangles_adjacency']:
1474 g(['glsl-1.50-gs-mismatch-prim-type', layout_type
])
1476 for layout
in ['points', 'lines', 'lines_adjacency', 'triangles',
1477 'triangles_adjacency', 'line_strip', 'triangle_strip']:
1478 g(['glsl-1.50-gs-input-layout-qualifiers', layout
])
1479 g(['glsl-1.50-gs-output-layout-qualifiers', layout
])
1481 with profile
.test_list
.group_manager(
1483 grouptools
.join('spec', 'glsl-1.50', 'execution')) as g
:
1484 g(['glsl-1.50-get-active-attrib-array'], 'get-active-attrib-array')
1485 g(['glsl-1.50-interface-blocks-api-access-members'],
1486 'interface-blocks-api-access-members')
1487 g(['glsl-1.50-vs-input-arrays'], 'vs-input-arrays')
1488 g(['glsl-1.50-vs-named-block-no-modify'], 'vs-named-block-no-modify')
1490 # max_vertices of 32 and 128 are important transition points for
1491 # mesa/i965 (they are the number of bits in a float and a vec4,
1492 # respectively), so test around there. Also test 0, which means the
1493 # maximum number of geometry shader output vertices supported by the
1495 with profile
.test_list
.group_manager(
1497 grouptools
.join('spec', 'glsl-1.50', 'execution', 'geometry')) as g
:
1498 for i
in [31, 32, 33, 34, 127, 128, 129, 130, 0]:
1499 g(['glsl-1.50-geometry-end-primitive', str(i
)],
1500 'end-primitive {0}'.format(i
))
1502 for prim_type
in ['GL_POINTS', 'GL_LINE_LOOP', 'GL_LINE_STRIP', 'GL_LINES',
1503 'GL_TRIANGLES', 'GL_TRIANGLE_STRIP', 'GL_TRIANGLE_FAN',
1504 'GL_LINES_ADJACENCY', 'GL_LINE_STRIP_ADJACENCY',
1505 'GL_TRIANGLES_ADJACENCY', 'GL_TRIANGLE_STRIP_ADJACENCY']:
1506 g(['glsl-1.50-geometry-primitive-types', prim_type
],
1507 'primitive-types {0}'.format(prim_type
))
1509 for restart_index
in ['ffs', 'other']:
1510 g(['glsl-1.50-geometry-primitive-id-restart', prim_type
,
1512 'primitive-id-restart {0} {1}'.format(prim_type
, restart_index
))
1514 for prim_type
in ['GL_TRIANGLE_STRIP', 'GL_TRIANGLE_STRIP_ADJACENCY']:
1515 for restart_index
in ['ffs', 'other']:
1516 g(['glsl-1.50-geometry-tri-strip-ordering-with-prim-restart',
1517 prim_type
, restart_index
],
1518 'tri-strip-ordering-with-prim-restart {0} {1}'.format(
1519 prim_type
, restart_index
))
1521 with profile
.test_list
.group_manager(
1522 BuiltInConstantsTest
, grouptools
.join('spec', 'glsl-3.30')) as g
:
1523 g(['built-in-constants',
1524 os
.path
.join('spec', 'glsl-3.30', 'minimum-maximums.txt')],
1525 'built-in constants')
1527 with profile
.test_list
.group_manager(
1528 BuiltInConstantsTest
, grouptools
.join('spec', 'glsl-es-3.00')) as g
:
1529 g(['built-in-constants_gles3',
1530 os
.path
.join('spec', 'glsl-es-3.00', 'minimum-maximums.txt')],
1531 'built-in constants')
1533 with profile
.test_list
.group_manager(
1535 grouptools
.join('spec', 'glsl-es-3.00', 'execution')) as g
:
1536 g(['varying-struct-centroid_gles3'])
1538 with profile
.test_list
.group_manager(
1539 BuiltInConstantsTest
, grouptools
.join('spec', 'glsl-es-3.10')) as g
:
1540 g(['built-in-constants_gles3',
1541 os
.path
.join('spec', 'glsl-es-3.10', 'minimum-maximums.txt')],
1542 'built-in constants')
1544 # AMD_performance_monitor
1545 with profile
.test_list
.group_manager(
1546 PiglitGLTest
, grouptools
.join('spec', 'AMD_performance_monitor')) as g
:
1547 g(['amd_performance_monitor_api'], 'api', run_concurrent
=False)
1548 g(['amd_performance_monitor_api'], 'vc4')
1549 g(['amd_performance_monitor_measure'], 'measure', run_concurrent
=False)
1551 # Group ARB_arrays_of_arrays
1552 with profile
.test_list
.group_manager(
1554 grouptools
.join('spec', 'ARB_arrays_of_arrays')) as g
:
1555 g(['arb_arrays_of_arrays-max-binding'], run_concurrent
=False)
1557 # Group ARB_point_sprite
1558 with profile
.test_list
.group_manager(
1559 PiglitGLTest
, grouptools
.join('spec', 'ARB_point_sprite')) as g
:
1560 g(['arb_point_sprite-checkerboard'], run_concurrent
=False)
1561 g(['arb_point_sprite-mipmap'])
1562 g(['arb_point_sprite-interactions', '1.0'])
1564 # Group OES_point_sprite
1565 with profile
.test_list
.group_manager(
1566 PiglitGLTest
, grouptools
.join('spec', 'OES_point_sprite')) as g
:
1567 g(['arb_point_sprite-checkerboard_gles1'], run_concurrent
=False)
1569 # Group ARB_tessellation_shader
1570 with profile
.test_list
.group_manager(
1571 PiglitGLTest
, grouptools
.join('spec', 'ARB_tessellation_shader')) as g
:
1572 g(['arb_tessellation_shader-get-tcs-params'])
1573 g(['arb_tessellation_shader-get-tes-params'])
1574 g(['arb_tessellation_shader-minmax'])
1575 g(['arb_tessellation_shader-immediate-mode-draw-patches'])
1576 g(['arb_tessellation_shader-invalid-get-program-params'])
1577 g(['arb_tessellation_shader-invalid-patch-vertices-range'])
1578 g(['arb_tessellation_shader-invalid-primitive'])
1579 g(['built-in-constants',
1580 os
.path
.join('spec', 'arb_tessellation_shader', 'minimum-maximums.txt')],
1581 'built-in-constants',
1582 override_class
=BuiltInConstantsTest
)
1583 g(['arb_tessellation_shader-large-uniforms'])
1584 g(['arb_tessellation_shader-layout-mismatch'])
1585 g(['arb_tessellation_shader-tes-gs-max-output', '-small', '-scan', '1', '50'])
1587 # Group ARB_texture_multisample
1588 with profile
.test_list
.group_manager(
1589 PiglitGLTest
, grouptools
.join('spec', 'ARB_texture_multisample')) as g
:
1590 g(['arb_texture_multisample-large-float-texture'], 'large-float-texture',
1591 run_concurrent
=False)
1592 g(['arb_texture_multisample-large-float-texture', '--array'],
1593 'large-float-texture-array', run_concurrent
=False)
1594 g(['arb_texture_multisample-large-float-texture', '--fp16'],
1595 'large-float-texture-fp16', run_concurrent
=False)
1596 g(['arb_texture_multisample-large-float-texture', '--array', '--fp16'],
1597 'large-float-texture-array-fp16', run_concurrent
=False)
1598 g(['arb_texture_multisample-minmax'])
1599 g(['texelFetch', 'fs', 'sampler2DMS', '4', '1x71-501x71'])
1600 g(['texelFetch', 'fs', 'sampler2DMS', '4', '1x130-501x130'])
1601 g(['texelFetch', 'fs', 'sampler2DMS', '4', '71x1-71x130'])
1602 g(['texelFetch', 'fs', 'sampler2DMS', '4', '281x1-281x130'])
1603 g(['texelFetch', 'fs', 'sampler2DMSArray', '4', '1x129x9-98x129x9'])
1604 g(['texelFetch', 'fs', 'sampler2DMSArray', '4', '98x1x9-98x129x9'])
1605 g(['texelFetch', 'fs', 'sampler2DMSArray', '4', '98x129x1-98x129x9'])
1606 g(['arb_texture_multisample-texstate'])
1607 g(['arb_texture_multisample-errors'])
1608 for sample_count
in MSAA_SAMPLE_COUNTS
:
1609 g(['arb_texture_multisample-texelfetch', sample_count
])
1610 g(['arb_texture_multisample-sample-mask'])
1611 g(['arb_texture_multisample-dsa-texelfetch'])
1612 g(['arb_texture_multisample-sample-mask-value'])
1613 g(['arb_texture_multisample-sample-mask-execution'])
1614 g(['arb_texture_multisample-sample-mask-execution', '-tex'])
1615 g(['arb_texture_multisample-negative-max-samples'])
1616 g(['arb_texture_multisample-teximage-3d-multisample'])
1617 g(['arb_texture_multisample-teximage-2d-multisample'])
1618 g(['arb_texture_multisample-sample-depth']),
1619 g(['arb_texture_multisample-stencil-clear']),
1620 g(['arb_texture_multisample-clear'])
1622 samplers_atm
= ['sampler2DMS', 'isampler2DMS', 'usampler2DMS',
1623 'sampler2DMSArray', 'isampler2DMSArray', 'usampler2DMSArray']
1624 with profile
.test_list
.group_manager(
1626 grouptools
.join('spec', 'ARB_texture_multisample',
1627 'fb-completeness')) as g
:
1629 for sample_count
in MSAA_SAMPLE_COUNTS
:
1631 g(['arb_texture_multisample-fb-completeness', sample_count
],
1634 with profile
.test_list
.group_manager(
1636 grouptools
.join('spec', 'ARB_texture_multisample', 'texelFetch')) as g
:
1638 stages
= ['vs', 'gs', 'fs']
1639 for sampler
, stage
, sample_count
in itertools
.product(
1640 samplers_atm
, stages
, MSAA_SAMPLE_COUNTS
):
1641 g(['texelFetch', stage
, sampler
, sample_count
],
1642 '{}-{}-{}'.format(sample_count
, stage
, sampler
))
1644 with profile
.test_list
.group_manager(
1646 grouptools
.join('spec', 'ARB_texture_multisample',
1647 'sample-position')) as g
:
1649 for sample_count
in MSAA_SAMPLE_COUNTS
:
1650 g(['arb_texture_multisample-sample-position', sample_count
],
1654 with profile
.test_list
.group_manager(
1656 grouptools
.join('spec', 'ARB_texture_multisample',
1657 'textureSize')) as g
:
1659 stages
= ['vs', 'gs', 'fs', 'tes']
1660 for stage
, sampler
in itertools
.product(stages
, samplers_atm
):
1661 g(['textureSize', stage
, sampler
],
1662 '{}-textureSize-{}'.format(stage
, sampler
))
1664 # Group ARB_texture_gather
1665 with profile
.test_list
.group_manager(
1667 grouptools
.join('spec', 'ARB_texture_gather')) as g
:
1668 stages
= ['vs', 'fs']
1669 comps
= ['r', 'rg', 'rgb', 'rgba']
1670 types
= ['unorm', 'float', 'int', 'uint']
1671 samplers
= ['2D', '2DArray', 'Cube', 'CubeArray']
1672 for stage
, comp
, type_
, sampler
in itertools
.product(
1673 stages
, comps
, types
, samplers
):
1674 for swiz
in ['red', 'green', 'blue', 'alpha'][:len(comp
)] + ['', 'zero', 'one']:
1675 for func
in ['textureGather'] if 'Cube' in sampler
else ['textureGather', 'textureGatherOffset']:
1676 testname
= grouptools
.join(
1677 func
, '{}-{}-{}-{}-{}'.format(
1679 swiz
if swiz
else 'none',
1681 g(['textureGather', stage
,
1682 'offset' if func
== 'textureGatherOffset' else '',
1683 comp
, swiz
, type_
, sampler
], testname
)
1686 with profile
.test_list
.group_manager(
1688 grouptools
.join('spec', 'ARB_stencil_texturing')) as g
:
1689 g(['arb_stencil_texturing-draw'], 'draw')
1691 with profile
.test_list
.group_manager(
1693 grouptools
.join('spec', 'ARB_stencil_texturing', 'glBlitFramebuffer corrupts state')) as g
:
1694 for t
in ['1D', '2D', 'CUBE_MAP', '1D_ARRAY', '2D_ARRAY', 'CUBE_MAP_ARRAY', '2D_MULTISAMPLE', '2D_MULTISAMPLE_ARRAY', 'RECTANGLE']:
1695 target
= 'GL_TEXTURE_' + t
1696 g(['arb_stencil_texturing-blit_corrupts_state', target
], target
)
1699 with profile
.test_list
.group_manager(
1700 PiglitGLTest
, grouptools
.join('spec', 'ARB_sync')) as g
:
1701 g(['arb_sync-client-wait-errors'], 'ClientWaitSync-errors')
1702 g(['arb_sync-delete'], 'DeleteSync')
1703 g(['arb_sync-fence-sync-errors'], 'FenceSync-errors')
1704 g(['arb_sync-get-sync-errors'], 'GetSynciv-errors')
1705 g(['arb_sync-is-sync'], 'IsSync')
1706 g(['arb_sync-repeat-wait'], 'repeat-wait')
1707 g(['arb_sync-sync-initialize'], 'sync-initialize')
1708 g(['arb_sync-timeout-zero'], 'timeout-zero')
1709 g(['arb_sync-WaitSync-errors'], 'WaitSync-errors')
1710 g(['arb_sync-ClientWaitSync-timeout'], 'ClientWaitSync-timeout')
1713 # Group ARB_ES2_compatibility
1714 with profile
.test_list
.group_manager(
1715 PiglitGLTest
, grouptools
.join('spec', 'ARB_ES2_compatibility')) as g
:
1716 g(['arb_es2_compatibility-depthrangef'], run_concurrent
=False)
1717 g(['arb_es2_compatibility-drawbuffers'], run_concurrent
=False)
1718 g(['arb_es2_compatibility-getshaderprecisionformat'], run_concurrent
=False)
1719 g(['arb_es2_compatibility-maxvectors'], run_concurrent
=False)
1720 g(['arb_es2_compatibility-shadercompiler'], run_concurrent
=False)
1721 g(['arb_es2_compatibility-releaseshadercompiler'], run_concurrent
=False)
1722 g(['arb_es2_compatibility-fixed-type'], run_concurrent
=False)
1723 g(['fbo-missing-attachment-clear'], run_concurrent
=False)
1724 g(['fbo-missing-attachment-blit', 'es2', 'to'],
1725 'FBO blit to missing attachment (ES2 completeness rules)')
1726 g(['fbo-missing-attachment-blit', 'es2', 'from'],
1727 'FBO blit from missing attachment (ES2 completeness rules)')
1728 g(['arb_get_program_binary-overrun', 'shader'],
1729 'NUM_SHADER_BINARY_FORMATS over-run check')
1730 add_texwrap_format_tests(g
, 'GL_ARB_ES2_compatibility')
1731 add_fbo_formats_tests(g
, 'GL_ARB_ES2_compatibility')
1734 # Group ARB_get_program_binary
1735 with profile
.test_list
.group_manager(
1736 PiglitGLTest
, grouptools
.join('spec', 'ARB_get_program_binary')) as g
:
1737 g(['arb_get_program_binary-api-errors'],
1738 'misc. API error checks')
1739 g(['arb_get_program_binary-overrun', 'program'],
1740 'NUM_PROGRAM_BINARY_FORMATS over-run check')
1741 g(['arb_get_program_binary-retrievable_hint'],
1742 'PROGRAM_BINARY_RETRIEVABLE_HINT')
1743 g(['arb_get_program_binary-xfb-varyings'],
1745 g(['arb_get_program_binary-restore-implicit-use-program'],
1746 'restore-implicit-use-program')
1747 g(['arb_get_program_binary-restore-sso-program'],
1748 'restore-sso-program')
1749 g(['arb_get_program_binary-reset-uniform'],
1752 with profile
.test_list
.group_manager(
1753 PiglitGLTest
, grouptools
.join('spec', 'EXT_depth_bounds_test')) as g
:
1756 with profile
.test_list
.group_manager(
1757 PiglitGLTest
, grouptools
.join('spec', 'ARB_depth_clamp')) as g
:
1759 g(['depth-clamp-range'])
1760 g(['depth-clamp-status'])
1762 # AMD_depth_clamp_separate
1763 with profile
.test_list
.group_manager(
1764 PiglitGLTest
, grouptools
.join('spec', 'AMD_depth_clamp_separate')) as g
:
1765 g(['amd_depth_clamp_separate_status'])
1766 g(['amd_depth_clamp_separate_range'])
1768 # Group ARB_draw_elements_base_vertex
1769 # Group ARB_draw_elements_base_vertex
1770 with profile
.test_list
.group_manager(
1772 grouptools
.join('spec', 'ARB_draw_elements_base_vertex')) as g
:
1773 g(['arb_draw_elements_base_vertex-dlist'], 'dlist')
1774 g(['arb_draw_elements_base_vertex-drawelements'])
1775 g(['arb_draw_elements_base_vertex-drawelements', 'user_varrays'],
1776 'arb_draw_elements_base_vertex-drawelements-user_varrays')
1777 g(['arb_draw_elements_base_vertex-negative-index'])
1778 g(['arb_draw_elements_base_vertex-bounds'])
1779 g(['arb_draw_elements_base_vertex-negative-index', 'user_varrays'],
1780 'arb_draw_elements_base_vertex-negative-index-user_varrays')
1781 g(['arb_draw_elements_base_vertex-drawelements-instanced'])
1782 g(['arb_draw_elements_base_vertex-drawrangeelements'])
1783 g(['arb_draw_elements_base_vertex-multidrawelements'])
1785 # Group ARB_draw_instanced
1786 with profile
.test_list
.group_manager(
1788 grouptools
.join('spec', 'ARB_draw_instanced')) as g
:
1789 g(['arb_draw_instanced-dlist'], 'dlist')
1790 g(['arb_draw_instanced-elements'], 'elements')
1791 g(['arb_draw_instanced-negative-arrays-first-negative'],
1792 'negative-arrays-first-negative')
1793 g(['arb_draw_instanced-negative-elements-type'],
1794 'negative-elements-type')
1795 g(['arb_draw_instanced-drawarrays'])
1797 # Group EXT_draw_instanced
1798 with profile
.test_list
.group_manager(
1800 grouptools
.join('spec', 'EXT_draw_instanced')) as g
:
1801 g(['ext_draw_instanced-drawarrays'])
1803 # Group ARB_draw_indirect
1804 with profile
.test_list
.group_manager(
1806 grouptools
.join('spec', 'ARB_draw_indirect')) as g
:
1807 g(['arb_draw_indirect-api-errors'])
1808 g(['arb_draw_indirect-draw-arrays'])
1809 g(['arb_draw_indirect-draw-arrays-compat'])
1810 g(['arb_draw_indirect-draw-arrays-prim-restart'])
1811 g(['arb_draw_indirect-draw-elements'])
1812 g(['arb_draw_indirect-draw-elements-compat'])
1813 g(['arb_draw_indirect-draw-arrays-base-instance'])
1814 g(['arb_draw_indirect-draw-elements-base-instance'])
1815 g(['arb_draw_indirect-draw-elements-prim-restart'])
1816 g(['arb_draw_indirect-draw-elements-prim-restart-ugly'])
1817 g(['arb_draw_indirect-draw-arrays-instances'])
1818 g(['arb_draw_indirect-draw-arrays-shared-binding'])
1819 g(['arb_draw_indirect-transform-feedback'])
1820 g(['arb_draw_indirect-vertexid'],
1821 'gl_VertexID used with glDrawArraysIndirect')
1822 g(['arb_draw_indirect-vertexid', 'elements'],
1823 'gl_VertexID used with glDrawElementsIndirect')
1825 # Group ARB_draw_indirect
1826 with profile
.test_list
.group_manager(
1828 grouptools
.join('spec', 'ARB_multi_draw_indirect')) as g
:
1829 g(['gl-3.0-multidrawarrays-vertexid', '-indirect'])
1830 g(['arb_draw_elements_base_vertex-multidrawelements', '-indirect'])
1832 # Group ARB_fragment_program
1833 with profile
.test_list
.group_manager(
1835 grouptools
.join('spec', 'ARB_fragment_program')) as g
:
1836 g(['arb_fragment_program-minmax'], 'minmax')
1840 g(['fp-fragment-position'])
1841 g(['fp-incomplete-tex'])
1842 g(['fp-indirections'])
1843 g(['fp-indirections2'])
1846 g(['fp-lit-src-equals-dst'])
1850 g(['arb_fragment_program-sparse-samplers'], 'sparse-samplers')
1851 g(['arb_fragment_program-no-newline'], 'no-newline')
1852 g(['incomplete-texture', 'arb_fp'], 'incomplete-texture-arb_fp')
1854 with profile
.test_list
.group_manager(
1856 grouptools
.join('spec', 'NV_fragment_program_option')) as g
:
1858 g(['fp-condition_codes-01'])
1863 with profile
.test_list
.group_manager(
1865 grouptools
.join('spec', 'ATI_fragment_shader')) as g
:
1866 g(['ati_fragment_shader-api-alphafirst'])
1867 g(['ati_fragment_shader-api-gen'])
1868 g(['ati_fragment_shader-error01-genzero'])
1869 g(['ati_fragment_shader-error02-inside'])
1870 g(['ati_fragment_shader-error03-outside'])
1871 g(['ati_fragment_shader-error04-endshader'])
1872 g(['ati_fragment_shader-error05-passes'])
1873 g(['ati_fragment_shader-error06-regswizzle'])
1874 g(['ati_fragment_shader-error07-instcount'])
1875 g(['ati_fragment_shader-error08-secondary'])
1876 g(['ati_fragment_shader-error09-allconst'])
1877 g(['ati_fragment_shader-error10-dotx'])
1878 g(['ati_fragment_shader-error11-invaliddst'])
1879 g(['ati_fragment_shader-error12-invalidsrc'])
1880 g(['ati_fragment_shader-error13-invalidarg'])
1881 g(['ati_fragment_shader-error14-invalidmod'])
1882 g(['ati_fragment_shader-render-constants'])
1883 g(['ati_fragment_shader-render-default'])
1884 g(['ati_fragment_shader-render-fog'])
1885 g(['ati_fragment_shader-render-notexture'])
1886 g(['ati_fragment_shader-render-ops'])
1887 g(['ati_fragment_shader-render-precedence'])
1888 g(['ati_fragment_shader-render-sources'])
1889 g(['ati_fragment_shader-render-textargets'])
1891 # Group ARB_framebuffer_object
1892 with profile
.test_list
.group_manager(
1894 grouptools
.join('spec', 'ARB_framebuffer_object')) as g
:
1895 g(['same-attachment-tex2d-depth_stencil'])
1896 g(['same-attachment-renderbuffer-depth_stencil'])
1897 g(['arb_framebuffer_object-get-attachment-parameter-default-framebuffer'], run_concurrent
=False)
1899 g(['fbo-blit-stretch'], run_concurrent
=False)
1900 g(['fbo-blit-scaled-linear'])
1901 g(['fbo-attachments-blit-scaled-linear'])
1903 g(['fbo-luminance-alpha'])
1904 g(['fbo-getframebufferattachmentparameter-01'])
1905 g(['fbo-gl_pointcoord'])
1906 g(['fbo-incomplete'])
1907 g(['fbo-incomplete-invalid-texture'])
1908 g(['fbo-incomplete-texture-01'])
1909 g(['fbo-incomplete-texture-02'])
1910 g(['fbo-incomplete-texture-03'])
1911 g(['fbo-incomplete-texture-04'])
1912 g(['fbo-mipmap-copypix'])
1913 g(['fbo-viewport'], run_concurrent
=False)
1914 g(['fbo-missing-attachment-blit', 'to'], 'FBO blit to missing attachment')
1915 g(['fbo-missing-attachment-blit', 'from'],
1916 'FBO blit from missing attachment')
1917 g(['fbo-scissor-blit', 'fbo'], 'fbo-scissor-blit fbo')
1918 g(['fbo-scissor-blit', 'window'], 'fbo-scissor-blit window',
1919 run_concurrent
=False)
1920 g(['fbo-tex-rgbx'], 'fbo-tex-rgbx')
1921 g(['arb_framebuffer_object-mixed-buffer-sizes'], 'mixed-buffer-sizes')
1922 g(['arb_framebuffer_object-negative-readpixels-no-rb'],
1923 'negative-readpixels-no-rb')
1924 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH_COMPONENT16'])
1925 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH_COMPONENT24'])
1926 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH_COMPONENT32'])
1927 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH_COMPONENT32F'])
1928 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_STENCIL_INDEX1'])
1929 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_STENCIL_INDEX4'])
1930 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_STENCIL_INDEX8'])
1931 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_STENCIL_INDEX16'])
1932 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH24_STENCIL8'])
1933 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_DEPTH24_STENCIL8'])
1934 g(['arb_framebuffer_object-depth-stencil-blit', 'depth_stencil', 'GL_DEPTH24_STENCIL8'])
1935 g(['arb_framebuffer_object-depth-stencil-blit', 'depth', 'GL_DEPTH32F_STENCIL8'])
1936 g(['arb_framebuffer_object-depth-stencil-blit', 'stencil', 'GL_DEPTH32F_STENCIL8'])
1937 g(['arb_framebuffer_object-depth-stencil-blit', 'depth_stencil', 'GL_DEPTH32F_STENCIL8'])
1938 g(['fbo-drawbuffers-none', 'glClear'])
1939 g(['fbo-drawbuffers-none', 'glClearBuffer'])
1940 g(['fbo-drawbuffers-none', 'gl_FragColor'])
1941 g(['fbo-drawbuffers-none', 'gl_FragData'])
1942 g(['fbo-drawbuffers-none', 'use_frag_out'])
1943 g(['fbo-drawbuffers-none', 'glColorMaskIndexed'])
1944 g(['fbo-drawbuffers-none', 'glBlendFunci'])
1945 g(['fbo-drawbuffers-none', 'glDrawPixels'])
1946 g(['fbo-drawbuffers-none', 'glBlitFramebuffer'])
1947 g(['fbo-generatemipmap-cubemap'])
1948 g(['fbo-generatemipmap-cubemap', 'RGB9_E5'])
1949 g(['fbo-generatemipmap-cubemap', 'S3TC_DXT1'])
1950 g(['fbo-generatemipmap-1d'])
1951 g(['fbo-generatemipmap-1d', 'RGB9_E5'])
1952 g(['fbo-generatemipmap-3d'])
1953 g(['fbo-generatemipmap-3d', 'RGB9_E5'])
1954 g(['framebuffer-blit-mipmap'])
1955 for format
in ('rgba', 'depth', 'stencil'):
1956 for test_mode
in ('draw', 'read'):
1957 g(['framebuffer-blit-levels', test_mode
, format
],
1958 'framebuffer-blit-levels {} {}'.format(test_mode
, format
))
1960 # Group ARB_framebuffer_sRGB
1961 with profile
.test_list
.group_manager(
1963 grouptools
.join('spec', 'ARB_framebuffer_sRGB')) as g
:
1964 for backing_type
in ('texture', 'renderbuffer'):
1965 for srgb_types
in ('linear', 'srgb', 'linear_to_srgb',
1967 for blit_type
in ('single_sampled', 'upsample', 'downsample',
1969 for framebuffer_srgb_setting
in ('enabled',
1971 for src_fill_mode
in ('clear', 'render'):
1972 g(['arb_framebuffer_srgb-blit', backing_type
,
1973 srgb_types
, blit_type
, framebuffer_srgb_setting
,
1975 'blit {} {} {} {} {}'.format(
1976 backing_type
, srgb_types
, blit_type
,
1977 framebuffer_srgb_setting
, src_fill_mode
))
1978 g(['framebuffer-srgb'], run_concurrent
=False)
1979 g(['arb_framebuffer_srgb-clear'])
1980 g(['arb_framebuffer_srgb-pushpop'])
1981 g(['ext_framebuffer_multisample-fast-clear',
1982 'GL_EXT_texture_sRGB',
1985 g(['ext_framebuffer_multisample-fast-clear',
1986 'GL_EXT_texture_sRGB',
1990 g(['arb_framebuffer_srgb-fast-clear-blend'])
1991 g(['arb_framebuffer_srgb-srgb_conformance'])
1992 g(['arb_framebuffer_srgb-srgb_pbo'])
1995 with profile
.test_list
.group_manager(
1997 grouptools
.join('spec', 'ARB_gpu_shader5')) as g
:
1998 stages
= ['vs', 'fs']
1999 types
= ['unorm', 'float', 'int', 'uint']
2000 comps
= ['r', 'rg', 'rgb', 'rgba']
2001 samplers
= ['2D', '2DArray', 'Cube', 'CubeArray', '2DRect']
2002 for stage
, type_
, comp
, sampler
in itertools
.product(
2003 stages
, types
, comps
, samplers
):
2004 for func
in ['textureGather'] if 'Cube' in sampler
else ['textureGather', 'textureGatherOffset', 'textureGatherOffsets']:
2005 for cs
in range(len(comp
)):
2007 address_mode
= 'clamp' if sampler
== '2DRect' else 'repeat'
2008 cmd
= ['textureGather', stage
,
2009 'offsets' if func
== 'textureGatherOffsets' else 'nonconst' if func
== 'textureGatherOffset' else '',
2010 comp
, str(cs
), type_
, sampler
, address_mode
]
2011 testname
= grouptools
.join(func
, '{}-{}-{}-{}-{}'.format(
2012 stage
, comp
, cs
, type_
, sampler
))
2015 if func
== 'textureGatherOffset':
2016 # also add a constant offset version.
2017 testname
= grouptools
.join(
2018 func
, '{}-{}-{}-{}-{}-const'.format(
2019 stage
, comp
, cs
, type_
, sampler
))
2020 cmd
= ['textureGather', stage
, 'offset',
2021 comp
, str(cs
), type_
, sampler
, address_mode
]
2024 # test shadow samplers
2025 samplers
= ['2D', '2DArray', 'Cube', 'CubeArray', '2DRect']
2026 for stage
, sampler
in itertools
.product(stages
, samplers
):
2027 for func
in ['textureGather'] if 'Cube' in sampler
else ['textureGather', 'textureGatherOffset', 'textureGatherOffsets']:
2028 testname
= grouptools
.join(func
, '{}-r-none-shadow-{}'.format(
2030 cmd
= ['textureGather', stage
, 'shadow', 'r',
2031 'offsets' if func
== 'textureGatherOffsets' else 'nonconst' if func
== 'textureGatherOffset' else '',
2033 'clamp' if sampler
== '2DRect' else 'repeat']
2036 g(['arb_gpu_shader5-minmax'])
2037 g(['arb_gpu_shader5-invocation-id'])
2038 g(['arb_gpu_shader5-invocations_count_too_large'])
2039 g(['arb_gpu_shader5-xfb-streams'])
2040 g(['arb_gpu_shader5-stream_value_too_large'])
2041 g(['arb_gpu_shader5-emitstreamvertex_stream_too_large'])
2042 g(['arb_gpu_shader5-tf-wrong-stream-value'])
2043 g(['arb_gpu_shader5-xfb-streams-without-invocations'])
2044 g(['arb_gpu_shader5-xfb-streams-without-invocations', 'spirv'])
2045 g(['arb_gpu_shader5-emitstreamvertex_nodraw'])
2046 g(['arb_gpu_shader5-interpolateAtCentroid'])
2047 g(['arb_gpu_shader5-interpolateAtCentroid-packing'])
2048 g(['arb_gpu_shader5-interpolateAtCentroid-flat'])
2049 g(['arb_gpu_shader5-interpolateAtCentroid-centroid'])
2050 g(['arb_gpu_shader5-interpolateAtCentroid-noperspective'])
2051 g(['arb_gpu_shader5-interpolateAtSample'])
2052 g(['arb_gpu_shader5-interpolateAtSample-nonconst'])
2053 g(['arb_gpu_shader5-interpolateAtSample-different'])
2054 g(['arb_gpu_shader5-interpolateAtSample-different', 'uniform'])
2055 g(['arb_gpu_shader5-interpolateAtSample-dynamically-nonuniform'])
2056 g(['arb_gpu_shader5-interpolateAtOffset'])
2057 g(['arb_gpu_shader5-interpolateAtOffset-nonconst'])
2060 with profile
.test_list
.group_manager(
2062 grouptools
.join('spec', 'ARB_gpu_shader_fp64',
2063 'varying-packing')) as g
:
2064 for type in ['double', 'dvec2', 'dvec3', 'dvec4', 'dmat2', 'dmat3',
2065 'dmat4', 'dmat2x3', 'dmat2x4', 'dmat3x2', 'dmat3x4',
2066 'dmat4x2', 'dmat4x3']:
2067 for arrayspec
in ['array', 'separate', 'arrays_of_arrays']:
2068 g(['varying-packing-simple', type, arrayspec
],
2069 'simple {0} {1}'.format(type, arrayspec
))
2071 with profile
.test_list
.group_manager(
2073 grouptools
.join('spec', 'ARB_gpu_shader_fp64', 'execution')) as g
:
2074 g(['arb_gpu_shader_fp64-tf-separate'])
2075 g(['arb_gpu_shader_fp64-double-gettransformfeedbackvarying'])
2076 g(['arb_gpu_shader_fp64-tf-interleaved'])
2077 g(['arb_gpu_shader_fp64-tf-interleaved-aligned'])
2078 g(['arb_gpu_shader_fp64-vs-getuniformdv'])
2079 g(['arb_gpu_shader_fp64-fs-getuniformdv'])
2080 g(['arb_gpu_shader_fp64-gs-getuniformdv'])
2081 g(['arb_gpu_shader_fp64-wrong-type-setter'])
2082 g(['arb_gpu_shader_fp64-dlist-uniforms'])
2083 g(['arb_gpu_shader_fp64-double_in_bool_uniform'])
2084 g(['arb_gpu_shader_fp64-uniform-invalid-operation'])
2085 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-const'])
2086 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-const'])
2087 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-ubo'])
2088 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-ubo'])
2089 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-ssbo'])
2090 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-ssbo'])
2091 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-alu'])
2092 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-alu'])
2093 g(['arb_gpu_shader_fp64-vs-non-uniform-control-flow-packing'])
2094 g(['arb_gpu_shader_fp64-fs-non-uniform-control-flow-packing'])
2096 with profile
.test_list
.group_manager(
2098 grouptools
.join('spec', 'ARB_gpu_shader_fp64', 'shader_storage')) as g
:
2099 g(['arb_gpu_shader_fp64-layout-std140-fp64-shader'], 'layout-std140-fp64-shader')
2100 g(['arb_gpu_shader_fp64-layout-std140-fp64-mixed-shader'], 'layout-std140-fp64-mixed-shader')
2101 g(['arb_gpu_shader_fp64-layout-std430-fp64-shader'], 'layout-std430-fp64-shader')
2102 g(['arb_gpu_shader_fp64-layout-std430-fp64-mixed-shader'], 'layout-std430-fp64-mixed-shader')
2104 with profile
.test_list
.group_manager(
2106 grouptools
.join('spec', 'ARB_shader_subroutine')) as g
:
2107 g(['arb_shader_subroutine-minmax'])
2108 g(['arb_shader_subroutine-uniformsubroutinesuiv'])
2110 with profile
.test_list
.group_manager(
2112 grouptools
.join('spec', 'ARB_occlusion_query')) as g
:
2113 g(['occlusion_query'])
2114 g(['occlusion_query_conform'])
2115 g(['occlusion_query_lifetime'])
2116 g(['occlusion_query_meta_fragments'])
2117 g(['occlusion_query_meta_no_fragments'])
2118 g(['occlusion_query_meta_save'])
2119 g(['occlusion_query_order'])
2120 g(['gen_delete_while_active'])
2122 with profile
.test_list
.group_manager(
2124 grouptools
.join('spec', 'ARB_point_parameters')) as g
:
2125 g(['arb_point_parameters-point-attenuation'])
2127 # Group ARB_separate_shader_objects
2128 with profile
.test_list
.group_manager(
2130 grouptools
.join('spec', 'ARB_separate_shader_objects')) as g
:
2131 g(['arb_separate_shader_object-ActiveShaderProgram-invalid-program'],
2132 'ActiveShaderProgram with invalid program')
2133 g(['arb_separate_shader_object-GetProgramPipelineiv'],
2134 'GetProgramPipelineiv')
2135 g(['arb_separate_shader_object-dlist'], 'Display lists (Compat)')
2136 g(['arb_separate_shader_object-IsProgramPipeline'],
2137 'IsProgramPipeline')
2138 g(['arb_separate_shader_object-UseProgramStages-non-separable'],
2139 'UseProgramStages - non-separable program')
2140 g(['arb_separate_shader_object-ProgramUniform-coverage'],
2141 'ProgramUniform coverage')
2142 g(['arb_separate_shader_object-rendezvous_by_name'],
2143 'Rendezvous by name')
2144 g(['arb_separate_shader_object-rendezvous_by_name_interpolation'],
2145 'Rendezvous by name with multiple interpolation qualifier')
2146 g(['arb_separate_shader_object-mix-and-match-tcs-tes'],
2147 'mix-and-match-tcs-tes'),
2148 g(['arb_separate_shader_object-mixed_explicit_and_non_explicit_locations'],
2149 'Mixed explicit and non-explicit locations')
2150 g(['arb_separate_shader_object-api-errors'], 'misc. API error checks')
2151 g(['arb_separate_shader_object-rendezvous_by_location', '-fbo'],
2152 'Rendezvous by location', run_concurrent
=False)
2153 g(['arb_separate_shader_object-rendezvous_by_location-5-stages'],
2154 'Rendezvous by location (5 stages)')
2155 g(['arb_separate_shader_object-ValidateProgramPipeline'],
2156 'ValidateProgramPipeline')
2157 g(['arb_separate_shader_object-400-combinations', '-fbo', '--by-location'],
2158 '400 combinations by location', run_concurrent
=False)
2159 g(['arb_separate_shader_object-400-combinations', '-fbo'],
2160 '400 combinations by name', run_concurrent
=False)
2161 g(['arb_separate_shader_object-active-sampler-conflict'],
2162 'active sampler conflict')
2163 g(['arb_separate_shader_object-atomic-counter'],
2165 g(['arb_separate_shader_object-compat-builtins'], 'compat-builtins')
2166 g(['arb_separate_shader_object-rendezvous_by_location-3-stages'],
2167 'rendezvous_by_location-3-stages')
2168 g(['arb_separate_shader_object-uniform-namespace'],
2169 'uniform namespace is per-program')
2170 g(['arb_separate_shader_object-xfb-rendezvous_by_location'],
2171 'Transform feedback with rendezvous by location')
2172 g(['arb_separate_shader_object-xfb-explicit-location-array', 'vs'],
2173 'xfb-explicit-location-array_vs',
2174 run_concurrent
=False)
2175 g(['arb_separate_shader_object-xfb-explicit-location-array', 'gs'],
2176 'xfb-explicit-location-array_gs',
2177 run_concurrent
=False)
2178 g(['arb_separate_shader_object-xfb-explicit-location-array', 'gs_max'],
2179 'xfb-explicit-location-array_gs_max',
2180 run_concurrent
=False)
2182 # Group ARB_sampler_objects
2183 with profile
.test_list
.group_manager(
2185 grouptools
.join('spec', 'ARB_sampler_objects')) as g
:
2186 g(['arb_sampler_objects-sampler-objects'], 'sampler-objects',)
2187 g(['arb_sampler_objects-sampler-incomplete'], 'sampler-incomplete',)
2188 g(['arb_sampler_objects-srgb-decode'], 'GL_EXT_texture_sRGB_decode',)
2189 g(['arb_sampler_objects-framebufferblit'], 'framebufferblit',
2190 run_concurrent
=False)
2192 # Group ARB_sample_shading
2193 with profile
.test_list
.group_manager(
2195 grouptools
.join('spec', 'ARB_sample_shading')) as g
:
2196 g(['arb_sample_shading-api'], run_concurrent
=False)
2198 for num_samples
in ['0'] + MSAA_SAMPLE_COUNTS
:
2199 g(['arb_sample_shading-builtin-gl-num-samples', num_samples
],
2200 'builtin-gl-num-samples {0}'.format(num_samples
),
2201 run_concurrent
=False)
2202 g(['arb_sample_shading-builtin-gl-sample-id', num_samples
],
2203 'builtin-gl-sample-id {}'.format(num_samples
), run_concurrent
=False)
2204 g(['arb_sample_shading-builtin-gl-sample-mask', num_samples
],
2205 'builtin-gl-sample-mask {}'.format(num_samples
),
2206 run_concurrent
=False)
2207 g(['arb_sample_shading-builtin-gl-sample-position', num_samples
],
2208 'builtin-gl-sample-position {}'.format(num_samples
),
2209 run_concurrent
=False)
2211 for sample_count
in MSAA_SAMPLE_COUNTS
:
2212 g(['arb_sample_shading-interpolate-at-sample-position', sample_count
],
2213 'interpolate-at-sample-position {}'.format(sample_count
))
2214 g(['arb_sample_shading-ignore-centroid-qualifier', sample_count
],
2215 'ignore-centroid-qualifier {}'.format(sample_count
))
2216 g(['arb_sample_shading-samplemask', sample_count
, 'all', 'all'],
2217 'samplemask {}'.format(sample_count
))
2219 for num_samples
in ['0'] + MSAA_SAMPLE_COUNTS
:
2220 g(['arb_sample_shading-builtin-gl-sample-mask-simple',
2222 'builtin-gl-sample-mask-simple {}'.format(num_samples
))
2223 g(['arb_sample_shading-samplemask', num_samples
, 'all', 'all'],
2224 'samplemask {} all'.format(num_samples
))
2226 g(['arb_sample_shading-builtin-gl-sample-mask-mrt-alpha'])
2227 g(['arb_sample_shading-builtin-gl-sample-mask-mrt-alpha-to-coverage'])
2229 # Group ARB_debug_output
2230 with profile
.test_list
.group_manager(
2232 grouptools
.join('spec', 'ARB_debug_output')) as g
:
2233 g(['arb_debug_output-api_error'], run_concurrent
=False)
2236 with profile
.test_list
.group_manager(
2238 grouptools
.join('spec', 'KHR_debug')) as g
:
2239 g(['khr_debug-object-label_gl'], 'object-label_gl')
2240 g(['khr_debug-object-label_gles2'], 'object-label_gles2')
2241 g(['khr_debug-object-label_gles3'], 'object-label_gles3')
2242 g(['khr_debug-push-pop-group_gl'], 'push-pop-group_gl')
2243 g(['khr_debug-push-pop-group_gles2'], 'push-pop-group_gles2')
2244 g(['khr_debug-push-pop-group_gles3'], 'push-pop-group_gles3')
2246 # Group ARB_occlusion_query2
2247 with profile
.test_list
.group_manager(
2249 grouptools
.join('spec', 'ARB_occlusion_query2')) as g
:
2250 g(['arb_occlusion_query2-api'], 'api')
2251 g(['arb_occlusion_query2-render'], 'render')
2253 # Group EXT_debug_label
2254 with profile
.test_list
.group_manager(
2256 grouptools
.join('spec', 'EXT_debug_label')) as g
:
2257 g(['ext_debug_label-object-label_gl'], 'object-label_gl')
2258 g(['ext_debug_label-object-label_gles2'], 'object-label_gles2')
2259 g(['ext_debug_label-object-label_gles3'], 'object-label_gles3')
2261 # Group EXT_external_objects tests
2262 with profile
.test_list
.group_manager(
2264 grouptools
.join('spec', 'EXT_external_objects')) as g
:
2265 g(['ext_external_objects-memory-object-api-errors'], 'memory-object-api-errors')
2266 g(['ext_external_objects-semaphore-api-errors'], 'semaphore-api-errors')
2267 g(['ext_external_objects-vk-image-overwrite'], 'vk-image-overwrite')
2268 g(['ext_external_objects-vk-image-display'], 'vk-image-display')
2269 g(['ext_external_objects-vk-image-display-overwrite'], 'vk-image-display-overwrite')
2270 g(['ext_external_objects-vk-buf-exchange'], 'vk-buf-exchange')
2271 g(['ext_external_objects-vk-pix-buf-update-errors'], 'vk-pix-buf-update-errors')
2272 g(['ext_external_objects-vk-vert-buf-update-errors'], 'vk-vert-buf-update-errors')
2273 g(['ext_external_objects-vk-vert-buf-reuse'], 'vk-vert-buf-reuse')
2274 g(['ext_external_objects-vk-depth-display'], 'vk-depth-display')
2275 g(['ext_external_objects-vk-stencil-display'], 'vk-stencil-display')
2276 g(['ext_external_objects-vk-semaphores'], 'vk-semaphores')
2277 g(['ext_external_objects-vk-semaphores-2'], 'vk-semaphores-2')
2278 g(['ext_external_objects-vk-image-display-multiple-textures'], 'vk-image-display-muliple-textures')
2280 # Group EXT_external_objects_fd tests
2281 with profile
.test_list
.group_manager(
2283 grouptools
.join('spec', 'EXT_external_objects_fd')) as g
:
2284 g(['ext_external_objects_fd-memory-object-api-errors'], 'memory-object-api-errors')
2285 g(['ext_external_objects_fd-semaphore-api-errors'], 'semaphore-api-errors')
2287 # Group EXT_texture_format_BGRA8888 tests
2288 with profile
.test_list
.group_manager(
2290 grouptools
.join('spec', 'EXT_texture_format_BGRA8888')) as g
:
2291 g(['ext_texture_format_bgra8888-api-errors'], 'api-errors')
2293 with profile
.test_list
.group_manager(
2295 grouptools
.join('spec', 'ARB_pixel_buffer_object')) as g
:
2296 g(['cubemap', 'pbo'])
2297 g(['cubemap', 'npot', 'pbo'])
2298 g(['fbo-pbo-readpixels-small'], run_concurrent
=False)
2299 g(['pbo-drawpixels'], run_concurrent
=False)
2300 g(['pbo-getteximage'], run_concurrent
=False)
2301 g(['pbo-read-argb8888'], run_concurrent
=False)
2302 g(['pbo-readpixels-small'], run_concurrent
=False)
2303 g(['pbo-teximage'], run_concurrent
=False)
2304 g(['pbo-teximage-tiling'], run_concurrent
=False)
2305 g(['pbo-teximage-tiling-2'], run_concurrent
=False)
2306 g(['texsubimage', 'pbo'])
2307 g(['texsubimage', 'pbo', 'manual', 'GL_TEXTURE_2D', 'GL_RGB8', '6',
2308 '10', '0', '94', '53', '0'])
2309 g(['texsubimage', 'array', 'pbo'])
2310 g(['texsubimage', 'cube_map_array', 'pbo'])
2311 g(['texsubimage-depth-formats', 'pbo'])
2312 g(['texsubimage-unpack', 'pbo'])
2314 # Group ARB_provoking_vertex
2315 with profile
.test_list
.group_manager(
2317 grouptools
.join('spec', 'ARB_provoking_vertex')) as g
:
2318 g(['arb-provoking-vertex-control'], run_concurrent
=False)
2319 g(['arb-provoking-vertex-initial'], run_concurrent
=False)
2320 g(['arb-provoking-vertex-render'], run_concurrent
=False)
2321 g(['arb-provoking-vertex-clipped-geometry-flatshading'], run_concurrent
=False)
2322 g(['arb-quads-follow-provoking-vertex'], run_concurrent
=False)
2323 g(['arb-xfb-before-flatshading'], run_concurrent
=False)
2325 # Group ARB_robustness
2326 with profile
.test_list
.group_manager(
2328 grouptools
.join('spec', 'ARB_robustness')) as g
:
2329 g(['arb_robustness_client-mem-bounds'], run_concurrent
=False)
2331 # Group ARB_shader_texture_lod
2332 with profile
.test_list
.group_manager(
2334 grouptools
.join('spec', 'ARB_shader_texture_lod', 'execution')) as g
:
2335 g(['arb_shader_texture_lod-texgrad'])
2336 g(['arb_shader_texture_lod-texgradcube'])
2337 g(['tex-miplevel-selection', '*Lod', '1D'])
2338 g(['tex-miplevel-selection', '*Lod', '2D'])
2339 g(['tex-miplevel-selection', '*Lod', '3D'])
2340 g(['tex-miplevel-selection', '*Lod', 'Cube'])
2341 g(['tex-miplevel-selection', '*Lod', '1DShadow'])
2342 g(['tex-miplevel-selection', '*Lod', '2DShadow'])
2343 g(['tex-miplevel-selection', '*ProjLod', '1D'])
2344 g(['tex-miplevel-selection', '*ProjLod', '1D_ProjVec4'])
2345 g(['tex-miplevel-selection', '*ProjLod', '2D'])
2346 g(['tex-miplevel-selection', '*ProjLod', '2D_ProjVec4'])
2347 g(['tex-miplevel-selection', '*ProjLod', '3D'])
2348 g(['tex-miplevel-selection', '*ProjLod', '1DShadow'])
2349 g(['tex-miplevel-selection', '*ProjLod', '2DShadow'])
2350 g(['tex-miplevel-selection', '*GradARB', '1D'])
2351 g(['tex-miplevel-selection', '*GradARB', '2D'])
2352 g(['tex-miplevel-selection', '*GradARB', '3D'])
2353 g(['tex-miplevel-selection', '*GradARB', 'Cube'])
2354 g(['tex-miplevel-selection', '*GradARB', '1DShadow'])
2355 g(['tex-miplevel-selection', '*GradARB', '2DShadow'])
2356 g(['tex-miplevel-selection', '*GradARB', '2DRect'])
2357 g(['tex-miplevel-selection', '*GradARB', '2DRectShadow'])
2358 g(['tex-miplevel-selection', '*ProjGradARB', '1D'])
2359 g(['tex-miplevel-selection', '*ProjGradARB', '1D_ProjVec4'])
2360 g(['tex-miplevel-selection', '*ProjGradARB', '2D'])
2361 g(['tex-miplevel-selection', '*ProjGradARB', '2D_ProjVec4'])
2362 g(['tex-miplevel-selection', '*ProjGradARB', '3D'])
2363 g(['tex-miplevel-selection', '*ProjGradARB', '1DShadow'])
2364 g(['tex-miplevel-selection', '*ProjGradARB', '2DShadow'])
2365 g(['tex-miplevel-selection', '*ProjGradARB', '2DRect'])
2366 g(['tex-miplevel-selection', '*ProjGradARB', '2DRect_ProjVec4'])
2367 g(['tex-miplevel-selection', '*ProjGradARB', '2DRectShadow'])
2370 # Group ARB_shader_objects
2371 with profile
.test_list
.group_manager(
2373 grouptools
.join('spec', 'ARB_shader_objects')) as g
:
2374 g(['arb_shader_objects-getuniform'], 'getuniform')
2375 g(['arb_shader_objects-bindattriblocation-scratch-name'],
2376 'bindattriblocation-scratch-name')
2377 g(['arb_shader_objects-getactiveuniform-beginend'],
2378 'getactiveuniform-beginend')
2379 g(['arb_shader_objects-getuniformlocation-array-of-struct-of-array'],
2380 'getuniformlocation-array-of-struct-of-array')
2381 g(['arb_shader_objects-clear-with-deleted'], 'clear-with-deleted')
2382 g(['arb_shader_objects-delete-repeat'], 'delete-repeat')
2383 g(['arb_shader_objects-delete-non-existent'], 'delete-non-existent')
2385 with profile
.test_list
.group_manager(
2387 grouptools
.join('spec', 'ARB_shading_language_420pack')) as g
:
2388 g(['built-in-constants',
2389 os
.path
.join('spec', 'arb_shading_language_420pack', 'minimum-maximums.txt')],
2390 'built-in constants',
2391 override_class
=BuiltInConstantsTest
)
2392 g(['arb_shading_language_420pack-multiple-layout-qualifiers'],
2393 'multiple layout qualifiers')
2394 g(['arb_shading_language_420pack-active-sampler-conflict'], 'active sampler conflict')
2395 g(['arb_shading_language_420pack-binding-layout'], 'binding layout')
2397 with profile
.test_list
.group_manager(
2399 grouptools
.join('spec', 'ARB_shading_language_include')) as g
:
2400 g(['arb_shading_language_include-api'], 'API tests')
2402 # Group ARB_enhanced_layouts
2403 with profile
.test_list
.group_manager(
2405 grouptools
.join('spec', 'arb_enhanced_layouts')) as g
:
2406 g(['arb_enhanced_layouts-explicit-offset-bufferstorage'],
2407 'explicit-offset-bufferstorage')
2408 g(['arb_enhanced_layouts-gs-stream-location-aliasing'],
2409 'gs-stream-location-aliasing')
2410 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'vs'],
2411 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_vs',
2412 run_concurrent
=False)
2413 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'vs_ifc'],
2414 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_vs_interface',
2415 run_concurrent
=False)
2416 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'vs_named_ifc'],
2417 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_vs_named_interface',
2418 run_concurrent
=False)
2419 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'vs_struct'],
2420 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_vs_struct',
2421 run_concurrent
=False)
2422 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'gs'],
2423 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_gs',
2424 run_concurrent
=False)
2425 g(['arb_enhanced_layouts-transform-feedback-layout-qualifiers', 'gs_max'],
2426 'arb_enhanced_layouts-transform-feedback-layout-qualifiers_gs_max',
2427 run_concurrent
=False)
2428 g(['arb_enhanced_layouts-transform-feedback-layout-query-api'],
2429 'arb_enhanced_layouts-transform-feedback-layout-query-api')
2431 # Group ARB_explicit_attrib_location
2432 with profile
.test_list
.group_manager(
2434 grouptools
.join('spec', 'ARB_explicit_attrib_location')) as g
:
2435 g(['glsl-explicit-location-01'], run_concurrent
=False)
2436 g(['glsl-explicit-location-02'], run_concurrent
=False)
2437 g(['glsl-explicit-location-03'], run_concurrent
=False)
2438 g(['glsl-explicit-location-04'], run_concurrent
=False)
2439 g(['glsl-explicit-location-05'], run_concurrent
=False)
2440 for test_type
in ('shader', 'api'):
2441 g(['overlapping-locations-input-attribs', test_type
],
2442 run_concurrent
=False)
2444 with profile
.test_list
.group_manager(
2446 grouptools
.join('spec', 'ARB_program_interface_query')) as g
:
2447 g(['arb_program_interface_query-resource-location'], run_concurrent
=False)
2448 g(['arb_program_interface_query-resource-query'], run_concurrent
=False)
2449 g(['arb_program_interface_query-getprograminterfaceiv'], run_concurrent
=False)
2450 g(['arb_program_interface_query-getprogramresourceindex'], run_concurrent
=False)
2451 g(['arb_program_interface_query-getprogramresourcename'], run_concurrent
=False)
2452 g(['arb_program_interface_query-getprogramresourceiv'], run_concurrent
=False)
2453 g(['arb_program_interface_query-compare-with-shader-subroutine'], run_concurrent
=False)
2455 with profile
.test_list
.group_manager(
2457 grouptools
.join('spec', 'ARB_framebuffer_no_attachments')) as g
:
2458 g(['arb_framebuffer_no_attachments-minmax'])
2459 g(['arb_framebuffer_no_attachments-params'])
2460 g(['arb_framebuffer_no_attachments-atomic'])
2461 g(['arb_framebuffer_no_attachments-query'])
2462 g(['arb_framebuffer_no_attachments-roundup-samples'])
2464 # Group ARB_explicit_uniform_location
2465 with profile
.test_list
.group_manager(
2467 grouptools
.join('spec', 'ARB_explicit_uniform_location')) as g
:
2468 g(['arb_explicit_uniform_location-minmax'], run_concurrent
=False)
2469 g(['arb_explicit_uniform_location-boundaries'], run_concurrent
=False)
2470 g(['arb_explicit_uniform_location-array-elements'], run_concurrent
=False)
2471 g(['arb_explicit_uniform_location-inactive-uniform'], run_concurrent
=False)
2472 g(['arb_explicit_uniform_location-use-of-unused-loc'],
2473 run_concurrent
=False)
2475 with profile
.test_list
.group_manager(
2477 grouptools
.join('spec', 'ARB_texture_buffer_object')) as g
:
2478 g(['arb_texture_buffer_object-bufferstorage'], 'bufferstorage')
2479 g(['arb_texture_buffer_object-data-sync'], 'data-sync')
2480 g(['arb_texture_buffer_object-dlist'], 'dlist')
2481 g(['arb_texture_buffer_object-formats', 'fs', 'core'],
2482 'formats (FS, 3.1 core)')
2483 g(['arb_texture_buffer_object-formats', 'vs', 'core'],
2484 'formats (VS, 3.1 core)')
2485 g(['arb_texture_buffer_object-formats', 'fs', 'arb'], 'formats (FS, ARB)')
2486 g(['arb_texture_buffer_object-formats', 'vs', 'arb'], 'formats (VS, ARB)')
2487 g(['arb_texture_buffer_object-formats', 'fs', 'gpu_shader4'], 'formats (FS, EXT_gpu_shader4)')
2488 g(['arb_texture_buffer_object-formats', 'vs', 'gpu_shader4'], 'formats (VS, EXT_gpu_shader4)')
2489 g(['arb_texture_buffer_object-get'], 'get')
2490 g(['arb_texture_buffer_object-fetch-outside-bounds'],
2491 'fetch-outside-bounds')
2492 g(['arb_texture_buffer_object-max-size'], 'max-size')
2493 g(['arb_texture_buffer_object-minmax'], 'minmax')
2494 g(['arb_texture_buffer_object-negative-bad-bo'], 'negative-bad-bo')
2495 g(['arb_texture_buffer_object-negative-bad-format'], 'negative-bad-format')
2496 g(['arb_texture_buffer_object-negative-bad-target'], 'negative-bad-target')
2497 g(['arb_texture_buffer_object-negative-unsupported'],
2498 'negative-unsupported')
2499 g(['arb_texture_buffer_object-subdata-sync'], 'subdata-sync')
2500 g(['arb_texture_buffer_object-unused-name'], 'unused-name')
2501 g(['arb_texture_buffer_object-render-no-bo'], 'render-no-bo')
2502 g(['arb_texture_buffer_object-indexed'], 'indexed')
2503 g(['arb_texture_buffer_object-re-init'], 're-init')
2504 g(['arb_texture_buffer_object-texture-buffer-size-clamp'], 'texture-buffer-size-clamp')
2506 with profile
.test_list
.group_manager(
2508 grouptools
.join('spec', 'ARB_texture_buffer_range')) as g
:
2509 g(['arb_texture_buffer_range-dlist'], 'dlist')
2510 g(['arb_texture_buffer_range-errors'], 'errors')
2511 g(['arb_texture_buffer_range-ranges'], 'ranges')
2512 g(['arb_texture_buffer_range-ranges-2'], 'ranges-2')
2513 g(['arb_texture_buffer_range-ranges-2', '-compat'], 'ranges-2 compat')
2515 with profile
.test_list
.group_manager(
2517 grouptools
.join('spec', 'ARB_texture_rectangle')) as g
:
2518 g(['1-1-linear-texture'])
2519 g(['texrect-many'], run_concurrent
=False)
2520 g(['getteximage-targets', 'RECT'])
2521 g(['texrect_simple_arb_texrect'], run_concurrent
=False)
2522 g(['arb_texrect-texture-base-level-error'], run_concurrent
=False)
2523 g(['fbo-blit', 'rect'], run_concurrent
=False)
2524 g(['tex-miplevel-selection', 'GL2:texture()', '2DRect'])
2525 g(['tex-miplevel-selection', 'GL2:texture()', '2DRectShadow'])
2526 g(['tex-miplevel-selection', 'GL2:textureProj', '2DRect'])
2527 g(['tex-miplevel-selection', 'GL2:textureProj', '2DRect_ProjVec4'])
2528 g(['tex-miplevel-selection', 'GL2:textureProj', '2DRectShadow'])
2529 add_msaa_visual_plain_tests(g
, ['copyteximage', 'RECT'],
2530 run_concurrent
=False)
2531 add_texwrap_target_tests(g
, 'RECT')
2533 with profile
.test_list
.group_manager(
2534 PiglitGLTest
, grouptools
.join('spec', 'ARB_texture_storage')) as g
:
2535 g(['arb_texture_storage-texture-storage'], 'texture-storage',
2536 run_concurrent
=False)
2537 g(['arb_texture_storage-texture-storage-attach-before'], 'attach-before',
2538 run_concurrent
=False)
2540 with profile
.test_list
.group_manager(
2542 grouptools
.join('spec', 'ARB_texture_storage_multisample')) as g
:
2543 g(['arb_texture_storage_multisample-tex-storage'], 'tex-storage')
2544 g(['arb_texture_storage_multisample-tex-param'], 'tex-param')
2546 with profile
.test_list
.group_manager(
2548 grouptools
.join('spec', 'ARB_texture_view')) as g
:
2549 g(['arb_texture_view-bug-layers-image'], 'bug-layers-image')
2550 g(['arb_texture_view-cubemap-view'], 'cubemap-view')
2551 g(['arb_texture_view-texture-immutable-levels'], 'immutable_levels')
2552 g(['arb_texture_view-max-level'], 'max-level')
2553 g(['arb_texture_view-mipgen'], 'mipgen')
2554 g(['arb_texture_view-params'], 'params')
2555 g(['arb_texture_view-formats'], 'formats')
2556 g(['arb_texture_view-targets'], 'targets')
2557 g(['arb_texture_view-queries'], 'queries')
2558 g(['arb_texture_view-rendering-target'], 'rendering-target')
2559 g(['arb_texture_view-rendering-levels'], 'rendering-levels')
2560 g(['arb_texture_view-rendering-layers'], 'rendering-layers')
2561 g(['arb_texture_view-rendering-layers-image'], 'rendering-layers-image')
2562 g(['arb_texture_view-rendering-formats'], 'rendering-formats')
2563 g(['arb_texture_view-rendering-r32ui'], 'rendering-r32ui')
2564 g(['arb_texture_view-lifetime-format'], 'lifetime-format')
2565 g(['arb_texture_view-getteximage-srgb'], 'getteximage-srgb')
2566 g(['arb_texture_view-texsubimage-levels'], 'texsubimage-levels')
2567 g(['arb_texture_view-texsubimage-levels', 'pbo'], 'texsubimage-levels pbo')
2568 g(['arb_texture_view-texsubimage-layers'], 'texsubimage-layers')
2569 g(['arb_texture_view-texsubimage-layers', 'pbo'], 'texsubimage-layers pbo')
2570 g(['arb_texture_view-clear-into-view-2d'], 'clear-into-view-2d')
2571 g(['arb_texture_view-clear-into-view-2d-array'],
2572 'clear-into-view-2d-array')
2573 g(['arb_texture_view-clear-into-view-layered'], 'clear-into-view-layered')
2574 g(['arb_texture_view-copytexsubimage-layers'], 'copytexsubimage-layers')
2575 g(['arb_texture_view-sampling-2d-array-as-cubemap'],
2576 'sampling-2d-array-as-cubemap')
2577 g(['arb_texture_view-sampling-2d-array-as-cubemap-array'],
2578 'sampling-2d-array-as-cubemap-array')
2579 g(['arb_texture_view-sampling-2d-array-as-2d-layer'],
2580 'sampling-2d-array-as-2d-layer')
2581 g(['arb_texture_view-fbo-blit'],
2584 with profile
.test_list
.group_manager(
2586 grouptools
.join('spec', 'OES_texture_view')) as g
:
2587 g(['arb_texture_view-rendering-formats_gles3'], 'rendering-formats')
2588 g(['arb_texture_view-rendering-layers_gles3'], 'rendering-layers')
2589 g(['arb_texture_view-rendering-levels_gles3'], 'rendering-levels')
2590 g(['arb_texture_view-rendering-target_gles3'], 'rendering-target')
2591 g(['arb_texture_view-sampling-2d-array-as-cubemap_gles3'],
2592 'sampling-2d-array-as-cubemap')
2593 g(['arb_texture_view-sampling-2d-array-as-cubemap-array_gles3'],
2594 'sampling-2d-array-as-cubemap-array')
2595 g(['arb_texture_view-sampling-2d-array-as-2d-layer_gles3'],
2596 'sampling-2d-array-as-2d-layer')
2597 g(['arb_texture_view-texture-immutable-levels_gles3'], 'immutable_levels')
2598 g(['arb_texture_view-formats_gles3'], 'formats')
2599 g(['arb_texture_view-queries_gles3'], 'queries')
2600 g(['arb_texture_view-targets_gles3'], 'targets')
2601 g(['arb_texture_view-clear-into-view-2d_gles3'], 'clear-into-view-2d')
2602 g(['arb_texture_view-clear-into-view-2d-array_gles3'],
2603 'clear-into-view-2d-array')
2604 g(['arb_texture_view-clear-into-view-layered_gles3'],
2605 'clear-into-view-layered')
2606 g(['arb_texture_view-copytexsubimage-layers_gles3'],
2607 'copytexsubimage-layers')
2608 g(['arb_texture_view-texsubimage-levels_gles3'], 'texsubimage-levels')
2609 g(['arb_texture_view-texsubimage-levels_gles3', 'pbo'],
2610 'texsubimage-levels pbo')
2611 g(['arb_texture_view-texsubimage-layers_gles3'], 'texsubimage-layers')
2612 g(['arb_texture_view-texsubimage-layers_gles3', 'pbo'],
2613 'texsubimage-layers pbo')
2615 with profile
.test_list
.group_manager(
2617 grouptools
.join('spec', '3DFX_texture_compression_FXT1')) as g
:
2618 g(['compressedteximage', 'GL_COMPRESSED_RGB_FXT1_3DFX'])
2619 g(['compressedteximage', 'GL_COMPRESSED_RGBA_FXT1_3DFX'])
2620 g(['fxt1-teximage'], run_concurrent
=False)
2621 g(['arb_texture_compression-invalid-formats', 'fxt1'],
2623 g(['fbo-generatemipmap-formats', 'GL_3DFX_texture_compression_FXT1'],
2624 'fbo-generatemipmap-formats')
2626 with profile
.test_list
.group_manager(
2627 PiglitGLTest
, grouptools
.join('spec', 'arb_clip_control')) as g
:
2628 g(['arb_clip_control-clip-control'])
2629 g(['arb_clip_control-depth-precision'])
2630 g(['arb_clip_control-viewport'])
2632 with profile
.test_list
.group_manager(
2633 PiglitGLTest
, grouptools
.join('spec', 'arb_color_buffer_float')) as g
:
2635 def f(name
, format
, p1
=None, p2
=None):
2636 testname
= '{}-{}{}{}'.format(
2638 '-{}'.format(p1
) if p1
else '',
2639 '-{}'.format(p2
) if p2
else '')
2640 cmd
= ['arb_color_buffer_float-{}'.format(name
), format
, p1
, p2
]
2641 g([c
for c
in cmd
if c
is not None], testname
)
2644 f('getteximage', 'GL_RGBA8')
2645 f('queries', 'GL_RGBA8')
2646 f('readpixels', 'GL_RGBA8')
2647 f('probepixel', 'GL_RGBA8')
2648 f('drawpixels', 'GL_RGBA8')
2649 f('clear', 'GL_RGBA8')
2650 f('render', 'GL_RGBA8')
2651 f('render', 'GL_RGBA8', 'fog')
2652 f('render', 'GL_RGBA8', 'sanity')
2653 f('render', 'GL_RGBA8', 'sanity', 'fog')
2654 f('queries', 'GL_RGBA8_SNORM')
2655 f('readpixels', 'GL_RGBA8_SNORM')
2656 f('probepixel', 'GL_RGBA8_SNORM')
2657 f('drawpixels', 'GL_RGBA8_SNORM')
2658 f('getteximage', 'GL_RGBA8_SNORM')
2659 f('clear', 'GL_RGBA8_SNORM')
2660 f('render', 'GL_RGBA8_SNORM')
2661 f('render', 'GL_RGBA8_SNORM', 'fog')
2662 f('render', 'GL_RGBA8_SNORM', 'sanity')
2663 f('render', 'GL_RGBA8_SNORM', 'sanity', 'fog')
2664 f('getteximage', 'GL_RGBA16F')
2665 f('queries', 'GL_RGBA16F')
2666 f('readpixels', 'GL_RGBA16F')
2667 f('probepixel', 'GL_RGBA16F')
2668 f('drawpixels', 'GL_RGBA16F')
2669 f('clear', 'GL_RGBA16F')
2670 f('render', 'GL_RGBA16F')
2671 f('render', 'GL_RGBA16F', 'fog')
2672 f('render', 'GL_RGBA16F', 'sanity')
2673 f('render', 'GL_RGBA16F', 'sanity', 'fog')
2674 f('getteximage', 'GL_RGBA32F')
2675 f('queries', 'GL_RGBA32F')
2676 f('readpixels', 'GL_RGBA32F')
2677 f('probepixel', 'GL_RGBA32F')
2678 f('drawpixels', 'GL_RGBA32F')
2679 f('clear', 'GL_RGBA32F')
2680 f('render', 'GL_RGBA32F')
2681 f('render', 'GL_RGBA32F', 'fog')
2682 f('render', 'GL_RGBA32F', 'sanity')
2683 f('render', 'GL_RGBA32F', 'sanity', 'fog')
2685 with profile
.test_list
.group_manager(
2686 PiglitGLTest
, grouptools
.join('spec', 'arb_depth_texture')) as g
:
2687 g(['depth-level-clamp'], run_concurrent
=False)
2688 g(['depth-tex-modes'], run_concurrent
=False)
2689 g(['texdepth'], run_concurrent
=False)
2690 add_depthstencil_render_miplevels_tests(g
, ('d=z24', 'd=z16'))
2691 add_texwrap_format_tests(g
, 'GL_ARB_depth_texture')
2692 add_fbo_depth_tests(g
, 'GL_DEPTH_COMPONENT16')
2693 add_fbo_depth_tests(g
, 'GL_DEPTH_COMPONENT24')
2694 add_fbo_depth_tests(g
, 'GL_DEPTH_COMPONENT32')
2695 add_fbo_formats_tests(g
, 'GL_ARB_depth_texture')
2697 with profile
.test_list
.group_manager(
2698 PiglitGLTest
, grouptools
.join('spec', 'arb_depth_buffer_float')) as g
:
2699 g(['fbo-clear-formats', 'GL_ARB_depth_buffer_float', 'stencil'],
2700 'fbo-clear-formats stencil')
2701 add_depthstencil_render_miplevels_tests(
2703 ['d=z32f_s8', 'd=z32f', 'd=z32f_s8_s=z24_s8', 'd=z32f_s=z24_s8',
2704 's=z24_s8_d=z32f_s8', 's=z24_s8_d=z32f', 'd=s=z32f_s8', 's=d=z32f_s8',
2706 add_fbo_stencil_tests(g
, 'GL_DEPTH32F_STENCIL8')
2707 add_texwrap_format_tests(g
, 'GL_ARB_depth_buffer_float')
2708 add_fbo_depth_tests(g
, 'GL_DEPTH_COMPONENT32F')
2709 add_fbo_depth_tests(g
, 'GL_DEPTH32F_STENCIL8')
2710 add_fbo_formats_tests(g
, 'GL_ARB_depth_buffer_float')
2711 add_fbo_depthstencil_tests(g
, 'GL_DEPTH32F_STENCIL8', 0)
2713 with profile
.test_list
.group_manager(
2714 PiglitGLTest
, grouptools
.join('spec', 'arb_get_texture_sub_image')) as g
:
2715 g(['arb_get_texture_sub_image-cubemap'])
2716 g(['arb_get_texture_sub_image-errors'])
2717 g(['arb_get_texture_sub_image-get'])
2718 g(['arb_get_texture_sub_image-getcompressed'])
2720 with profile
.test_list
.group_manager(
2722 grouptools
.join('spec', 'ext_texture_env_combine')) as g
:
2723 g(['ext_texture_env_combine-combine'], 'texture-env-combine')
2725 with profile
.test_list
.group_manager(
2727 grouptools
.join('spec', 'arb_texture_env_crossbar')) as g
:
2728 g(['crossbar'], run_concurrent
=False)
2730 with profile
.test_list
.group_manager(
2731 PiglitGLTest
, grouptools
.join('spec', 'arb_texture_compression')) as g
:
2732 g(['arb_texture_compression-internal-format-query'],
2733 'GL_TEXTURE_INTERNAL_FORMAT query')
2734 g(['arb_texture_compression-invalid-formats', 'unknown'],
2736 g(['fbo-generatemipmap-formats', 'GL_ARB_texture_compression'],
2737 'fbo-generatemipmap-formats')
2738 add_texwrap_format_tests(g
, 'GL_ARB_texture_compression')
2740 with profile
.test_list
.group_manager(
2742 grouptools
.join('spec', 'arb_texture_compression_bptc')) as g
:
2743 g(['arb_texture_compression-invalid-formats', 'bptc'], 'invalid formats')
2745 g(['bptc-float-modes'])
2746 g(['compressedteximage', 'GL_COMPRESSED_RGBA_BPTC_UNORM'])
2747 g(['compressedteximage', 'GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM'])
2748 g(['compressedteximage', 'GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT'])
2749 g(['compressedteximage', 'GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT'])
2750 g(['fbo-generatemipmap-formats', 'GL_ARB_texture_compression_bptc-unorm'],
2751 'fbo-generatemipmap-formats unorm')
2752 g(['fbo-generatemipmap-formats', 'GL_ARB_texture_compression_bptc-float'],
2753 'fbo-generatemipmap-formats float')
2754 add_texwrap_format_tests(g
, 'GL_ARB_texture_compression_bptc')
2756 with profile
.test_list
.group_manager(
2758 grouptools
.join('spec', 'ext_texture_compression_bptc')) as g
:
2759 g(['bptc-api_gles2'])
2761 with profile
.test_list
.group_manager(
2763 grouptools
.join('spec', 'ext_vertex_array_bgra')) as g
:
2764 g(['bgra-sec-color-pointer'], run_concurrent
=False)
2765 g(['bgra-vert-attrib-pointer'], run_concurrent
=False)
2767 with profile
.test_list
.group_manager(
2769 grouptools
.join('spec', 'apple_vertex_array_object')) as g
:
2770 g(['vao-01'], run_concurrent
=False)
2771 g(['vao-02'], run_concurrent
=False)
2772 g(['arb_vertex_array-isvertexarray', 'apple'], 'isvertexarray')
2774 with profile
.test_list
.group_manager(
2776 grouptools
.join('spec', 'arb_vertex_array_bgra')) as g
:
2777 g(['arb_vertex_array_bgra-api-errors'], 'api-errors', run_concurrent
=False)
2778 g(['arb_vertex_array_bgra-get'], 'get', run_concurrent
=False)
2780 with profile
.test_list
.group_manager(
2782 grouptools
.join('spec', 'arb_vertex_array_object')) as g
:
2783 g(['vao-element-array-buffer'])
2784 g(['arb_vertex_array-delete-object-0'], 'delete-object-0')
2785 g(['arb_vertex_array-isvertexarray'], 'isvertexarray')
2787 with profile
.test_list
.group_manager(
2789 grouptools
.join('spec', 'arb_vertex_buffer_object')) as g
:
2790 g(['arb_vertex_buffer_object-combined-vertex-index'],
2791 'combined-vertex-index')
2792 g(['arb_vertex_buffer_object-elements-negative-offset'],
2793 'elements-negative-offset')
2794 g(['arb_vertex_buffer_object-mixed-immediate-and-vbo'],
2795 'mixed-immediate-and-vbo')
2796 g(['arb_vertex_buffer_object-delete-mapped-buffer'])
2797 g(['arb_vertex_buffer_object-map-after-draw'])
2798 g(['arb_vertex_buffer_object-map-empty'])
2799 g(['arb_vertex_buffer_object-ib-data-sync'], 'ib-data-sync')
2800 g(['arb_vertex_buffer_object-ib-subdata-sync'], 'ib-subdata-sync')
2802 g(['vbo-bufferdata'])
2803 g(['vbo-map-remap'])
2804 g(['vbo-map-unsync'])
2805 g(['arb_vertex_buffer_object-vbo-subdata-many', 'drawarrays'],
2806 'vbo-subdata-many drawarrays')
2807 g(['arb_vertex_buffer_object-vbo-subdata-many', 'drawelements'],
2808 'vbo-subdata-many drawelements')
2809 g(['arb_vertex_buffer_object-vbo-subdata-many', 'drawrangeelements'],
2810 'vbo-subdata-many drawrangeelements')
2811 g(['vbo-subdata-sync'])
2812 g(['vbo-subdata-zero'])
2814 with profile
.test_list
.group_manager(
2816 grouptools
.join('spec', 'arb_vertex_program')) as g
:
2817 g(['arb_vertex_program-getenv4d-with-error'], 'getenv4d-with-error',
2818 run_concurrent
=False)
2819 g(['arb_vertex_program-getlocal4d-with-error'], 'getlocal4d-with-error',
2820 run_concurrent
=False)
2821 g(['arb_vertex_program-getlocal4f-max'], 'getlocal4f-max')
2822 g(['arb_vertex_program-getlocal4-errors'], 'getlocal4-errors')
2823 g(['clip-plane-transformation', 'arb'],
2824 'clip-plane-transformation arb')
2825 g(['arb_vertex_program-matrix-property-bindings'])
2826 g(['arb_vertex_program-minmax'], 'minmax')
2827 g(['arb_vertex_program-property-bindings'])
2828 g(['arb_vertex_program-unused-attributes'])
2829 g(['arb_vertex_program-get-limits-without-fp'], run_concurrent
=False)
2830 g(['vp-address-01'], run_concurrent
=False)
2831 g(['vp-address-02'], run_concurrent
=False)
2832 g(['vp-address-04'], run_concurrent
=False)
2833 g(['vp-bad-program'], run_concurrent
=False)
2834 g(['vp-max-array'], run_concurrent
=False)
2836 with profile
.test_list
.group_manager(
2838 grouptools
.join('spec', 'arb_viewport_array')) as g
:
2839 g(['arb_viewport_array-viewport-indices'], 'viewport-indices')
2840 g(['arb_viewport_array-depthrange-indices'], 'depthrange-indices')
2841 g(['arb_viewport_array-dlist'], 'display-list')
2842 g(['arb_viewport_array-scissor-check'], 'scissor-check')
2843 g(['arb_viewport_array-scissor-indices'], 'scissor-indices')
2844 g(['arb_viewport_array-bounds'], 'bounds')
2845 g(['arb_viewport_array-queries'], 'queries')
2846 g(['arb_viewport_array-minmax'], 'minmax')
2847 g(['arb_viewport_array-render-viewport'], 'render-viewport')
2848 g(['arb_viewport_array-render-viewport-2'], 'render-viewport-2')
2849 g(['arb_viewport_array-render-depthrange'], 'render-depthrange')
2850 g(['arb_viewport_array-render-scissor'], 'render-scissor')
2851 g(['arb_viewport_array-clear'], 'clear')
2853 with profile
.test_list
.group_manager(
2855 grouptools
.join('spec', 'oes_viewport_array')) as g
:
2856 g(['arb_viewport_array-viewport-indices_gles3'], 'viewport-indices')
2857 g(['arb_viewport_array-depthrange-indices_gles3'], 'depthrange-indices')
2858 g(['arb_viewport_array-scissor-check_gles3'], 'scissor-check')
2859 g(['arb_viewport_array-scissor-indices_gles3'], 'scissor-indices')
2860 g(['arb_viewport_array-bounds_gles3'], 'bounds')
2861 g(['arb_viewport_array-queries_gles3'], 'queries')
2862 g(['arb_viewport_array-minmax_gles3'], 'minmax')
2863 g(['arb_viewport_array-render-viewport_gles3'], 'render-viewport')
2864 g(['arb_viewport_array-render-viewport-2_gles3'], 'render-viewport-2')
2865 g(['arb_viewport_array-render-depthrange_gles3'], 'render-depthrange')
2866 g(['arb_viewport_array-render-scissor_gles3'], 'render-scissor')
2867 g(['arb_viewport_array-clear_gles3'], 'clear')
2869 with profile
.test_list
.group_manager(
2871 grouptools
.join('spec', 'nv_vertex_program2_option')) as g
:
2872 g(['vp-address-03'], run_concurrent
=False)
2873 g(['vp-address-05'], run_concurrent
=False)
2874 g(['vp-address-06'], run_concurrent
=False)
2875 g(['vp-clipdistance-01'], run_concurrent
=False)
2876 g(['vp-clipdistance-02'], run_concurrent
=False)
2877 g(['vp-clipdistance-03'], run_concurrent
=False)
2878 g(['vp-clipdistance-04'], run_concurrent
=False)
2880 with profile
.test_list
.group_manager(
2881 PiglitGLTest
, grouptools
.join('spec', 'ext_framebuffer_blit')) as g
:
2882 g(['fbo-blit'], run_concurrent
=False)
2883 g(['fbo-copypix'], run_concurrent
=False)
2884 g(['fbo-readdrawpix'], run_concurrent
=False)
2885 g(['fbo-sys-blit'], run_concurrent
=False)
2886 g(['fbo-sys-sub-blit'], run_concurrent
=False)
2887 g(['fbo-blit-check-limits'], run_concurrent
=False)
2888 g(['fbo-generatemipmap-versus-READ_FRAMEBUFFER'])
2890 with profile
.test_list
.group_manager(
2892 grouptools
.join('spec',
2893 'ext_framebuffer_multisample_blit_scaled')) as g
:
2894 g(['ext_framebuffer_multisample_blit_scaled-negative-blit-scaled'],
2895 'negative-blit-scaled')
2897 for sample_count
in MSAA_SAMPLE_COUNTS
:
2898 g(['ext_framebuffer_multisample_blit_scaled-blit-scaled',
2900 'blit-scaled samples={}'.format(sample_count
))
2902 for sample_count
in MSAA_SAMPLE_COUNTS
:
2903 g(['ext_framebuffer_multisample_blit_scaled-blit-scaled',
2904 sample_count
, 'array'],
2905 'blit-scaled samples={} with GL_TEXTURE_2D_MULTISAMPLE_ARRAY'.format(sample_count
))
2907 with profile
.test_list
.group_manager(
2909 grouptools
.join('spec', 'ext_framebuffer_multisample')) as g
:
2910 g(['ext_framebuffer_multisample-blit-mismatched-samples'],
2911 'blit-mismatched-samples')
2912 g(['ext_framebuffer_multisample-blit-mismatched-sizes'],
2913 'blit-mismatched-sizes')
2914 g(['ext_framebuffer_multisample-blit-mismatched-formats'],
2915 'blit-mismatched-formats')
2916 g(['ext_framebuffer_multisample-dlist'], 'dlist')
2917 g(['ext_framebuffer_multisample-enable-flag'], 'enable-flag')
2918 g(['ext_framebuffer_multisample-minmax'], 'minmax')
2919 g(['ext_framebuffer_multisample-negative-copypixels'],
2920 'negative-copypixels')
2921 g(['ext_framebuffer_multisample-negative-copyteximage'],
2922 'negative-copyteximage')
2923 g(['ext_framebuffer_multisample-negative-max-samples'],
2924 'negative-max-samples')
2925 g(['ext_framebuffer_multisample-negative-mismatched-samples'],
2926 'negative-mismatched-samples')
2927 g(['ext_framebuffer_multisample-negative-readpixels'],
2928 'negative-readpixels')
2929 g(['ext_framebuffer_multisample-renderbufferstorage-samples'],
2930 'renderbufferstorage-samples')
2931 g(['ext_framebuffer_multisample-renderbuffer-samples'],
2932 'renderbuffer-samples')
2933 g(['ext_framebuffer_multisample-samples'], 'samples')
2934 g(['ext_framebuffer_multisample-alpha-blending'], 'alpha-blending')
2935 g(['ext_framebuffer_multisample-alpha-blending', 'slow_cc'],
2936 'alpha-blending slow_cc')
2937 g(['ext_framebuffer_multisample-fast-clear'], 'fast-clear')
2939 for sample_count
in MSAA_SAMPLE_COUNTS
:
2940 g(['ext_framebuffer_multisample-alpha-blending-after-rendering',
2942 'alpha-blending-after-rendering {}'.format(sample_count
))
2944 for num_samples
in ['all_samples'] + MSAA_SAMPLE_COUNTS
:
2945 g(['ext_framebuffer_multisample-formats', num_samples
],
2946 'formats {}'.format(num_samples
))
2948 for test_type
in ('color', 'srgb', 'stencil_draw', 'stencil_resolve',
2949 'depth_draw', 'depth_resolve'):
2950 sensible_options
= ['small', 'depthstencil']
2951 if test_type
in ('color', 'srgb'):
2952 sensible_options
.append('linear')
2953 for options
in power_set(sensible_options
):
2954 g(['ext_framebuffer_multisample-accuracy', num_samples
,
2955 test_type
] + options
,
2956 ' '.join(['accuracy', num_samples
, test_type
] + options
))
2958 # Note: the interpolation tests also check for sensible behaviour with
2959 # non-multisampled framebuffers, so go ahead and test them with
2960 # num_samples==0 as well.
2961 for num_samples
in ['0'] + MSAA_SAMPLE_COUNTS
:
2962 g(['ext_framebuffer_multisample-blit-multiple-render-targets',
2964 'blit-multiple-render-targets {}'.format(num_samples
))
2966 for test_type
in ('non-centroid-disabled', 'centroid-disabled',
2967 'centroid-edges', 'non-centroid-deriv',
2968 'non-centroid-deriv-disabled', 'centroid-deriv',
2969 'centroid-deriv-disabled'):
2970 g(['ext_framebuffer_multisample-interpolation', num_samples
,
2972 'interpolation {} {}'.format(num_samples
, test_type
))
2974 for sample_count
in MSAA_SAMPLE_COUNTS
:
2975 g(['ext_framebuffer_multisample-turn-on-off', sample_count
],
2976 'turn-on-off {}'.format(sample_count
), run_concurrent
=False)
2978 for buffer_type
in ('color', 'depth', 'stencil'):
2979 if buffer_type
== 'color':
2980 sensible_options
= ['linear']
2982 sensible_options
= []
2984 for options
in power_set(sensible_options
):
2985 g(['ext_framebuffer_multisample-upsample', sample_count
,
2986 buffer_type
] + options
,
2987 'upsample {} {}'.format(
2988 sample_count
, ' '.join([buffer_type
] + options
)))
2989 g(['ext_framebuffer_multisample-multisample-blit',
2990 sample_count
, buffer_type
] + options
,
2991 'multisample-blit {}'.format(
2992 ' '.join([sample_count
, buffer_type
] + options
)))
2994 for blit_type
in ('msaa', 'upsample', 'downsample'):
2995 g(['ext_framebuffer_multisample-unaligned-blit',
2996 sample_count
, buffer_type
, blit_type
],
2997 'unaligned-blit {} {} {}'.format(
2998 sample_count
, buffer_type
, blit_type
))
3000 for test_mode
in ('inverted', 'non-inverted'):
3001 g(['ext_framebuffer_multisample-sample-coverage', sample_count
,
3003 'sample-coverage {} {}'.format(sample_count
, test_mode
))
3005 for buffer_type
in ('color', 'depth'):
3006 g(['ext_framebuffer_multisample-sample-alpha-to-coverage',
3007 sample_count
, buffer_type
],
3008 'sample-alpha-to-coverage {} {}'.format(
3009 sample_count
, buffer_type
))
3011 for test
in ['line-smooth', 'point-smooth', 'polygon-smooth',
3012 'sample-alpha-to-one',
3013 'draw-buffers-alpha-to-one',
3014 'draw-buffers-alpha-to-coverage',
3015 'alpha-to-coverage-dual-src-blend',
3016 'alpha-to-coverage-no-draw-buffer-zero',
3017 'alpha-to-coverage-no-draw-buffer-zero-write',
3018 'alpha-to-one-dual-src-blend',
3019 'int-draw-buffers-alpha-to-one',
3020 'int-draw-buffers-alpha-to-coverage',
3021 'alpha-to-one-msaa-disabled',
3022 'alpha-to-one-single-sample-buffer',
3023 'bitmap', 'polygon-stipple']:
3024 g(['ext_framebuffer_multisample-{}'.format(test
),
3026 '{} {}'.format(test
, sample_count
))
3028 for blit_type
in ('msaa', 'upsample', 'downsample', 'normal'):
3029 g(['ext_framebuffer_multisample-clip-and-scissor-blit',
3030 sample_count
, blit_type
],
3031 'clip-and-scissor-blit {} {}'.format(sample_count
, blit_type
))
3033 for flip_direction
in ('x', 'y'):
3034 g(['ext_framebuffer_multisample-blit-flipped', sample_count
,
3036 'blit-flipped {} {}'.format(sample_count
, flip_direction
))
3038 for buffer_type
in ('color', 'depth', 'stencil'):
3039 g(['ext_framebuffer_multisample-clear', sample_count
, buffer_type
],
3040 'clear {} {}'.format(sample_count
, buffer_type
))
3042 for test_type
in ('depth', 'depth-computed', 'stencil'):
3043 for buffer_config
in ('combined', 'separate', 'single'):
3044 g(['ext_framebuffer_multisample-no-color', sample_count
,
3045 test_type
, buffer_config
],
3046 'no-color {} {} {}'.format(
3047 sample_count
, test_type
, buffer_config
))
3049 with profile
.test_list
.group_manager(
3051 grouptools
.join('spec', 'amd_framebuffer_multisample_advanced')) as g
:
3052 g(['amd_framebuffer_multisample_advanced-api'], 'api-glcore')
3053 g(['amd_framebuffer_multisample_advanced-api-gles'], 'api-gles3')
3055 with profile
.test_list
.group_manager(
3057 grouptools
.join('spec', 'ext_framebuffer_object')) as g
:
3058 g(['fbo-generatemipmap-noimage'])
3061 g(['fbo-alphatest-formats'])
3062 g(['fbo-alphatest-nocolor'])
3063 g(['fbo-alphatest-nocolor-ff'])
3064 g(['fbo-blending-formats'])
3065 g(['fbo-blending-format-quirks'])
3066 g(['fbo-blending-snorm'])
3067 g(['fbo-bind-renderbuffer'])
3068 g(['fbo-clearmipmap'])
3069 g(['fbo-clear-formats'])
3070 g(['fbo-colormask-formats'])
3071 g(['fbo-copyteximage'])
3072 g(['fbo-copyteximage-simple'])
3075 g(['fbo-depth-sample-compare'])
3076 g(['fbo-drawbuffers'])
3077 g(['fbo-drawbuffers', 'masked-clear'])
3078 g(['fbo-drawbuffers-arbfp'])
3079 g(['fbo-drawbuffers-blend-add'])
3080 g(['fbo-drawbuffers-fragcolor'])
3081 g(['fbo-drawbuffers-maxtargets'])
3082 g(['ext_framebuffer_object-error-handling'])
3083 g(['fbo-finish-deleted'])
3085 g(['fbo-flushing-2'])
3086 g(['fbo-fragcoord'])
3087 g(['fbo-fragcoord2'])
3088 g(['fbo-generatemipmap'])
3089 g(['fbo-generatemipmap-filtering'])
3090 g(['fbo-generatemipmap-formats'])
3091 g(['fbo-generatemipmap-scissor'])
3092 g(['fbo-generatemipmap-swizzle'])
3093 g(['fbo-generatemipmap-nonsquare'])
3094 g(['fbo-generatemipmap-npot'])
3095 g(['fbo-generatemipmap-viewport'])
3097 g(['ext_framebuffer_object-mipmap'])
3098 g(['fbo-nodepth-test'])
3099 g(['fbo-nostencil-test'])
3100 g(['fbo-readpixels'])
3101 g(['fbo-readpixels-depth-formats'])
3102 g(['fbo-scissor-bitmap'])
3103 g(['fbo-storage-completeness'])
3104 g(['fbo-storage-formats'])
3105 g(['getteximage-formats', 'init-by-rendering'])
3106 g(['getteximage-formats', 'init-by-clear-and-render'])
3107 g(['ext_framebuffer_multisample-fast-clear', 'single-sample'],
3109 g(['ext_framebuffer_object-border-texture-finish'])
3110 add_fbo_stencil_tests(g
, 'GL_STENCIL_INDEX1')
3111 add_fbo_stencil_tests(g
, 'GL_STENCIL_INDEX4')
3112 add_fbo_stencil_tests(g
, 'GL_STENCIL_INDEX8')
3113 add_fbo_stencil_tests(g
, 'GL_STENCIL_INDEX16')
3116 with profile
.test_list
.group_manager(
3118 grouptools
.join('spec', 'ext_gpu_shader4')) as g
:
3119 g(['gl-3.1-mixed-int-float-fbo', 'ext_gpu_shader4'], 'bindfragdatalocation mixed-int-float-fbo')
3120 g(['gl-3.1-mixed-int-float-fbo', 'ext_gpu_shader4', 'int_second'], 'bindfragdatalocation mixed-int-float-fbo int_second')
3121 g(['ext_gpu_shader4-vertexid-beginend'])
3122 g(['ext_gpu_shader4-vertexid-drawarrays'])
3123 g(['ext_gpu_shader4-vertexid-drawelements'])
3125 for test
in ['1DArray', '2DArray', '1DArrayShadow', '2DArrayShadow', 'CubeShadow']:
3126 g(['tex-miplevel-selection', 'GPU4texture()', test
])
3127 g(['tex-miplevel-selection', 'GPU4texture(bias)', test
])
3129 for stage
in ['1DArray', '2DArray', '1DArrayShadow']:
3130 g(['tex-miplevel-selection', 'GPU4textureLod', stage
])
3132 for stage
in ['1D', '2D', '3D', '2DRect', '2DRectShadow', '1DShadow',
3133 '2DShadow', '1DArray', '2DArray', '1DArrayShadow',
3135 g(['tex-miplevel-selection', 'GPU4textureOffset', stage
])
3137 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '2DRect',
3138 '2DRect_ProjVec4', '2DRectShadow', '1DShadow', '2DShadow']:
3139 g(['tex-miplevel-selection', 'GPU4textureProjOffset', stage
])
3141 for stage
in ['1D', '1D_ProjVec4', '2D', '2D_ProjVec4', '3D', '1DShadow',
3143 g(['tex-miplevel-selection', 'GPU4textureProjOffset(bias)', stage
])
3145 for stage
in ['1D', '2D', '3D', 'Cube', '2DRect', '2DRectShadow',
3146 '1DShadow', '2DShadow', 'CubeShadow', '1DArray', '2DArray',
3147 '1DArrayShadow', '2DArrayShadow', 'CubeArray']:
3148 g(['tex-miplevel-selection', 'GPU4textureGrad', stage
])
3150 for stage
in ['1D', '2D', '3D', '2DRect', '2DRectShadow', '1DShadow',
3151 '2DShadow', '1DArray', '2DArray', '1DArrayShadow',
3153 g(['tex-miplevel-selection', 'GPU4textureGradOffset', stage
])
3155 for stage
in ['1D', '2D', '3D', '1D_ProjVec4', '2D_ProjVec4', '2DRect',
3156 '2DRect_ProjVec4', '1DShadow', '2DShadow', '2DRectShadow']:
3157 g(['tex-miplevel-selection', 'GPU4textureProjGrad', stage
])
3158 g(['tex-miplevel-selection', 'GPU4textureProjGradOffset', stage
])
3160 for stage
in ['1D', '2D', '3D', '1DShadow', '2DShadow', '1DArray',
3161 '2DArray', '1DArrayShadow']:
3162 g(['tex-miplevel-selection', 'GPU4textureLodOffset', stage
])
3164 for stage
in ['1D', '2D', '3D', '1D_ProjVec4', '2D_ProjVec4', '1DShadow',
3166 g(['tex-miplevel-selection', 'GPU4textureProjLodOffset', stage
])
3168 with profile
.test_list
.group_manager(
3169 PiglitGLTest
, grouptools
.join('spec', 'ext_image_dma_buf_import')) as \
3171 g(['ext_image_dma_buf_import-invalid_hints'], run_concurrent
=False)
3172 g(['ext_image_dma_buf_import-invalid_attributes'], run_concurrent
=False)
3173 g(['ext_image_dma_buf_import-missing_attributes'], run_concurrent
=False)
3174 g(['ext_image_dma_buf_import-ownership_transfer'], run_concurrent
=False)
3175 g(['ext_image_dma_buf_import-unsupported_format'], run_concurrent
=False)
3176 g(['ext_image_dma_buf_import-intel_external_sampler_only'],
3177 run_concurrent
=False)
3178 g(['ext_image_dma_buf_import-refcount'])
3179 g(['ext_image_dma_buf_import-sample_rgb', '-fmt=AR24'],
3180 'ext_image_dma_buf_import-sample_argb8888', run_concurrent
=False)
3181 g(['ext_image_dma_buf_import-sample_rgb', '-fmt=XR24', '-alpha-one'],
3182 'ext_image_dma_buf_import-sample_xrgb8888', run_concurrent
=False)
3183 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=NV12'],
3184 'ext_image_dma_buf_import-sample_nv12', run_concurrent
=False)
3185 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=YU12'],
3186 'ext_image_dma_buf_import-sample_yuv420', run_concurrent
=False)
3187 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=YV12'],
3188 'ext_image_dma_buf_import-sample_yvu420', run_concurrent
=False)
3189 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=AYUV'],
3190 'ext_image_dma_buf_import-sample_ayuv', run_concurrent
=False)
3191 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=XYUV'],
3192 'ext_image_dma_buf_import-sample_xyuv', run_concurrent
=False)
3193 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=P010'],
3194 'ext_image_dma_buf_import-sample_p010', run_concurrent
=False)
3195 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=P012'],
3196 'ext_image_dma_buf_import-sample_p012', run_concurrent
=False)
3197 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=P016'],
3198 'ext_image_dma_buf_import-sample_p016', run_concurrent
=False)
3199 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y210'],
3200 'ext_image_dma_buf_import-sample_y210', run_concurrent
=False)
3201 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y212'],
3202 'ext_image_dma_buf_import-sample_y212', run_concurrent
=False)
3203 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y216'],
3204 'ext_image_dma_buf_import-sample_y216', run_concurrent
=False)
3205 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y410'],
3206 'ext_image_dma_buf_import-sample_y410', run_concurrent
=False)
3207 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y412'],
3208 'ext_image_dma_buf_import-sample_y412', run_concurrent
=False)
3209 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=Y416'],
3210 'ext_image_dma_buf_import-sample_y416', run_concurrent
=False)
3211 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=YUYV'],
3212 'ext_image_dma_buf_import-sample_yuyv', run_concurrent
=False)
3213 g(['ext_image_dma_buf_import-sample_yuv', '-fmt=UYVY'],
3214 'ext_image_dma_buf_import-sample_uyvy', run_concurrent
=False)
3215 g(['ext_image_dma_buf_import-transcode-nv12-as-r8-gr88'],
3216 'ext_image_dma_buf_import-transcode-nv12-as-r8-gr88',
3217 run_concurrent
=False)
3218 g(['ext_image_dma_buf_import-export'], run_concurrent
=False)
3219 g(['ext_image_dma_buf_import-export-tex'], run_concurrent
=False)
3220 g(['ext_image_dma_buf_import-reimport-bug'], run_concurrent
=False)
3222 with profile
.test_list
.group_manager(
3224 grouptools
.join('spec', 'ext_packed_depth_stencil')) as g
:
3225 g(['fbo-blit-d24s8'], run_concurrent
=False)
3226 g(['fbo-clear-formats', 'GL_EXT_packed_depth_stencil', 'stencil'],
3227 'fbo-clear-formats stencil')
3228 g(['ext_packed_depth_stencil-depth-stencil-texture'],
3229 'DEPTH_STENCIL texture')
3230 g(['ext_packed_depth_stencil-errors'], 'errors')
3231 g(['ext_packed_depth_stencil-getteximage'], 'getteximage')
3232 g(['ext_packed_depth_stencil-readdrawpixels'], 'readdrawpixels')
3233 g(['ext_packed_depth_stencil-texsubimage'], 'texsubimage')
3234 g(['ext_packed_depth_stencil-readpixels-24_8'], 'readpixels-24_8',
3235 run_concurrent
=False)
3236 add_depthstencil_render_miplevels_tests(
3238 ['s=z24_s8', 'd=z24_s8', 'd=z24_s8_s=z24_s8', 'd=z24_s=z24_s8',
3239 's=z24_s8_d=z24_s8', 's=z24_s8_d=z24', 'd=s=z24_s8', 's=d=z24_s8',
3241 add_fbo_stencil_tests(g
, 'GL_DEPTH24_STENCIL8')
3242 add_texwrap_format_tests(g
, 'GL_EXT_packed_depth_stencil')
3243 add_fbo_depth_tests(g
, 'GL_DEPTH24_STENCIL8')
3244 add_fbo_formats_tests(g
, 'GL_EXT_packed_depth_stencil')
3245 add_fbo_depthstencil_tests(g
, 'GL_DEPTH24_STENCIL8', 0)
3247 with profile
.test_list
.group_manager(
3249 grouptools
.join('spec', 'oes_packed_depth_stencil')) as g
:
3250 g(['oes_packed_depth_stencil-depth-stencil-texture_gles2'],
3251 'DEPTH_STENCIL texture GLES2')
3252 g(['oes_packed_depth_stencil-depth-stencil-texture_gles1'],
3253 'DEPTH_STENCIL texture GLES1')
3255 with profile
.test_list
.group_manager(
3257 grouptools
.join('spec', 'oes_required_internalformat')) as g
:
3258 g(['oes_required_internalformat-renderbuffer'], 'renderbuffer')
3260 with profile
.test_list
.group_manager(
3262 grouptools
.join('spec', 'ext_occlusion_query_boolean')) as g
:
3263 g(['ext_occlusion_query_boolean-any-samples'], 'any-samples')
3265 with profile
.test_list
.group_manager(
3267 grouptools
.join('spec', 'ext_disjoint_timer_query')) as g
:
3268 g(['ext_disjoint_timer_query-simple'], 'simple')
3270 with profile
.test_list
.group_manager(
3272 grouptools
.join('spec', 'ext_texture_norm16')) as g
:
3273 g(['ext_texture_norm16-render'], 'render')
3275 with profile
.test_list
.group_manager(
3277 grouptools
.join('spec', 'ext_render_snorm')) as g
:
3278 g(['ext_render_snorm-render'], 'render')
3280 with profile
.test_list
.group_manager(
3282 grouptools
.join('spec', 'ext_frag_depth')) as g
:
3283 g(['fragdepth_gles2'])
3285 with profile
.test_list
.group_manager(
3287 grouptools
.join('spec', 'ext_texture_array')) as g
:
3288 g(['fbo-generatemipmap-array'])
3289 g(['fbo-generatemipmap-array', 'RGB9_E5'])
3290 g(['fbo-generatemipmap-array', 'S3TC_DXT1'])
3291 g(['ext_texture_array-maxlayers'], 'maxlayers')
3292 g(['ext_texture_array-gen-mipmap'], 'gen-mipmap')
3293 g(['fbo-array'], run_concurrent
=False)
3294 g(['array-texture'], run_concurrent
=False)
3295 g(['ext_texture_array-errors'])
3296 g(['getteximage-targets', '1D_ARRAY'])
3297 g(['getteximage-targets', '2D_ARRAY'])
3298 g(['texsubimage', 'array'])
3299 add_msaa_visual_plain_tests(g
, ['copyteximage', '1D_ARRAY'],
3300 run_concurrent
=False)
3301 add_msaa_visual_plain_tests(g
, ['copyteximage', '2D_ARRAY'],
3302 run_concurrent
=False)
3303 for test
in ('depth-clear', 'depth-layered-clear', 'depth-draw',
3304 'fs-writes-depth', 'stencil-clear', 'stencil-layered-clear',
3305 'stencil-draw', 'fs-writes-stencil'):
3306 g(['fbo-depth-array', test
])
3307 for test_mode
in ['teximage', 'texsubimage']:
3308 g(['ext_texture_array-compressed', test_mode
, '-fbo'],
3309 'compressed {0}'.format(test_mode
),
3310 run_concurrent
=False)
3311 g(['ext_texture_array-compressed', test_mode
, 'pbo', '-fbo'],
3312 'compressed {0} pbo'.format(test_mode
),
3313 run_concurrent
=False)
3315 with profile
.test_list
.group_manager(
3317 grouptools
.join('spec', 'arb_texture_cube_map')) as g
:
3318 g(['arb_texture_cube_map-unusual-order'], run_concurrent
=False)
3319 g(['cubemap'], run_concurrent
=False)
3320 g(['cubemap-getteximage-pbo'])
3321 g(['cubemap-mismatch'], run_concurrent
=False)
3322 g(['cubemap', 'npot'], 'cubemap npot', run_concurrent
=False)
3323 g(['cubemap-shader'], run_concurrent
=False)
3324 g(['cubemap-shader', 'lod'], 'cubemap-shader lod', run_concurrent
=False)
3325 g(['cubemap-shader', 'bias'], 'cubemap-shader bias', run_concurrent
=False)
3326 g(['getteximage-targets', 'CUBE'])
3327 add_msaa_visual_plain_tests(g
, ['copyteximage', 'CUBE'],
3328 run_concurrent
=False)
3330 with profile
.test_list
.group_manager(
3332 grouptools
.join('spec', 'arb_texture_cube_map_array')) as g
:
3333 g(['arb_texture_cube_map_array-get'], run_concurrent
=False)
3334 g(['arb_texture_cube_map_array-teximage3d-invalid-values'],
3335 run_concurrent
=False)
3336 g(['arb_texture_cube_map_array-cubemap'], run_concurrent
=False)
3337 g(['arb_texture_cube_map_array-cubemap-lod'], run_concurrent
=False)
3338 g(['arb_texture_cube_map_array-fbo-cubemap-array'], run_concurrent
=False)
3339 g(['arb_texture_cube_map_array-sampler-cube-array-shadow'],
3340 run_concurrent
=False)
3341 g(['getteximage-targets', 'CUBE_ARRAY'])
3342 g(['glsl-resource-not-bound', 'CubeArray'])
3343 g(['fbo-generatemipmap-cubemap', 'array'])
3344 g(['fbo-generatemipmap-cubemap', 'array', 'RGB9_E5'])
3345 g(['fbo-generatemipmap-cubemap', 'array', 'S3TC_DXT1'])
3346 g(['texsubimage', 'cube_map_array'])
3348 for stage
in ['vs', 'gs', 'fs', 'tes']:
3350 for sampler
in['samplerCubeArray', 'isamplerCubeArray',
3351 'usamplerCubeArray', 'samplerCubeArrayShadow']:
3352 g(['textureSize', stage
, sampler
],
3353 grouptools
.join('textureSize', '{}-textureSize-{}'.format(
3356 with profile
.test_list
.group_manager(
3358 grouptools
.join('spec', 'ext_texture_swizzle')) as g
:
3359 g(['ext_texture_swizzle-api'])
3360 g(['ext_texture_swizzle-swizzle'])
3361 g(['depth_texture_mode_and_swizzle'], 'depth_texture_mode_and_swizzle')
3363 with profile
.test_list
.group_manager(
3365 grouptools
.join('spec', 'ext_texture_compression_latc')) as g
:
3366 g(['arb_texture_compression-invalid-formats', 'latc'], 'invalid formats')
3367 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_latc'],
3368 'fbo-generatemipmap-formats')
3369 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_latc-signed'],
3370 'fbo-generatemipmap-formats-signed')
3371 add_texwrap_format_tests(g
, 'GL_EXT_texture_compression_latc')
3373 with profile
.test_list
.group_manager(
3375 grouptools
.join('spec', 'ext_texture_compression_rgtc')) as g
:
3376 g(['compressedteximage', 'GL_COMPRESSED_RED_RGTC1_EXT'])
3377 g(['compressedteximage', 'GL_COMPRESSED_RED_GREEN_RGTC2_EXT'])
3378 g(['compressedteximage', 'GL_COMPRESSED_SIGNED_RED_RGTC1_EXT'])
3379 g(['compressedteximage', 'GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT'])
3380 g(['arb_texture_compression-invalid-formats', 'rgtc'], 'invalid formats')
3381 g(['rgtc-teximage-01'], run_concurrent
=False)
3382 g(['rgtc-teximage-02'], run_concurrent
=False)
3383 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_rgtc'],
3384 'fbo-generatemipmap-formats')
3385 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_rgtc-signed'],
3386 'fbo-generatemipmap-formats-signed')
3387 add_texwrap_format_tests(g
, 'GL_EXT_texture_compression_rgtc')
3388 g(['rgtc-api_gles2'])
3390 with profile
.test_list
.group_manager(
3392 grouptools
.join('spec', 'ext_texture_compression_s3tc')) as g
:
3393 g(['compressedteximage', 'GL_COMPRESSED_RGB_S3TC_DXT1_EXT'])
3394 g(['compressedteximage', 'GL_COMPRESSED_RGBA_S3TC_DXT1_EXT'])
3395 g(['compressedteximage', 'GL_COMPRESSED_RGBA_S3TC_DXT3_EXT'])
3396 g(['compressedteximage', 'GL_COMPRESSED_RGBA_S3TC_DXT5_EXT'])
3397 g(['arb_texture_compression-invalid-formats', 's3tc'], 'invalid formats')
3398 g(['gen-compressed-teximage'], run_concurrent
=False)
3400 g(['s3tc-errors_gles2'])
3401 g(['s3tc-targeted'])
3402 g(['s3tc-teximage'], run_concurrent
=False)
3403 g(['s3tc-teximage_gles2'], run_concurrent
=False)
3404 g(['s3tc-texsubimage'], run_concurrent
=False)
3405 g(['s3tc-texsubimage_gles2'], run_concurrent
=False)
3406 g(['getteximage-targets', '2D', 'S3TC'])
3407 g(['getteximage-targets', '2D_ARRAY', 'S3TC'])
3408 g(['getteximage-targets', 'CUBE', 'S3TC'])
3409 g(['getteximage-targets', 'CUBE_ARRAY', 'S3TC'])
3410 g(['compressedteximage', 'GL_COMPRESSED_SRGB_S3TC_DXT1_EXT'])
3411 g(['compressedteximage', 'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT'])
3412 g(['compressedteximage', 'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT'])
3413 g(['compressedteximage', 'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT'])
3414 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_compression_s3tc'],
3415 'fbo-generatemipmap-formats')
3416 add_texwrap_format_tests(g
, 'GL_EXT_texture_compression_s3tc')
3418 with profile
.test_list
.group_manager(
3420 grouptools
.join('spec', 'ati_texture_compression_3dc')) as g
:
3421 g(['arb_texture_compression-invalid-formats', '3dc'], 'invalid formats')
3422 g(['fbo-generatemipmap-formats', 'GL_ATI_texture_compression_3dc'],
3423 'fbo-generatemipmap-formats')
3424 add_texwrap_format_tests(g
, 'GL_ATI_texture_compression_3dc')
3426 with profile
.test_list
.group_manager(
3428 grouptools
.join('spec', 'ext_packed_float')) as g
:
3429 g(['ext_packed_float-pack'], 'pack')
3430 g(['query-rgba-signed-components'], 'query-rgba-signed-components')
3431 g(['getteximage-invalid-format-for-packed-type'],
3432 'getteximage-invalid-format-for-packed-type')
3433 add_msaa_formats_tests(g
, 'GL_EXT_packed_float')
3434 add_texwrap_format_tests(g
, 'GL_EXT_packed_float')
3435 add_fbo_formats_tests(g
, 'GL_EXT_packed_float')
3437 with profile
.test_list
.group_manager(
3439 grouptools
.join('spec', 'arb_texture_float')) as g
:
3440 g(['arb_texture_float-texture-float-formats'], run_concurrent
=False)
3441 g(['arb_texture_float-get-tex3d'], run_concurrent
=False)
3442 add_msaa_formats_tests(g
, 'GL_ARB_texture_float')
3443 add_texwrap_format_tests(g
, 'GL_ARB_texture_float')
3444 add_fbo_formats_tests(g
, 'GL_ARB_texture_float')
3446 with profile
.test_list
.group_manager(
3448 grouptools
.join('spec', 'oes_texture_float')) as g
:
3449 g(['oes_texture_float'])
3450 g(['oes_texture_float', 'half'])
3451 g(['oes_texture_float', 'linear'])
3452 g(['oes_texture_float', 'half', 'linear'])
3455 with profile
.test_list
.group_manager(
3457 grouptools
.join('spec', 'ext_texture_integer')) as g
:
3458 g(['ext_texture_integer-api-drawpixels'], 'api-drawpixels')
3459 g(['ext_texture_integer-api-teximage'], 'api-teximage')
3460 g(['ext_texture_integer-api-readpixels'], 'api-readpixels')
3461 g(['ext_texture_integer-fbo-blending'], 'fbo-blending')
3462 g(['ext_texture_integer-fbo-blending', 'GL_ARB_texture_rg'],
3463 'fbo-blending GL_ARB_texture_rg')
3464 g(['ext_texture_integer-fbo_integer_precision_clear'],
3465 'fbo_integer_precision_clear', run_concurrent
=False)
3466 g(['ext_texture_integer-fbo_integer_readpixels_sint_uint'],
3467 'fbo_integer_readpixels_sint_uint', run_concurrent
=False)
3468 g(['ext_texture_integer-getteximage-clamping'], 'getteximage-clamping')
3469 g(['ext_texture_integer-getteximage-clamping', 'GL_ARB_texture_rg'],
3470 'getteximage-clamping GL_ARB_texture_rg')
3471 g(['ext_texture_integer-texformats']),
3472 g(['ext_texture_integer-texture_integer_glsl130'],
3473 'texture_integer_glsl130')
3474 g(['fbo-integer'], run_concurrent
=False)
3475 # TODO: unsupported for int yet
3476 # g(['fbo-clear-formats', 'GL_EXT_texture_integer'], 'fbo-clear-formats')
3477 add_msaa_formats_tests(g
, 'GL_EXT_texture_integer')
3478 add_texwrap_format_tests(g
, 'GL_EXT_texture_integer')
3480 with profile
.test_list
.group_manager(
3482 grouptools
.join('spec', 'arb_texture_rg')) as g
:
3483 g(['depth-tex-modes-rg'], run_concurrent
=False)
3484 g(['rg-draw-pixels'], run_concurrent
=False)
3485 g(['rg-teximage-01'], run_concurrent
=False)
3486 g(['rg-teximage-02'], run_concurrent
=False)
3487 g(['texture-rg'], run_concurrent
=False)
3488 # TODO: unsupported for int yet
3489 # g(['fbo-clear-formats', 'GL_ARB_texture_rg-int'],
3490 # 'fbo-clear-formats-int')
3491 add_msaa_formats_tests(g
, 'GL_ARB_texture_rg')
3492 add_msaa_formats_tests(g
, 'GL_ARB_texture_rg-int')
3493 add_msaa_formats_tests(g
, 'GL_ARB_texture_rg-float')
3494 add_texwrap_format_tests(g
, 'GL_ARB_texture_rg')
3495 add_texwrap_format_tests(g
, 'GL_ARB_texture_rg-float', '-float')
3496 add_texwrap_format_tests(g
, 'GL_ARB_texture_rg-int', '-int')
3498 for format
in ['GL_RED', 'GL_R8', 'GL_R16', 'GL_RG', 'GL_RG8', 'GL_RG16']:
3499 g(['fbo-rg', format
], "fbo-rg-{}".format(format
))
3500 add_fbo_formats_tests(g
, 'GL_ARB_texture_rg')
3501 add_fbo_formats_tests(g
, 'GL_ARB_texture_rg-float', '-float')
3503 with profile
.test_list
.group_manager(
3505 grouptools
.join('spec', 'arb_texture_rgb10_a2ui')) as g
:
3506 g(['ext_texture_integer-fbo-blending', 'GL_ARB_texture_rgb10_a2ui'],
3508 add_texwrap_format_tests(g
, 'GL_ARB_texture_rgb10_a2ui')
3510 with profile
.test_list
.group_manager(
3512 grouptools
.join('spec', 'ext_texture_shared_exponent')) as g
:
3513 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_shared_exponent'],
3514 'fbo-generatemipmap-formats')
3515 add_texwrap_format_tests(g
, 'GL_EXT_texture_shared_exponent')
3517 with profile
.test_list
.group_manager(
3519 grouptools
.join('spec', 'ext_texture_snorm')) as g
:
3520 add_msaa_formats_tests(g
, 'GL_EXT_texture_snorm')
3521 add_texwrap_format_tests(g
, 'GL_EXT_texture_snorm')
3522 add_fbo_formats_tests(g
, 'GL_EXT_texture_snorm')
3524 with profile
.test_list
.group_manager(
3525 PiglitGLTest
, grouptools
.join('spec', 'ext_texture_srgb')) as g
:
3526 g(['fbo-srgb'], run_concurrent
=False)
3527 g(['tex-srgb'], run_concurrent
=False)
3528 g(['arb_texture_compression-invalid-formats', 'srgb'], 'invalid formats')
3529 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_sRGB'],
3530 'fbo-generatemipmap-formats')
3531 g(['fbo-generatemipmap-formats', 'GL_EXT_texture_sRGB-s3tc'],
3532 'fbo-generatemipmap-formats-s3tc')
3533 # TODO: also use GL_ARB_framebuffer_sRGB:
3534 # g(['fbo-blending-formats', 'GL_EXT_texture_sRGB'],
3535 # 'fbo-blending-formats')
3536 g(['fbo-alphatest-formats', 'GL_EXT_texture_sRGB'],
3537 'fbo-alphatest-formats')
3538 g(['ext_framebuffer_multisample-fast-clear',
3539 'GL_EXT_texture_sRGB',
3542 add_msaa_formats_tests(g
, 'GL_EXT_texture_sRGB')
3543 add_texwrap_format_tests(g
, 'GL_EXT_texture_sRGB')
3544 add_texwrap_format_tests(g
, 'GL_EXT_texture_sRGB-s3tc', '-s3tc')
3546 with profile
.test_list
.group_manager(
3547 PiglitGLTest
, grouptools
.join('spec', 'ext_timer_query')) as g
:
3548 g(['ext_timer_query-time-elapsed'], 'time-elapsed', run_concurrent
=False)
3549 g(['timer_query'], run_concurrent
=False)
3551 with profile
.test_list
.group_manager(
3552 PiglitGLTest
, grouptools
.join('spec', 'arb_timer_query')) as g
:
3553 g(['ext_timer_query-time-elapsed', 'timestamp'], 'query GL_TIMESTAMP', run_concurrent
=False)
3554 g(['ext_timer_query-lifetime'], 'query-lifetime')
3555 g(['arb_timer_query-timestamp-get'], 'timestamp-get', run_concurrent
=False)
3557 with profile
.test_list
.group_manager(
3558 PiglitGLTest
, grouptools
.join('spec', 'ext_transform_feedback')) as g
:
3559 for mode
in ['interleaved_ok_base', 'interleaved_ok_range',
3560 'interleaved_ok_offset', 'interleaved_unbound',
3561 'interleaved_no_varyings', 'separate_ok_1',
3562 'separate_unbound_0_1', 'separate_ok_2',
3563 'separate_unbound_0_2', 'separate_unbound_1_2',
3564 'separate_no_varyings', 'no_prog_active', 'begin_active',
3565 'useprog_active', 'link_current_active', 'link_other_active',
3566 'bind_base_active', 'bind_range_active', 'bind_offset_active',
3567 'end_inactive', 'bind_base_max', 'bind_range_max',
3568 'bind_offset_max', 'bind_range_size_m4', 'bind_range_size_0',
3569 'bind_range_size_1', 'bind_range_size_2', 'bind_range_size_3',
3570 'bind_range_size_5', 'bind_range_offset_1',
3571 'bind_range_offset_2', 'bind_range_offset_3',
3572 'bind_range_offset_5', 'bind_offset_offset_1',
3573 'bind_offset_offset_2', 'bind_offset_offset_3',
3574 'bind_offset_offset_5', 'not_a_program',
3575 'useprogstage_noactive', 'useprogstage_active',
3577 g(['ext_transform_feedback-api-errors', mode
],
3578 'api-errors {}'.format(mode
))
3580 for varying
in ['gl_Color', 'gl_SecondaryColor', 'gl_TexCoord',
3581 'gl_FogFragCoord', 'gl_Position', 'gl_PointSize',
3582 'gl_ClipVertex', 'gl_ClipDistance',
3583 'gl_ClipDistance[1]-no-subscript',
3584 'gl_ClipDistance[2]-no-subscript',
3585 'gl_ClipDistance[3]-no-subscript',
3586 'gl_ClipDistance[4]-no-subscript',
3587 'gl_ClipDistance[5]-no-subscript',
3588 'gl_ClipDistance[6]-no-subscript',
3589 'gl_ClipDistance[7]-no-subscript',
3590 'gl_ClipDistance[8]-no-subscript',
3592 g(['ext_transform_feedback-builtin-varyings', varying
],
3593 'builtin-varyings {}'.format(varying
), run_concurrent
=False)
3595 for mode
in ['main_binding', 'indexed_binding', 'buffer_start',
3597 g(['ext_transform_feedback-get-buffer-state', mode
],
3598 'get-buffer-state {}'.format(mode
))
3600 for mode
in ['output', 'prims_generated', 'prims_written']:
3601 g(['ext_transform_feedback-intervening-read', mode
],
3602 'intervening-read {0}'.format(mode
))
3603 g(['ext_transform_feedback-intervening-read', mode
, 'use_gs'],
3604 'intervening-read {0} use_gs'.format(mode
))
3606 for drawcall
in ['arrays', 'elements']:
3607 for mode
in ['triangles', 'lines', 'points']:
3608 g(['ext_transform_feedback-order', drawcall
, mode
],
3609 'order {0} {1}'.format(drawcall
, mode
))
3611 for draw_mode
in ['points', 'lines', 'line_loop', 'line_strip',
3612 'triangles', 'triangle_strip', 'triangle_fan',
3613 'quads', 'quad_strip', 'polygon']:
3614 for shade_mode
in ['monochrome', 'smooth', 'flat_first', 'flat_last',
3616 if (draw_mode
in ['points', 'lines', 'line_loop', 'line_strip'] and
3617 shade_mode
== 'wireframe'):
3619 g(['ext_transform_feedback-tessellation', draw_mode
, shade_mode
],
3620 'tessellation {0} {1}'.format(draw_mode
, shade_mode
))
3622 for alignment
in [0, 4, 8, 12]:
3623 g(['ext_transform_feedback-alignment', str(alignment
)],
3624 'alignment {0}'.format(alignment
))
3626 for output_type
in ['float', 'vec2', 'vec3', 'vec4', 'mat2', 'mat2x3',
3627 'mat2x4', 'mat3x2', 'mat3', 'mat3x4', 'mat4x2',
3628 'mat4x3', 'mat4', 'int', 'ivec2', 'ivec3', 'ivec4',
3629 'uint', 'uvec2', 'uvec3', 'uvec4']:
3630 for suffix
in ['', '[2]', '[2]-no-subscript']:
3631 g(['ext_transform_feedback-output-type', output_type
, suffix
],
3632 'output-type {0}{1}'.format(output_type
, suffix
))
3634 for mode
in ['discard', 'buffer', 'prims_generated', 'prims_written']:
3635 g(['ext_transform_feedback-generatemipmap', mode
],
3636 'generatemipmap {0}'.format(mode
))
3638 for test_case
in ['base-shrink', 'base-grow', 'offset-shrink',
3639 'offset-grow', 'range-shrink', 'range-grow']:
3640 g(['ext_transform_feedback-change-size', test_case
],
3641 'change-size {0}'.format(test_case
))
3643 for api_suffix
, possible_options
in [('', [[], ['interface']]),
3645 if api_suffix
== '_gles3':
3646 subtest_list
= ['basic-struct']
3648 subtest_list
= ['basic-struct', 'struct-whole-array',
3649 'struct-array-elem', 'array-struct',
3650 'array-struct-whole-array',
3651 'array-struct-array-elem', 'struct-struct',
3652 'array-struct-array-struct']
3653 for subtest
in subtest_list
:
3654 for mode
in ['error', 'get', 'run', 'run-no-fs']:
3655 for options
in possible_options
:
3656 g(['ext_transform_feedback-structs{0}'.format(api_suffix
),
3657 subtest
, mode
] + options
,
3658 'structs{0} {1}'.format(
3659 api_suffix
, ' '.join([subtest
, mode
] + options
)))
3661 g(['ext_transform_feedback-buffer-usage'], 'buffer-usage')
3662 g(['ext_transform_feedback-discard-api'], 'discard-api')
3663 g(['ext_transform_feedback-discard-bitmap'], 'discard-bitmap')
3664 g(['ext_transform_feedback-discard-clear'], 'discard-clear')
3665 g(['ext_transform_feedback-discard-copypixels'], 'discard-copypixels')
3666 g(['ext_transform_feedback-discard-drawarrays'], 'discard-drawarrays')
3667 g(['ext_transform_feedback-discard-drawpixels'], 'discard-drawpixels')
3668 g(['ext_transform_feedback-immediate-reuse'], 'immediate-reuse')
3669 g(['ext_transform_feedback-immediate-reuse-index-buffer'],
3670 'immediate-reuse-index-buffer')
3671 g(['ext_transform_feedback-immediate-reuse-uniform-buffer'],
3672 'immediate-reuse-uniform-buffer')
3673 g(['ext_transform_feedback-max-varyings'], 'max-varyings')
3674 g(['ext_transform_feedback-nonflat-integral'], 'nonflat-integral')
3675 g(['ext_transform_feedback-overflow-edge-cases'], 'overflow-edge-cases')
3676 g(['ext_transform_feedback-overflow-edge-cases', 'use_gs'],
3677 'overflow-edge-cases use_gs')
3678 g(['ext_transform_feedback-points'], 'points')
3679 g(['ext_transform_feedback-points', 'large'], 'points-large')
3680 g(['ext_transform_feedback-position'], 'position-readback-bufferbase')
3681 g(['ext_transform_feedback-position', 'discard'],
3682 'position-readback-bufferbase-discard')
3683 g(['ext_transform_feedback-position', 'offset'],
3684 'position-readback-bufferoffset')
3685 g(['ext_transform_feedback-position', 'offset', 'discard'],
3686 'position-readback-bufferoffset-discard')
3687 g(['ext_transform_feedback-position', 'range'],
3688 'position-readback-bufferrange')
3689 g(['ext_transform_feedback-position', 'range', 'discard'],
3690 'position-readback-bufferrange-discard')
3691 g(['ext_transform_feedback-negative-prims'], 'negative-prims')
3692 g(['ext_transform_feedback-primgen'],
3693 'primgen-query transform-feedback-disabled')
3694 g(['ext_transform_feedback-pipeline-basic-primgen'],
3695 'pipeline-basic-primgen')
3696 g(['ext_transform_feedback-position', 'render'],
3697 'position-render-bufferbase')
3698 g(['ext_transform_feedback-position', 'render', 'discard'],
3699 'position-render-bufferbase-discard')
3700 g(['ext_transform_feedback-position', 'render', 'offset'],
3701 'position-render-bufferoffset')
3702 g(['ext_transform_feedback-position', 'render', 'offset', 'discard'],
3703 'position-render-bufferoffset-discard')
3704 g(['ext_transform_feedback-position', 'render', 'range'],
3705 'position-render-bufferrange')
3706 g(['ext_transform_feedback-position', 'render', 'range', 'discard'],
3707 'position-render-bufferrange-discard')
3708 g(['ext_transform_feedback-position', 'primgen'],
3709 'query-primitives_generated-bufferbase')
3710 g(['ext_transform_feedback-position', 'primgen', 'discard'],
3711 'query-primitives_generated-bufferbase-discard')
3712 g(['ext_transform_feedback-position', 'primgen', 'offset'],
3713 'query-primitives_generated-bufferoffset')
3714 g(['ext_transform_feedback-position', 'primgen', 'offset', 'discard'],
3715 'query-primitives_generated-bufferoffset-discard')
3716 g(['ext_transform_feedback-position', 'primgen', 'range'],
3717 'query-primitives_generated-bufferrange')
3718 g(['ext_transform_feedback-position', 'primgen', 'range', 'discard'],
3719 'query-primitives_generated-bufferrange-discard')
3720 g(['ext_transform_feedback-position', 'primwritten'],
3721 'query-primitives_written-bufferbase')
3722 g(['ext_transform_feedback-position', 'primwritten', 'discard'],
3723 'query-primitives_written-bufferbase-discard')
3724 g(['ext_transform_feedback-position', 'primwritten', 'offset'],
3725 'query-primitives_written-bufferoffset')
3726 g(['ext_transform_feedback-position', 'primwritten', 'offset', 'discard'],
3727 'query-primitives_written-bufferoffset-discard')
3728 g(['ext_transform_feedback-position', 'primwritten', 'range'],
3729 'query-primitives_written-bufferrange')
3730 g(['ext_transform_feedback-position', 'primwritten', 'range', 'discard'],
3731 'query-primitives_written-bufferrange-discard')
3732 g(['ext_transform_feedback-interleaved'], 'interleaved-attribs')
3733 g(['ext_transform_feedback-separate'], 'separate-attribs')
3734 g(['ext_transform_feedback-geometry-shaders-basic'],
3735 'geometry-shaders-basic')
3737 with profile
.test_list
.group_manager(
3738 PiglitGLTest
, grouptools
.join('spec', 'arb_transform_feedback2')) as g
:
3739 g(['arb_transform_feedback2-change-objects-while-paused'],
3740 'Change objects while paused', run_concurrent
=False)
3741 g(['arb_transform_feedback2-change-objects-while-paused_gles3'],
3742 'Change objects while paused (GLES3)', run_concurrent
=False)
3744 with profile
.test_list
.group_manager(
3745 PiglitGLTest
, grouptools
.join('spec', 'ext_transform_feedback2')) as g
:
3746 g(['arb_transform_feedback2-draw-auto'], 'draw-auto', run_concurrent
=False)
3747 g(['arb_transform_feedback2-istransformfeedback'], 'istranformfeedback',
3748 run_concurrent
=False)
3749 g(['arb_transform_feedback2-gen-names-only'],
3750 'glGenTransformFeedbacks names only')
3751 g(['arb_transform_feedback2-cannot-bind-when-active'],
3752 'cannot bind when another object is active')
3753 g(['arb_transform_feedback2-api-queries'], 'misc. API queries')
3754 g(['arb_transform_feedback2-pause-counting'], 'counting with pause')
3756 with profile
.test_list
.group_manager(
3757 PiglitGLTest
, grouptools
.join('spec', 'arb_transform_feedback_instanced')) as g
:
3758 g(['arb_transform_feedback2-draw-auto', 'instanced'],
3759 'draw-auto instanced', run_concurrent
=False)
3761 with profile
.test_list
.group_manager(
3762 PiglitGLTest
, grouptools
.join('spec', 'arb_transform_feedback3')) as g
:
3763 g(['arb_transform_feedback3-bind_buffer_invalid_index'],
3764 'arb_transform_feedback3-bind_buffer_invalid_index',
3765 run_concurrent
=False)
3766 g(['arb_transform_feedback3-query_with_invalid_index'],
3767 'arb_transform_feedback3-query_with_invalid_index', run_concurrent
=False)
3768 g(['arb_transform_feedback3-end_query_with_name_zero'],
3769 'arb_transform_feedback3-end_query_with_name_zero', run_concurrent
=False)
3770 g(['arb_transform_feedback3-draw_using_invalid_stream_index'],
3771 'arb_transform_feedback3-draw_using_invalid_stream_index',
3772 run_concurrent
=False)
3773 g(['arb_transform_feedback3-set_varyings_with_invalid_args'],
3774 'arb_transform_feedback3-set_varyings_with_invalid_args',
3775 run_concurrent
=False)
3776 g(['arb_transform_feedback3-set_invalid_varyings'],
3777 'arb_transform_feedback3-set_invalid_varyings', run_concurrent
=False)
3778 g(['arb_transform_feedback3-ext_interleaved_two_bufs', 'vs'],
3779 'arb_transform_feedback3-ext_interleaved_two_bufs_vs',
3780 run_concurrent
=False)
3781 g(['arb_transform_feedback3-ext_interleaved_two_bufs', 'gs'],
3782 'arb_transform_feedback3-ext_interleaved_two_bufs_gs',
3783 run_concurrent
=False)
3784 g(['arb_transform_feedback3-ext_interleaved_two_bufs', 'gs_max'],
3785 'arb_transform_feedback3-ext_interleaved_two_bufs_gs_max',
3786 run_concurrent
=False)
3787 g(['arb_transform_feedback3-begin_end'], run_concurrent
=False)
3789 for param
in ['gl_NextBuffer-1', 'gl_NextBuffer-2', 'gl_SkipComponents1-1',
3790 'gl_SkipComponents1-2', 'gl_SkipComponents1-3',
3791 'gl_SkipComponents2', 'gl_SkipComponents3',
3792 'gl_SkipComponents4',
3793 'gl_NextBuffer-gl_SkipComponents1-gl_NextBuffer',
3794 'gl_NextBuffer-gl_NextBuffer', 'gl_SkipComponents1234', 'gl_SkipComponents1-gl_NextBuffer']:
3795 g(['ext_transform_feedback-output-type', param
], param
)
3797 with profile
.test_list
.group_manager(
3799 grouptools
.join('spec', 'arb_transform_feedback_overflow_query')) as g
:
3800 g(['arb_transform_feedback_overflow_query-basic'])
3801 g(['arb_transform_feedback_overflow_query-errors'])
3803 with profile
.test_list
.group_manager(
3805 grouptools
.join('spec', 'arb_uniform_buffer_object')) as g
:
3806 g(['arb_uniform_buffer_object-bindbuffer-general-point'],
3807 'bindbuffer-general-point')
3808 g(['arb_uniform_buffer_object-buffer-targets'], 'buffer-targets')
3809 g(['arb_uniform_buffer_object-bufferstorage'], 'bufferstorage')
3810 g(['arb_uniform_buffer_object-deletebuffers'], 'deletebuffers')
3811 g(['arb_uniform_buffer_object-dlist'], 'dlist')
3812 g(['arb_uniform_buffer_object-getactiveuniformblockiv-uniform-block-data-size'],
3813 'getactiveuniformblockiv-uniform-block-data-size')
3814 g(['arb_uniform_buffer_object-getactiveuniformblockname'],
3815 'getactiveuniformblockname')
3816 g(['arb_uniform_buffer_object-getactiveuniformname'],
3817 'getactiveuniformname')
3818 g(['arb_uniform_buffer_object-getactiveuniformsiv-uniform-array-stride'],
3819 'getactiveuniformsiv-uniform-array-stride')
3820 g(['arb_uniform_buffer_object-getactiveuniformsiv-uniform-block-index'],
3821 'getactiveuniformsiv-uniform-block-index')
3822 g(['arb_uniform_buffer_object-getactiveuniformsiv-uniform-matrix-stride'],
3823 'getactiveuniformsiv-uniform-matrix-stride')
3824 g(['arb_uniform_buffer_object-getactiveuniformsiv-uniform-type'],
3825 'getactiveuniformsiv-uniform-type')
3826 g(['arb_uniform_buffer_object-getintegeri_v'], 'getintegeri_v')
3827 g(['arb_uniform_buffer_object-getprogramiv'], 'getprogramiv')
3828 g(['arb_uniform_buffer_object-getuniformblockindex'],
3829 'getuniformblockindex')
3830 g(['arb_uniform_buffer_object-getuniformindices'], 'getuniformindices')
3831 g(['arb_uniform_buffer_object-getuniformlocation'], 'getuniformlocation')
3832 g(['arb_uniform_buffer_object-layout-std140-base-size-and-alignment'],
3833 'layout-std140-base-size-and-alignment')
3834 g(['arb_uniform_buffer_object-link-mismatch-blocks'],
3835 'link-mismatch-blocks')
3836 g(['arb_uniform_buffer_object-maxblocks'], 'maxblocks')
3837 g(['arb_uniform_buffer_object-minmax'], 'minmax')
3838 g(['arb_uniform_buffer_object-negative-bindbuffer-index'],
3839 'negative-bindbuffer-index')
3840 g(['arb_uniform_buffer_object-negative-bindbuffer-target'],
3841 'negative-bindbuffer-target')
3842 g(['arb_uniform_buffer_object-negative-bindbufferrange-range'],
3843 'negative-bindbufferrange-range')
3844 g(['arb_uniform_buffer_object-negative-getactiveuniformblockiv'],
3845 'negative-getactiveuniformblockiv')
3846 g(['arb_uniform_buffer_object-negative-getactiveuniformsiv'],
3847 'negative-getactiveuniformsiv')
3848 g(['arb_uniform_buffer_object-referenced-by-shader'],
3849 'referenced-by-shader')
3850 g(['arb_uniform_buffer_object-rendering'], 'rendering')
3851 g(['arb_uniform_buffer_object-rendering', 'offset'], 'rendering-offset')
3852 g(['arb_uniform_buffer_object-rendering-array'], 'rendering-array')
3853 g(['arb_uniform_buffer_object-rendering-array', 'offset'], 'rendering-array-offset')
3854 g(['arb_uniform_buffer_object-rendering-dsa'], 'rendering-dsa')
3855 g(['arb_uniform_buffer_object-rendering-dsa', 'offset'], 'rendering-dsa-offset')
3856 g(['arb_uniform_buffer_object-row-major'], 'row-major')
3857 g(['arb_uniform_buffer_object-uniformblockbinding'], 'uniformblockbinding')
3859 with profile
.test_list
.group_manager(
3861 grouptools
.join('spec', 'arb_uniform_buffer_object',
3862 'maxuniformblocksize')) as g
:
3863 g(['arb_uniform_buffer_object-maxuniformblocksize', 'vs'], 'vs')
3864 g(['arb_uniform_buffer_object-maxuniformblocksize', 'vsexceed'],
3866 g(['arb_uniform_buffer_object-maxuniformblocksize', 'fs'], 'fs')
3867 g(['arb_uniform_buffer_object-maxuniformblocksize', 'fsexceed'],
3870 with profile
.test_list
.group_manager(
3871 PiglitGLTest
, grouptools
.join('spec', 'ati_draw_buffers')) as g
:
3872 g(['ati_draw_buffers-arbfp'])
3873 g(['ati_draw_buffers-arbfp-no-index'], 'arbfp-no-index')
3874 g(['ati_draw_buffers-arbfp-no-option'], 'arbfp-no-option')
3876 with profile
.test_list
.group_manager(
3877 PiglitGLTest
, grouptools
.join('spec', 'ati_envmap_bumpmap')) as g
:
3878 g(['ati_envmap_bumpmap-bump'], run_concurrent
=False)
3880 with profile
.test_list
.group_manager(
3881 PiglitGLTest
, grouptools
.join('spec', 'arb_instanced_arrays')) as g
:
3882 g(['arb_instanced_arrays-vertex-attrib-divisor-index-error'])
3883 g(['arb_instanced_arrays-instanced_arrays'])
3884 g(['arb_instanced_arrays-drawarrays'])
3885 add_single_param_test_set(g
, 'arb_instanced_arrays-instanced_arrays',
3888 with profile
.test_list
.group_manager(
3890 grouptools
.join('spec', 'arb_internalformat_query')) as g
:
3891 g(['arb_internalformat_query-api-errors'], 'misc. API error checks')
3892 g(['arb_internalformat_query-overrun'], 'buffer over-run checks')
3893 g(['arb_internalformat_query-minmax'], 'minmax')
3895 with profile
.test_list
.group_manager(
3897 grouptools
.join('spec', 'arb_internalformat_query2')) as g
:
3898 g(['arb_internalformat_query2-api-errors'], 'API error checks')
3899 g(['arb_internalformat_query2-generic-pname-checks'], 'Individual most generic pname checks')
3900 g(['arb_internalformat_query2-samples-pnames'], 'SAMPLES and NUM_SAMPLE_COUNTS pname checks')
3901 g(['arb_internalformat_query2-internalformat-size-checks'], 'All INTERNALFORMAT_<X>_SIZE pname checks')
3902 g(['arb_internalformat_query2-internalformat-type-checks'], 'All INTERNALFORMAT_<X>_TYPE pname checks')
3903 g(['arb_internalformat_query2-image-format-compatibility-type'], 'IMAGE_FORMAT_COMPATIBILITY_TYPE pname checks')
3904 g(['arb_internalformat_query2-max-dimensions'], 'Max dimensions related pname checks')
3905 g(['arb_internalformat_query2-color-encoding'], 'COLOR_ENCODING pname check')
3906 g(['arb_internalformat_query2-texture-compressed-block'], 'All TEXTURE_COMPRESSED_BLOCK_<X> pname checks')
3907 g(['arb_internalformat_query2-minmax'], 'minmax check for SAMPLES/NUM_SAMPLE_COUNTS')
3908 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)')
3909 g(['arb_internalformat_query2-filter'], 'FILTER pname checks.')
3910 g(['arb_internalformat_query2-format-components'], '{COLOR,DEPTH,STENCIL}_COMPONENTS pname checks')
3912 with profile
.test_list
.group_manager(
3913 PiglitGLTest
, grouptools
.join('spec', 'arb_map_buffer_range')) as g
:
3914 g(['map_buffer_range_error_check'], run_concurrent
=False)
3915 g(['map_buffer_range_test'], run_concurrent
=False)
3916 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_RANGE_BIT', 'offset=0'],
3917 'MAP_INVALIDATE_RANGE_BIT offset=0')
3918 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_RANGE_BIT',
3919 'increment-offset'], 'MAP_INVALIDATE_RANGE_BIT increment-offset')
3920 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_RANGE_BIT',
3921 'decrement-offset'], 'MAP_INVALIDATE_RANGE_BIT decrement-offset')
3922 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_BUFFER_BIT', 'offset=0'],
3923 'MAP_INVALIDATE_BUFFER_BIT offset=0')
3924 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_BUFFER_BIT',
3925 'increment-offset'], 'MAP_INVALIDATE_BUFFER_BIT increment-offset')
3926 g(['map_buffer_range-invalidate', 'MAP_INVALIDATE_BUFFER_BIT',
3927 'decrement-offset'], 'MAP_INVALIDATE_BUFFER_BIT decrement-offset')
3928 g(['map_buffer_range-invalidate', 'CopyBufferSubData', 'offset=0'],
3929 'CopyBufferSubData offset=0')
3930 g(['map_buffer_range-invalidate', 'CopyBufferSubData', 'increment-offset'],
3931 'CopyBufferSubData increment-offset')
3932 g(['map_buffer_range-invalidate', 'CopyBufferSubData', 'decrement-offset'],
3933 'CopyBufferSubData decrement-offset')
3935 with profile
.test_list
.group_manager(
3936 PiglitGLTest
, grouptools
.join('spec', 'arb_multisample')) as g
:
3937 g(['arb_multisample-beginend'], 'beginend')
3938 g(['arb_multisample-pushpop'], 'pushpop')
3940 with profile
.test_list
.group_manager(
3941 PiglitGLTest
, grouptools
.join('spec', 'arb_seamless_cube_map')) as g
:
3942 g(['arb_seamless_cubemap'])
3943 g(['arb_seamless_cubemap-initially-disabled'])
3944 g(['arb_seamless_cubemap-three-faces-average'])
3946 with profile
.test_list
.group_manager(
3948 grouptools
.join('spec', 'amd_gpu_shader_half_float')) as g
:
3949 g(['amd_gpu_shader_half_float-explicit-offset-bufferstorage'], 'explicit-offset-bufferstorage')
3951 with profile
.test_list
.group_manager(
3952 PiglitGLTest
, grouptools
.join('spec', 'AMD_pinned_memory')) as g
:
3953 g(['amd_pinned_memory', 'offset=0'], 'offset=0')
3954 g(['amd_pinned_memory', 'increment-offset'], 'increment-offset')
3955 g(['amd_pinned_memory', 'decrement-offset'], 'decrement-offset')
3956 g(['amd_pinned_memory', 'offset=0', 'map-buffer'], 'map-buffer offset=0')
3957 g(['amd_pinned_memory', 'increment-offset', 'map-buffer'],
3958 'map-buffer increment-offset')
3959 g(['amd_pinned_memory', 'decrement-offset', 'map-buffer'],
3960 'map-buffer decrement-offset')
3962 with profile
.test_list
.group_manager(
3964 grouptools
.join('spec', 'amd_seamless_cubemap_per_texture')) as g
:
3965 g(['amd_seamless_cubemap_per_texture'], run_concurrent
=False)
3967 with profile
.test_list
.group_manager(
3969 grouptools
.join('spec', 'amd_vertex_shader_layer')) as g
:
3970 g(['amd_vertex_shader_layer-layered-2d-texture-render'],
3971 run_concurrent
=False)
3972 g(['amd_vertex_shader_layer-layered-depth-texture-render'],
3973 run_concurrent
=False)
3975 with profile
.test_list
.group_manager(
3977 grouptools
.join('spec', 'amd_vertex_shader_viewport_index')) as g
:
3978 g(['amd_vertex_shader_viewport_index-render'])
3980 with profile
.test_list
.group_manager(
3982 grouptools
.join('spec', 'ext_fog_coord')) as g
:
3983 g(['ext_fog_coord-modes'], run_concurrent
=False)
3985 with profile
.test_list
.group_manager(
3987 grouptools
.join('spec', 'nv_half_float')) as g
:
3988 g(['attribs-half-float'])
3989 g(['ext_fog_coord-modes-half-float'], run_concurrent
=False)
3991 with profile
.test_list
.group_manager(
3993 grouptools
.join('spec', 'nv_texture_barrier')) as g
:
3994 g(['blending-in-shader'], run_concurrent
=False)
3995 g(['arb_texture_barrier-texture-halves-ping-pong-operation-chain'])
3997 with profile
.test_list
.group_manager(
3999 grouptools
.join('spec', 'nv_texture_env_combine4')) as g
:
4000 g(['nv_texture_env_combine4-combine'])
4002 with profile
.test_list
.group_manager(
4004 grouptools
.join('spec', 'nv_conditional_render')) as g
:
4005 g(['nv_conditional_render-begin-while-active'], 'begin-while-active')
4006 g(['nv_conditional_render-begin-zero'], 'begin-zero')
4007 g(['nv_conditional_render-bitmap'], 'bitmap')
4008 g(['nv_conditional_render-blitframebuffer'], 'blitframebuffer')
4009 g(['nv_conditional_render-clear'], 'clear')
4010 g(['nv_conditional_render-clear-bug'], 'clear-bug')
4011 g(['nv_conditional_render-copypixels'], 'copypixels')
4012 g(['nv_conditional_render-copyteximage'], 'copyteximage')
4013 g(['nv_conditional_render-copytexsubimage'], 'copytexsubimage')
4014 g(['nv_conditional_render-dlist'], 'dlist')
4015 g(['nv_conditional_render-drawpixels'], 'drawpixels')
4016 g(['nv_conditional_render-generatemipmap'], 'generatemipmap')
4017 g(['nv_conditional_render-vertex_array'], 'vertex_array')
4019 with profile
.test_list
.group_manager(
4021 grouptools
.join('spec', 'nv_fill_rectangle')) as g
:
4022 g(['nv_fill_rectangle-invalid-draw-mode'], 'invalid-draw-mode')
4024 with profile
.test_list
.group_manager(
4026 grouptools
.join('spec', 'nv_fog_distance')) as g
:
4027 g(['nv_fog_distance-coverage'], 'coverage')
4028 g(['nv_fog_distance-simple-draw', 'radial'], 'simple draw - GL_EYE_RADIAL_NV')
4029 g(['nv_fog_distance-simple-draw', 'eye-plane'], 'simple draw - GL_EYE_PLANE')
4030 g(['nv_fog_distance-simple-draw', 'eye-plane-absolute'], 'simple draw - GL_EYE_PLANE_ABSOLUTE_NV')
4031 g(['nv_fog_distance-fog-coord'], 'GL_FOG_COORDINATE interaction')
4033 with profile
.test_list
.group_manager(
4035 grouptools
.join('spec', 'oes_matrix_get')) as g
:
4036 g(['oes_matrix_get-api'], 'All queries')
4038 with profile
.test_list
.group_manager(
4040 grouptools
.join('spec', 'oes_fixed_point')) as g
:
4041 g(['oes_fixed_point-attribute-arrays'], 'attribute-arrays')
4043 with profile
.test_list
.group_manager(
4045 grouptools
.join('spec', 'arb_clear_buffer_object')) as g
:
4046 g(['arb_clear_buffer_object-formats'])
4047 g(['arb_clear_buffer_object-invalid-internal-format'])
4048 g(['arb_clear_buffer_object-invalid-size'])
4049 g(['arb_clear_buffer_object-mapped'])
4050 g(['arb_clear_buffer_object-no-bound-buffer'])
4051 g(['arb_clear_buffer_object-null-data'])
4052 g(['arb_clear_buffer_object-sub-invalid-size'])
4053 g(['arb_clear_buffer_object-sub-mapped'])
4054 g(['arb_clear_buffer_object-sub-overlap'])
4055 g(['arb_clear_buffer_object-sub-simple'])
4056 g(['arb_clear_buffer_object-unaligned'])
4057 g(['arb_clear_buffer_object-zero-size'])
4059 with profile
.test_list
.group_manager(
4061 grouptools
.join('spec', 'arb_clear_texture')) as g
:
4062 g(['arb_clear_texture-clear-max-level'])
4063 g(['arb_clear_texture-simple'])
4064 g(['arb_clear_texture-error'])
4065 g(['arb_clear_texture-3d'])
4066 g(['arb_clear_texture-cube'])
4067 g(['arb_clear_texture-multisample'])
4068 g(['arb_clear_texture-integer'])
4069 g(['arb_clear_texture-base-formats'])
4070 g(['arb_clear_texture-sized-formats'])
4071 g(['arb_clear_texture-float'])
4072 g(['arb_clear_texture-rg'])
4073 g(['arb_clear_texture-depth-stencil'])
4074 g(['arb_clear_texture-srgb'])
4075 g(['arb_clear_texture-stencil'])
4076 g(['arb_clear_texture-texview'])
4077 g(['arb_clear_texture-depth'])
4079 with profile
.test_list
.group_manager(
4081 grouptools
.join('spec', 'arb_copy_buffer')) as g
:
4082 g(['copy_buffer_coherency'], run_concurrent
=False)
4083 g(['copybuffersubdata'], run_concurrent
=False)
4084 g(['arb_copy_buffer-data-sync'], 'data-sync')
4085 g(['arb_copy_buffer-dlist'], 'dlist')
4086 g(['arb_copy_buffer-get'], 'get')
4087 g(['arb_copy_buffer-intra-buffer-copy'], 'intra-buffer-copy')
4088 g(['arb_copy_buffer-negative-bound-zero'], 'negative-bound-zero')
4089 g(['arb_copy_buffer-negative-bounds'], 'negative-bounds')
4090 g(['arb_copy_buffer-negative-mapped'], 'negative-mapped')
4091 g(['arb_copy_buffer-overlap'], 'overlap')
4092 g(['arb_copy_buffer-targets'], 'targets')
4093 g(['arb_copy_buffer-subdata-sync'], 'subdata-sync')
4095 with profile
.test_list
.group_manager(
4097 grouptools
.join('spec', 'arb_copy_image')) as g
:
4098 g(['arb_copy_image-simple', '--tex-to-tex'])
4099 g(['arb_copy_image-simple', '--rb-to-tex'])
4100 g(['arb_copy_image-simple', '--rb-to-rb'])
4101 g(['arb_copy_image-srgb-copy'])
4102 g(['arb_copy_image-api_errors'])
4103 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4104 'GL_TEXTURE_1D', '32', '1', '1', '11', '0', '0', '5', '0', '0', '14',
4106 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4107 'GL_TEXTURE_1D_ARRAY', '32', '1', '12', '11', '0', '0', '5', '0', '9',
4109 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4110 'GL_TEXTURE_2D', '32', '32', '1', '11', '0', '0', '5', '13', '0', '14',
4112 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4113 'GL_TEXTURE_RECTANGLE', '32', '32', '1', '11', '0', '0', '5', '13',
4114 '0', '14', '1', '1'])
4115 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4116 'GL_TEXTURE_2D_ARRAY', '32', '32', '10', '11', '0', '0', '5', '13',
4117 '4', '14', '1', '1'])
4118 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4119 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '0', '0', '5', '13', '4',
4121 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4122 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '30', '11', '0', '0', '5',
4123 '13', '8', '14', '1', '1'])
4124 g(['arb_copy_image-targets', 'GL_TEXTURE_1D', '32', '1', '1',
4125 'GL_TEXTURE_3D', '32', '32', '32', '11', '0', '0', '5', '13', '4',
4127 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4128 'GL_TEXTURE_1D', '32', '1', '1', '11', '0', '7', '5', '0', '0', '14',
4130 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4131 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '0', '3', '5', '0', '7',
4133 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4134 'GL_TEXTURE_2D', '32', '16', '1', '11', '0', '3', '5', '7', '0', '14',
4136 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4137 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '0', '3', '5', '7', '0',
4139 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4140 'GL_TEXTURE_2D_ARRAY', '32', '16', '18', '11', '0', '3', '5', '9', '7',
4142 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4143 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '0', '3', '5', '17', '2',
4145 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4146 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '0', '3', '5',
4147 '17', '2', '14', '1', '7'])
4148 g(['arb_copy_image-targets', 'GL_TEXTURE_1D_ARRAY', '32', '1', '12',
4149 'GL_TEXTURE_3D', '32', '16', '18', '11', '0', '3', '5', '9', '2', '14',
4151 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4152 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '0', '5', '0', '0', '14',
4154 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4155 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '0', '5', '0', '7',
4157 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4158 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '0', '5', '7', '0', '14',
4160 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4161 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '0', '5', '7',
4162 '0', '14', '9', '1'])
4163 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4164 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '0', '5', '7',
4165 '12', '14', '8', '1'])
4166 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4167 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '5', '0', '5', '9', '2',
4169 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4170 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '5', '0', '5',
4171 '9', '7', '14', '7', '1'])
4172 g(['arb_copy_image-targets', 'GL_TEXTURE_2D', '32', '32', '1',
4173 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '0', '5', '9', '7', '14',
4175 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4176 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '0', '5', '0', '0', '14',
4178 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4179 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '0', '5', '0', '7',
4181 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4182 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '0', '5', '7', '0', '14',
4184 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4185 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '0', '5', '7',
4186 '0', '14', '9', '1'])
4187 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4188 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '0', '5', '7',
4189 '12', '14', '8', '1'])
4190 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4191 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '5', '0', '5', '9', '2',
4193 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4194 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '5', '0', '5',
4195 '9', '7', '14', '7', '1'])
4196 g(['arb_copy_image-targets', 'GL_TEXTURE_RECTANGLE', '32', '32', '1',
4197 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '0', '5', '9', '7', '14',
4199 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4200 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '7', '5', '0', '0', '14',
4202 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4203 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '5', '5', '0', '7',
4205 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4206 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '13', '5', '4', '0',
4208 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4209 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '13', '5', '7',
4210 '0', '14', '7', '1'])
4211 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4212 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '5', '5', '7',
4213 '2', '14', '9', '9'])
4214 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4215 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '5', '1', '5', '9', '2',
4217 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4218 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '5', '2', '5',
4219 '9', '7', '14', '7', '11'])
4220 g(['arb_copy_image-targets', 'GL_TEXTURE_2D_ARRAY', '32', '32', '15',
4221 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '2', '5', '9', '7', '14',
4223 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4224 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '3', '5', '0', '0', '14',
4226 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4227 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '3', '5', '0', '7',
4229 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4230 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '3', '5', '7', '0', '14',
4232 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4233 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '3', '5', '3',
4234 '0', '14', '12', '1'])
4235 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4236 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '1', '5', '3',
4237 '2', '14', '11', '4'])
4238 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4239 'GL_TEXTURE_CUBE_MAP', '32', '32', '6', '11', '5', '1', '5', '9', '2',
4241 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4242 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18', '11', '5', '1', '5',
4243 '9', '9', '14', '7', '5'])
4244 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP', '32', '32', '6',
4245 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '0', '5', '9', '7', '14',
4247 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4248 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '7', '5', '0', '0', '14',
4250 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4251 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '5', '5', '0', '7',
4253 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4254 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '13', '5', '7', '0',
4256 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4257 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '13', '5', '7',
4258 '0', '14', '6', '1'])
4259 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4260 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '5', '5', '1',
4261 '2', '14', '15', '9'])
4262 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4263 'GL_TEXTURE_CUBE_MAP', '16', '16', '6', '11', '5', '1', '5', '9', '2',
4265 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4266 'GL_TEXTURE_CUBE_MAP_ARRAY', '16', '16', '18', '11', '5', '2', '5',
4267 '9', '7', '5', '7', '11'])
4268 g(['arb_copy_image-targets', 'GL_TEXTURE_CUBE_MAP_ARRAY', '32', '32', '18',
4269 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '2', '5', '9', '7', '14',
4271 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4272 'GL_TEXTURE_1D', '32', '1', '1', '11', '23', '7', '5', '0', '0', '14',
4274 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4275 'GL_TEXTURE_1D_ARRAY', '32', '1', '16', '11', '2', '5', '5', '0', '7',
4277 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4278 'GL_TEXTURE_2D', '32', '16', '1', '11', '12', '13', '5', '7', '0',
4280 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4281 'GL_TEXTURE_RECTANGLE', '32', '16', '1', '11', '12', '13', '5', '7',
4282 '0', '14', '9', '1'])
4283 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4284 'GL_TEXTURE_2D_ARRAY', '32', '16', '15', '11', '12', '5', '5', '3',
4285 '2', '14', '13', '9'])
4286 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4287 'GL_TEXTURE_CUBE_MAP', '16', '16', '6', '11', '5', '1', '5', '9', '2',
4289 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4290 'GL_TEXTURE_CUBE_MAP_ARRAY', '16', '16', '18', '11', '5', '2', '5',
4291 '9', '7', '5', '7', '11'])
4292 g(['arb_copy_image-targets', 'GL_TEXTURE_3D', '32', '32', '17',
4293 'GL_TEXTURE_3D', '32', '16', '18', '11', '5', '2', '5', '9', '7', '14',
4295 g(['arb_copy_image-formats'])
4296 g(['arb_copy_image-formats', '--samples=2'])
4297 g(['arb_copy_image-formats', '--samples=4'])
4298 g(['arb_copy_image-formats', '--samples=8'])
4299 g(['arb_copy_image-format-swizzle'])
4300 g(['arb_copy_image-texview'])
4302 with profile
.test_list
.group_manager(
4304 grouptools
.join('spec', 'nv_copy_image')) as g
:
4305 g(['nv_copy_image-simple', '--tex-to-tex'])
4306 g(['nv_copy_image-simple', '--rb-to-tex'])
4307 g(['nv_copy_image-simple', '--rb-to-rb'])
4308 g(['nv_copy_image-api_errors'])
4309 g(['nv_copy_image-formats'])
4310 g(['nv_copy_image-formats', '--samples=2'])
4311 g(['nv_copy_image-formats', '--samples=4'])
4312 g(['nv_copy_image-formats', '--samples=8'])
4314 with profile
.test_list
.group_manager(
4316 grouptools
.join('spec', 'nv_alpha_to_coverage_dither_control')) as g
:
4317 g(['nv_alpha_to_coverage_dither_control-error'])
4318 for samples
in [0, 2, 4, 8, 16]:
4319 g(['nv_alpha_to_coverage_dither_control', str(samples
)])
4321 with profile
.test_list
.group_manager(
4323 grouptools
.join('spec', 'nv_copy_depth_to_color')) as g
:
4324 g(['nv_copy_depth_to_color'])
4325 g(['nv_copy_depth_to_color','1', '0x223344ff'])
4326 g(['nv_copy_depth_to_color','0', '0x223344ff'])
4327 g(['nv_copy_depth_to_color','1', '0x76356278'])
4328 g(['nv_copy_depth_to_color','0', '0x76356278'])
4330 with profile
.test_list
.group_manager(
4331 PiglitGLTest
, grouptools
.join('spec', 'arb_cull_distance')) as g
:
4332 g(['arb_cull_distance-max-distances'])
4333 g(['arb_cull_distance-exceed-limits', 'cull'])
4334 g(['arb_cull_distance-exceed-limits', 'clip'])
4335 g(['arb_cull_distance-exceed-limits', 'total'])
4337 with profile
.test_list
.group_manager(
4338 PiglitGLTest
, grouptools
.join('spec', 'arb_half_float_vertex')) as g
:
4339 g(['draw-vertices-half-float'])
4340 g(['draw-vertices-half-float', 'user'], 'draw-vertices-half-float-user')
4342 with profile
.test_list
.group_manager(
4343 PiglitGLTest
, grouptools
.join('spec', 'oes_vertex_half_float')) as g
:
4344 g(['draw-vertices-half-float_gles2'], run_concurrent
=False)
4345 g(['draw-vertices-half-float_gles2', 'user'], 'draw-vertices-half-float-user_gles2',
4346 run_concurrent
=False)
4348 with profile
.test_list
.group_manager(
4350 grouptools
.join('spec', 'arb_vertex_type_2_10_10_10_rev')) as g
:
4351 g(['draw-vertices-2101010'], run_concurrent
=False)
4352 g(['attribs', 'GL_ARB_vertex_type_2_10_10_10_rev'], 'attribs')
4353 g(['arb_vertex_type_2_10_10_10_rev-array_types'])
4354 g(['gl-3.3-vertex-attrib-p-types'], 'attrib-p-types')
4355 g(['gl-3.3-vertex-attrib-pointer-type-size-match'], 'attrib-pointer-type-size-match')
4357 with profile
.test_list
.group_manager(
4359 grouptools
.join('spec', 'arb_vertex_type_10f_11f_11f_rev')) as g
:
4360 g(['arb_vertex_type_10f_11f_11f_rev-api-errors'], run_concurrent
=False)
4361 g(['arb_vertex_type_10f_11f_11f_rev-draw-vertices'])
4363 with profile
.test_list
.group_manager(
4365 grouptools
.join('spec', 'arb_draw_buffers')) as g
:
4366 g(['arb_draw_buffers-state_change'])
4367 g(['fbo-mrt-alphatest'])
4368 g(['fbo-mrt-new-bind'])
4370 with profile
.test_list
.group_manager(
4372 grouptools
.join('spec', 'ext_draw_buffers2')) as g
:
4373 g(['fbo-drawbuffers2-blend'])
4374 g(['fbo-drawbuffers2-colormask'])
4375 g(['fbo-drawbuffers2-colormask', 'clear'])
4377 with profile
.test_list
.group_manager(
4379 grouptools
.join('spec', 'arb_draw_buffers_blend')) as g
:
4380 g(['arb_draw_buffers_blend-state_set_get'])
4381 g(['fbo-draw-buffers-blend'])
4383 with profile
.test_list
.group_manager(
4385 grouptools
.join('spec', 'arb_blend_func_extended')) as g
:
4386 g(['arb_blend_func_extended-bindfragdataindexed-invalid-parameters'])
4387 g(['arb_blend_func_extended-blend-api'])
4388 g(['arb_blend_func_extended-error-at-begin'])
4389 g(['arb_blend_func_extended-getfragdataindex'])
4390 g(['arb_blend_func_extended-output-location'])
4391 g(['arb_blend_func_extended-fbo-extended-blend'])
4392 g(['arb_blend_func_extended-fbo-extended-blend-explicit'])
4393 g(['arb_blend_func_extended-fbo-extended-blend-pattern'])
4394 g(['arb_blend_func_extended-dual-src-blending-discard-without-src1'])
4395 g(['arb_blend_func_extended-dual-src-blending-issue-1917'])
4396 g(['arb_blend_func_extended-blend-api_gles2'])
4397 g(['arb_blend_func_extended-builtins_gles2'])
4398 g(['arb_blend_func_extended-bindfragdataindexed-invalid-parameters_gles3'])
4399 g(['arb_blend_func_extended-output-location_gles3'])
4400 g(['arb_blend_func_extended-getfragdataindex_gles3'])
4401 g(['arb_blend_func_extended-fbo-extended-blend-pattern_gles2'])
4402 g(['arb_blend_func_extended-fbo-extended-blend-pattern_gles3'])
4403 g(['arb_blend_func_extended-fbo-extended-blend_gles3'])
4404 g(['arb_blend_func_extended-fbo-extended-blend-explicit_gles3'])
4405 g(['arb_blend_func_extended-dual-src-blending-discard-without-src1_gles3'])
4406 g(['arb_blend_func_extended-dual-src-blending-issue-1917_gles3'])
4408 with profile
.test_list
.group_manager(
4410 grouptools
.join('spec', 'arb_base_instance')) as g
:
4411 g(['arb_base_instance-baseinstance-doesnt-affect-gl-instance-id'],
4412 run_concurrent
=False)
4413 g(['arb_base_instance-drawarrays'])
4415 with profile
.test_list
.group_manager(
4417 grouptools
.join('spec', 'ext_base_instance')) as g
:
4418 g(['arb_base_instance-baseinstance-doesnt-affect-gl-instance-id_gles3'],
4419 run_concurrent
=False)
4420 g(['arb_base_instance-drawarrays_gles3'])
4422 with profile
.test_list
.group_manager(
4424 grouptools
.join('spec', 'arb_buffer_storage')) as g
:
4425 for mode
in ['read', 'draw']:
4426 g(['bufferstorage-persistent', mode
])
4427 g(['bufferstorage-persistent', mode
, 'coherent'])
4428 g(['bufferstorage-persistent', mode
, 'client-storage'])
4429 g(['bufferstorage-persistent', mode
, 'coherent', 'client-storage'])
4430 g(['bufferstorage-persistent_gles3', mode
])
4431 g(['bufferstorage-persistent_gles3', mode
, 'coherent'])
4432 g(['bufferstorage-persistent_gles3', mode
, 'client-storage'])
4433 g(['bufferstorage-persistent_gles3', mode
, 'coherent', 'client-storage'])
4435 with profile
.test_list
.group_manager(
4437 grouptools
.join('spec', 'apple_object_purgeable')) as g
:
4438 g(['object_purgeable-api-pbo'], run_concurrent
=False)
4439 g(['object_purgeable-api-texture'], run_concurrent
=False)
4440 g(['object_purgeable-api-vbo'], run_concurrent
=False)
4442 with profile
.test_list
.group_manager(
4444 grouptools
.join('spec', 'mesa_pack_invert')) as g
:
4445 g(['mesa_pack_invert-readpixels'])
4447 with profile
.test_list
.group_manager(
4449 grouptools
.join('spec', 'oes_read_format')) as g
:
4450 g(['oes-read-format'], run_concurrent
=False)
4452 with profile
.test_list
.group_manager(
4454 grouptools
.join('spec', 'nv_primitive_restart')) as g
:
4455 add_single_param_test_set(
4457 'primitive-restart',
4459 "VBO_VERTEX_ONLY", "VBO_INDEX_ONLY",
4460 "VBO_SEPARATE_VERTEX_AND_INDEX", "VBO_COMBINED_VERTEX_AND_INDEX")
4461 add_single_param_test_set(
4463 'primitive-restart-draw-mode',
4464 'points', 'lines', 'line_loop', 'line_strip', 'triangles',
4465 'triangle_strip', 'triangle_fan', 'quads', 'quad_strip', 'polygon')
4467 g(['nv_primitive_restart-dlist'], 'dlist')
4468 g(['nv_primitive_restart-errors'], 'errors')
4469 g(['nv_primitive_restart-no-core-profile'], 'no-core-profile')
4471 with profile
.test_list
.group_manager(
4473 grouptools
.join('spec', 'ext_provoking_vertex')) as g
:
4474 g(['provoking-vertex'], run_concurrent
=False)
4476 with profile
.test_list
.group_manager(
4478 grouptools
.join('spec', 'ext_texture_lod_bias')) as g
:
4479 g(['lodbias'], run_concurrent
=False)
4481 with profile
.test_list
.group_manager(
4483 grouptools
.join('spec', 'sgis_generate_mipmap')) as g
:
4484 g(['gen-nonzero-unit'], run_concurrent
=False)
4485 g(['gen-teximage'], run_concurrent
=False)
4486 g(['gen-texsubimage'], run_concurrent
=False)
4488 with profile
.test_list
.group_manager(
4490 grouptools
.join('spec', 'arb_map_buffer_alignment')) as g
:
4491 g(['arb_map_buffer_alignment-sanity_test'], run_concurrent
=False)
4492 g(['arb_map_buffer_alignment-map-invalidate-range'])
4494 with profile
.test_list
.group_manager(
4496 grouptools
.join('spec', 'arb_geometry_shader4')) as g
:
4497 g(['arb_geometry_shader4-program-parameter-input-type'])
4498 g(['arb_geometry_shader4-program-parameter-input-type-draw'])
4499 g(['arb_geometry_shader4-program-parameter-output-type'])
4500 g(['arb_geometry_shader4-vertices-in'])
4502 for draw
in ['', 'indexed']:
4503 for prim
in ['GL_LINES_ADJACENCY', 'GL_LINE_STRIP_ADJACENCY',
4504 'GL_TRIANGLES_ADJACENCY', 'GL_TRIANGLE_STRIP_ADJACENCY']:
4505 g(['arb_geometry_shader4-ignore-adjacent-vertices', draw
, prim
])
4507 for mode
in ['1', 'tf 1', 'max', 'tf max']:
4508 g(['arb_geometry_shader4-program-parameter-vertices-out', mode
])
4510 with profile
.test_list
.group_manager(
4512 grouptools
.join('spec', 'arb_compute_shader')) as g
:
4513 g(['arb_compute_shader-api_errors'], 'api_errors')
4514 g(['arb_compute_shader-minmax'], 'minmax')
4515 g(['built-in-constants',
4516 os
.path
.join('spec', 'arb_compute_shader', 'minimum-maximums.txt')],
4517 'built-in constants',
4518 override_class
=BuiltInConstantsTest
)
4519 g(['arb_compute_shader-work_group_size_too_large'],
4520 grouptools
.join('compiler', 'work_group_size_too_large'))
4521 g(['arb_compute_shader-dlist'], 'display-list')
4522 g(['arb_compute_shader-indirect-compute'], 'indirect-compute')
4523 g(['arb_compute_shader-local-id'], 'local-id' + '-explosion')
4524 g(['arb_compute_shader-render-and-compute'], 'render-and-compute')
4525 g(['arb_compute_shader-zero-dispatch-size'], 'zero-dispatch-size')
4526 g(['arb_compute_shader-compute-and-render-bug-109630'], 'compute-and-render-bug-109630')
4528 with profile
.test_list
.group_manager(
4530 grouptools
.join('spec', 'arb_shader_storage_buffer_object')) as g
:
4531 g(['arb_shader_storage_buffer_object-minmax'], 'minmax')
4532 g(['arb_shader_storage_buffer_object-rendering'], 'rendering')
4533 g(['arb_shader_storage_buffer_object-issue1258'], 'issue1258')
4534 g(['arb_shader_storage_buffer_object-getintegeri_v'], 'getintegeri_v')
4535 g(['arb_shader_storage_buffer_object-deletebuffers'], 'deletebuffers')
4536 g(['arb_shader_storage_buffer_object-maxblocks'], 'maxblocks')
4537 g(['arb_shader_storage_buffer_object-ssbo-binding'], 'ssbo-binding')
4538 g(['arb_shader_storage_buffer_object-array-ssbo-binding'], 'array-ssbo-binding')
4539 g(['arb_shader_storage_buffer_object-array-ssbo-auto-binding'], 'array-ssbo-auto-binding')
4540 g(['arb_shader_storage_buffer_object-layout-std430-write-shader'], 'layout-std430-write-shader')
4541 g(['arb_shader_storage_buffer_object-layout-std140-write-shader'], 'layout-std140-write-shader')
4542 g(['arb_shader_storage_buffer_object-program_interface_query'], 'program-interface-query')
4544 with profile
.test_list
.group_manager(
4546 grouptools
.join('spec', 'arb_shader_storage_buffer_object',
4547 'max-ssbo-size')) as g
:
4548 g(['arb_shader_storage_buffer_object-max-ssbo-size', 'vs'], 'vs')
4549 g(['arb_shader_storage_buffer_object-max-ssbo-size', 'vsexceed'],
4551 g(['arb_shader_storage_buffer_object-max-ssbo-size', 'fs'], 'fs')
4552 g(['arb_shader_storage_buffer_object-max-ssbo-size', 'fsexceed'],
4555 with profile
.test_list
.group_manager(
4557 grouptools
.join('spec', 'arb_sparse_buffer')) as g
:
4558 g(['arb_sparse_buffer-basic'], 'basic')
4559 g(['arb_sparse_buffer-buffer-data'], 'buffer-data')
4560 g(['arb_sparse_buffer-commit'], 'commit')
4561 g(['arb_sparse_buffer-minmax'], 'minmax')
4563 with profile
.test_list
.group_manager(
4565 grouptools
.join('spec', 'ext_polygon_offset_clamp')) as g
:
4566 g(['ext_polygon_offset_clamp-draw'])
4567 g(['ext_polygon_offset_clamp-draw_gles2'])
4568 g(['ext_polygon_offset_clamp-dlist'])
4570 with profile
.test_list
.group_manager(
4572 grouptools
.join('spec', 'ARB_pipeline_statistics_query')) as g
:
4573 g(['arb_pipeline_statistics_query-extra_prims'])
4574 g(['arb_pipeline_statistics_query-vert'])
4575 g(['arb_pipeline_statistics_query-vert_adj'])
4576 g(['arb_pipeline_statistics_query-clip'])
4577 g(['arb_pipeline_statistics_query-geom'])
4578 g(['arb_pipeline_statistics_query-frag'])
4579 g(['arb_pipeline_statistics_query-comp'])
4581 with profile
.test_list
.group_manager(PiglitGLTest
, 'hiz') as g
:
4582 g(['hiz-depth-stencil-test-fbo-d0-s8'], run_concurrent
=False)
4583 g(['hiz-depth-stencil-test-fbo-d24-s0'], run_concurrent
=False)
4584 g(['hiz-depth-stencil-test-fbo-d24-s8'], run_concurrent
=False)
4585 g(['hiz-depth-stencil-test-fbo-d24s8'], run_concurrent
=False)
4586 g(['hiz-depth-read-fbo-d24-s0'], run_concurrent
=False)
4587 g(['hiz-depth-read-fbo-d24-s8'], run_concurrent
=False)
4588 g(['hiz-depth-read-fbo-d24s8'], run_concurrent
=False)
4589 g(['hiz-depth-read-window-stencil0'], run_concurrent
=False)
4590 g(['hiz-depth-read-window-stencil1'], run_concurrent
=False)
4591 g(['hiz-depth-test-fbo-d24-s0'], run_concurrent
=False)
4592 g(['hiz-depth-test-fbo-d24-s8'], run_concurrent
=False)
4593 g(['hiz-depth-test-fbo-d24s8'], run_concurrent
=False)
4594 g(['hiz-depth-test-window-stencil0'], run_concurrent
=False)
4595 g(['hiz-depth-test-window-stencil1'], run_concurrent
=False)
4596 g(['hiz-stencil-read-fbo-d0-s8'], run_concurrent
=False)
4597 g(['hiz-stencil-read-fbo-d24-s8'], run_concurrent
=False)
4598 g(['hiz-stencil-read-fbo-d24s8'], run_concurrent
=False)
4599 g(['hiz-stencil-read-window-depth0'], run_concurrent
=False)
4600 g(['hiz-stencil-read-window-depth1'], run_concurrent
=False)
4601 g(['hiz-stencil-test-fbo-d0-s8'], run_concurrent
=False)
4602 g(['hiz-stencil-test-fbo-d24-s8'], run_concurrent
=False)
4603 g(['hiz-stencil-test-fbo-d24s8'], run_concurrent
=False)
4604 g(['hiz-stencil-test-window-depth0'], run_concurrent
=False)
4605 g(['hiz-stencil-test-window-depth1'], run_concurrent
=False)
4607 with profile
.test_list
.group_manager(PiglitGLTest
, 'fast_color_clear') as g
:
4608 g(['fcc-blit-between-clears'])
4609 g(['fcc-clear-tex'])
4610 g(['fcc-write-after-clear'])
4611 g(['fcc-read-to-pbo-after-clear'], run_concurrent
=False)
4612 g(['fcc-front-buffer-distraction'], run_concurrent
=False)
4614 for subtest
in ('sample', 'read_pixels', 'blit', 'copy'):
4615 for buffer_type
in ('rb', 'tex'):
4616 if subtest
== 'sample' and buffer_type
== 'rb':
4618 g(['fcc-read-after-clear', subtest
, buffer_type
])
4620 with profile
.test_list
.group_manager(
4621 PiglitGLTest
, grouptools
.join('spec', 'ext_unpack_subimage')) as g
:
4622 g(['ext_unpack_subimage'], 'basic')
4624 with profile
.test_list
.group_manager(
4625 PiglitGLTest
, grouptools
.join('spec', 'oes_draw_texture')) as g
:
4626 g(['oes_draw_texture'])
4628 with profile
.test_list
.group_manager(
4630 grouptools
.join('spec', 'oes_compressed_etc1_rgb8_texture')) as g
:
4631 g(['oes_compressed_etc1_rgb8_texture-basic'], 'basic')
4632 g(['oes_compressed_etc1_rgb8_texture-miptree'], 'miptree')
4634 with profile
.test_list
.group_manager(
4636 grouptools
.join('spec', 'khr_parallel_shader_compile')) as g
:
4637 g(['khr_parallel_shader_compile-basic'], 'basic')
4638 g(['khr_parallel_shader_compile-basic_gles2'], 'basic_gles2')
4640 with profile
.test_list
.group_manager(
4642 grouptools
.join('spec', 'khr_texture_compression_astc')) as g
:
4643 g(['arb_texture_compression-invalid-formats', 'astc'], 'invalid formats')
4644 g(['khr_compressed_astc-array_gl'], 'array-gl')
4645 g(['khr_compressed_astc-array_gles3'], 'array-gles')
4646 g(['khr_compressed_astc-basic_gl'], 'basic-gl')
4647 g(['khr_compressed_astc-basic_gles2'], 'basic-gles')
4648 g(['void-extent-dl-bug'], 'void-extent-dl-bug')
4650 for subtest
in ('hdr', 'ldr', 'srgb', "srgb-fp", "srgb-sd"):
4651 g(['khr_compressed_astc-miptree_gl', '-subtest', subtest
],
4652 'miptree-gl {}'.format(subtest
))
4653 g(['khr_compressed_astc-miptree_gles2', '-subtest', subtest
],
4654 'miptree-gles {}'.format(subtest
))
4655 for subtest
in ('hdr', 'ldr', 'srgb', 'srgb-fp'):
4656 g(['khr_compressed_astc-sliced-3d-miptree_gl', '-subtest', subtest
],
4657 'sliced-3d-miptree-gl {}'.format(subtest
))
4658 g(['khr_compressed_astc-sliced-3d-miptree_gles3', '-subtest', subtest
],
4659 'sliced-3d-miptree-gles {}'.format(subtest
))
4661 with profile
.test_list
.group_manager(
4663 grouptools
.join('spec', 'oes_texture_compression_astc')) as g
:
4664 for subtest
in ('hdr', 'ldr', 'srgb'):
4665 g(['oes_compressed_astc-miptree-3d_gl', '-subtest', subtest
],
4666 'miptree-3d-gl {}'.format(subtest
))
4667 g(['oes_compressed_astc-miptree-3d_gles3', '-subtest', subtest
],
4668 'miptree-3d-gles {}'.format(subtest
))
4670 with profile
.test_list
.group_manager(
4672 grouptools
.join('spec', 'nv_read_depth')) as g
:
4673 g(['read_depth_gles3'])
4675 with profile
.test_list
.group_manager(
4677 grouptools
.join('spec', 'oes_compressed_paletted_texture')) as g
:
4678 g(['oes_compressed_paletted_texture-api'], 'basic API')
4679 g(['arb_texture_compression-invalid-formats', 'paletted'],
4682 with profile
.test_list
.group_manager(
4684 grouptools
.join('spec', 'egl 1.4'),
4685 exclude_platforms
=['glx']) as g
:
4686 g(['egl-create-surface'], 'eglCreateSurface', run_concurrent
=False)
4687 g(['egl-query-surface', '--bad-attr'], 'eglQuerySurface EGL_BAD_ATTRIBUTE',
4688 run_concurrent
=False)
4689 g(['egl-query-surface', '--bad-surface'],
4690 'eglQuerySurface EGL_BAD_SURFACE',
4691 run_concurrent
=False)
4692 g(['egl-query-surface', '--attr=EGL_HEIGHT'], 'eglQuerySurface EGL_HEIGHT',
4693 run_concurrent
=False)
4694 g(['egl-query-surface', '--attr=EGL_WIDTH'], 'eglQuerySurface EGL_WIDTH',
4695 run_concurrent
=False)
4696 g(['egl-terminate-then-unbind-context'],
4697 'eglTerminate then unbind context',
4698 run_concurrent
=False)
4699 g(['egl-create-pbuffer-surface'],
4700 'eglCreatePbufferSurface and then glClear',
4701 run_concurrent
=False)
4702 g(['egl-create-msaa-pbuffer-surface'],
4703 'eglCreatePbufferSurface with EGL_SAMPLES set',
4704 run_concurrent
=False)
4705 g(['egl-create-largest-pbuffer-surface'],
4706 'largest possible eglCreatePbufferSurface and then glClear',
4707 run_concurrent
=False)
4708 g(['egl-invalid-attr'])
4709 g(['egl-context-priority'])
4710 g(['egl-blob-cache'])
4711 g(['egl-copy-buffers'])
4712 g(['egl-gl_oes_egl_image'])
4713 g(['egl-flush-external'])
4714 g(['egl-ext_egl_image_storage'])
4716 with profile
.test_list
.group_manager(
4718 grouptools
.join('spec', 'egl_nok_swap_region'),
4719 exclude_platforms
=['glx']) as g
:
4720 g(['egl-nok-swap-region'], 'basic', run_concurrent
=False)
4722 with profile
.test_list
.group_manager(
4724 grouptools
.join('spec', 'egl_nok_texture_from_pixmap'),
4725 exclude_platforms
=['glx']) as g
:
4726 g(['egl-nok-texture-from-pixmap'], 'basic', run_concurrent
=False)
4728 with profile
.test_list
.group_manager(
4730 grouptools
.join('spec', 'egl_khr_create_context'),
4731 exclude_platforms
=['glx']) as g
:
4732 g(['egl-create-context-default-major-version-gles'],
4733 'default major version GLES', run_concurrent
=False)
4734 g(['egl-create-context-default-major-version-gl'],
4735 'default major version GL', run_concurrent
=False)
4736 g(['egl-create-context-default-minor-version-gles'],
4737 'default minor version GLES', run_concurrent
=False)
4738 g(['egl-create-context-default-minor-version-gl'],
4739 'default minor version GL', run_concurrent
=False)
4740 g(['egl-create-context-valid-attribute-empty-gles'],
4741 'valid attribute empty GLES', run_concurrent
=False)
4742 g(['egl-create-context-valid-attribute-empty-gl'],
4743 'valid attribute empty GL', run_concurrent
=False)
4744 g(['egl-create-context-valid-attribute-null-gles'],
4745 'NULL valid attribute GLES', run_concurrent
=False)
4746 g(['egl-create-context-valid-attribute-null-gl'],
4747 'NULL valid attribute GL', run_concurrent
=False)
4748 g(['egl-create-context-invalid-gl-version'], 'invalid OpenGL version',
4749 run_concurrent
=False)
4750 g(['egl-create-context-invalid-attribute-gles'], 'invalid attribute GLES',
4751 run_concurrent
=False)
4752 g(['egl-create-context-invalid-attribute-gl'], 'invalid attribute GL',
4753 run_concurrent
=False)
4754 g(['egl-create-context-invalid-flag-gles'], 'invalid flag GLES',
4755 run_concurrent
=False)
4756 g(['egl-create-context-invalid-flag-gl'], 'invalid flag GL',
4757 run_concurrent
=False)
4758 g(['egl-create-context-valid-flag-forward-compatible-gl'],
4759 'valid forward-compatible flag GL', run_concurrent
=False)
4760 g(['egl-create-context-invalid-profile'], 'invalid profile',
4761 run_concurrent
=False)
4762 g(['egl-create-context-core-profile'], '3.2 core profile required',
4763 run_concurrent
=False)
4764 g(['egl-create-context-pre-GL32-profile'], 'pre-GL3.2 profile',
4765 run_concurrent
=False)
4766 g(['egl-create-context-verify-gl-flavor'], 'verify GL flavor',
4767 run_concurrent
=False)
4768 g(['egl-create-context-valid-flag-debug-gl', 'gl'], 'valid debug flag GL',
4769 run_concurrent
=False)
4770 g(['egl-create-context-no-error', 'gl'], 'no-error context GL',
4771 run_concurrent
=False)
4773 for api
in ('gles1', 'gles2', 'gles3'):
4774 g(['egl-create-context-valid-flag-debug-gles', api
],
4775 'valid debug flag {}'.format(api
), run_concurrent
=False)
4777 with profile
.test_list
.group_manager(
4779 grouptools
.join('spec', 'egl_khr_gl_image'),
4780 exclude_platforms
=['glx']) as g
:
4781 for internal_format
in ('GL_RGBA', 'GL_DEPTH_COMPONENT24'):
4782 g(['egl_khr_gl_renderbuffer_image-clear-shared-image', internal_format
],
4783 run_concurrent
=False)
4785 with profile
.test_list
.group_manager(
4787 grouptools
.join('spec', 'egl_khr_surfaceless_context'),
4788 exclude_platforms
=['glx']) as g
:
4789 g(['egl-surfaceless-context-viewport'], 'viewport',
4790 run_concurrent
=False)
4792 with profile
.test_list
.group_manager(
4794 grouptools
.join('spec', 'egl_mesa_configless_context'),
4795 exclude_platforms
=['glx']) as g
:
4796 g(['egl-configless-context'], 'basic')
4798 with profile
.test_list
.group_manager(
4800 grouptools
.join('spec', 'egl_ext_client_extensions'),
4801 exclude_platforms
=['glx']) as g
:
4803 g(['egl_ext_client_extensions', str(i
)],
4804 'conformance test {0}'.format(i
))
4806 with profile
.test_list
.group_manager(
4808 grouptools
.join('spec', 'egl_khr_fence_sync'),
4809 exclude_platforms
=['glx']) as g
:
4810 g(['egl_khr_fence_sync'], 'conformance')
4812 with profile
.test_list
.group_manager(
4814 grouptools
.join('spec', 'egl_android_native_fence_sync'),
4815 exclude_platforms
=['glx']) as g
:
4816 g(['egl_khr_fence_sync', 'android_native'])
4818 with profile
.test_list
.group_manager(
4820 grouptools
.join('spec', 'egl_khr_gl_colorspace'),
4821 exclude_platforms
=['glx']) as g
:
4822 g(['egl-gl-colorspace'], 'linear')
4823 g(['egl-gl-colorspace', 'srgb'], 'srgb')
4825 with profile
.test_list
.group_manager(
4827 grouptools
.join('spec', 'egl_khr_wait_sync'),
4828 exclude_platforms
=['glx']) as g
:
4829 g(['egl_khr_fence_sync', 'wait_sync'], 'conformance')
4831 with profile
.test_list
.group_manager(
4833 grouptools
.join('spec', 'egl_khr_get_all_proc_addresses'),
4834 exclude_platforms
=['glx']) as g
:
4835 g(['egl_khr_get_all_proc_addresses'], 'conformance')
4837 with profile
.test_list
.group_manager(
4839 grouptools
.join('spec', 'egl_chromium_sync_control'),
4840 exclude_platforms
=['glx']) as g
:
4841 g(['egl_chromium_sync_control'], 'conformance')
4843 with profile
.test_list
.group_manager(
4845 grouptools
.join('spec', 'egl_ext_device_query'),
4846 exclude_platforms
=['glx']) as g
:
4847 g(['egl_ext_device_query'], 'conformance')
4849 with profile
.test_list
.group_manager(
4851 grouptools
.join('spec', 'egl_ext_device_enumeration'),
4852 exclude_platforms
=['glx']) as g
:
4853 g(['egl_ext_device_enumeration'], 'conformance')
4855 with profile
.test_list
.group_manager(
4857 grouptools
.join('spec', 'egl_ext_device_drm'),
4858 exclude_platforms
=['glx']) as g
:
4859 g(['egl_ext_device_drm'], 'conformance')
4861 with profile
.test_list
.group_manager(
4863 grouptools
.join('spec', 'egl_ext_platform_device'),
4864 exclude_platforms
=['glx']) as g
:
4865 g(['egl_ext_platform_device'], 'conformance')
4867 with profile
.test_list
.group_manager(
4869 grouptools
.join('spec', 'egl_ext_device_base'),
4870 exclude_platforms
=['glx']) as g
:
4871 g(['egl_ext_device_base'], 'conformance')
4873 with profile
.test_list
.group_manager(
4875 grouptools
.join('spec', 'egl_mesa_device_software'),
4876 exclude_platforms
=['glx']) as g
:
4877 g(['egl_mesa_device_software'], 'conformance')
4879 with profile
.test_list
.group_manager(
4881 grouptools
.join('spec', 'egl_mesa_query_driver'),
4882 exclude_platforms
=['glx']) as g
:
4883 g(['egl_mesa_query_driver'], 'conformance')
4885 with profile
.test_list
.group_manager(
4887 grouptools
.join('spec', 'egl_mesa_platform_surfaceless'),
4888 exclude_platforms
=['glx']) as g
:
4889 g(['egl_mesa_platform_surfaceless'], 'conformance')
4891 with profile
.test_list
.group_manager(
4893 grouptools
.join('spec', 'egl_ext_image_dma_buf_import_modifiers'),
4894 exclude_platforms
=['glx']) as g
:
4895 g(['egl_ext_image_dma_buf_import_modifiers-query'], 'conformance')
4897 with profile
.test_list
.group_manager(
4899 grouptools
.join('spec', 'egl_ext_protected_content'),
4900 exclude_platforms
=['glx']) as g
:
4901 g(['egl_ext_protected_content'], 'conformance')
4903 with profile
.test_list
.group_manager(
4904 PiglitGLTest
, grouptools
.join('spec', '!opengl ES 2.0')) as g
:
4905 g(['glsl-fs-pointcoord_gles2'], 'glsl-fs-pointcoord')
4906 g(['invalid-es3-queries_gles2'])
4907 g(['link-no-vsfs_gles2'], 'link-no-vsfs')
4909 g(['multiple-shader-objects_gles2'])
4910 g(['fbo_discard_gles2'])
4911 g(['draw_buffers_gles2'])
4913 with profile
.test_list
.group_manager(
4914 PiglitGLTest
, grouptools
.join('spec', '!opengl ES 3.0')) as g
:
4915 g(['minmax_gles3'], 'minmax')
4916 g(['texture-immutable-levels_gles3'], 'texture-immutable-levels')
4917 g(['gles-3.0-drawarrays-vertexid'], 'gl_VertexID used with glDrawArrays')
4918 g(['gles-3.0-transform-feedback-uniform-buffer-object'])
4919 g(['gles-3.0-attribute-aliasing'], 'vertex attribute aliasing')
4921 for test_mode
in ['teximage', 'texsubimage']:
4922 g(['ext_texture_array-compressed_gles3', test_mode
, '-fbo'],
4923 'ext_texture_array-compressed_gles3 {0}'.format(test_mode
),
4924 run_concurrent
=False)
4926 for tex_format
in ['rgb8', 'srgb8', 'rgba8', 'srgb8-alpha8', 'r11', 'rg11',
4927 'rgb8-punchthrough-alpha1',
4928 'srgb8-punchthrough-alpha1']:
4929 g(['oes_compressed_etc2_texture-miptree_gles3', tex_format
])
4931 with profile
.test_list
.group_manager(
4932 PiglitGLTest
, grouptools
.join('spec', 'arb_es3_compatibility')) as g
:
4933 g(['es3-primrestart-fixedindex'])
4934 g(['es3-drawarrays-primrestart-fixedindex'])
4936 for tex_format
in ['rgb8', 'srgb8', 'rgba8', 'srgb8-alpha8', 'r11', 'rg11',
4937 'rgb8-punchthrough-alpha1',
4938 'srgb8-punchthrough-alpha1']:
4939 for context
in ['core', 'compat']:
4940 g(['oes_compressed_etc2_texture-miptree', tex_format
, context
])
4942 with profile
.test_list
.group_manager(
4944 grouptools
.join('spec', 'arb_shader_atomic_counters')) as g
:
4945 g(['arb_shader_atomic_counters-active-counters'], 'active-counters')
4946 g(['arb_shader_atomic_counters-array-indexing'], 'array-indexing')
4947 g(['arb_shader_atomic_counters-buffer-binding'], 'buffer-binding')
4948 g(['arb_shader_atomic_counters-default-partition'], 'default-partition')
4949 g(['arb_shader_atomic_counters-fragment-discard'], 'fragment-discard')
4950 g(['arb_shader_atomic_counters-function-argument'], 'function-argument')
4951 g(['arb_shader_atomic_counters-max-counters'], 'max-counters')
4952 g(['arb_shader_atomic_counters-minmax'], 'minmax')
4953 g(['arb_shader_atomic_counters-multiple-defs'], 'multiple-defs')
4954 g(['arb_shader_atomic_counters-semantics'], 'semantics')
4955 g(['arb_shader_atomic_counters-unique-id'], 'unique-id')
4956 g(['arb_shader_atomic_counters-unused-result'], 'unused-result')
4957 g(['arb_shader_atomic_counters-respecify-buffer'], 'respecify-buffer')
4959 with profile
.test_list
.group_manager(
4961 grouptools
.join('spec', 'arb_direct_state_access')) as g
:
4962 g(['arb_direct_state_access-create-transformfeedbacks'],
4963 'create-transformfeedbacks')
4964 g(['arb_direct_state_access-transformfeedback-bufferbase'],
4965 'transformfeedback-bufferbase')
4966 g(['arb_direct_state_access-transformfeedback-bufferrange'],
4967 'transformfeedback-bufferrange')
4968 g(['arb_direct_state_access-gettransformfeedback'], 'gettransformfeedback')
4969 g(['arb_direct_state_access-create-renderbuffers'], 'create-renderbuffers')
4970 g(['arb_direct_state_access-namedrenderbuffer'], 'namedrenderbuffer')
4971 g(['arb_direct_state_access-dsa-textures'], 'dsa-textures')
4972 g(['arb_direct_state_access-texturesubimage'], 'texturesubimage')
4973 g(['arb_direct_state_access-bind-texture-unit'], 'bind-texture-unit')
4974 g(['arb_direct_state_access-create-textures'], 'create-textures')
4975 g(['arb_direct_state_access-texture-storage'], 'textures-storage')
4976 g(['arb_direct_state_access-texunits'], 'texunits')
4977 g(['arb_direct_state_access-texture-params'], 'texture-params')
4978 g(['arb_direct_state_access-copytexturesubimage'], 'copytexturesubimage')
4979 g(['arb_direct_state_access-texture-errors'], 'texture-errors')
4980 g(['arb_direct_state_access-get-textures'], 'get-textures')
4981 g(['arb_direct_state_access-gettextureimage-formats'],
4982 'gettextureimage-formats')
4983 g(['arb_direct_state_access-gettextureimage-formats', 'init-by-rendering'],
4984 'gettextureimage-formats init-by-rendering')
4985 g(['arb_direct_state_access-gettextureimage-luminance'],
4986 'gettextureimage-luminance')
4987 g(['arb_direct_state_access-gettextureimage-targets'],
4988 'gettextureimage-targets')
4989 g(['arb_direct_state_access-compressedtextureimage',
4990 'GL_COMPRESSED_RGBA_S3TC_DXT5_EXT'],
4991 'compressedtextureimage GL_COMPRESSED_RGBA_S3TC_DXT5_EXT')
4992 g(['arb_direct_state_access-getcompressedtextureimage'],
4993 'getcompressedtextureimage')
4994 g(['arb_direct_state_access-texture-storage-multisample'],
4995 'texture-storage-multisample')
4996 g(['arb_direct_state_access-texture-buffer'], 'texture-buffer')
4997 g(['arb_direct_state_access-create-samplers'], 'create-samplers')
4998 g(['arb_direct_state_access-create-programpipelines'],
4999 'create-programpipelines')
5000 g(['arb_direct_state_access-create-queries'], 'create-queries')
5001 g(['arb_direct_state_access-generatetexturemipmap'], 'generatetexturemipmap')
5003 with profile
.test_list
.group_manager(
5005 grouptools
.join('spec', 'ext_direct_state_access')) as g
:
5006 g(['ext_direct_state_access-matrix-commands'],
5008 g(['ext_direct_state_access-textures'],
5010 g(['ext_direct_state_access-multi-texture'],
5012 g(['ext_direct_state_access-named-buffers', '15'],
5014 g(['ext_direct_state_access-named-buffers', '30'],
5016 g(['ext_direct_state_access-compressedtextureimage',
5017 'GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT'],
5018 'compressedtextureimage GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT')
5019 g(['ext_direct_state_access-client-state-indexed', '12'],
5020 'client-state-indexed 12')
5021 g(['ext_direct_state_access-client-state-indexed', '30'],
5022 'client-state-indexed 30')
5023 g(['ext_direct_state_access-indexed-state-queries', '12'],
5024 'indexed-state-queries 12')
5025 g(['ext_direct_state_access-indexed-state-queries', '30'],
5026 'indexed-state-queries 30')
5027 g(['ext_direct_state_access-program-uniform'],
5029 g(['ext_direct_state_access-named-program'],
5031 g(['ext_direct_state_access-renderbuffer'], 'renderbuffer')
5032 g(['ext_direct_state_access-framebuffer'], 'framebuffer')
5033 g(['ext_direct_state_access-compressedmultiteximage',
5034 'GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT'],
5035 'compressedmultiteximage GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT')
5036 g(['ext_direct_state_access-vao'], 'vao')
5038 with profile
.test_list
.group_manager(
5040 grouptools
.join('spec', 'arb_shader_image_load_store')) as g
:
5041 g(['arb_shader_image_load_store-atomicity'], 'atomicity')
5042 g(['arb_shader_image_load_store-bitcast'], 'bitcast')
5043 g(['arb_shader_image_load_store-coherency'], 'coherency')
5044 g(['arb_shader_image_load_store-dead-fragments'], 'dead-fragments')
5045 g(['arb_shader_image_load_store-early-z'], 'early-z')
5046 g(['arb_shader_image_load_store-host-mem-barrier'], 'host-mem-barrier')
5047 g(['arb_shader_image_load_store-indexing'], 'indexing')
5048 g(['arb_shader_image_load_store-invalid'], 'invalid')
5049 g(['arb_shader_image_load_store-layer'], 'layer')
5050 g(['arb_shader_image_load_store-level'], 'level')
5051 g(['arb_shader_image_load_store-max-images'], 'max-images')
5052 g(['arb_shader_image_load_store-max-size'], 'max-size')
5053 g(['arb_shader_image_load_store-minmax'], 'minmax')
5054 g(['arb_shader_image_load_store-qualifiers'], 'qualifiers')
5055 g(['arb_shader_image_load_store-restrict'], 'restrict')
5056 g(['arb_shader_image_load_store-semantics'], 'semantics')
5057 g(['arb_shader_image_load_store-shader-mem-barrier'], 'shader-mem-barrier')
5058 g(['arb_shader_image_load_store-state'], 'state')
5059 g(['arb_shader_image_load_store-unused'], 'unused')
5061 with profile
.test_list
.group_manager(
5063 grouptools
.join('spec', 'arb_post_depth_coverage')) as g
:
5064 g(['arb_post_depth_coverage-basic'])
5065 g(['arb_post_depth_coverage-multisampling'])
5066 g(['arb_post_depth_coverage-sample-shading'])
5068 with profile
.test_list
.group_manager(
5070 grouptools
.join('spec', 'arb_fragment_shader_interlock')) as g
:
5071 g(['arb_fragment_shader_interlock-image-load-store'])
5073 with profile
.test_list
.group_manager(
5075 grouptools
.join('spec', 'arb_shader_image_size')) as g
:
5076 g(['arb_shader_image_size-builtin'], 'builtin')
5078 with profile
.test_list
.group_manager(
5080 grouptools
.join('spec', 'arb_shader_texture_image_samples')) as g
:
5081 g(['arb_shader_texture_image_samples-builtin-image'], 'builtin-image')
5083 with profile
.test_list
.group_manager(
5085 grouptools
.join('spec', 'arb_texture_stencil8')) as g
:
5086 g(['arb_texture_stencil8-draw'], 'draw')
5087 g(['arb_texture_stencil8-getteximage'], 'getteximage')
5088 g(['arb_texture_stencil8-stencil-texture'], 'stencil-texture')
5089 g(['arb_texture_stencil8-fbo-stencil8', 'clear', 'GL_STENCIL_INDEX8'], 'fbo-stencil-clear')
5090 g(['arb_texture_stencil8-fbo-stencil8', 'blit', 'GL_STENCIL_INDEX8'], 'fbo-stencil-blit')
5091 g(['arb_texture_stencil8-fbo-stencil8', 'readpixels', 'GL_STENCIL_INDEX8'], 'fbo-stencil-readpixels')
5092 add_fbo_formats_tests(g
, 'GL_ARB_texture_stencil8')
5093 add_texwrap_format_tests(g
, 'GL_ARB_texture_stencil8')
5095 with profile
.test_list
.group_manager(
5097 grouptools
.join('spec', 'arb_vertex_attrib_64bit')) as g
:
5098 g(['arb_vertex_attrib_64bit-double_attribs'], 'double_attribs')
5099 g(['arb_vertex_attrib_64bit-double_attribs_dlist'], 'get_double_attribs-display-lists')
5100 g(['arb_vertex_attrib_64bit-check-explicit-location'], 'check-explicit-location')
5101 g(['arb_vertex_attrib_64bit-getactiveattrib'], 'getactiveattrib')
5102 g(['arb_vertex_attrib_64bit-max-vertex-attrib'], 'max-vertex-attrib')
5103 for test_type
in ('shader', 'api'):
5104 g(['arb_vertex_attrib_64bit-overlapping-locations', test_type
],
5105 run_concurrent
=False)
5107 with profile
.test_list
.group_manager(
5109 grouptools
.join('spec', 'arb_query_buffer_object')) as g
:
5110 g(['arb_query_buffer_object-qbo'], 'qbo')
5111 g(['arb_query_buffer_object-coherency'], 'coherency')
5113 with profile
.test_list
.group_manager(
5115 grouptools
.join('spec', 'ext_framebuffer_blit')) as g
:
5116 g(['ext_framebuffer_blit-blit-early'], 'blit-early')
5118 # Group OES_draw_elements_base_vertex
5119 with profile
.test_list
.group_manager(
5121 grouptools
.join('spec', 'OES_draw_elements_base_vertex')) as g
:
5122 g(['oes_draw_elements_base_vertex-drawelements'], run_concurrent
=False)
5123 g(['oes_draw_elements_base_vertex-drawelements-instanced'],
5124 run_concurrent
=False)
5125 g(['oes_draw_elements_base_vertex-drawrangeelements'],
5126 run_concurrent
=False)
5127 g(['oes_draw_elements_base_vertex-multidrawelements'],
5128 run_concurrent
=False)
5130 with profile
.test_list
.group_manager(
5131 BuiltInConstantsTest
,
5132 grouptools
.join('spec', 'oes_geometry_shader')) as g
:
5133 g(['built-in-constants_gles3',
5134 os
.path
.join('spec', 'oes_geometry_shader', 'minimum-maximums.txt')],
5135 'built-in constants')
5137 # Group EXT_shader_samples_identical
5138 with profile
.test_list
.group_manager(
5140 grouptools
.join('spec', 'EXT_shader_samples_identical')) as g
:
5141 for sample_count
in MSAA_SAMPLE_COUNTS
:
5142 g(['ext_shader_samples_identical-simple-fs', sample_count
])
5144 # Group ARB_shader_draw_parameters
5145 with profile
.test_list
.group_manager(
5147 grouptools
.join('spec', 'ARB_shader_draw_parameters')) as g
:
5148 g(['arb_shader_draw_parameters-drawid', 'drawid'], 'drawid')
5149 g(['arb_shader_draw_parameters-drawid', 'vertexid'], 'drawid-vertexid')
5150 g(['arb_shader_draw_parameters-drawid-indirect', 'drawid'], 'drawid-indirect')
5151 g(['arb_shader_draw_parameters-drawid-indirect', 'basevertex'], 'drawid-indirect-basevertex')
5152 g(['arb_shader_draw_parameters-drawid-indirect', 'baseinstance'], 'drawid-indirect-baseinstance')
5153 g(['arb_shader_draw_parameters-drawid-indirect', 'vertexid'], 'drawid-indirect-vertexid')
5154 g(['arb_shader_draw_parameters-drawid-single-draw'], 'drawid-single-draw')
5155 g(['arb_shader_draw_parameters-drawid-single-draw', 'dlist'], 'drawid-single-draw-display-list')
5156 g(['arb_shader_draw_parameters-drawid-single-draw', 'restart'], 'drawid-single-draw-primitive-restart')
5158 variables
= ('basevertex', 'baseinstance', 'basevertex-baseinstance', 'vertexid-zerobased')
5160 g(['arb_shader_draw_parameters-basevertex', v
], v
)
5162 g(['arb_shader_draw_parameters-basevertex', v
, 'indirect'], v
+ '-indirect')
5164 # Group ARB_indirect_parameters
5165 with profile
.test_list
.group_manager(
5167 grouptools
.join('spec', 'ARB_indirect_parameters')) as g
:
5168 g(['arb_indirect_parameters-tf-count-arrays'], 'tf-count-arrays')
5169 g(['arb_indirect_parameters-tf-count-elements'], 'tf-count-elements')
5170 g(['arb_indirect_parameters-conditional-render'], 'conditional-render')
5172 with profile
.test_list
.group_manager(
5174 grouptools
.join('object namespace pollution')) as g
:
5175 for object_type
in ("buffer", "framebuffer", "program", "renderbuffer", "texture", "vertex-array"):
5176 for operation
in ("glBitmap", "glBlitFramebuffer", "glClear", "glClearTexSubImage", "glCopyImageSubData", "glCopyPixels", "glCopyTexSubImage2D", "glDrawPixels", "glGenerateMipmap", "glGetTexImage", "glGetTexImage-compressed", "glTexSubImage2D"):
5177 g(['object-namespace-pollution', operation
, object_type
],
5178 '{} with {}'.format(object_type
, operation
))
5180 # Group ARB_texture_barrier
5181 resolution_set
= ['32', '512']
5182 blend_passes_set
= ['1', '42']
5183 num_textures_set
= ['1', '8']
5184 granularity_set
= ['8', '64', '128']
5185 draw_passes_set
= ['1', '2', '3', '4', '7', '8']
5187 with profile
.test_list
.group_manager(
5189 grouptools
.join('spec', 'arb_texture_barrier')) as g
:
5190 for resolution
, blend_passes
, num_textures
, granularity
, draw_passes
in itertools
.product(
5191 resolution_set
, blend_passes_set
, num_textures_set
, granularity_set
, draw_passes_set
):
5192 g(['arb_texture_barrier-blending-in-shader', resolution
,
5193 blend_passes
, num_textures
, granularity
, draw_passes
])
5196 # Group ARB_invalidate_subdata
5197 with profile
.test_list
.group_manager(
5199 grouptools
.join('spec', 'ARB_invalidate_subdata')) as g
:
5200 g(['arb_invalidate_subdata-buffer'], 'buffer')
5202 # Group EXT_window_rectangles
5203 with profile
.test_list
.group_manager(
5205 grouptools
.join('spec', 'EXT_window_rectangles')) as g
:
5206 g(['ext_window_rectangles-dlist'], 'dlist')
5207 g(['ext_window_rectangles-errors'], 'errors')
5208 g(['ext_window_rectangles-render'], 'render')
5210 g(['ext_window_rectangles-errors_gles3'], 'errors_gles3')
5211 g(['ext_window_rectangles-render_gles3'], 'render_gles3')
5213 # Group ARB_compute_variable_group_size
5214 with profile
.test_list
.group_manager(
5216 grouptools
.join('spec', 'ARB_compute_variable_group_size')) as g
:
5217 g(['arb_compute_variable_group_size-errors'], 'errors')
5218 g(['arb_compute_variable_group_size-local-size'], 'local-size')
5219 g(['arb_compute_variable_group_size-minmax'], 'minmax')
5221 # Group INTEL_conservative_rasterization
5222 with profile
.test_list
.group_manager(
5224 grouptools
.join('spec', 'INTEL_conservative_rasterization')) as g
:
5225 g(['intel_conservative_rasterization-depthcoverage'])
5226 g(['intel_conservative_rasterization-innercoverage'])
5227 g(['intel_conservative_rasterization-invalid'])
5228 g(['intel_conservative_rasterization-tri'])
5229 g(['intel_conservative_rasterization-depthcoverage_gles3'])
5230 g(['intel_conservative_rasterization-innercoverage_gles3'])
5231 g(['intel_conservative_rasterization-invalid_gles3'])
5232 g(['intel_conservative_rasterization-tri_gles3'])
5234 # Group INTEL_blackhole_render
5235 with profile
.test_list
.group_manager(
5237 grouptools
.join('spec', 'INTEL_blackhole_render')) as g
:
5238 g(['intel_blackhole-blit'])
5239 g(['intel_blackhole-draw'])
5240 g(['intel_blackhole-dispatch'])
5241 g(['intel_blackhole-blit_gles2'])
5242 g(['intel_blackhole-draw_gles2'])
5243 g(['intel_blackhole-blit_gles3'])
5244 g(['intel_blackhole-draw_gles3'])
5246 # Group INTEL_performance_query
5247 with profile
.test_list
.group_manager(
5249 grouptools
.join('spec', 'INTEL_performance_query')) as g
:
5250 g(['intel_performance_query-issue_2235'])
5252 # Group ARB_bindless_texture
5253 with profile
.test_list
.group_manager(
5255 grouptools
.join('spec', 'ARB_bindless_texture')) as g
:
5256 g(['arb_bindless_texture-border-color'], 'border-color')
5257 g(['arb_bindless_texture-conversions'], 'conversions')
5258 g(['arb_bindless_texture-errors'], 'errors')
5259 g(['arb_bindless_texture-handles'], 'handles')
5260 g(['arb_bindless_texture-illegal'], 'illegal')
5261 g(['arb_bindless_texture-legal'], 'legal')
5262 g(['arb_bindless_texture-limit'], 'limit')
5263 g(['arb_bindless_texture-uint64_attribs'], 'uint64_attribs')
5264 g(['arb_bindless_texture-uniform'], 'uniform')
5266 with profile
.test_list
.group_manager(
5268 grouptools
.join('spec', 'ext_shader_image_load_store')) as g
:
5269 g(['ext_shader_image_load_store-image_functions'], 'image_functions')
5270 g(['ext_shader_image_load_store-bind_image_error'], 'bind_image_error')
5272 # Group ARB_sample_locations
5273 with profile
.test_list
.group_manager(
5275 grouptools
.join('spec', 'ARB_sample_locations')) as g
:
5276 g(['arb_sample_locations'], 'test')
5278 with profile
.test_list
.group_manager(
5280 grouptools
.join('spec', 'NV_image_formats')) as g
:
5281 g(['nv_image_formats-gles3'])
5283 with profile
.test_list
.group_manager(
5285 grouptools
.join('spec', 'EXT_color_buffer_float')) as g
:
5286 g(['ext_color_buffer_float-draw_gles3'])
5288 with profile
.test_list
.group_manager(
5290 grouptools
.join('spec', 'AMD_compressed_atc_texture')) as g
:
5291 g(['amd_compressed_atc_texture-miptree'], 'miptree')
5293 with profile
.test_list
.group_manager(
5295 grouptools
.join('spec', 'OES_EGL_image_external_essl3')) as g
:
5296 g(['oes_egl_image_external_essl3'])
5298 with profile
.test_list
.group_manager(
5300 grouptools
.join('spec', 'NV_viewport_swizzle')) as g
:
5301 g(['nv_viewport_swizzle-errors'])
5302 g(['nv_viewport_swizzle-errors_gles3'])
5304 with profile
.test_list
.group_manager(
5306 grouptools
.join('spec', 'ext_clear_texture')) as g
:
5307 g(['ext_clear_texture-clear-max-level'])
5308 g(['ext_clear_texture-error'])
5309 g(['ext_clear_texture-3d'])
5310 g(['ext_clear_texture-cube'])
5311 g(['ext_clear_texture-multisample'])
5312 g(['ext_clear_texture-base-formats'])
5313 g(['ext_clear_texture-stencil'])
5314 g(['ext_clear_texture-texview'])
5316 with profile
.test_list
.group_manager(
5318 grouptools
.join('spec', 'EXT_texture_sRGB_R8')) as g
:
5319 g(['teximage-colors', 'GL_SR8_EXT'])
5321 with profile
.test_list
.group_manager(
5323 grouptools
.join('spec', 'EXT_texture_sRGB_RG8')) as g
:
5324 g(['teximage-colors', 'GL_SRG8_EXT'])
5326 with profile
.test_list
.group_manager(
5328 grouptools
.join('spec', 'arm_shader_framebuffer_fetch_depth_stencil')) as g
:
5329 for format
in [ 'GL_STENCIL_INDEX8', 'GL_DEPTH_COMPONENT16', 'GL_DEPTH_COMPONENT24',
5330 'GL_DEPTH_COMPONENT32F', 'GL_DEPTH24_STENCIL8', 'GL_DEPTH32F_STENCIL8' ]:
5331 for samples
in ['1', '2', '4', '8', '16']:
5332 g(['arm_shader_framebuffer_fetch_depth_stencil', format
, samples
])
5333 g(['arm_shader_framebuffer_fetch_depth_stencil_gles3', format
, samples
])
5335 if platform
.system() == 'Windows':
5336 profile
.filters
.append(lambda p
, _
: not p
.startswith('glx'))