all.tests 75.7 KB
Newer Older
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
Nicolai Hähnle's avatar
Nicolai Hähnle committed
3
4
# All tests that come with piglit, using default settings

5
import os
6
import os.path as path
Nicolai Hähnle's avatar
Nicolai Hähnle committed
7
8
9
import re
import subprocess

Nicolai Hähnle's avatar
Nicolai Hähnle committed
10
11
12
from framework.core import *
from framework.exectest import *
from framework.gleantest import *
13
from framework.glsl_parser_test import GLSLParserTest, add_glsl_parser_test, import_glsl_parser_tests
Nicolai Hähnle's avatar
Nicolai Hähnle committed
14

Nicolai Hähnle's avatar
Nicolai Hähnle committed
15
16
######
# Collecting all tests
Nicolai Hähnle's avatar
Nicolai Hähnle committed
17
18
profile = TestProfile()

Nicolai Hähnle's avatar
Nicolai Hähnle committed
19
20
glean = Group()
glean['basic'] = GleanTest('basic')
21
glean['api2'] = GleanTest('api2')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
22
23
glean['makeCurrent'] = GleanTest('makeCurrent')
glean['blendFunc'] = GleanTest('blendFunc')
24
glean['bufferObject'] = GleanTest('bufferObject')
25
glean['clipFlat'] = GleanTest('clipFlat')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
26
glean['depthStencil'] = GleanTest('depthStencil')
27
glean['fbo'] = GleanTest('fbo')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
28
29
30
31
glean['fpexceptions'] = GleanTest('fpexceptions')
glean['getString'] = GleanTest('getString')
glean['logicOp'] = GleanTest('logicOp')
glean['maskedClear'] = GleanTest('maskedClear')
Emma Anholt's avatar
Emma Anholt committed
32
glean['occluquery'] = GleanTest('occluQry')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
33
34
35
36
37
38
39
glean['orthoPosRandTris'] = GleanTest('orthoPosRandTris')
glean['orthoPosRandRects'] = GleanTest('orthoPosRandRects')
glean['orthoPosTinyQuads'] = GleanTest('orthoPosTinyQuads')
glean['orthoPosHLines'] = GleanTest('orthoPosHLines')
glean['orthoPosVLines'] = GleanTest('orthoPosVLines')
glean['orthoPosPoints'] = GleanTest('orthoPosPoints')
glean['paths'] = GleanTest('paths')
40
glean['pbo'] = GleanTest('pbo')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
41
42
43
glean['polygonOffset'] = GleanTest('polygonOffset')
glean['pixelFormats'] = GleanTest('pixelFormats')
glean['pointAtten'] = GleanTest('pointAtten')
44
glean['pointSprite'] = GleanTest('pointSprite')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
45
46
47
48
glean['exactRGBA'] = GleanTest('exactRGBA')
glean['readPixSanity'] = GleanTest('readPixSanity')
glean['rgbTriStrip'] = GleanTest('rgbTriStrip')
glean['scissor'] = GleanTest('scissor')
49
50
glean['shaderAPI'] = GleanTest('shaderAPI')
glean['stencil2'] = GleanTest('stencil2')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
51
52
53
54
55
56
glean['teapot'] = GleanTest('teapot')
glean['texCombine'] = GleanTest('texCombine')
glean['texCube'] = GleanTest('texCube')
glean['texEnv'] = GleanTest('texEnv')
glean['texgen'] = GleanTest('texgen')
glean['texRect'] = GleanTest('texRect')
57
58
glean['texCombine4'] = GleanTest('texCombine4')
glean['texSwizzle'] = GleanTest('texSwizzle')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
59
glean['texture_srgb'] = GleanTest('texture_srgb')
60
61
glean['texUnits'] = GleanTest('texUnits')
glean['vertArrayBGRA'] = GleanTest('vertArrayBGRA')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
62
63
glean['vertattrib'] = GleanTest('vertattrib')

64
def add_glsl1(name):
65
	testname = 'glsl1-' + name
66
	glean[testname] = GleanTest('glsl1')
67
	glean[testname].env['PIGLIT_TEST'] = name
68
69
execfile(os.path.dirname(__file__) + '/glean-glsl1.tests')

70
71
72
73
74
75
76
77
78
79
80
81
def add_fp1(name):
	testname = 'fp1-' + name
	glean[testname] = GleanTest('fragProg1')
	glean[testname].env['PIGLIT_TEST'] = name
execfile(os.path.dirname(__file__) + '/glean-fragProg1.tests')

def add_vp1(name):
	testname = 'vp1-' + name
	glean[testname] = GleanTest('vertProg1')
	glean[testname].env['PIGLIT_TEST'] = name
execfile(os.path.dirname(__file__) + '/glean-vertProg1.tests')

82
83
84
85
def add_fbo_generatemipmap_extension(group, extension, name):
	group[name] = PlainExecTest(['fbo-generatemipmap-formats', '-auto',
				     extension])

86
87
88
def add_fbo_clear_extension(group, extension, name):
	group[name] = PlainExecTest(['fbo-clear-formats', '-auto', extension])

Nicolai Hähnle's avatar
Nicolai Hähnle committed
89
mesa = Group()
90
add_plain_test(mesa, 'crossbar')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
91

92
93
94
95
def add_fbo_rg(group, format):
	name = "fbo-rg-" + format
	group[name] = PlainExecTest(['fbo-rg', '-auto', format])

