2 UPSTREAM_REPO: mesa/mesa
5 - project: 'wayland/ci-templates'
6 # Must be the same as in .gitlab-ci/lava-gitlab-ci.yml
7 ref: 0a9bdd33a98f05af6761ab118b5074952242aab0
8 file: '/templates/debian.yml'
11 - local: '.gitlab-ci/lava-gitlab-ci.yml'
19 # When to automatically run the CI
26 - runner_system_failure
27 # Cancel CI run if a newer commit is pushed to the same branch
35 # Watch out! Artifacts are relative to the build dir.
36 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
39 # Build the "normal" (non-LAVA) CI docker images.
41 # DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
42 # image doesn't exist yet, the container stage job generates it.
44 # In order to generate a new image, one should generally change the tag.
45 # While removing the image from the registry would also work, that's not
46 # recommended except for ephemeral images during development: Replacing
47 # an image after a significant amount of time might pull in newer
48 # versions of gcc/clang or other packages, which might break the build
49 # with older commits using the same tag.
51 # After merging a change resulting in generating a new image to the
52 # main repository, it's recommended to remove the image from the source
53 # repository's container registry, so that the image from the main
54 # repository's registry will be used there as well.
61 # Run pipeline by default for merge requests changing files affecting it
62 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
81 # Always run pipeline by default in the main project
82 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
84 # Otherwise, allow triggering jobs manually
87 DEBIAN_VERSION: buster-slim
88 REPO_SUFFIX: $CI_JOB_NAME
89 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
90 # no need to pull the whole repo to build the container image
93 # Debian 10 based x86 build image
96 - .debian@container-ifnot-exists
99 DEBIAN_TAG: &x86_build "2020-01-07"
104 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
108 # Debian 10 based x86 test image for GL
112 DEBIAN_TAG: &x86_test-gl "2020-01-07"
114 # Debian 10 based x86 test image for VK
118 DEBIAN_TAG: &x86_test-vk "2020-01-07"
119 # Can only be triggered manually on personal branches because RADV is the only
120 # driver that does Vulkan testing at the moment.
122 # Never build the test image for VK by default in the main project.
123 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
125 # Never build the test image for VK by default for merge requests.
126 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
128 # Otherwise, allow building it manually for personal branches.
132 # Debian 9 based x86 build image (old LLVM)
136 DEBIAN_TAG: &x86_build_old "2019-09-18"
137 DEBIAN_VERSION: stretch-slim
142 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
146 # Debian 10 based ARM build image
149 - .debian@container-ifnot-exists@arm64v8
152 DEBIAN_TAG: &arm_build "2019-11-13"
157 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
161 # Debian 10 based ARM test image
165 DEBIAN_TAG: &arm_test "2019-12-18"
170 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
178 # Shared between windows and Linux
180 extends: .ci-run-policy
185 - _build/meson-logs/*.txt
192 extends: .build-common
194 CCACHE_COMPILERCHECK: "content"
195 CCACHE_COMPRESS: "true"
196 CCACHE_DIR: /cache/mesa/ccache
197 # Use ccache transparently, and print stats before/after
199 - export PATH="/usr/lib/ccache:$PATH"
200 - export CCACHE_BASEDIR="$PWD"
201 - ccache --show-stats
203 - ccache --show-stats
206 extends: .build-common
212 - subprojects/packagecache
221 - .gitlab-ci/meson-build.sh
230 - .gitlab-ci/scons-build.sh
242 -D platforms=x11,drm,surfaceless
245 GALLIUM_DRIVERS: "swrast"
247 BUILDTYPE: "debugoptimized"
249 - .gitlab-ci/meson-build.sh
250 - .gitlab-ci/prepare-artifacts.sh
253 extends: .meson-build
260 -D platforms=x11,wayland,drm,surfaceless
261 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
264 -D gallium-extra-hud=true
265 -D gallium-vdpau=true
267 -D gallium-omx=bellagio
271 -D gallium-opencl=disabled
272 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
277 - .gitlab-ci/meson-build.sh
278 - .gitlab-ci/run-shader-db.sh
289 -D platforms=surfaceless
293 -D gallium-vdpau=false
294 -D gallium-xvmc=false
295 -D gallium-omx=disabled
298 -D gallium-nine=false
305 VULKAN_DRIVERS: freedreno
306 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
308 -D I-love-half-baked-turnips=true
323 BUILDTYPE: "debugoptimized"
325 VULKAN_DRIVERS: "freedreno,amd"
327 - .gitlab-ci/meson-build.sh
328 - .gitlab-ci/prepare-artifacts.sh
331 extends: .meson-build
337 GALLIUM_DRIVERS: "auto"
338 VULKAN_DRIVERS: intel,amd,freedreno
340 CXX: "ccache clang++-9"
347 - $ENV:VERSION = "2019\Community"
349 - cmd /C .gitlab-ci\meson-build.bat
352 extends: .scons-build
354 SCONS_TARGET: "swr=1"
355 SCONS_CHECK_COMMAND: "true"
359 extends: .scons-build
361 SCONS_TARGET: platform=windows machine=x86_64
362 SCONS_CHECK_COMMAND: "true"
365 extends: .meson-build
374 -D gallium-vdpau=false
375 -D gallium-xvmc=false
376 -D gallium-omx=disabled
379 -D gallium-nine=false
380 -D gallium-opencl=icd
382 - export GALLIUM_DRIVERS="r600,radeonsi"
383 - .gitlab-ci/meson-build.sh
384 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
385 - export GALLIUM_DRIVERS="i915,r600"
386 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
387 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
389 meson-clover-old-llvm:
399 -D platforms=drm,surfaceless
400 GALLIUM_DRIVERS: "i915,r600"
402 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
403 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
404 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
407 extends: .meson-build
414 -D platforms=x11,wayland,drm
418 -D gallium-vdpau=false
419 -D gallium-xvmc=false
420 -D gallium-omx=disabled
423 -D gallium-nine=false
424 -D gallium-opencl=disabled
425 -D b_sanitize=undefined
426 -D c_args=-fno-sanitize-recover=all
427 -D cpp_args=-fno-sanitize-recover=all
428 UBSAN_OPTIONS: "print_stacktrace=1"
429 VULKAN_DRIVERS: intel,amd,freedreno
431 -D vulkan-overlay-layer=true
433 # While the main point of this build is testing the i386 cross build,
434 # we also use this one to test some other options that are exclusive
435 # with meson-main's choices (classic swrast and osmesa)
437 extends: .meson-cross
440 VULKAN_DRIVERS: intel
441 DRI_DRIVERS: "swrast"
442 GALLIUM_DRIVERS: "iris"
444 -D vulkan-overlay-layer=true
448 meson-mingw32-x86_64:
449 extends: .meson-build
453 GALLIUM_DRIVERS: "swrast"
457 --cross-file=.gitlab-ci/x86_64-w64-mingw32
460 extends: .scons-build
462 SCONS_TARGET: "llvm=1"
463 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
465 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
466 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
473 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
480 GIT_STRATEGY: none # testing doesn't build anything from source
482 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
484 - tar -xf artifacts/install.tar
485 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
488 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
499 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
509 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
518 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
522 LIBGL_ALWAYS_SOFTWARE: 1
525 - artifacts/piglit/run.sh
528 extends: .piglit-test
533 --process-isolation false
536 -x egl_ext_platform_device
537 -x glx-multithread-clearbuffer
538 -x glx-multithread-shader-compile
541 PIGLIT_PROFILES: quick_gl
544 extends: .piglit-test
548 PIGLIT_PROFILES: glslparser
551 extends: .piglit-test
555 PIGLIT_PROFILES: quick_shader
559 DEQP_SKIPS: deqp-default-skips.txt
561 - ./artifacts/deqp-runner.sh
580 # Don't use threads inside llvmpipe, we've already got all 4 cores
581 # busy with DEQP_PARALLEL.
583 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
584 LIBGL_ALWAYS_SOFTWARE: "true"
585 extends: .deqp-test-gl
588 extends: test-llvmpipe-gles2
590 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
591 DEQP_SKIPS: deqp-softpipe-skips.txt
592 GALLIUM_DRIVER: "softpipe"
598 extends: test-softpipe-gles2
600 test-softpipe-gles31:
604 extends: test-softpipe-gles2
612 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
613 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
616 FLAKES_CHANNEL: "#freedreno-ci"
623 extends: arm64_a630_gles2
628 extends: arm64_a630_gles2
633 extends: arm64_a630_gles2
635 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
636 DEQP_SKIPS: deqp-default-skips.txt
645 # Can only be triggered manually on personal branches because RADV is the only
646 # driver that does Vulkan testing at the moment.
648 # Never test RADV by default in the main project.
649 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
651 # Never test RADV by default for merge requests.
652 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
654 # Otherwise, allow testing RADV if the test image for VK has been manually
658 radv_polaris10_vkcts:
664 DEQP_SKIPS: deqp-radv-polaris10-skips.txt