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'
9 - local: '.gitlab-ci/lava-gitlab-ci.yml'
17 # When to automatically run the CI
24 - runner_system_failure
25 # Cancel CI run if a newer commit is pushed to the same branch
33 # Watch out! Artifacts are relative to the build dir.
34 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
37 # Build the CI docker images.
39 # DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
40 # image doesn't exist yet, the container stage job generates it.
42 # In order to generate a new image, one should generally change the tag.
43 # While removing the image from the registry would also work, that's not
44 # recommended except for ephemeral images during development: Replacing
45 # an image after a significant amount of time might pull in newer
46 # versions of gcc/clang or other packages, which might break the build
47 # with older commits using the same tag.
49 # After merging a change resulting in generating a new image to the
50 # main repository, it's recommended to remove the image from the source
51 # repository's container registry, so that the image from the main
52 # repository's registry will be used there as well.
59 # Run pipeline by default for merge requests changing files affecting it
60 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
79 # Always run pipeline by default in the main project
80 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
82 # Otherwise, allow triggering jobs manually
85 DEBIAN_VERSION: buster-slim
86 REPO_SUFFIX: $CI_JOB_NAME
87 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
88 # no need to pull the whole repo to build the container image
91 # Debian 10 based x86 build image
94 - .debian@container-ifnot-exists
97 DEBIAN_TAG: &x86_build "2020-01-14"
102 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
106 # Debian 10 based x86 test image for GL
110 DEBIAN_TAG: &x86_test-gl "2020-01-14"
112 # Debian 10 based x86 test image for VK
116 DEBIAN_TAG: &x86_test-vk "2020-01-14"
117 # Can only be triggered manually on personal branches because RADV is the only
118 # driver that does Vulkan testing at the moment.
120 # Never build the test image for VK by default in the main project.
121 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
123 # Never build the test image for VK by default for merge requests.
124 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
126 # Otherwise, allow building it manually for personal branches.
130 # Debian 9 based x86 build image (old LLVM)
134 DEBIAN_TAG: &x86_build_old "2019-09-18"
135 DEBIAN_VERSION: stretch-slim
140 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
144 # Debian 10 based ARM build image
147 - .debian@container-ifnot-exists@arm64v8
150 DEBIAN_TAG: &arm_build "2020-01-14"
155 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
159 # Debian 10 based ARM test image
163 DEBIAN_TAG: &arm_test "2019-12-18"
168 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
176 # Shared between windows and Linux
178 extends: .ci-run-policy
183 - _build/meson-logs/*.txt
190 extends: .build-common
192 CCACHE_COMPILERCHECK: "content"
193 CCACHE_COMPRESS: "true"
194 CCACHE_DIR: /cache/mesa/ccache
195 # Use ccache transparently, and print stats before/after
197 - export PATH="/usr/lib/ccache:$PATH"
198 - export CCACHE_BASEDIR="$PWD"
199 - ccache --show-stats
201 - ccache --show-stats
204 extends: .build-common
210 - subprojects/packagecache
219 - .gitlab-ci/meson-build.sh
228 - .gitlab-ci/scons-build.sh
240 -D platforms=x11,drm,surfaceless
243 GALLIUM_DRIVERS: "swrast"
245 BUILDTYPE: "debugoptimized"
247 - .gitlab-ci/meson-build.sh
248 - .gitlab-ci/prepare-artifacts.sh
251 extends: .meson-build
258 -D platforms=x11,wayland,drm,surfaceless
259 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
262 -D gallium-extra-hud=true
263 -D gallium-vdpau=true
265 -D gallium-omx=bellagio
269 -D gallium-opencl=disabled
270 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
275 - .gitlab-ci/meson-build.sh
276 - .gitlab-ci/run-shader-db.sh
287 -D platforms=surfaceless
291 -D gallium-vdpau=false
292 -D gallium-xvmc=false
293 -D gallium-omx=disabled
296 -D gallium-nine=false
303 VULKAN_DRIVERS: freedreno
304 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
305 BUILDTYPE: "debugoptimized"
307 -D I-love-half-baked-turnips=true
319 - .gitlab-ci/meson-build.sh
320 - .gitlab-ci/prepare-artifacts.sh
328 VULKAN_DRIVERS: "freedreno,amd"
330 - .gitlab-ci/meson-build.sh
331 - .gitlab-ci/prepare-artifacts.sh
334 extends: .meson-build
340 GALLIUM_DRIVERS: "auto"
341 VULKAN_DRIVERS: intel,amd,freedreno
343 CXX: "ccache clang++-9"
350 - $ENV:VERSION = "2019\Community"
352 - cmd /C .gitlab-ci\meson-build.bat
355 extends: .scons-build
357 SCONS_TARGET: "swr=1"
358 SCONS_CHECK_COMMAND: "true"
362 extends: .scons-build
364 SCONS_TARGET: platform=windows machine=x86_64
365 SCONS_CHECK_COMMAND: "true"
368 extends: .meson-build
377 -D gallium-vdpau=false
378 -D gallium-xvmc=false
379 -D gallium-omx=disabled
382 -D gallium-nine=false
383 -D gallium-opencl=icd
385 - export GALLIUM_DRIVERS="r600,radeonsi"
386 - .gitlab-ci/meson-build.sh
387 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
388 - export GALLIUM_DRIVERS="i915,r600"
389 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
390 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
392 meson-clover-old-llvm:
402 -D platforms=drm,surfaceless
403 GALLIUM_DRIVERS: "i915,r600"
405 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
406 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
407 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
410 extends: .meson-build
417 -D platforms=x11,wayland,drm
421 -D gallium-vdpau=false
422 -D gallium-xvmc=false
423 -D gallium-omx=disabled
426 -D gallium-nine=false
427 -D gallium-opencl=disabled
428 -D b_sanitize=undefined
429 -D c_args=-fno-sanitize-recover=all
430 -D cpp_args=-fno-sanitize-recover=all
431 UBSAN_OPTIONS: "print_stacktrace=1"
432 VULKAN_DRIVERS: intel,amd,freedreno
434 -D vulkan-overlay-layer=true
436 # While the main point of this build is testing the i386 cross build,
437 # we also use this one to test some other options that are exclusive
438 # with meson-main's choices (classic swrast and osmesa)
440 extends: .meson-cross
443 VULKAN_DRIVERS: intel
444 DRI_DRIVERS: "swrast"
445 GALLIUM_DRIVERS: "iris"
447 -D vulkan-overlay-layer=true
451 meson-mingw32-x86_64:
452 extends: .meson-build
456 GALLIUM_DRIVERS: "swrast"
460 --cross-file=.gitlab-ci/x86_64-w64-mingw32
463 extends: .scons-build
465 SCONS_TARGET: "llvm=1"
466 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
468 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
469 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
476 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
483 GIT_STRATEGY: none # testing doesn't build anything from source
485 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
487 - tar -xf artifacts/install.tar
488 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
491 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
502 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
512 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
521 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
525 LIBGL_ALWAYS_SOFTWARE: 1
528 - artifacts/piglit/run.sh
531 extends: .piglit-test
536 --process-isolation false
539 -x egl_ext_platform_device
540 -x glx-multithread-clearbuffer
541 -x glx-multithread-shader-compile
544 PIGLIT_PROFILES: quick_gl
547 extends: .piglit-test
551 PIGLIT_PROFILES: glslparser
554 extends: .piglit-test
558 PIGLIT_PROFILES: quick_shader
562 DEQP_SKIPS: deqp-default-skips.txt
564 - ./artifacts/deqp-runner.sh
583 # Don't use threads inside llvmpipe, we've already got all 4 cores
584 # busy with DEQP_PARALLEL.
586 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
587 LIBGL_ALWAYS_SOFTWARE: "true"
588 extends: .deqp-test-gl
591 extends: test-llvmpipe-gles2
593 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
594 DEQP_SKIPS: deqp-softpipe-skips.txt
595 GALLIUM_DRIVER: "softpipe"
601 extends: test-softpipe-gles2
603 test-softpipe-gles31:
607 extends: test-softpipe-gles2
615 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
616 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
619 FLAKES_CHANNEL: "#freedreno-ci"
626 extends: arm64_a630_gles2
631 extends: arm64_a630_gles2
636 extends: arm64_a630_gles2
638 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
639 DEQP_SKIPS: deqp-default-skips.txt
648 # Can only be triggered manually on personal branches because RADV is the only
649 # driver that does Vulkan testing at the moment.
651 # Never test RADV by default in the main project.
652 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
654 # Never test RADV by default for merge requests.
655 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
657 # Otherwise, allow testing RADV if the test image for VK has been manually
661 radv_polaris10_vkcts:
667 DEQP_SKIPS: deqp-radv-polaris10-skips.txt