96
fbo = Group()
97
98
add_plain_test(fbo, 'fbo-1d')
add_plain_test(fbo, 'fbo-3d')
99
add_plain_test(fbo, 'fbo-alpha')
100
add_plain_test(fbo, 'fbo-luminance-alpha')
101
add_plain_test(fbo, 'fbo-blit')
102
add_plain_test(fbo, 'fbo-blit-d24s8')
103
104
add_plain_test(fbo, 'fbo-cubemap')
add_plain_test(fbo, 'fbo-clearmipmap')
105
add_plain_test(fbo, 'fbo-clear-formats')
106
add_plain_test(fbo, 'fbo-copypix')
107
add_plain_test(fbo, 'fbo-copyteximage')
108
add_plain_test(fbo, 'fbo-copyteximage-simple')
109
add_plain_test(fbo, 'fbo-drawbuffers')
110
add_plain_test(fbo, 'fbo-drawbuffers-fragcolor')
111
add_plain_test(fbo, 'fbo-drawbuffers-maxtargets')
112
add_plain_test(fbo, 'fbo-drawbuffers2-blend')
113
add_plain_test(fbo, 'fbo-drawbuffers2-colormask')
114
add_plain_test(fbo, 'fbo-d24s8')
115
add_plain_test(fbo, 'fbo-flushing')
116
add_plain_test(fbo, 'fbo-fragcoord')
117
add_plain_test(fbo, 'fbo-generatemipmap')
118
add_plain_test(fbo, 'fbo-generatemipmap-filtering')
119
add_plain_test(fbo, 'fbo-generatemipmap-formats')
120
add_plain_test(fbo, 'fbo-generatemipmap-scissor')
121
add_plain_test(fbo, 'fbo-generatemipmap-nonsquare')
122
add_plain_test(fbo, 'fbo-generatemipmap-npot')
123
add_plain_test(fbo, 'fbo-generatemipmap-viewport')
124
add_plain_test(fbo, 'fbo-getframebufferattachmentparameter-01')
125
126
127
add_plain_test(fbo, 'fbo-incomplete-texture-01')
add_plain_test(fbo, 'fbo-incomplete-texture-02')
add_plain_test(fbo, 'fbo-incomplete-texture-03')
Vinson Lee's avatar
Vinson Lee committed
128
add_plain_test(fbo, 'fbo-integer')
129
add_plain_test(fbo, 'fbo-maxsize')
130
add_plain_test(fbo, 'fbo-nodepth-test')
131
add_plain_test(fbo, 'fbo-nostencil-test')
132
add_plain_test(fbo, 'fbo-readdrawpix')
133
add_plain_test(fbo, 'fbo-readpixels')
134
add_plain_test(fbo, 'fbo-scissor-bitmap')
Vinson Lee's avatar
Vinson Lee committed
135
add_plain_test(fbo, 'fbo-srgb')
136
add_plain_test(fbo, 'fbo-pbo-readpixels-small')
137
138
139
140
141
142
add_fbo_rg(fbo, 'GL_RED')
add_fbo_rg(fbo, 'GL_R8')
add_fbo_rg(fbo, 'GL_R16')
add_fbo_rg(fbo, 'GL_RG')
add_fbo_rg(fbo, 'GL_RG8')
add_fbo_rg(fbo, 'GL_RG16')
143

Nicolai Hähnle's avatar
Nicolai Hähnle committed
144
general = Group()
145
146
add_plain_test(general, 'bgra-sec-color-pointer')
add_plain_test(general, 'bgra-vert-attrib-pointer')
147
add_plain_test(general, 'blendminmax')
148
add_plain_test(general, 'blendsquare')
149
150
151
add_plain_test(general, 'clear-varray-2.0')
add_plain_test(general, 'depthrange-clear')
add_plain_test(general, 'depth_clamp')
152
add_plain_test(general, 'depth-clamp-range')
153
add_plain_test(general, 'depthfunc')
154
155
156
add_plain_test(general, 'dlist-clear')
add_plain_test(general, 'dlist-fdo3129-01')
add_plain_test(general, 'dlist-fdo3129-02')
157
add_plain_test(general, 'draw-batch')
158
add_plain_test(general, 'draw-elements')
159
add_plain_test(general, 'draw-elements-base-vertex')
160
add_plain_test(general, 'draw-elements-vs-inputs')
161
add_plain_test(general, 'draw-vertices')
162
add_plain_test(general, 'draw-vertices-half-float')
163
add_plain_test(general, 'fog-modes')
164
add_plain_test(general, 'geterror-invalid-enum')
Vinson Lee's avatar
Vinson Lee committed
165
add_plain_test(general, 'geterror-inside-begin')
166
add_plain_test(general, 'isbufferobj')
167
add_plain_test(general, 'line-aa-width')
168
add_plain_test(general, 'linestipple')
Vinson Lee's avatar
Vinson Lee committed
169
add_plain_test(general, 'longprim')
170
add_plain_test(general, 'object_purgeable-api-pbo')
171
add_plain_test(general, 'object_purgeable-api-texture')
172
add_plain_test(general, 'object_purgeable-api-vbo')
173
add_plain_test(general, 'occlusion_query')
174
add_plain_test(general, 'occlusion-query-discard')
175
add_plain_test(general, 'pbo-drawpixels')
Emma Anholt's avatar
Emma Anholt committed
176
add_plain_test(general, 'pbo-read-argb8888')
177
add_plain_test(general, 'pbo-readpixels-small')
178
add_plain_test(general, 'pbo-teximage')
179
add_plain_test(general, 'pbo-teximage-tiling')
180
add_plain_test(general, 'pbo-teximage-tiling-2')
181
add_plain_test(general, 'point-line-no-cull')
182
add_plain_test(general, 'primitive-restart')
183
add_plain_test(general, 'provoking-vertex')
184
add_plain_test(general, 'oes-read-format')
185
add_plain_test(general, 'quad-invariance')
186
add_plain_test(general, 'read-front')
187
add_plain_test(general, 'scissor-bitmap')
188
add_plain_test(general, 'scissor-clear')
189
190
add_plain_test(general, 'scissor-copypixels')
add_plain_test(general, 'scissor-depth-clear')
191
add_plain_test(general, 'scissor-many')
192
add_plain_test(general, 'scissor-offscreen')
193
194
add_plain_test(general, 'scissor-stencil-clear')
add_plain_test(general, 'stencil-drawpixels')
195
add_plain_test(general, 'stencil-twoside')
196
add_plain_test(general, 'stencil-wrap')
197
add_plain_test(general, 'texgen')
198
add_plain_test(general, 'texunits')
199
add_plain_test(general, 'timer_query')
200
add_plain_test(general, 'user-clip')
201
add_plain_test(general, 'vao-01')
202
add_plain_test(general, 'vao-02')
203
204
205
add_plain_test(general, 'varray-disabled')
add_plain_test(general, 'vbo-map-remap')
add_plain_test(general, 'vbo-subdata-sync')
Vinson Lee's avatar
Vinson Lee committed
206
add_plain_test(general, 'vbo-subdata-zero')
207
208
add_plain_test(general, 'windowoverlap')
add_plain_test(general, 'sync_api')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
209

Nicolai Hähnle's avatar
Nicolai Hähnle committed
210
shaders = Group()
211
212
213
214
215
216
def add_shader_generic(group, name):
	path = testBinDir + '../tests/shaders/'
	group[name] = PlainExecTest(['shader_runner', '-auto',
				     path + name + '.shader_test',
				     path])

217
218
219
220
221
222
223
def add_getactiveuniform_count(group, name, expected):
	path = 'shaders/'
	group['glsl-getactiveuniform-count: ' + name] = PlainExecTest(['glsl-getactiveuniform-count',
								   '-auto',
								   path + name + '.vert',
								   expected])

