vulkan: bump headers/registry to 1.1.127
[mesa.git] / .gitlab-ci.yml
1 # This is the tag of the docker image used for the build jobs. If the
2 # image doesn't exist yet, the containers stage generates it.
3 #
4 # In order to generate a new image, one should generally change the tag.
5 # While removing the image from the registry would also work, that's not
6 # recommended except for ephemeral images during development: Replacing
7 # an image after a significant amount of time might pull in newer
8 # versions of gcc/clang or other packages, which might break the build
9 # with older commits using the same tag.
10 #
11 # After merging a change resulting in generating a new image to the
12 # main repository, it's recommended to remove the image from the source
13 # repository's container registry, so that the image from the main
14 # repository's registry will be used there as well.
15 variables:
16 UPSTREAM_REPO: mesa/mesa
17 DEBIAN_TAG: "2019-10-30"
18 DEBIAN_ARM64_TAG: "arm64v8-2019-10-23"
19 STRETCH_TAG: "2019-09-18"
20 DEBIAN_VERSION: buster-slim
21 STRETCH_VERSION: stretch-slim
22 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
23 DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG"
24 STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG"
25
26 include:
27 - project: 'wayland/ci-templates'
28 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
29 file: '/templates/debian.yml'
30
31 include:
32 - local: '.gitlab-ci/lava-gitlab-ci.yml'
33
34 stages:
35 - container
36 - build
37 - test
38
39
40 # When to automatically run the CI
41 .ci-run-policy:
42 only:
43 refs:
44 - branches@mesa/mesa
45 - merge_requests
46 - /^ci([-/].*)?$/
47 changes:
48 - VERSION
49 - bin/**/*
50 # GitLab CI
51 - .gitlab-ci.yml
52 - .gitlab-ci/**/*
53 # Meson
54 - meson*
55 - build-support/**/*
56 - subprojects/**/*
57 # SCons
58 - SConstruct
59 - scons/**/*
60 - common.py
61 # Source code
62 - include/**/*
63 - src/**/*
64 retry:
65 max: 2
66 when:
67 - runner_system_failure
68
69 .ci-deqp-artifacts:
70 artifacts:
71 when: always
72 untracked: false
73 paths:
74 # Watch out! Artifacts are relative to the build dir.
75 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
76 - artifacts
77
78 # Build the normal CI native and cross-build docker images.
79
80 .container:
81 stage: container
82 extends:
83 - .ci-run-policy
84 variables:
85 # no need to pull the whole repo to build the container image
86 GIT_STRATEGY: none
87
88 debian-10:amd64:
89 extends:
90 - .debian@container-ifnot-exists
91 - .container
92 variables:
93 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
94
95 .use-debian-10:amd64:
96 image: $DEBIAN_IMAGE
97 needs:
98 - debian-10:amd64
99
100 debian-9:amd64:
101 extends: debian-10:amd64
102 variables:
103 DEBIAN_TAG: $STRETCH_TAG
104 DEBIAN_VERSION: $STRETCH_VERSION
105 DEBIAN_IMAGE: $STRETCH_IMAGE
106 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
107
108 .use-debian-9:amd64:
109 image: $STRETCH_IMAGE
110 needs:
111 - debian-9:amd64
112
113 debian-10:arm64:
114 extends:
115 - .debian@container-ifnot-exists@arm64v8
116 - .container
117 variables:
118 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
119 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh'
120
121
122 # BUILD
123
124 # Shared between windows and Linux
125 .build-common:
126 extends: .ci-run-policy
127 stage: build
128 artifacts:
129 when: always
130 paths:
131 - _build/meson-logs/*.txt
132 # scons:
133 - build/*/config.log
134 - shader-db
135
136 # Just Linux
137 .build-linux:
138 extends: .build-common
139 tags:
140 - mesa-autoscale
141 cache:
142 key: ${CI_JOB_NAME}
143 paths:
144 - ccache
145 variables:
146 CCACHE_COMPILERCHECK: "content"
147 NINJA_FLAGS: "-j8" # autoscale is provisioned at 4 CPUs/job.
148 # kubernetes (the mesa-autoscale runner) always has a clean working
149 # dir, so we can't reuse the git clone, but that also means we don't
150 # need to download any extra history (normally extra history is
151 # needed so that a future fetch can find a shared parent).
152 GIT_DEPTH: 1
153 # Autoscale runners have 300GB of disk (since iops/throughput
154 # scales with disk size!), but we want to leave lots of space for
155 # container caching.
156 CCACHE_SIZE: 20G
157 # Use ccache transparently, and print stats before/after
158 before_script:
159 - export PATH="/usr/lib/ccache:$PATH"
160 - export CCACHE_BASEDIR="$PWD"
161 - ccache --max-size="$CCACHE_SIZE" || true
162 - ccache --show-stats || true
163 after_script:
164 # In case the install dir is being saved as artifacts, tar it up
165 # so that symlinks and hardlinks aren't each packed separately in
166 # the zip file.
167 - if [ -d install ]; then
168 tar -cf artifacts/install.tar install;
169 fi
170 - ccache --show-stats
171
172 .build-windows:
173 extends: .build-common
174 tags:
175 - mesa-windows
176 cache:
177 key: ${CI_JOB_NAME}
178 paths:
179 - subprojects/packagecache
180
181 .meson-build:
182 extends:
183 - .build-linux
184 - .use-debian-10:amd64
185 script:
186 - .gitlab-ci/meson-build.sh
187
188 .scons-build:
189 extends:
190 - .build-linux
191 - .use-debian-10:amd64
192 variables:
193 SCONSFLAGS: "-j8"
194 script:
195 - .gitlab-ci/scons-build.sh
196
197 meson-main:
198 extends:
199 - .meson-build
200 - .ci-deqp-artifacts
201 variables:
202 UNWIND: "true"
203 DRI_LOADERS: >
204 -D glx=dri
205 -D gbm=true
206 -D egl=true
207 -D platforms=x11,wayland,drm,surfaceless
208 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
209 GALLIUM_ST: >
210 -D dri3=true
211 -D gallium-extra-hud=true
212 -D gallium-vdpau=true
213 -D gallium-xvmc=true
214 -D gallium-omx=bellagio
215 -D gallium-va=true
216 -D gallium-xa=true
217 -D gallium-nine=true
218 -D gallium-opencl=disabled
219 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
220 LLVM_VERSION: "7"
221 EXTRA_OPTION: >
222 -D osmesa=gallium
223 -D tools=all
224 MESON_SHADERDB: "true"
225 BUILDTYPE: "debugoptimized"
226
227 .meson-cross:
228 extends:
229 - .meson-build
230 variables:
231 UNWIND: "false"
232 DRI_LOADERS: >
233 -D glx=disabled
234 -D gbm=false
235 -D egl=true
236 -D platforms=surfaceless
237 -D osmesa=none
238 GALLIUM_ST: >
239 -D dri3=false
240 -D gallium-vdpau=false
241 -D gallium-xvmc=false
242 -D gallium-omx=disabled
243 -D gallium-va=false
244 -D gallium-xa=false
245 -D gallium-nine=false
246
247 .meson-arm:
248 extends: .meson-cross
249 image: $DEBIAN_ARM64_IMAGE
250 variables:
251 VULKAN_DRIVERS: freedreno
252 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
253 EXTRA_OPTION: >
254 -D I-love-half-baked-turnips=true
255 NINJA_FLAGS: "-j4"
256 CCACHE_DIR: "$PWD/ccache"
257 CCACHE_SIZE: "1500M"
258 needs:
259 - debian-10:arm64
260 tags:
261 - aarch64
262
263 meson-armhf:
264 extends: .meson-arm
265 variables:
266 CROSS: armhf
267 LLVM_VERSION: "7"
268
269 meson-arm64:
270 extends:
271 - .meson-arm
272 - .ci-deqp-artifacts
273 variables:
274 BUILDTYPE: "debugoptimized"
275
276 # NOTE: Building SWR is 2x (yes two) times slower than all the other
277 # gallium drivers combined.
278 # Start this early so that it doesn't limit the total run time.
279 #
280 # We also stick the glvnd build here, since we want non-glvnd in
281 # meson-main for actual driver CI.
282 meson-swr-glvnd:
283 extends: .meson-build
284 variables:
285 UNWIND: "true"
286 DRI_LOADERS: >
287 -D glvnd=true
288 -D egl=true
289 GALLIUM_ST: >
290 -D dri3=true
291 -D gallium-vdpau=false
292 -D gallium-xvmc=false
293 -D gallium-omx=disabled
294 -D gallium-va=false
295 -D gallium-xa=false
296 -D gallium-nine=false
297 -D gallium-opencl=disabled
298 GALLIUM_DRIVERS: "swr,iris"
299 LLVM_VERSION: "6.0"
300
301 meson-clang:
302 extends: .meson-build
303 variables:
304 UNWIND: "true"
305 DRI_DRIVERS: "auto"
306 GALLIUM_DRIVERS: "auto"
307 VULKAN_DRIVERS: intel,amd,freedreno
308 CC: "ccache clang-8"
309 CXX: "ccache clang++-8"
310
311 .meson-windows:
312 extends:
313 - .build-windows
314 before_script:
315 - $ENV:ARCH = "x86"
316 - $ENV:VERSION = "2019\Community"
317 script:
318 - cmd /C .gitlab-ci\meson-build.bat
319
320 scons-swr:
321 extends: .scons-build
322 variables:
323 SCONS_TARGET: "swr=1"
324 SCONS_CHECK_COMMAND: "true"
325 LLVM_VERSION: "6.0"
326
327 scons-win64:
328 extends: .scons-build
329 variables:
330 SCONS_TARGET: platform=windows machine=x86_64
331 SCONS_CHECK_COMMAND: "true"
332
333 meson-clover:
334 extends: .meson-build
335 variables:
336 UNWIND: "true"
337 DRI_LOADERS: >
338 -D glx=disabled
339 -D egl=false
340 -D gbm=false
341 GALLIUM_ST: >
342 -D dri3=false
343 -D gallium-vdpau=false
344 -D gallium-xvmc=false
345 -D gallium-omx=disabled
346 -D gallium-va=false
347 -D gallium-xa=false
348 -D gallium-nine=false
349 -D gallium-opencl=icd
350 script:
351 - export GALLIUM_DRIVERS="r600,radeonsi"
352 - .gitlab-ci/meson-build.sh
353 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
354 - export GALLIUM_DRIVERS="i915,r600"
355 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
356 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
357
358 meson-clover-old-llvm:
359 extends:
360 - meson-clover
361 - .use-debian-9:amd64
362 variables:
363 UNWIND: "false"
364 DRI_LOADERS: >
365 -D glx=disabled
366 -D egl=false
367 -D gbm=false
368 -D platforms=drm,surfaceless
369 GALLIUM_DRIVERS: "i915,r600"
370 script:
371 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
372 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
373 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
374
375 meson-vulkan:
376 extends: .meson-build
377 variables:
378 UNWIND: "false"
379 DRI_LOADERS: >
380 -D glx=disabled
381 -D gbm=false
382 -D egl=false
383 -D platforms=x11,wayland,drm
384 -D osmesa=none
385 GALLIUM_ST: >
386 -D dri3=true
387 -D gallium-vdpau=false
388 -D gallium-xvmc=false
389 -D gallium-omx=disabled
390 -D gallium-va=false
391 -D gallium-xa=false
392 -D gallium-nine=false
393 -D gallium-opencl=disabled
394 -D b_sanitize=undefined
395 -D c_args=-fno-sanitize-recover=all
396 -D cpp_args=-fno-sanitize-recover=all
397 UBSAN_OPTIONS: "print_stacktrace=1"
398 VULKAN_DRIVERS: intel,amd,freedreno
399 LLVM_VERSION: "8"
400 EXTRA_OPTION: >
401 -D vulkan-overlay-layer=true
402
403 # While the main point of this build is testing the i386 cross build,
404 # we also use this one to test some other options that are exclusive
405 # with meson-main's choices (classic swrast and osmesa)
406 meson-i386:
407 extends: .meson-cross
408 variables:
409 CROSS: i386
410 VULKAN_DRIVERS: intel
411 DRI_DRIVERS: "swrast"
412 GALLIUM_DRIVERS: "iris"
413 EXTRA_OPTION: >
414 -D vulkan-overlay-layer=true
415 -D llvm=false
416 -D osmesa=classic
417
418 meson-mingw32-x86_64:
419 extends: .meson-build
420 variables:
421 UNWIND: "false"
422 DRI_DRIVERS: ""
423 GALLIUM_DRIVERS: "swrast"
424 EXTRA_OPTION: >
425 -Dllvm=false
426 -Dosmesa=gallium
427 --cross-file=.gitlab-ci/x86_64-w64-mingw32
428
429 scons:
430 extends: .scons-build
431 variables:
432 SCONS_TARGET: "llvm=1"
433 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
434 script:
435 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
436 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
437 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
438 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
439
440 scons-old-llvm:
441 extends:
442 - scons
443 - .use-debian-9:amd64
444 script:
445 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
446 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
447 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
448
449 .test:
450 extends: .ci-run-policy
451 stage: test
452 variables:
453 GIT_STRATEGY: none # testing doesn't build anything from source
454
455 .deqp-test:
456 extends:
457 - .test
458 - .use-debian-10:amd64
459 variables:
460 DEQP_SKIPS: deqp-default-skips.txt
461 script:
462 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
463 - rm -rf install
464 - tar -xf artifacts/install.tar
465 - ./artifacts/deqp-runner.sh
466 artifacts:
467 when: on_failure
468 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
469 paths:
470 - results/
471 dependencies:
472 - meson-main
473 needs:
474 - meson-main
475 - debian-10:amd64
476
477 test-llvmpipe-gles2:
478 parallel: 4
479 variables:
480 DEQP_VER: gles2
481 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
482 LIBGL_ALWAYS_SOFTWARE: "true"
483 DEQP_RENDERER_MATCH: "llvmpipe"
484 extends: .deqp-test
485
486 test-softpipe-gles2:
487 extends: test-llvmpipe-gles2
488 variables:
489 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
490 DEQP_RENDERER_MATCH: "softpipe"
491 GALLIUM_DRIVER: "softpipe"
492
493 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
494 # 25 minutes. Until we can get its runtime down, just do a partial
495 # (every 10 tests) run.
496 test-softpipe-gles3-limited:
497 variables:
498 DEQP_VER: gles3
499 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
500 LIBGL_ALWAYS_SOFTWARE: "true"
501 DEQP_RENDERER_MATCH: "softpipe"
502 GALLIUM_DRIVER: "softpipe"
503 CI_NODE_INDEX: 1
504 CI_NODE_TOTAL: 10
505 extends: .deqp-test
506
507 arm64_a630_gles2:
508 extends: .deqp-test
509 image: $DEBIAN_ARM64_IMAGE
510 variables:
511 DEQP_VER: gles2
512 DEQP_RENDERER_MATCH: "FD630"
513 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
514 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
515 NIR_VALIDATE: 0
516 tags:
517 - mesa-cheza
518 dependencies:
519 - meson-arm64
520 needs:
521 - meson-arm64
522 - debian-10:arm64
523
524 arm64_a630_gles31:
525 extends: arm64_a630_gles2
526 parallel: 4
527 variables:
528 DEQP_VER: gles31
529
530 arm64_a630_gles3:
531 parallel: 6
532 extends: arm64_a630_gles2
533 variables:
534 DEQP_VER: gles3
535
536 arm64_a306_gles2:
537 parallel: 4
538 extends: arm64_a630_gles2
539 variables:
540 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
541 DEQP_SKIPS: deqp-default-skips.txt
542 DEQP_RENDERER_MATCH: "FD307"
543 tags:
544 - db410c