Skip OOB SSBO fragment tests for ES3.1 GPUs am: f5fc3c8409 am: ea27c20fd2
[platform/upstream/VK-GL-CTS.git] / external / openglcts / scripts / build_mustpass.py
1 # -*- coding: utf-8 -*-
2
3 #-------------------------------------------------------------------------
4 #
5 # Copyright 2015 The Android Open Source Project
6 # Copyright (C) 2016 The Khronos Group Inc
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #      http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 #
20 #-------------------------------------------------------------------------
21
22 import os
23 import sys
24
25 from collections import OrderedDict
26
27 from build_caselists import Module, getModuleByName, DEFAULT_BUILD_DIR, DEFAULT_TARGET
28 from mustpass import Project, Package, Mustpass, Configuration, include, exclude, genMustpassLists
29
30 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
31
32 from build.common import DEQP_DIR
33 from build.config import ANY_GENERATOR, BuildConfig
34
35
36 COPYRIGHT_DECLARATION = """\
37 /*     Copyright (C) 2016-2017 The Khronos Group Inc
38  *
39  *     Licensed under the Apache License, Version 2.0 (the "License");
40  *     you may not use this file except in compliance with the License.
41  *     You may obtain a copy of the License at
42  *
43  *          http://www.apache.org/licenses/LICENSE-2.0
44  *
45  *     Unless required by applicable law or agreed to in writing, software
46  *     distributed under the License is distributed on an "AS IS" BASIS,
47  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48  *     See the License for the specific language governing permissions and
49  *     limitations under the License.
50 */"""
51
52 buildPath                                               = DEFAULT_BUILD_DIR.format(targetName = DEFAULT_TARGET, buildType = "Release")
53
54 #-------------------------------------------------- ES MUSTPASS----------------------------------------------------------------------
55
56 CTS_AOSP_MP_DATA_DIR                    = os.path.join(DEQP_DIR, "external", "openglcts", "data", "mustpass", "gles", "aosp_mustpass")
57
58 CTS_AOSP_MP_DEVICE_DIR                  = "gl_cts/data/mustpass/gles/aosp_mustpass"
59
60 CTS_MP_INC_DIR                                  = os.path.join(DEQP_DIR, "external", "openglcts", "modules", "runner")
61
62 CTS_AOSP_MP_ES_PROJECT                  = Project(name = "AOSP Mustpass ES", path = CTS_AOSP_MP_DATA_DIR, incpath = CTS_MP_INC_DIR, devicepath = CTS_AOSP_MP_DEVICE_DIR, copyright = COPYRIGHT_DECLARATION)
63
64 CTS_KHR_MP_DATA_DIR                             = os.path.join(DEQP_DIR, "external", "openglcts", "data", "mustpass", "gles", "khronos_mustpass")
65
66 CTS_KHR_MP_DEVICE_DIR                   = "gl_cts/data/mustpass/gles/khronos_mustpass"
67
68 CTS_KHR_MP_ES_PROJECT                   = Project(name = "Khronos Mustpass ES", path = CTS_KHR_MP_DATA_DIR, incpath = CTS_MP_INC_DIR, devicepath = CTS_KHR_MP_DEVICE_DIR, copyright = COPYRIGHT_DECLARATION)
69
70 CTS_AOSP_MP_EGL_DEVICE_DIR              = "gl_cts/data/mustpass/egl/aosp_mustpass"
71
72 CTS_AOSP_MP_EGL_DATA_DIR                = os.path.join(DEQP_DIR, "external", "openglcts", "data", "mustpass", "egl", "aosp_mustpass")
73
74 CTS_AOSP_MP_EGL_PROJECT                 = Project(name = "AOSP Mustpass EGL", path = CTS_AOSP_MP_EGL_DATA_DIR, incpath = CTS_MP_INC_DIR, devicepath = CTS_AOSP_MP_EGL_DEVICE_DIR, copyright = COPYRIGHT_DECLARATION)
75
76 CTS_KHR_MP_NOCTX_DATA_DIR               = os.path.join(DEQP_DIR, "external", "openglcts", "data", "mustpass", "gles", "khronos_mustpass_noctx")
77
78 CTS_KHR_MP_NOCTX_DEVICE_DIR             = "gl_cts/data/mustpass/gles/khronos_mustpass_noctx"
79
80 CTS_KHR_MP_NOCTX_ES_PROJECT             = Project(name = "Khronos Mustpass ES NoContext", path = CTS_KHR_MP_NOCTX_DATA_DIR, incpath = CTS_MP_INC_DIR, devicepath = CTS_KHR_MP_NOCTX_DEVICE_DIR, copyright = COPYRIGHT_DECLARATION)
81
82 EGL_MODULE                                              = getModuleByName("dEQP-EGL")
83 ES2CTS_MODULE                                   = getModuleByName("dEQP-GLES2")
84 ES3CTS_MODULE                                   = getModuleByName("dEQP-GLES3")
85 ES31CTS_MODULE                                  = getModuleByName("dEQP-GLES31")
86
87 ES2KHR_MODULE                                   = getModuleByName("KHR-GLES2")
88 ES3KHR_MODULE                                   = getModuleByName("KHR-GLES3")
89 ES31KHR_MODULE                                  = getModuleByName("KHR-GLES31")
90 ES32KHR_MODULE                                  = getModuleByName("KHR-GLES32")
91 NOCTXKHR_MODULE                                 = getModuleByName("KHR-NoContext")
92
93 ES2GTF_MODULE                                   = getModuleByName("GTF-GLES2")
94 ES3GTF_MODULE                                   = getModuleByName("GTF-GLES3")
95 ES31GTF_MODULE                                  = getModuleByName("GTF-GLES31")
96
97 GLCTS_GLES2_PKG                                         = Package(module = ES2CTS_MODULE, configurations = [
98                 # Master
99                 Configuration(name                      = "master",
100                                         glconfig                = "rgba8888d24s8ms0",
101                                         rotation                = "unspecified",
102                                         surfacewidth    = "256",
103                                         surfaceheight   = "256",
104                                         filters                 = [include("gles2-master.txt")]),
105         ])
106 GLCTS_3_2_2_GLES3_PKG                                   = Package(module = ES3CTS_MODULE, configurations = [
107                 # Master
108                 Configuration(name                      = "master",
109                                         glconfig                = "rgba8888d24s8ms0",
110                                         rotation                = "unspecified",
111                                         surfacewidth    = "256",
112                                         surfaceheight   = "256",
113                                         filters                 = [include("gles3-master.txt")]),
114
115                 # Rotations
116                 Configuration(name                      = "rotate-portrait",
117                                         glconfig                = "rgba8888d24s8ms0",
118                                         rotation                = "0",
119                                         surfacewidth    = "256",
120                                         surfaceheight   = "256",
121                                         os                              = "android",
122                                         filters                 = [include("gles3-master.txt"), include("gles3-rotation.txt")]),
123                 Configuration(name                      = "rotate-landscape",
124                                         glconfig                = "rgba8888d24s8ms0",
125                                         rotation                = "90",
126                                         surfacewidth    = "256",
127                                         surfaceheight   = "256",
128                                         os                              = "android",
129                                         filters                 = [include("gles3-master.txt"), include("gles3-rotation.txt")]),
130                 Configuration(name                      = "rotate-reverse-portrait",
131                                         glconfig                = "rgba8888d24s8ms0",
132                                         rotation                = "180",
133                                         surfacewidth    = "256",
134                                         surfaceheight   = "256",
135                                         os                              = "android",
136                                         filters                 = [include("gles3-master.txt"), include("gles3-rotation.txt")]),
137                 Configuration(name                      = "rotate-reverse-landscape",
138                                         glconfig                = "rgba8888d24s8ms0",
139                                         rotation                = "270",
140                                         surfacewidth    = "256",
141                                         surfaceheight   = "256",
142                                         os                              = "android",
143                                         filters         = [include("gles3-master.txt"), include("gles3-rotation.txt")]),
144
145                 # MSAA
146                 Configuration(name                      = "multisample",
147                                         glconfig                = "rgba8888d24s8ms4",
148                                         rotation                = "unspecified",
149                                         surfacewidth    = "256",
150                                         surfaceheight   = "256",
151                                         filters                 = [include("gles3-master.txt"),
152                                                                            include("gles3-multisample.txt"),
153                                                                            exclude("gles3-multisample-issues.txt")]),
154
155                 # Pixel format
156                 Configuration(name                      = "565-no-depth-no-stencil",
157                                         glconfig                = "rgb565d0s0ms0",
158                                         rotation                = "unspecified",
159                                         surfacewidth    = "256",
160                                         surfaceheight   = "256",
161                                         filters                 = [include("gles3-master.txt"),
162                                                                            include("gles3-pixelformat.txt"),
163                                                                            exclude("gles3-pixelformat-issues.txt")]),
164         ])
165 GLCTS_3_2_2_GLES31_PKG                                  = Package(module = ES31CTS_MODULE, configurations = [
166                 # Master
167                 Configuration(name                      = "master",
168                                         glconfig                = "rgba8888d24s8ms0",
169                                         rotation                = "unspecified",
170                                         surfacewidth    = "256",
171                                         surfaceheight   = "256",
172                                         filters                 = [include("gles31-master.txt")]),
173                 # Rotations
174                 Configuration(name                      = "rotate-portrait",
175                                         glconfig                = "rgba8888d24s8ms0",
176                                         rotation                = "0",
177                                         surfacewidth    = "256",
178                                         surfaceheight   = "256",
179                                         os                              = "android",
180                                         filters                 = [include("gles31-master.txt"), include("gles31-rotation.txt")]),
181                 Configuration(name                      = "rotate-landscape",
182                                         glconfig                = "rgba8888d24s8ms0",
183                                         rotation                = "90",
184                                         surfacewidth    = "256",
185                                         surfaceheight   = "256",
186                                         os                              = "android",
187                                         filters                 = [include("gles31-master.txt"), include("gles31-rotation.txt")]),
188                 Configuration(name                      = "rotate-reverse-portrait",
189                                         glconfig                = "rgba8888d24s8ms0",
190                                         rotation                = "180",
191                                         surfacewidth    = "256",
192                                         surfaceheight   = "256",
193                                         os                              = "android",
194                                         filters                 = [include("gles31-master.txt"), include("gles31-rotation.txt")]),
195                 Configuration(name                      = "rotate-reverse-landscape",
196                                         glconfig                = "rgba8888d24s8ms0",
197                                         rotation                = "270",
198                                         surfacewidth    = "256",
199                                         surfaceheight   = "256",
200                                         os                              = "android",
201                                         filters                 = [include("gles31-master.txt"), include("gles31-rotation.txt")]),
202
203                 # MSAA
204                 Configuration(name                      = "multisample",
205                                         glconfig                = "rgba8888d24s8ms4",
206                                         rotation                = "unspecified",
207                                         surfacewidth    = "256",
208                                         surfaceheight   = "256",
209                                         filters                 = [include("gles31-master.txt"), include("gles31-multisample.txt")]),
210
211                 # Pixel format
212                 Configuration(name                      = "565-no-depth-no-stencil",
213                                         glconfig                = "rgb565d0s0ms0",
214                                         rotation                = "unspecified",
215                                         surfacewidth    = "256",
216                                         surfaceheight   = "256",
217                                         filters                 = [include("gles31-master.txt"), include("gles31-pixelformat.txt")]),
218         ])
219
220 # 3.2.3.x
221 GLCTS_3_2_3_EGL_COMMON_FILTERS                  = [include("egl-master.txt"),
222                 exclude("egl-test-issues.txt"),
223                 exclude("egl-internal-api-tests.txt"),
224                 exclude("egl-driver-issues.txt")
225         ]
226 GLCTS_3_2_3_EGL_PKG                                             = Package(module = EGL_MODULE, configurations = [
227                 # Master
228                 Configuration(name                      = "master",
229                                         glconfig                = "rgba8888d24s8ms0",
230                                         rotation                = "unspecified",
231                                         surfacewidth    = "256",
232                     surfaceheight   = "256",
233                                         filters                 = GLCTS_3_2_3_EGL_COMMON_FILTERS),
234         ])
235
236 GLCTS_3_2_3_GLES2_COMMON_FILTERS        = [
237                 include("gles2-master.txt"),
238                 exclude("gles2-test-issues.txt"),
239                 exclude("gles2-spec-issues.txt"),
240                 exclude("gles2-driver-issues.txt"),
241                 exclude("gles2-hw-issues.txt")
242         ]
243 GLCTS_3_2_3_GLES2_PKG         = Package(module = ES2CTS_MODULE, configurations = [
244         # Master
245         Configuration(name          = "master",
246                     glconfig        = "rgba8888d24s8ms0",
247                     rotation        = "unspecified",
248                     surfacewidth    = "256",
249                     surfaceheight   = "256",
250                     filters         = GLCTS_3_2_3_GLES2_COMMON_FILTERS),
251     ])
252
253 GLCTS_3_2_3_GLES3_COMMON_FILTERS                = [
254                 include("gles3-master.txt"),
255                 exclude("gles3-test-issues.txt"),
256                 exclude("gles3-spec-issues.txt"),
257                 exclude("gles3-driver-issues.txt"),
258         ]
259
260 GLCTS_3_2_3_GLES3_PKG                           = Package(module = ES3CTS_MODULE, configurations = [
261                 # Master
262                 Configuration(name                      = "master",
263                                         glconfig        = "rgba8888d24s8ms0",
264                                         rotation        = "unspecified",
265                                         surfacewidth    = "256",
266                                         surfaceheight   = "256",
267                                         filters         = GLCTS_3_2_3_GLES3_COMMON_FILTERS + [exclude("gles3-hw-issues.txt")]),
268                 # Rotations
269                 Configuration(name                      = "rotate-portrait",
270                                         glconfig        = "rgba8888d24s8ms0",
271                                         rotation        = "0",
272                                         surfacewidth    = "256",
273                                         surfaceheight   = "256",
274                                         os                              = "android",
275                                         filters         = GLCTS_3_2_3_GLES3_COMMON_FILTERS + [include("gles3-rotation.txt")]),
276                 Configuration(name                      = "rotate-landscape",
277                                         glconfig        = "rgba8888d24s8ms0",
278                                         rotation        = "90",
279                                         surfacewidth    = "256",
280                                         surfaceheight   = "256",
281                                         os                              = "android",
282                                         filters         = GLCTS_3_2_3_GLES3_COMMON_FILTERS + [include("gles3-rotation.txt")]),
283                 Configuration(name                      = "rotate-reverse-portrait",
284                                         glconfig        = "rgba8888d24s8ms0",
285                                         rotation        = "180",
286                                         surfacewidth    = "256",
287                                         surfaceheight   = "256",
288                                         os                              = "android",
289                                         filters         = GLCTS_3_2_3_GLES3_COMMON_FILTERS + [include("gles3-rotation.txt")]),
290                 Configuration(name                      = "rotate-reverse-landscape",
291                                         glconfig        = "rgba8888d24s8ms0",
292                                         rotation        = "270",
293                                         surfacewidth    = "256",
294                                         surfaceheight   = "256",
295                                         os                              = "android",
296                                         filters         = GLCTS_3_2_3_GLES3_COMMON_FILTERS + [include("gles3-rotation.txt")]),
297
298                 # MSAA
299                 Configuration(name                      = "multisample",
300                                         glconfig        = "rgba8888d24s8ms4",
301                                         rotation        = "unspecified",
302                                         surfacewidth    = "256",
303                                         surfaceheight   = "256",
304                                         filters         = GLCTS_3_2_3_GLES3_COMMON_FILTERS + [include("gles3-multisample.txt"), exclude("gles3-multisample-hw-issues.txt")]),
305
306                 # Pixel format
307                 Configuration(name                      = "565-no-depth-no-stencil",
308                                         glconfig        = "rgb565d0s0ms0",
309                                         rotation        = "unspecified",
310                                         surfacewidth    = "256",
311                                         surfaceheight   = "256",
312                                         filters         = GLCTS_3_2_3_GLES3_COMMON_FILTERS + [include("gles3-pixelformat.txt")]),
313
314         ])
315
316 GLCTS_3_2_3_GLES31_COMMON_FILTERS       = [
317                 include("gles31-master.txt"),
318                 exclude("gles31-test-issues.txt"),
319                 exclude("gles31-spec-issues.txt"),
320                 exclude("gles31-driver-issues.txt"),
321                 exclude("gles31-hw-issues.txt")
322         ]
323
324 GLCTS_3_2_3_GLES31_PKG                          = Package(module = ES31CTS_MODULE, configurations = [
325                 # Master
326                 Configuration(name                      = "master",
327                                         glconfig        = "rgba8888d24s8ms0",
328                                         rotation        = "unspecified",
329                                         surfacewidth    = "256",
330                                         surfaceheight   = "256",
331                                         filters         = GLCTS_3_2_3_GLES31_COMMON_FILTERS),
332
333                 # Rotations
334                 Configuration(name                      = "rotate-portrait",
335                                         glconfig        = "rgba8888d24s8ms0",
336                                         rotation        = "0",
337                                         surfacewidth    = "256",
338                                         surfaceheight   = "256",
339                                         os                              = "android",
340                                         filters         = GLCTS_3_2_3_GLES31_COMMON_FILTERS + [include("gles31-rotation.txt")]),
341                 Configuration(name                      = "rotate-landscape",
342                                         glconfig        = "rgba8888d24s8ms0",
343                                         rotation        = "90",
344                                         surfacewidth    = "256",
345                                         surfaceheight   = "256",
346                                         os                              = "android",
347                                         filters         = GLCTS_3_2_3_GLES31_COMMON_FILTERS + [include("gles31-rotation.txt")]),
348                 Configuration(name                      = "rotate-reverse-portrait",
349                                         glconfig        = "rgba8888d24s8ms0",
350                                         rotation        = "180",
351                                         surfacewidth    = "256",
352                                         surfaceheight   = "256",
353                                         os                              = "android",
354                                         filters         = GLCTS_3_2_3_GLES31_COMMON_FILTERS + [include("gles31-rotation.txt")]),
355                 Configuration(name                      = "rotate-reverse-landscape",
356                                         glconfig        = "rgba8888d24s8ms0",
357                                         rotation        = "270",
358                                         surfacewidth    = "256",
359                                         surfaceheight   = "256",
360                                         os                              = "android",
361                                         filters         = GLCTS_3_2_3_GLES31_COMMON_FILTERS + [include("gles31-rotation.txt")]),
362
363                 # MSAA
364                 Configuration(name                      = "multisample",
365                                         glconfig        = "rgba8888d24s8ms4",
366                                         rotation        = "unspecified",
367                                         surfacewidth    = "256",
368                                         surfaceheight   = "256",
369                                         filters         = [include("gles31-master.txt"),
370                                                                         include("gles31-multisample.txt"),
371                                                                         exclude("gles31-multisample-test-issues.txt")]),
372
373                 # Pixel format
374                 Configuration(name                      = "565-no-depth-no-stencil",
375                                         glconfig        = "rgb565d0s0ms0",
376                                         rotation        = "unspecified",
377                                         surfacewidth    = "256",
378                                         surfaceheight   = "256",
379                                         filters         = GLCTS_3_2_3_GLES31_COMMON_FILTERS + [include("gles31-pixelformat.txt")]),
380         ])
381
382 GLCTS_3_2_3_GLES32_KHR_COMMON_FILTERS   = [
383                 include("gles32-khr-master.txt"),
384                 exclude("gles32-khr-test-issues.txt")
385         ]
386
387 GLCTS_3_2_3_GLES32_KHR_PKG_1CFG                 = Package(module = ES32KHR_MODULE, configurations = [
388                 # Master
389                 Configuration(name                      = "khr-master",
390                                         surfacewidth    = "64",
391                                         surfaceheight   = "64",
392                                         baseseed                = "1",
393                                         filters                 = GLCTS_3_2_3_GLES32_KHR_COMMON_FILTERS),
394                 Configuration(name                      = "khr-master",
395                                         surfacewidth    = "113",
396                                         surfaceheight   = "47",
397                                         baseseed                = "2",
398                                         filters                 = GLCTS_3_2_3_GLES32_KHR_COMMON_FILTERS),
399                 Configuration(name                      = "khr-master",
400                                         surfacewidth    = "64",
401                                         surfaceheight   = "-1",
402                                         baseseed                = "3",
403                                         fboconfig               = "rgba8888d24s8",
404                                         filters                 = GLCTS_3_2_3_GLES32_KHR_COMMON_FILTERS),
405                 Configuration(name                      = "khr-master",
406                                         surfacewidth    = "-1",
407                                         surfaceheight   = "64",
408                                         baseseed                = "3",
409                                         fboconfig               = "rgba8888d24s8",
410                                         filters                 = GLCTS_3_2_3_GLES32_KHR_COMMON_FILTERS),
411         ])
412
413 GLCTS_3_2_3_GLES32_KHR_PKG_N1CFG                = Package(module = ES32KHR_MODULE, useforfirsteglconfig = False, configurations = [
414                 # Master
415                 Configuration(name                      = "khr-master",
416                                         surfacewidth    = "64",
417                                         surfaceheight   = "64",
418                                         baseseed                = "1",
419                                         filters                 = GLCTS_3_2_3_GLES32_KHR_COMMON_FILTERS),
420                 Configuration(name                      = "khr-master",
421                                         surfacewidth    = "113",
422                                         surfaceheight   = "47",
423                                         baseseed                = "2",
424                                         filters                 = GLCTS_3_2_3_GLES32_KHR_COMMON_FILTERS),
425         ])
426
427
428 # master
429 MASTER_EGL_COMMON_FILTERS                       = [include("egl-master.txt"),
430                                                                                 exclude("egl-test-issues.txt"),
431                                                                                 exclude("egl-internal-api-tests.txt")]
432 MASTER_EGL_PKG                                          = Package(module = EGL_MODULE, configurations = [
433                 # Master
434                 Configuration(name                      = "master",
435                                         glconfig                = "rgba8888d24s8ms0",
436                                         rotation                = "unspecified",
437                                         surfacewidth    = "256",
438                     surfaceheight   = "256",
439                                         filters                 = MASTER_EGL_COMMON_FILTERS),
440         ])
441
442 MASTER_GLES2_COMMON_FILTERS                     = [
443                                 include("gles2-master.txt"),
444                                 exclude("gles2-test-issues.txt")
445                 ]
446 MASTER_GLES2_PKG         = Package(module = ES2CTS_MODULE, configurations = [
447         # Master
448         Configuration(name          = "master",
449                     glconfig        = "rgba8888d24s8ms0",
450                     rotation        = "unspecified",
451                     surfacewidth    = "256",
452                     surfaceheight   = "256",
453                     filters         = MASTER_GLES2_COMMON_FILTERS),
454     ])
455
456 MASTER_GLES3_COMMON_FILTERS             = [
457                 include("gles3-master.txt"),
458                 exclude("gles3-test-issues.txt"),
459                 exclude("gles3-spec-issues.txt")
460         ]
461 MASTER_GLES3_PKG                                = Package(module = ES3CTS_MODULE, configurations = [
462                 # Master
463                 Configuration(name                      = "master",
464                                         glconfig        = "rgba8888d24s8ms0",
465                                         rotation        = "unspecified",
466                                         surfacewidth    = "256",
467                                         surfaceheight   = "256",
468                                         filters         = MASTER_GLES3_COMMON_FILTERS),
469                 # Rotations
470                 Configuration(name                      = "rotate-portrait",
471                                         glconfig        = "rgba8888d24s8ms0",
472                                         rotation        = "0",
473                                         surfacewidth    = "256",
474                                         surfaceheight   = "256",
475                                         os                              = "android",
476                                         filters         = MASTER_GLES3_COMMON_FILTERS + [include("gles3-rotation.txt")]),
477                 Configuration(name                      = "rotate-landscape",
478                                         glconfig        = "rgba8888d24s8ms0",
479                                         rotation        = "90",
480                                         surfacewidth    = "256",
481                                         surfaceheight   = "256",
482                                         os                              = "android",
483                                         filters         = MASTER_GLES3_COMMON_FILTERS + [include("gles3-rotation.txt")]),
484                 Configuration(name                      = "rotate-reverse-portrait",
485                                         glconfig        = "rgba8888d24s8ms0",
486                                         rotation        = "180",
487                                         surfacewidth    = "256",
488                                         surfaceheight   = "256",
489                                         os                              = "android",
490                                         filters         = MASTER_GLES3_COMMON_FILTERS + [include("gles3-rotation.txt")]),
491                 Configuration(name                      = "rotate-reverse-landscape",
492                                         glconfig        = "rgba8888d24s8ms0",
493                                         rotation        = "270",
494                                         surfacewidth    = "256",
495                                         surfaceheight   = "256",
496                                         os                              = "android",
497                                         filters         = MASTER_GLES3_COMMON_FILTERS + [include("gles3-rotation.txt")]),
498
499                 # MSAA
500                 Configuration(name                      = "multisample",
501                                         glconfig        = "rgba8888d24s8ms4",
502                                         rotation        = "unspecified",
503                                         surfacewidth    = "256",
504                                         surfaceheight   = "256",
505                                         filters         = MASTER_GLES3_COMMON_FILTERS + [include("gles3-multisample.txt")]),
506
507                 # Pixel format
508                 Configuration(name                      = "565-no-depth-no-stencil",
509                                         glconfig        = "rgb565d0s0ms0",
510                                         rotation        = "unspecified",
511                                         surfacewidth    = "256",
512                                         surfaceheight   = "256",
513                                         filters         = MASTER_GLES3_COMMON_FILTERS + [include("gles3-pixelformat.txt")]),
514         ])
515 MASTER_GLES31_COMMON_FILTERS             = [
516                 include("gles31-master.txt"),
517                 exclude("gles31-test-issues.txt"),
518                 exclude("gles31-spec-issues.txt")
519         ]
520
521 MASTER_GLES31_PKG                               = Package(module = ES31CTS_MODULE, configurations = [
522                 # Master
523                 Configuration(name                      = "master",
524                                         glconfig        = "rgba8888d24s8ms0",
525                                         rotation        = "unspecified",
526                                         surfacewidth    = "256",
527                                         surfaceheight   = "256",
528                                         filters         = MASTER_GLES31_COMMON_FILTERS),
529
530                 # Rotations
531                 Configuration(name                      = "rotate-portrait",
532                                         glconfig        = "rgba8888d24s8ms0",
533                                         rotation        = "0",
534                                         surfacewidth    = "256",
535                                         surfaceheight   = "256",
536                                         os                              = "android",
537                                         filters         = MASTER_GLES31_COMMON_FILTERS + [include("gles31-rotation.txt")]),
538                 Configuration(name                      = "rotate-landscape",
539                                         glconfig        = "rgba8888d24s8ms0",
540                                         rotation        = "90",
541                                         surfacewidth    = "256",
542                                         surfaceheight   = "256",
543                                         os                              = "android",
544                                         filters         = MASTER_GLES31_COMMON_FILTERS + [include("gles31-rotation.txt")]),
545                 Configuration(name                      = "rotate-reverse-portrait",
546                                         glconfig        = "rgba8888d24s8ms0",
547                                         rotation        = "180",
548                                         surfacewidth    = "256",
549                                         surfaceheight   = "256",
550                                         os                              = "android",
551                                         filters         = MASTER_GLES31_COMMON_FILTERS + [include("gles31-rotation.txt")]),
552                 Configuration(name                      = "rotate-reverse-landscape",
553                                         glconfig        = "rgba8888d24s8ms0",
554                                         rotation        = "270",
555                                         surfacewidth    = "256",
556                                         surfaceheight   = "256",
557                                         os                              = "android",
558                                         filters         = MASTER_GLES31_COMMON_FILTERS + [include("gles31-rotation.txt")]),
559
560                 # MSAA
561                 Configuration(name                      = "multisample",
562                                         glconfig        = "rgba8888d24s8ms4",
563                                         rotation        = "unspecified",
564                                         surfacewidth    = "256",
565                                         surfaceheight   = "256",
566                                         filters         = MASTER_GLES31_COMMON_FILTERS + [include("gles31-multisample.txt")]),
567
568                 # Pixel format
569                 Configuration(name                      = "565-no-depth-no-stencil",
570                                         glconfig        = "rgb565d0s0ms0",
571                                         rotation        = "unspecified",
572                                         surfacewidth    = "256",
573                                         surfaceheight   = "256",
574                                         filters         = MASTER_GLES31_COMMON_FILTERS + [include("gles31-pixelformat.txt")]),
575         ])
576
577 GLCTS_GLES2_KHR_PKG_1CFG                        = Package(module = ES2KHR_MODULE, configurations = [
578                 # Master
579                 Configuration(name                      = "khr-master",
580                                         surfacewidth    = "64",
581                                         surfaceheight   = "64",
582                                         baseseed                = "1",
583                                         filters                 = [include("gles2-khr-master.txt")]),
584         ])
585
586 GLCTS_GLES2_DEQP_PKG_1CFG                       = Package(module = ES2CTS_MODULE, configurations = [
587                 # Master
588                 Configuration(name                      = "deqp-master",
589                                         surfacewidth    = "64",
590                                         surfaceheight   = "64",
591                                         baseseed                = "1",
592                                         filters                 = [include("gles2-deqp-master.txt")]),
593         ])
594
595 GLCTS_GLES2_GTF_PKG_1CFG                        = Package(module = ES2GTF_MODULE, configurations = [
596                 # Master
597                 Configuration(name                      = "gtf-master",
598                                         surfacewidth    = "64",
599                                         surfaceheight   = "64",
600                                         baseseed                = "1",
601                                         filters                 = [include("gles2-gtf-master.txt")]),
602                 Configuration(name                      = "gtf-master",
603                                         surfacewidth    = "113",
604                                         surfaceheight   = "47",
605                                         baseseed                = "2",
606                                         filters                 = [include("gles2-gtf-master.txt")]),
607                 Configuration(name                      = "gtf-master",
608                                         surfacewidth    = "64",
609                                         surfaceheight   = "-1",
610                                         baseseed                = "3",
611                                         fboconfig               = "rgba8888d24s8",
612                                         filters                 = [include("gles2-gtf-master.txt")]),
613                 Configuration(name                      = "gtf-master",
614                                         surfacewidth    = "-1",
615                                         surfaceheight   = "64",
616                                         baseseed                = "3",
617                                         fboconfig               = "rgba8888d24s8",
618                                         filters                 = [include("gles2-gtf-master.txt")]),
619                 Configuration(name                      = "gtf-egl",
620                                         surfacewidth    = "64",
621                                         surfaceheight   = "64",
622                                         baseseed                = "1",
623                                         filters                 = [include("gles2-gtf-egl.txt")]),
624                 Configuration(name                      = "gtf-egl",
625                                         surfacewidth    = "113",
626                                         surfaceheight   = "47",
627                                         baseseed                = "2",
628                                         filters                 = [include("gles2-gtf-egl.txt")]),
629         ])
630
631 GLCTS_GLES2_KHR_PKG_N1CFG                       = Package(module = ES2KHR_MODULE, useforfirsteglconfig = False, configurations = [
632                 # Master
633                 Configuration(name                      = "khr-master",
634                                         surfacewidth    = "64",
635                                         surfaceheight   = "64",
636                                         baseseed                = "1",
637                                         filters                 = [include("gles2-khr-master.txt")]),
638         ])
639
640 GLCTS_GLES2_DEQP_PKG_N1CFG                      = Package(module = ES2CTS_MODULE, useforfirsteglconfig = False, configurations = [
641                 # Master
642                 Configuration(name                      = "deqp-master",
643                                         surfacewidth    = "64",
644                                         surfaceheight   = "64",
645                                         baseseed                = "1",
646                                         filters                 = [include("gles2-deqp-master.txt")]),
647         ])
648
649 GLCTS_GLES2_GTF_PKG_N1CFG                       = Package(module = ES2GTF_MODULE, useforfirsteglconfig = False, configurations = [
650                 # Master
651                 Configuration(name                      = "gtf-master",
652                                         surfacewidth    = "64",
653                                         surfaceheight   = "64",
654                                         baseseed                = "1",
655                                         filters         = [include("gles2-gtf-master.txt")]),
656                 Configuration(name                      = "gtf-master",
657                                         surfacewidth    = "113",
658                                         surfaceheight   = "47",
659                                         baseseed                = "2",
660                                         filters                 = [include("gles2-gtf-master.txt")]),
661         ])
662
663 GLCTS_GLES3_DEQP_PKG_1CFG                       = Package(module = ES3CTS_MODULE, configurations = [
664                 # Master
665                 Configuration(name                      = "deqp-master",
666                                         surfacewidth    = "64",
667                                         surfaceheight   = "64",
668                                         baseseed                = "1",
669                                         filters                 = [include("gles3-deqp-master.txt")]),
670         ])
671
672 GLCTS_GLES3_KHR_PKG_1CFG                        = Package(module = ES3KHR_MODULE, configurations = [
673                 # Master
674                 Configuration(name                      = "khr-master",
675                                         surfacewidth    = "64",
676                                         surfaceheight   = "64",
677                                         baseseed                = "1",
678                                         filters                 = [include("gles3-khr-master.txt")]),
679         ])
680
681 GLCTS_GLES3_GTF_PKG_1CFG                        = Package(module = ES3GTF_MODULE, configurations = [
682                 # Master
683                 Configuration(name                      = "gtf-master",
684                                         surfacewidth    = "64",
685                                         surfaceheight   = "64",
686                                         baseseed                = "1",
687                                         filters                 = [include("gles3-gtf-master.txt")]),
688                 Configuration(name                      = "gtf-master",
689                                         surfacewidth    = "113",
690                                         surfaceheight   = "47",
691                                         baseseed                = "2",
692                                         filters                 = [include("gles3-gtf-master.txt")]),
693                 Configuration(name                      = "gtf-master",
694                                         surfacewidth    = "64",
695                                         surfaceheight   = "-1",
696                                         baseseed                = "3",
697                                         fboconfig               = "rgba8888d24s8",
698                                         filters                 = [include("gles3-gtf-master.txt")]),
699                 Configuration(name                      = "gtf-master",
700                                         surfacewidth    = "-1",
701                                         surfaceheight   = "64",
702                                         baseseed                = "3",
703                                         fboconfig               = "rgba8888d24s8",
704                                         filters                 = [include("gles3-gtf-master.txt")]),
705         ])
706
707 GLCTS_GLES3_DEQP_PKG_N1CFG                      = Package(module = ES3CTS_MODULE, useforfirsteglconfig = False, configurations = [
708                 # Master
709                 Configuration(name                      = "deqp-master",
710                                         surfacewidth    = "64",
711                                         surfaceheight   = "64",
712                                         baseseed                = "1",
713                                         filters                 = [include("gles3-deqp-master.txt")]),
714         ])
715
716 GLCTS_GLES3_KHR_PKG_N1CFG                       = Package(module = ES3KHR_MODULE, useforfirsteglconfig = False, configurations = [
717                 # Master
718                 Configuration(name                      = "khr-master",
719                                         surfacewidth    = "64",
720                                         surfaceheight   = "64",
721                                         baseseed                = "1",
722                                         filters                 = [include("gles3-khr-master.txt")]),
723         ])
724 GLCTS_GLES3_GTF_PKG_N1CFG                       = Package(module = ES3GTF_MODULE, useforfirsteglconfig = False, configurations = [
725                 # Master
726                 Configuration(name                      = "gtf-master",
727                                         surfacewidth    = "64",
728                                         surfaceheight   = "64",
729                                         baseseed                = "1",
730                                         filters                 = [include("gles3-gtf-master.txt")]),
731                 Configuration(name                      = "gtf-master",
732                                         surfacewidth    = "113",
733                                         surfaceheight   = "47",
734                                         baseseed                = "2",
735                                         filters                 = [include("gles3-gtf-master.txt")]),
736         ])
737
738 GLCTS_GLES31_DEQP_PKG_1CFG                      = Package(module = ES31CTS_MODULE, configurations = [
739                 # Master
740                 Configuration(name                      = "deqp-master",
741                                         surfacewidth    = "64",
742                                         surfaceheight   = "64",
743                                         baseseed                = "1",
744                                         filters                 = [include("gles31-deqp-master.txt")]),
745         ])
746
747 GLCTS_GLES31_KHR_PKG_1CFG                       = Package(module = ES31KHR_MODULE, configurations = [
748                 # Master
749                 Configuration(name                      = "khr-master",
750                                         surfacewidth    = "64",
751                                         surfaceheight   = "64",
752                                         baseseed                = "1",
753                                         filters                 = [include("gles31-khr-master.txt")]),
754         ])
755
756 GLCTS_GLES31_GTF_PKG_1CFG                       = Package(module = ES31GTF_MODULE, configurations = [
757                 # Master
758                 Configuration(name                      = "gtf-master",
759                                         surfacewidth    = "64",
760                                         surfaceheight   = "64",
761                                         baseseed                = "1",
762                                         filters                 = [include("gles31-gtf-master.txt")]),
763                 Configuration(name                      = "gtf-master",
764                                         surfacewidth    = "113",
765                                         surfaceheight   = "47",
766                                         baseseed                = "2",
767                                         filters                 = [include("gles31-gtf-master.txt")]),
768                 Configuration(name                      = "gtf-master",
769                                         surfacewidth    = "64",
770                                         surfaceheight   = "-1",
771                                         baseseed                = "3",
772                                         fboconfig               = "rgba8888d24s8",
773                                         filters                 = [include("gles31-gtf-master.txt")]),
774                 Configuration(name                      = "gtf-master",
775                                         surfacewidth    = "-1",
776                                         surfaceheight   = "64",
777                                         baseseed                = "3",
778                                         fboconfig               = "rgba8888d24s8",
779                                         filters                 = [include("gles31-gtf-master.txt")]),
780         ])
781
782 GLCTS_GLES31_KHR_PKG_N1CFG                      = Package(module = ES31KHR_MODULE, useforfirsteglconfig = False, configurations = [
783                 # Master
784                 Configuration(name                      = "khr-master",
785                                         surfacewidth    = "64",
786                                         surfaceheight   = "64",
787                                         baseseed                = "1",
788                                         filters                 = [include("gles31-khr-master.txt")]),
789         ])
790
791 GLCTS_GLES31_DEQP_PKG_N1CFG                     = Package(module = ES31CTS_MODULE, useforfirsteglconfig = False, configurations = [
792                 # Master
793                 Configuration(name                      = "deqp-master",
794                                         surfacewidth    = "64",
795                                         surfaceheight   = "64",
796                                         baseseed                = "1",
797                                         filters                 = [include("gles31-deqp-master.txt")]),
798         ])
799
800 GLCTS_GLES31_GTF_PKG_N1CFG                      = Package(module = ES31GTF_MODULE, useforfirsteglconfig = False, configurations = [
801                 # Master
802                 Configuration(name                      = "gtf-master",
803                                         surfacewidth    = "64",
804                                         surfaceheight   = "64",
805                                         baseseed                = "1",
806                                         filters                 = [include("gles31-gtf-master.txt")]),
807                 Configuration(name                      = "gtf-master",
808                                         surfacewidth    = "113",
809                                         surfaceheight   = "47",
810                                         baseseed                = "2",
811                                         filters                 = [include("gles31-gtf-master.txt")]),
812         ])
813
814 GLCTS_GLES32_KHR_PKG_1CFG                       = Package(module = ES32KHR_MODULE, configurations = [
815                 # Master
816                 Configuration(name                      = "khr-master",
817                                         surfacewidth    = "64",
818                                         surfaceheight   = "64",
819                                         baseseed                = "1",
820                                         filters                 = [include("gles32-khr-master.txt")]),
821                 Configuration(name                      = "khr-master",
822                                         surfacewidth    = "113",
823                                         surfaceheight   = "47",
824                                         baseseed                = "2",
825                                         filters                 = [include("gles32-khr-master.txt")]),
826                 Configuration(name                      = "khr-master",
827                                         surfacewidth    = "64",
828                                         surfaceheight   = "-1",
829                                         baseseed                = "3",
830                                         fboconfig               = "rgba8888d24s8",
831                                         filters                 = [include("gles32-khr-master.txt")]),
832                 Configuration(name                      = "khr-master",
833                                         surfacewidth    = "-1",
834                                         surfaceheight   = "64",
835                                         baseseed                = "3",
836                                         fboconfig               = "rgba8888d24s8",
837                                         filters                 = [include("gles32-khr-master.txt")]),
838         ])
839
840 GLCTS_GLES32_KHR_PKG_N1CFG                      = Package(module = ES32KHR_MODULE, useforfirsteglconfig = False, configurations = [
841                 # Master
842                 Configuration(name                      = "khr-master",
843                                         surfacewidth    = "64",
844                                         surfaceheight   = "64",
845                                         baseseed                = "1",
846                                         filters                 = [include("gles32-khr-master.txt")]),
847                 Configuration(name                      = "khr-master",
848                                         surfacewidth    = "113",
849                                         surfaceheight   = "47",
850                                         baseseed                = "2",
851                                         filters                 = [include("gles32-khr-master.txt")]),
852         ])
853
854 GLCTS_NOCTX_KHR_PKG_1CFG                        = Package(module = NOCTXKHR_MODULE, configurations = [
855                 # Master
856                 Configuration(name                      = "khr-master",
857                                         surfacewidth    = "64",
858                                         surfaceheight   = "64",
859                                         baseseed                = "1",
860                                         filters                 = [include("noctx-khr-master.txt")]),
861                 Configuration(name                      = "khr-master",
862                                         surfacewidth    = "113",
863                                         surfaceheight   = "47",
864                                         baseseed                = "2",
865                                         filters                 = [include("noctx-khr-master.txt")]),
866         ])
867
868 ES_MUSTPASS_LISTS               = [
869         # 3.2.2.x
870         Mustpass(project = CTS_KHR_MP_ES_PROJECT,       version = "3.2.2.x", isCurrent=False,
871                         packages = [GLCTS_GLES2_KHR_PKG_1CFG,
872                                                 GLCTS_GLES2_DEQP_PKG_1CFG,
873                                                 GLCTS_GLES2_GTF_PKG_1CFG,
874                                                 GLCTS_GLES2_KHR_PKG_N1CFG,
875                                                 GLCTS_GLES2_DEQP_PKG_N1CFG,
876                                                 GLCTS_GLES2_GTF_PKG_N1CFG,
877                                                 GLCTS_GLES3_KHR_PKG_1CFG,
878                                                 GLCTS_GLES3_DEQP_PKG_1CFG,
879                                                 GLCTS_GLES3_GTF_PKG_1CFG,
880                                                 GLCTS_GLES3_KHR_PKG_N1CFG,
881                                                 GLCTS_GLES3_DEQP_PKG_N1CFG,
882                                                 GLCTS_GLES3_GTF_PKG_N1CFG,
883                                                 GLCTS_GLES31_KHR_PKG_1CFG,
884                                                 GLCTS_GLES31_DEQP_PKG_1CFG,
885                                                 GLCTS_GLES31_GTF_PKG_1CFG,
886                                                 GLCTS_GLES31_KHR_PKG_N1CFG,
887                                                 GLCTS_GLES31_DEQP_PKG_N1CFG,
888                                                 GLCTS_GLES31_GTF_PKG_N1CFG,
889                                                 GLCTS_GLES32_KHR_PKG_1CFG,
890                                                 GLCTS_GLES32_KHR_PKG_N1CFG,
891                                                 ]),
892
893         Mustpass(project = CTS_AOSP_MP_ES_PROJECT,      version = "3.2.2.x", isCurrent=False,
894                         packages = [GLCTS_GLES2_PKG, GLCTS_3_2_2_GLES3_PKG, GLCTS_3_2_2_GLES31_PKG]),
895
896         # 3.2.3.x
897         Mustpass(project = CTS_KHR_MP_ES_PROJECT,       version = "3.2.3.x", isCurrent=False,
898                         packages = [GLCTS_GLES2_KHR_PKG_1CFG,
899                                                 GLCTS_GLES2_GTF_PKG_1CFG,
900                                                 GLCTS_GLES2_KHR_PKG_N1CFG,
901                                                 GLCTS_GLES2_GTF_PKG_N1CFG,
902                                                 GLCTS_GLES3_KHR_PKG_1CFG,
903                                                 GLCTS_GLES3_GTF_PKG_1CFG,
904                                                 GLCTS_GLES3_KHR_PKG_N1CFG,
905                                                 GLCTS_GLES3_GTF_PKG_N1CFG,
906                                                 GLCTS_GLES31_KHR_PKG_1CFG,
907                                                 GLCTS_GLES31_GTF_PKG_1CFG,
908                                                 GLCTS_GLES31_KHR_PKG_N1CFG,
909                                                 GLCTS_GLES31_GTF_PKG_N1CFG,
910                                                 GLCTS_3_2_3_GLES32_KHR_PKG_1CFG,
911                                                 GLCTS_3_2_3_GLES32_KHR_PKG_N1CFG,
912                                                 ]),
913
914         Mustpass(project = CTS_AOSP_MP_ES_PROJECT, version = "3.2.3.x", isCurrent=False,
915                         packages = [GLCTS_3_2_3_GLES2_PKG, GLCTS_3_2_3_GLES3_PKG, GLCTS_3_2_3_GLES31_PKG]),
916
917         Mustpass(project = CTS_AOSP_MP_EGL_PROJECT, version = "3.2.3.x", isCurrent=False,
918                         packages = [GLCTS_3_2_3_EGL_PKG]),
919
920         # 3.2.4.x
921         Mustpass(project = CTS_KHR_MP_ES_PROJECT,       version = "3.2.4.x", isCurrent=True,
922                         packages = [GLCTS_GLES2_KHR_PKG_1CFG,
923                                                 GLCTS_GLES2_KHR_PKG_N1CFG,
924                                                 GLCTS_GLES3_KHR_PKG_1CFG,
925                                                 GLCTS_GLES3_KHR_PKG_N1CFG,
926                                                 GLCTS_GLES31_KHR_PKG_1CFG,
927                                                 GLCTS_GLES31_KHR_PKG_N1CFG,
928                                                 GLCTS_3_2_3_GLES32_KHR_PKG_1CFG,
929                                                 GLCTS_3_2_3_GLES32_KHR_PKG_N1CFG,
930                                                 ]),
931
932
933         Mustpass(project = CTS_KHR_MP_NOCTX_ES_PROJECT, version = "3.2.4.x", isCurrent=True,
934                         packages = [GLCTS_NOCTX_KHR_PKG_1CFG]),
935
936         Mustpass(project = CTS_AOSP_MP_ES_PROJECT, version = "3.2.4.x", isCurrent=True,
937                         packages = [GLCTS_3_2_3_GLES2_PKG, GLCTS_3_2_3_GLES3_PKG, GLCTS_3_2_3_GLES31_PKG]),
938
939         Mustpass(project = CTS_AOSP_MP_EGL_PROJECT, version = "3.2.4.x", isCurrent=True,
940                         packages = [GLCTS_3_2_3_EGL_PKG]),
941
942         # master
943
944         Mustpass(project = CTS_KHR_MP_ES_PROJECT,       version = "master", isCurrent=False,
945                         packages = [GLCTS_GLES2_KHR_PKG_1CFG,
946                                                 GLCTS_GLES2_KHR_PKG_N1CFG,
947                                                 GLCTS_GLES3_KHR_PKG_1CFG,
948                                                 GLCTS_GLES3_KHR_PKG_N1CFG,
949                                                 GLCTS_GLES31_KHR_PKG_1CFG,
950                                                 GLCTS_GLES31_KHR_PKG_N1CFG,
951                                                 GLCTS_GLES32_KHR_PKG_1CFG,
952                                                 GLCTS_GLES32_KHR_PKG_N1CFG,
953                                                 ]),
954
955         Mustpass(project = CTS_KHR_MP_NOCTX_ES_PROJECT, version = "master", isCurrent=False,
956                         packages = [GLCTS_NOCTX_KHR_PKG_1CFG]),
957
958         Mustpass(project = CTS_AOSP_MP_ES_PROJECT, version = "master", isCurrent=False,
959                         packages = [MASTER_GLES2_PKG, MASTER_GLES3_PKG, MASTER_GLES31_PKG]),
960
961         Mustpass(project = CTS_AOSP_MP_EGL_PROJECT, version = "master", isCurrent=False,
962                         packages = [MASTER_EGL_PKG])
963
964         ]
965
966 ES_BUILD_CONFIG                         = BuildConfig(buildPath, "Debug", ["-DDEQP_TARGET=%s" % DEFAULT_TARGET, "-DGLCTS_GTF_TARGET=gles32"])
967
968 #-------------------------------------------------- GL MUSTPASS----------------------------------------------------------------------
969
970 GL_CTS_MP_INC_DIR                                       = os.path.join(DEQP_DIR, "external", "openglcts", "modules", "runner")
971
972 GL_CTS_KHR_MP_DATA_DIR                          = os.path.join(DEQP_DIR, "external", "openglcts", "data", "mustpass", "gl", "khronos_mustpass")
973
974 GL_CTS_KHR_MP_DEVICE_DIR                        = "gl_cts/data/mustpass/gl/khronos_mustpass"
975
976 GL_CTS_KHR_MP_PROJECT                           = Project(name = "Khronos Mustpass GL", path = GL_CTS_KHR_MP_DATA_DIR, incpath = GL_CTS_MP_INC_DIR, devicepath = GL_CTS_KHR_MP_DEVICE_DIR, copyright = COPYRIGHT_DECLARATION)
977
978 GL_CTS_KHR_MP_NOCTX_DATA_DIR            = os.path.join(DEQP_DIR, "external", "openglcts", "data", "mustpass", "gl", "khronos_mustpass_noctx")
979
980 GL_CTS_KHR_MP_NOCTX_DEVICE_DIR          = "gl_cts/data/mustpass/gl/khronos_mustpass_noctx"
981
982 GL_CTS_NOCTX_PROJECT                            = Project(name = "Khronos Mustpass GL NoContext", path = GL_CTS_KHR_MP_NOCTX_DATA_DIR, incpath = GL_CTS_MP_INC_DIR, devicepath = GL_CTS_KHR_MP_NOCTX_DEVICE_DIR, copyright = COPYRIGHT_DECLARATION)
983
984 GL_MODULES                                                      = OrderedDict([
985                         ('KHR-GL45',            ['master',              [include('gl45-master.txt')]]),
986                         ('KHR-GL44',            ['master',              [include('gl44-master.txt')]]),
987                         ('KHR-GL43',            ['master',              [include('gl43-master.txt')]]),
988                         ('KHR-GL42',            ['master',              [include('gl42-master.txt')]]),
989                         ('KHR-GL41',            ['master',              [include('gl41-master.txt')]]),
990                         ('KHR-GL40',            ['master',              [include('gl40-master.txt')]]),
991                         ('KHR-GL33',            ['master',              [include('gl33-master.txt')]]),
992                         ('KHR-GL32',            ['master',              [include('gl32-master.txt')]]),
993                         ('KHR-GL31',            ['master',              [include('gl31-master.txt')]]),
994                         ('KHR-GL30',            ['master',              [include('gl30-master.txt')]]),
995                         ('GTF-GL45',            ['gtf-master',  [include('gl45-gtf-master.txt')]]),
996                         ('GTF-GL44',            ['gtf-master',  [include('gl44-gtf-master.txt')]]),
997                         ('GTF-GL43',            ['gtf-master',  [include('gl43-gtf-master.txt')]]),
998                         ('GTF-GL42',            ['gtf-master',  [include('gl42-gtf-master.txt')]]),
999                         ('GTF-GL41',            ['gtf-master',  [include('gl41-gtf-master.txt')]]),
1000                         ('GTF-GL40',            ['gtf-master',  [include('gl40-gtf-master.txt')]]),
1001                         ('GTF-GL33',            ['gtf-master',  [include('gl33-gtf-master.txt')]]),
1002                         ('GTF-GL32',            ['gtf-master',  [include('gl32-gtf-master.txt')]]),
1003                         ('GTF-GL31',            ['gtf-master',  [include('gl31-gtf-master.txt')]]),
1004                         ('GTF-GL30',            ['gtf-master',  [include('gl30-gtf-master.txt')]])
1005                 ])
1006
1007 def generateGLMustpass():
1008                 gl_packages = []
1009                 for packageName in GL_MODULES:
1010                         cfgName                 = GL_MODULES[packageName][0]
1011                         cfgFilter               = GL_MODULES[packageName][1]
1012                         config_w64xh64  = Configuration(name = cfgName, surfacewidth = "64", surfaceheight = "64", baseseed = "1", filters = cfgFilter)
1013                         config_w113xh47 = Configuration(name = cfgName, surfacewidth = "113", surfaceheight = "47", baseseed = "2", filters = cfgFilter)
1014                         config_w64              = Configuration(name = cfgName, surfacewidth = "64", surfaceheight = "-1", baseseed = "3", fboconfig = "rgba8888d24s8", filters = cfgFilter)
1015                         config_h64              = Configuration(name = cfgName, surfacewidth = "-1", surfaceheight = "64", baseseed = "3", fboconfig = "rgba8888d24s8", filters = cfgFilter)
1016
1017                         pkgModule               = getModuleByName(packageName)
1018                         pkg0                    = Package(module = pkgModule,
1019                                                                                 useforfirsteglconfig = True,
1020                                                                                 configurations = [
1021                                                                                         config_w64xh64, config_w113xh47, config_w64, config_h64
1022                                                                                 ]
1023                                                                         )
1024                         pkg1                    = Package(module = pkgModule,
1025                                                                                 useforfirsteglconfig = False,
1026                                                                                 configurations = [
1027                                                                                         config_w64xh64, config_w113xh47,
1028                                                                                 ]
1029                                                                         )
1030                         gl_packages.append(pkg0)
1031                         gl_packages.append(pkg1)
1032
1033                 mustpass = [Mustpass(project = GL_CTS_KHR_MP_PROJECT, version = "4.5.5.x", isCurrent=True, packages = gl_packages),
1034                                         Mustpass(project = GL_CTS_NOCTX_PROJECT, version = "4.5.5.x", isCurrent=True, packages = [GLCTS_NOCTX_KHR_PKG_1CFG]),
1035                                         ]
1036                 return mustpass
1037
1038 GL_BUILD_CONFIG                                 = BuildConfig(buildPath, "Debug", ["-DDEQP_TARGET=%s" % DEFAULT_TARGET, "-DGLCTS_GTF_TARGET=gl"])
1039
1040 if __name__ == "__main__":
1041         gtfCMakeLists = os.path.join(DEQP_DIR, "external", "kc-cts", "src", "GTF_ES", "CMakeLists.txt")
1042         if os.path.isfile(gtfCMakeLists) == False:
1043                 raise Exception("GTF sources not found. GTF module is required to build the mustpass files")
1044         genMustpassLists(ES_MUSTPASS_LISTS, ANY_GENERATOR, ES_BUILD_CONFIG)
1045         gl_mustpass_lists = generateGLMustpass()
1046         genMustpassLists(gl_mustpass_lists, ANY_GENERATOR, GL_BUILD_CONFIG)
1047