224
add_plain_test(shaders, 'activeprogram-bad-program')
225
add_plain_test(shaders, 'activeprogram-get')
226
add_plain_test(shaders, 'ati-fs-bad-delete')
227
add_plain_test(shaders, 'createshaderprogram-bad-type')
228
add_plain_test(shaders, 'createshaderprogram-attached-shaders')
229
230
231
232
233
add_plain_test(shaders, 'trinity-fp1')
add_plain_test(shaders, 'fp-abs-01')
add_plain_test(shaders, 'fp-abs-02')
add_plain_test(shaders, 'fp-condition_codes-01')
add_plain_test(shaders, 'fp-fog')
Vinson Lee's avatar
Vinson Lee committed
234
add_plain_test(shaders, 'fp-formats')
235
236
237
238
239
240
241
242
243
244
245
add_plain_test(shaders, 'fp-lit-mask')
add_plain_test(shaders, 'fp-fragment-position')
add_plain_test(shaders, 'fp-kil')
add_plain_test(shaders, 'fp-incomplete-tex')
add_plain_test(shaders, 'fp-indirections')
add_plain_test(shaders, 'fp-indirections2')
add_plain_test(shaders, 'fp-long-alu')
add_plain_test(shaders, 'fp-rfl')
add_plain_test(shaders, 'fp-set-01')
add_plain_test(shaders, 'fp-set-02')
add_plain_test(shaders, 'fp-unpack-01')
246
247
add_shader_generic(shaders, 'glsl-algebraic-add-add-1')
add_shader_generic(shaders, 'glsl-algebraic-add-add-2')
248
add_shader_generic(shaders, 'glsl-algebraic-add-add-3')
249
250
251
add_shader_generic(shaders, 'glsl-algebraic-add-add-4')
add_shader_generic(shaders, 'glsl-algebraic-add-sub-1')
add_shader_generic(shaders, 'glsl-algebraic-add-sub-2')
252
add_shader_generic(shaders, 'glsl-algebraic-add-zero')
253
add_shader_generic(shaders, 'glsl-algebraic-add-zero-2')
254
add_shader_generic(shaders, 'glsl-algebraic-div-one')
255
add_shader_generic(shaders, 'glsl-algebraic-div-one-2')
256
257
258
259
260
261
262
263
264
265
add_shader_generic(shaders, 'glsl-algebraic-logicand-false-2')
add_shader_generic(shaders, 'glsl-algebraic-logicand-false')
add_shader_generic(shaders, 'glsl-algebraic-logicand-true-2')
add_shader_generic(shaders, 'glsl-algebraic-logicand-true')
add_shader_generic(shaders, 'glsl-algebraic-logicor-false-2')
add_shader_generic(shaders, 'glsl-algebraic-logicor-false')
add_shader_generic(shaders, 'glsl-algebraic-logicor-true-2')
add_shader_generic(shaders, 'glsl-algebraic-logicor-true')
add_shader_generic(shaders, 'glsl-algebraic-logicxor-false')
add_shader_generic(shaders, 'glsl-algebraic-logicxor-true')
266
add_shader_generic(shaders, 'glsl-algebraic-mul-mul-1')
267
add_shader_generic(shaders, 'glsl-algebraic-mul-one')
268
add_shader_generic(shaders, 'glsl-algebraic-mul-one-2')
269
add_shader_generic(shaders, 'glsl-algebraic-mul-zero')
Vinson Lee's avatar
Vinson Lee committed
270
add_shader_generic(shaders, 'glsl-algebraic-neg-neg')
271
272
273
274
275
276
add_shader_generic(shaders, 'glsl-algebraic-not-equals')
add_shader_generic(shaders, 'glsl-algebraic-not-notequals')
add_shader_generic(shaders, 'glsl-algebraic-pow-two')
add_shader_generic(shaders, 'glsl-algebraic-rcp-rcp')
add_shader_generic(shaders, 'glsl-algebraic-rcp-rsq')
add_shader_generic(shaders, 'glsl-algebraic-rcp-sqrt')
277
add_shader_generic(shaders, 'glsl-algebraic-rcp-sqrt-2')
278
add_shader_generic(shaders, 'glsl-algebraic-sub-sub-1')
279
add_shader_generic(shaders, 'glsl-algebraic-sub-zero-2')
280
281
add_shader_generic(shaders, 'glsl-algebraic-sub-zero-3')
add_shader_generic(shaders, 'glsl-algebraic-sub-zero-4')
282
add_shader_generic(shaders, 'glsl-algebraic-sub-zero')
283
add_shader_generic(shaders, 'glsl-array-length')
284
285
286
287
add_shader_generic(shaders, 'glsl-array-bounds-01')
add_shader_generic(shaders, 'glsl-array-bounds-02')
add_shader_generic(shaders, 'glsl-array-bounds-03')
add_shader_generic(shaders, 'glsl-array-bounds-04')
288
289
290
291
add_shader_generic(shaders, 'glsl-array-bounds-05')
add_shader_generic(shaders, 'glsl-array-bounds-06')
add_shader_generic(shaders, 'glsl-array-bounds-07')
add_shader_generic(shaders, 'glsl-array-bounds-08')
Zhao Jian's avatar
Zhao Jian committed
292
add_shader_generic(shaders, 'glsl-array-compare')
293
add_shader_generic(shaders, 'glsl-array-compare-02')
Ian Romanick's avatar
Ian Romanick committed
294
add_shader_generic(shaders, 'glsl-array-varying-01')
295
add_shader_generic(shaders, 'glsl-array-uniform')
296
add_shader_generic(shaders, 'glsl-array-uniform-length')
297
add_plain_test(shaders, 'glsl-arb-fragment-coord-conventions')
298
add_plain_test(shaders, 'glsl-arb-fragment-coord-conventions-define')
299
add_plain_test(shaders, 'glsl-bug-22603')
300
add_shader_generic(shaders, 'glsl-clamp-vertex-color')
301
add_shader_generic(shaders, 'glsl-constant-folding-call-1')
302
303
304
add_shader_generic(shaders, 'glsl-copy-propagation-if-1')
add_shader_generic(shaders, 'glsl-copy-propagation-if-2')
add_shader_generic(shaders, 'glsl-copy-propagation-if-3')
305
add_shader_generic(shaders, 'glsl-complex-subscript')
306
add_shader_generic(shaders, 'glsl-deadcode-call')
307
add_shader_generic(shaders, 'glsl-deadcode-self-assign')
308
add_shader_generic(shaders, 'glsl-deadcode-varying')
309
add_plain_test(shaders, 'glsl-bindattriblocation')
310
add_plain_test(shaders, 'glsl-dlist-getattriblocation')
311
add_plain_test(shaders, 'glsl-getactiveuniform-array-size')
312
add_getactiveuniform_count(shaders, 'glsl-getactiveuniform-length', '1')
313
add_getactiveuniform_count(shaders, 'glsl-getactiveuniform-ftransform', '2')
314
add_getactiveuniform_count(shaders, 'glsl-getactiveuniform-mvp', '2')
315
add_plain_test(shaders, 'glsl-getactiveuniform-length')
316
add_plain_test(shaders, 'glsl-getattriblocation')
317
add_plain_test(shaders, 'getuniform-01')
318
319
add_plain_test(shaders, 'glsl-invalid-asm-01')
add_plain_test(shaders, 'glsl-invalid-asm-02')
320
add_plain_test(shaders, 'glsl-novertexdata')
321
322
323
324
325
add_plain_test(shaders, 'glsl-preprocessor-comments')
add_plain_test(shaders, 'glsl-reload-source')
add_plain_test(shaders, 'glsl-uniform-out-of-bounds')
add_plain_test(shaders, 'glsl-uniform-update')
add_plain_test(shaders, 'glsl-unused-varying')
326
add_shader_generic(shaders, 'glsl-floating-constant-120')
327
328
329
330
add_shader_generic(shaders, 'glsl-fs-abs-01')
add_shader_generic(shaders, 'glsl-fs-abs-02')
add_shader_generic(shaders, 'glsl-fs-abs-03')
add_shader_generic(shaders, 'glsl-fs-abs-04')
331
add_shader_generic(shaders, 'glsl-fs-abs-neg')
332
add_shader_generic(shaders, 'glsl-fs-add-masked')
333
334
add_shader_generic(shaders, 'glsl-fs-all-01')
add_shader_generic(shaders, 'glsl-fs-all-02')
335
add_shader_generic(shaders, 'glsl-fs-any')
336
add_shader_generic(shaders, 'glsl-fs-asin')
337
338
add_shader_generic(shaders, 'glsl-fs-atan-1')
add_shader_generic(shaders, 'glsl-fs-atan-2')
339
add_shader_generic(shaders, 'glsl-fs-atan-3')
340
add_shader_generic(shaders, 'glsl-fs-main-return')
341
add_shader_generic(shaders, 'glsl-fs-mov-masked')
342
343
add_shader_generic(shaders, 'glsl-fs-bit-01')
add_shader_generic(shaders, 'glsl-fs-bit-02')
344
add_plain_test(shaders, 'glsl-fs-bug25902')
345
add_shader_generic(shaders, 'glsl-fs-ceil')
346
add_shader_generic(shaders, 'glsl-fs-clamp-1')
347
add_shader_generic(shaders, 'glsl-fs-copy-propagation-texcoords-1')
348
add_shader_generic(shaders, 'glsl-fs-copy-propagation-texcoords-2')
349
add_shader_generic(shaders, 'glsl-fs-conditional-output-write')
350
351
add_shader_generic(shaders, 'glsl-fs-convolution-1')
add_shader_generic(shaders, 'glsl-fs-convolution-2')
352
353
add_shader_generic(shaders, 'glsl-fs-cross')
add_shader_generic(shaders, 'glsl-fs-cross-2')
354
add_shader_generic(shaders, 'glsl-fs-cross-3')
355
add_shader_generic(shaders, 'glsl-fs-discard-01')
356
add_plain_test(shaders, 'glsl-fs-discard-02')
357
add_shader_generic(shaders, 'glsl-fs-discard-03')
358
add_shader_generic(shaders, 'glsl-fs-dot-vec2')
359
add_shader_generic(shaders, 'glsl-fs-dot-vec2-2')
360
add_shader_generic(shaders, 'glsl-fs-exp')
361
add_plain_test(shaders, 'glsl-fs-exp2')
362
add_plain_test(shaders, 'glsl-fs-flat-color')
363
add_shader_generic(shaders, 'glsl-fs-floor')
364
add_shader_generic(shaders, 'glsl-fs-f2b')
365
add_plain_test(shaders, 'glsl-fs-fragcoord')
366
add_shader_generic(shaders, 'glsl-fs-fragdata-1')
367
368
add_shader_generic(shaders, 'glsl-fs-functions-2')
add_shader_generic(shaders, 'glsl-fs-functions-3')
369
add_shader_generic(shaders, 'glsl-fs-functions-4')
370
371
add_shader_generic(shaders, 'glsl-fs-functions-5')
add_shader_generic(shaders, 'glsl-fs-functions-6')
372
add_shader_generic(shaders, 'glsl-fs-functions-samplers')
373
add_shader_generic(shaders, 'glsl-fs-i2b')
374
375
add_shader_generic(shaders, 'glsl-fs-if-less')
add_shader_generic(shaders, 'glsl-fs-if-less-equal')
376
add_shader_generic(shaders, 'glsl-fs-if-nested-loop')
377
378
add_shader_generic(shaders, 'glsl-fs-if-greater')
add_shader_generic(shaders, 'glsl-fs-if-greater-equal')
379
add_shader_generic(shaders, 'glsl-fs-if-texture2d-discard')
380
add_shader_generic(shaders, 'glsl-fs-log')
381
add_shader_generic(shaders, 'glsl-fs-log2')
382
add_plain_test(shaders, 'glsl-fs-loop')
383
add_shader_generic(shaders, 'glsl-fs-loop-break')
384
385
add_shader_generic(shaders, 'glsl-fs-loop-const-decr')
add_shader_generic(shaders, 'glsl-fs-loop-const-incr')
386
add_shader_generic(shaders, 'glsl-fs-loop-continue')
387
388
389
390
add_shader_generic(shaders, 'glsl-fs-loop-ge')
add_shader_generic(shaders, 'glsl-fs-loop-gt')
add_shader_generic(shaders, 'glsl-fs-loop-le')
add_shader_generic(shaders, 'glsl-fs-loop-lt')
391
add_plain_test(shaders, 'glsl-fs-loop-nested')
392
add_shader_generic(shaders, 'glsl-fs-loop-nested-if')
393
394
395
396
add_shader_generic(shaders, 'glsl-fs-loop-two-counter-01')
add_shader_generic(shaders, 'glsl-fs-loop-two-counter-02')
add_shader_generic(shaders, 'glsl-fs-loop-two-counter-03')
add_shader_generic(shaders, 'glsl-fs-loop-two-counter-04')
397
add_shader_generic(shaders, 'glsl-fs-loop-zero-iter')
398
add_shader_generic(shaders, 'glsl-fs-loop-diagonal-break')
399
400
add_shader_generic(shaders, 'glsl-fs-max')
add_shader_generic(shaders, 'glsl-fs-min')
401
add_plain_test(shaders, 'glsl-fs-mix')
402
add_plain_test(shaders, 'glsl-fs-mix-constant')
403
add_shader_generic(shaders, 'glsl-fs-mod')
404
add_shader_generic(shaders, 'glsl-fs-neg')
405
add_shader_generic(shaders, 'glsl-fs-neg-abs')
406
add_shader_generic(shaders, 'glsl-fs-neg-dot')
407
add_plain_test(shaders, 'glsl-fs-pointcoord')
408
add_plain_test(shaders, 'glsl-fs-raytrace-bug27060')
409
add_shader_generic(shaders, 'glsl-fs-roundEven')
410
add_shader_generic(shaders, 'glsl-fs-reflect')
411
add_plain_test(shaders, 'glsl-fs-sampler-numbering')
412
413
add_shader_generic(shaders, 'glsl-fs-sampler-numbering-2')
add_shader_generic(shaders, 'glsl-fs-sampler-numbering-3')
Vinson Lee's avatar
Vinson Lee committed
414
add_plain_test(shaders, 'glsl-fs-shader-stencil-export')
415
416
417
418
add_shader_generic(shaders, 'glsl-fs-shadow2d')
add_shader_generic(shaders, 'glsl-fs-shadow2d-bias')
add_shader_generic(shaders, 'glsl-fs-shadow2dproj')
add_shader_generic(shaders, 'glsl-fs-shadow2dproj-bias')
419
add_plain_test(shaders, 'glsl-fs-sqrt-branch')
420
add_plain_test(shaders, 'glsl-fs-sqrt-zero')
421
add_shader_generic(shaders, 'glsl-fs-sign')
422
add_shader_generic(shaders, 'glsl-fs-statevar-call')
423
424
add_shader_generic(shaders, 'glsl-fs-struct-equal')
add_shader_generic(shaders, 'glsl-fs-struct-notequal')
425
add_shader_generic(shaders, 'glsl-fs-step')
426
add_shader_generic(shaders, 'glsl-fs-tan-1')
427
428
add_shader_generic(shaders, 'glsl-fs-tan-2')
add_shader_generic(shaders, 'glsl-fs-tan-3')
429
add_shader_generic(shaders, 'glsl-fs-texture2d')
430
add_shader_generic(shaders, 'glsl-fs-texture2d-bias')
431
add_shader_generic(shaders, 'glsl-fs-texture2d-masked')
432
add_shader_generic(shaders, 'glsl-fs-texture2d-masked-2')
433
434
add_shader_generic(shaders, 'glsl-fs-texture2d-masked-3')
add_shader_generic(shaders, 'glsl-fs-texture2d-masked-4')
435
436
add_shader_generic(shaders, 'glsl-fs-texture2dproj')
add_shader_generic(shaders, 'glsl-fs-texture2dproj-2')
437
438
add_shader_generic(shaders, 'glsl-fs-texture2dproj-bias')
add_shader_generic(shaders, 'glsl-fs-texture2dproj-bias-2')
439
440
441
442
443
444
445
446
shaders['glsl-fs-texturecube'] = PlainExecTest(['glsl-fs-texturecube',
					       '-auto'])
shaders['glsl-fs-texturecube-bias'] = PlainExecTest(['glsl-fs-texturecube',
						    '-auto', '-bias'])
shaders['glsl-fs-texturecube-2'] = PlainExecTest(['glsl-fs-texturecube-2',
						 '-auto'])
shaders['glsl-fs-texturecube-2-bias'] = PlainExecTest(['glsl-fs-texturecube-2',
						      '-auto', '-bias'])
447
shaders['glsl-fs-texture2drect'] = PlainExecTest(['glsl-fs-texture2drect',
448
					       '-auto'])
449
shaders['glsl-fs-texture2drect-proj3'] = PlainExecTest(['glsl-fs-texture2drect',
450
							'-auto', '-proj3'])
451
shaders['glsl-fs-texture2drect-proj4'] = PlainExecTest(['glsl-fs-texture2drect',
452
							'-auto', '-proj4'])
453
add_plain_test(shaders, 'glsl-fs-texturelod-01')
454
add_shader_generic(shaders, 'glsl-fs-trunc')
455
456
add_shader_generic(shaders, 'glsl-fs-uniform-array-1')
add_shader_generic(shaders, 'glsl-fs-uniform-array-2')
457
add_shader_generic(shaders, 'glsl-fs-uniform-array-3')
458
add_shader_generic(shaders, 'glsl-fs-uniform-array-4')
459
460
add_shader_generic(shaders, 'glsl-fs-uniform-array-5')
add_shader_generic(shaders, 'glsl-fs-uniform-array-6')
461
add_shader_generic(shaders, 'glsl-fs-uniform-array-7')
462
add_shader_generic(shaders, 'glsl-fs-uniform-sampler-array')
463
add_shader_generic(shaders, 'glsl-fs-uniform-sampler-struct')
464
add_plain_test(shaders, 'glsl-fs-user-varying-ff')
465
add_shader_generic(shaders, 'glsl-fs-varying-array')
466
467
468
469
470
471
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-1')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-2')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-3')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-4')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-5')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-6')
472
473
474
475
476
477
478
479
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-temp-dst')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-temp-dst-in-loop')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-temp-dst-in-nested-loop-combined')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-temp-src')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-temp-src-in-loop')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-temp-src-in-nested-loop-inner')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-temp-src-in-nested-loop-outer')
add_shader_generic(shaders, 'glsl-fs-vec4-indexing-temp-src-in-nested-loop-combined')
480
481
add_shader_generic(shaders, 'glsl-fs-vec4-operator-equal')
add_shader_generic(shaders, 'glsl-fs-vec4-operator-notequal')
482
add_shader_generic(shaders, 'glsl-function-prototype')
483
add_shader_generic(shaders, 'glsl-if-assign-call')
484
add_shader_generic(shaders, 'glsl-inout-struct-01')
485
add_shader_generic(shaders, 'glsl-inout-struct-02')
486
add_shader_generic(shaders, 'glsl-invariant-pragma')
487
add_shader_generic(shaders, 'glsl-mat-110')
488
add_plain_test(shaders, 'glsl-mat-attribute')
489
490
491
add_shader_generic(shaders, 'glsl-mat-from-int-ctor-01')
add_shader_generic(shaders, 'glsl-mat-from-int-ctor-02')
add_shader_generic(shaders, 'glsl-mat-from-int-ctor-03')
492
add_shader_generic(shaders, 'glsl-mat-from-vec-ctor-01')
493
add_shader_generic(shaders, 'glsl-mat-mul-1')
494
add_plain_test(shaders, 'glsl-max-varyings')
495
add_shader_generic(shaders, 'glsl-octal')
496
add_plain_test(shaders, 'glsl-orangebook-ch06-bump')
497
add_shader_generic(shaders, 'glsl-precision-110')
498
add_plain_test(shaders, 'glsl-routing')
499
add_shader_generic(shaders, 'glsl-struct-constructor-01')
500
501
502
add_shader_generic(shaders, 'glsl-uniform-initializer-1')
add_shader_generic(shaders, 'glsl-uniform-initializer-2')
add_shader_generic(shaders, 'glsl-uniform-initializer-3')
503
add_shader_generic(shaders, 'glsl-uniform-initializer-4')
504
add_shader_generic(shaders, 'glsl-uniform-initializer-5')
505
add_shader_generic(shaders, 'glsl-uniform-initializer-6')
506
add_shader_generic(shaders, 'glsl-uniform-initializer-7')
507
add_shader_generic(shaders, 'glsl-uniform-linking-1')
Zhao Jian's avatar
Zhao Jian committed
508
add_shader_generic(shaders, 'glsl-uniform-non-uniform-array-compare')
509
add_shader_generic(shaders, 'glsl-uniform-struct')
510
add_shader_generic(shaders, 'glsl-varying-mat3x2')
511
add_shader_generic(shaders, 'glsl-vec-array')
512
513
514
add_shader_generic(shaders, 'glsl-version-define')
add_shader_generic(shaders, 'glsl-version-define-110')
add_shader_generic(shaders, 'glsl-version-define-120')
515
add_shader_generic(shaders, 'glsl-vs-abs-neg')
516
517
add_shader_generic(shaders, 'glsl-vs-all-01')
add_shader_generic(shaders, 'glsl-vs-all-02')
518
add_plain_test(shaders, 'glsl-vs-arrays')
519
add_shader_generic(shaders, 'glsl-vs-dot-vec2')
520
add_shader_generic(shaders, 'glsl-vs-main-return')
521
522
add_shader_generic(shaders, 'glsl-vs-masked-dot')
add_shader_generic(shaders, 'glsl-vs-masked-cos')
523
add_shader_generic(shaders, 'glsl-vs-neg-abs')
524
add_plain_test(shaders, 'glsl-vs-normalscale')
525
526
add_shader_generic(shaders, 'glsl-vs-arrays-2')
add_shader_generic(shaders, 'glsl-vs-arrays-3')
527
add_shader_generic(shaders, 'glsl-vs-clamp-1')
528
529
add_shader_generic(shaders, 'glsl-vs-cross')
add_shader_generic(shaders, 'glsl-vs-cross-2')
530
add_shader_generic(shaders, 'glsl-vs-cross-3')
531
add_shader_generic(shaders, 'glsl-vs-constructor-call')
532
add_shader_generic(shaders, 'glsl-vs-f2b')
533
add_shader_generic(shaders, 'glsl-vs-ff-frag')
534
add_plain_test(shaders, 'glsl-vs-functions')
535
536
add_shader_generic(shaders, 'glsl-vs-functions-2')
add_shader_generic(shaders, 'glsl-vs-functions-3')
Marek Olšák's avatar
Marek Olšák committed
537
add_shader_generic(shaders, 'glsl-vs-if-less')
538
add_shader_generic(shaders, 'glsl-vs-if-less-equal')
539
add_shader_generic(shaders, 'glsl-vs-if-nested')
540
add_shader_generic(shaders, 'glsl-vs-if-nested-loop')
541
add_shader_generic(shaders, 'glsl-vs-if-greater')
542
add_shader_generic(shaders, 'glsl-vs-if-greater-equal')
543
add_plain_test(shaders, 'glsl-vs-user-varying-ff')
544
545
546
547
548
549
550
551
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-temp-dst')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-temp-dst-in-loop')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-temp-dst-in-nested-loop-combined')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-temp-src')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-temp-src-in-loop')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-temp-src-in-nested-loop-inner')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-temp-src-in-nested-loop-outer')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-temp-src-in-nested-loop-combined')
552
add_shader_generic(shaders, 'glsl-vs-large-uniform-array')
553
554
555
556
557
558
559
add_shader_generic(shaders, 'glsl-vs-mat-add-1')
add_shader_generic(shaders, 'glsl-vs-mat-div-1')
add_shader_generic(shaders, 'glsl-vs-mat-div-2')
add_shader_generic(shaders, 'glsl-vs-mat-mul-1')
add_shader_generic(shaders, 'glsl-vs-mat-mul-2')
add_shader_generic(shaders, 'glsl-vs-mat-mul-3')
add_shader_generic(shaders, 'glsl-vs-mat-sub-1')
560
add_shader_generic(shaders, 'glsl-vs-position-outval')
561
add_shader_generic(shaders, 'glsl-vs-sign')
562
563
add_shader_generic(shaders, 'glsl-vs-swizzle-swizzle-lhs')
add_shader_generic(shaders, 'glsl-vs-swizzle-swizzle-rhs')
564
565
add_plain_test(shaders, 'glsl-vs-texturematrix-1')
add_plain_test(shaders, 'glsl-vs-texturematrix-2')
566
567
add_shader_generic(shaders, 'glsl-vs-uniform-array-1')
add_shader_generic(shaders, 'glsl-vs-uniform-array-2')
568
add_shader_generic(shaders, 'glsl-vs-varying-array')
569
570
571
572
573
574
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-1')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-2')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-3')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-4')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-5')
add_shader_generic(shaders, 'glsl-vs-vec4-indexing-6')
575
576
add_shader_generic(shaders, 'glsl-vs-vec4-operator-equal')
add_shader_generic(shaders, 'glsl-vs-vec4-operator-notequal')
577
add_shader_generic(shaders, 'glsl-texcoord-array')
578
add_shader_generic(shaders, 'glsl-texcoord-array-2')
579
add_shader_generic(shaders, 'glsl-pp-elif-no-expression-1')
Kenneth Graunke's avatar
Kenneth Graunke committed
580
add_shader_generic(shaders, 'glsl-implicit-conversion-01')
581
add_shader_generic(shaders, 'glsl-implicit-conversion-02')
582
583
add_shader_generic(shaders, 'glsl-const-builtin-abs')
add_shader_generic(shaders, 'glsl-const-builtin-acos')
584
585
add_shader_generic(shaders, 'glsl-const-builtin-all')
add_shader_generic(shaders, 'glsl-const-builtin-any')
586
587
add_shader_generic(shaders, 'glsl-const-builtin-asin')
add_shader_generic(shaders, 'glsl-const-builtin-atan')
588
add_shader_generic(shaders, 'glsl-const-builtin-ceil')
589
add_shader_generic(shaders, 'glsl-const-builtin-clamp')
590
add_shader_generic(shaders, 'glsl-const-builtin-cosh')
591
add_shader_generic(shaders, 'glsl-const-builtin-cos')
592
add_shader_generic(shaders, 'glsl-const-builtin-cross')
593
594
add_shader_generic(shaders, 'glsl-const-builtin-degrees')
add_shader_generic(shaders, 'glsl-const-builtin-derivatives')
595
add_shader_generic(shaders, 'glsl-const-builtin-distance')
596
add_shader_generic(shaders, 'glsl-const-builtin-dot')
597
add_shader_generic(shaders, 'glsl-const-builtin-equal')
598
599
600
601
602
603
604
605
606
add_shader_generic(shaders, 'glsl-const-builtin-equal-02')
add_shader_generic(shaders, 'glsl-const-builtin-equal-03')
add_shader_generic(shaders, 'glsl-const-builtin-equal-04')
add_shader_generic(shaders, 'glsl-const-builtin-equal-05')
add_shader_generic(shaders, 'glsl-const-builtin-equal-06')
add_shader_generic(shaders, 'glsl-const-builtin-equal-07')
add_shader_generic(shaders, 'glsl-const-builtin-equal-08')
add_shader_generic(shaders, 'glsl-const-builtin-equal-09')
add_shader_generic(shaders, 'glsl-const-builtin-equal-10')
607
add_shader_generic(shaders, 'glsl-const-builtin-equal-bool')
608
add_shader_generic(shaders, 'glsl-const-builtin-exp')
609
add_shader_generic(shaders, 'glsl-const-builtin-exp2')
610
611
add_shader_generic(shaders, 'glsl-const-builtin-faceforward')
add_shader_generic(shaders, 'glsl-const-builtin-floor')
612
add_shader_generic(shaders, 'glsl-const-builtin-fract')
613
add_shader_generic(shaders, 'glsl-const-builtin-greaterThanEqual')
614
615
add_shader_generic(shaders, 'glsl-const-builtin-greaterThan')
add_shader_generic(shaders, 'glsl-const-builtin-inversesqrt')
616
617
618
619
add_shader_generic(shaders, 'glsl-const-builtin-length')
add_shader_generic(shaders, 'glsl-const-builtin-lessThanEqual')
add_shader_generic(shaders, 'glsl-const-builtin-lessThan')
add_shader_generic(shaders, 'glsl-const-builtin-log')
620
add_shader_generic(shaders, 'glsl-const-builtin-log2')
621
add_shader_generic(shaders, 'glsl-const-builtin-matrixCompMult')
622
623
add_shader_generic(shaders, 'glsl-const-builtin-max')
add_shader_generic(shaders, 'glsl-const-builtin-min')
624
add_shader_generic(shaders, 'glsl-const-builtin-mix')
625
add_shader_generic(shaders, 'glsl-const-builtin-mod')
626
627
628
add_shader_generic(shaders, 'glsl-const-builtin-normalize')
add_shader_generic(shaders, 'glsl-const-builtin-not')
add_shader_generic(shaders, 'glsl-const-builtin-notEqual')
629
630
631
632
633
634
635
636
637
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-02')
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-03')
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-04')
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-05')
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-06')
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-07')
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-08')
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-09')
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-10')
638
add_shader_generic(shaders, 'glsl-const-builtin-notEqual-bool')
639
add_shader_generic(shaders, 'glsl-const-builtin-outerProduct')
640
641
add_shader_generic(shaders, 'glsl-const-builtin-pow')
add_shader_generic(shaders, 'glsl-const-builtin-radians')
642
643
add_shader_generic(shaders, 'glsl-const-builtin-reflect')
add_shader_generic(shaders, 'glsl-const-builtin-refract')
644
645
add_shader_generic(shaders, 'glsl-const-builtin-sign')
add_shader_generic(shaders, 'glsl-const-builtin-sin')
646
647
add_shader_generic(shaders, 'glsl-const-builtin-smoothstep')
add_shader_generic(shaders, 'glsl-const-builtin-step')
648
649
add_shader_generic(shaders, 'glsl-const-builtin-sqrt')
add_shader_generic(shaders, 'glsl-const-builtin-tan')
650
add_shader_generic(shaders, 'glsl-const-builtin-transpose')
Ian Romanick's avatar
Ian Romanick committed
651
add_shader_generic(shaders, 'glsl-const-folding-01')
652
653
654
add_shader_generic(shaders, 'glsl-const-initializer-01')
add_shader_generic(shaders, 'glsl-const-initializer-02')
add_shader_generic(shaders, 'glsl-const-initializer-03')
Marek Olšák's avatar
Marek Olšák committed
655
656
add_plain_test(shaders, 'glsl-sin')
add_plain_test(shaders, 'glsl-cos')
657
658
add_plain_test(shaders, 'glsl-vs-if-bool')
add_plain_test(shaders, 'glsl-vs-loop')
Vinson Lee's avatar
Vinson Lee committed
659
660
add_shader_generic(shaders, 'glsl-vs-loop-break')
add_shader_generic(shaders, 'glsl-vs-loop-continue')
661
add_plain_test(shaders, 'glsl-vs-loop-nested')
662
add_plain_test(shaders, 'glsl-vs-mov-after-deref')
663
add_plain_test(shaders, 'glsl-vs-raytrace-bug26691')
664
add_plain_test(shaders, 'glsl-vs-sqrt-zero')
665
666
667
668
669
670
671
672
673
674
675
add_plain_test(shaders, 'vp-address-01')
add_plain_test(shaders, 'vp-address-02')
add_plain_test(shaders, 'vp-address-03')
add_plain_test(shaders, 'vp-address-04')
add_plain_test(shaders, 'vp-address-05')
add_plain_test(shaders, 'vp-address-06')
add_plain_test(shaders, 'vp-bad-program')
add_plain_test(shaders, 'vp-clipdistance-01')
add_plain_test(shaders, 'vp-clipdistance-02')
add_plain_test(shaders, 'vp-clipdistance-03')
add_plain_test(shaders, 'vp-clipdistance-04')
676
add_plain_test(shaders, 'vp-combined-image-units')
677
678
add_plain_test(shaders, 'vp-max-array')
add_plain_test(shaders, 'glsl-derivs')
679
add_shader_generic(shaders, 'glsl-derivs-swizzle')
680
681
682
683
684
add_plain_test(shaders, 'glsl-deriv-varyings')
add_plain_test(shaders, 'glsl-fwidth')
add_plain_test(shaders, 'glsl-lod-bias')
add_plain_test(shaders, 'vp-ignore-input')
add_plain_test(shaders, 'glsl-empty-vs-no-fs')
685
add_plain_test(shaders, 'glsl-useprogram-displaylist')
686
add_plain_test(shaders, 'glsl-vs-point-size')
687
add_plain_test(shaders, 'glsl-light-model')
688
add_shader_generic(shaders, 'glsl-link-array-01')
689
add_plain_test(shaders, 'glsl-link-bug30552')
690
add_plain_test(shaders, 'glsl-link-empty-prog-01')
691
add_plain_test(shaders, 'glsl-link-empty-prog-02')
692
693
694
695
696
697
add_plain_test(shaders, 'glsl-link-initializer-01')
add_plain_test(shaders, 'glsl-link-initializer-02')
add_plain_test(shaders, 'glsl-link-initializer-03')
add_plain_test(shaders, 'glsl-link-initializer-04')
add_plain_test(shaders, 'glsl-link-initializer-05')
add_plain_test(shaders, 'glsl-link-initializer-06')
698
add_plain_test(shaders, 'glsl-link-invariant-01')
699
add_plain_test(shaders, 'glsl-link-centroid-01')
700
add_plain_test(shaders, 'glsl-link-struct-array')
701
702
703
add_shader_generic(shaders, 'glsl-link-varyings-1')
add_shader_generic(shaders, 'glsl-link-varyings-2')
add_shader_generic(shaders, 'glsl-link-varyings-3')
704
add_shader_generic(shaders, 'glsl-link-varying-TexCoord')
705
add_shader_generic(shaders, 'glsl-override-builtin')
706
add_shader_generic(shaders, 'glsl-override-builtin-2')
707
add_plain_test(shaders, 'glsl-kwin-blur-1')
708
add_plain_test(shaders, 'glsl-kwin-blur-2')
709
add_plain_test(shaders, 'gpu_shader4_attribs')
710
711
add_plain_test(shaders, 'link-mismatch-layout-01')
add_plain_test(shaders, 'link-mismatch-layout-02')
712
add_plain_test(shaders, 'link-mismatch-layout-03')
713
add_plain_test(shaders, 'link-unresolved-function')
714
add_shader_generic(shaders, 'loopfunc')
Ian Romanick's avatar
Ian Romanick committed
715
add_plain_test(shaders, 'sso-simple')
716
717
add_plain_test(shaders, 'sso-uniforms-01')
add_plain_test(shaders, 'sso-uniforms-02')
718
719
add_plain_test(shaders, 'sso-user-varying-01')
add_plain_test(shaders, 'sso-user-varying-02')
720
721
add_plain_test(shaders, 'useprogram-flushverts-1')
add_plain_test(shaders, 'useprogram-flushverts-2')
722
add_plain_test(shaders, 'useprogram-inside-begin')
723
add_plain_test(shaders, 'useprogram-refcount-1')
724
add_plain_test(shaders, 'useshaderprogram-bad-type')
725
add_plain_test(shaders, 'useshaderprogram-bad-program')
726
add_plain_test(shaders, 'useshaderprogram-flushverts-1')
Nicolai Hähnle's avatar
Nicolai Hähnle committed
727

728
fpgeneric = Group()
729
730
731
732
733
def add_fpgeneric(name):
	fpgeneric[name] = PlainExecTest(['fp-generic', '-auto', testBinDir + '../tests/shaders/generic/' + name + '.fp'])
add_fpgeneric('dph')
add_fpgeneric('kil-swizzle')
add_fpgeneric('lrp_sat')
734
735
shaders['fp-generic'] = fpgeneric

736
vpfpgeneric = Group()
737
738
739
740
741
def add_vpfpgeneric(name):
	vpfpgeneric[name] = PlainExecTest(['vpfp-generic', '-auto', testBinDir + '../tests/shaders/generic/' + name + '.vpfp'])
add_vpfpgeneric('arl')
add_vpfpgeneric('big-param')
add_vpfpgeneric('dataflow-bug')
742
743
add_vpfpgeneric('fdo30337a')
add_vpfpgeneric('fdo30337b')
744
745
746
add_vpfpgeneric('fogcoord-dp3')
add_vpfpgeneric('fogcoord-dph')
add_vpfpgeneric('fogcoord-dp4')
747
748
add_vpfpgeneric('fp-arb-fragment-coord-conventions-none')
add_vpfpgeneric('fp-arb-fragment-coord-conventions-integer')
749
add_vpfpgeneric('fp-cmp')
750
add_vpfpgeneric('fp-ex2-sat')
751
add_vpfpgeneric('fp-two-constants')
752
753
754
755
756
add_vpfpgeneric('nv-mov')
add_vpfpgeneric('nv-add')
add_vpfpgeneric('nv-arl')
add_vpfpgeneric('nv-init-zero-reg')
add_vpfpgeneric('nv-init-zero-addr')
757
758
add_vpfpgeneric('vp-arl-constant-array')
add_vpfpgeneric('vp-arl-constant-array-huge')
759
add_vpfpgeneric('vp-arl-constant-array-huge-varying')
760
761
add_vpfpgeneric('vp-arl-constant-array-huge-offset')
add_vpfpgeneric('vp-arl-constant-array-huge-offset-neg')
762
add_vpfpgeneric('vp-arl-constant-array-huge-overwritten')
763
add_vpfpgeneric('vp-arl-constant-array-huge-relative-offset')
764
add_vpfpgeneric('vp-arl-constant-array-varying')
765
766
add_vpfpgeneric('vp-arl-env-array')
add_vpfpgeneric('vp-arl-local-array')
767
768
add_vpfpgeneric('vp-arl-neg-array')
add_vpfpgeneric('vp-arl-neg-array-2')
769
770
add_vpfpgeneric('vp-constant-array')
add_vpfpgeneric('vp-constant-array-huge')
771
add_vpfpgeneric('vp-constant-negate')
772
add_vpfpgeneric('vp-exp-alias')
773
774
add_vpfpgeneric('vp-max')
add_vpfpgeneric('vp-min')
775
add_vpfpgeneric('vp-sge-alias')