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 "2019-11-13"
104 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
108 # Debian 10 based x86 test image for GL
112 DEBIAN_TAG: &x86_test-gl "2019-12-05"
114 # Debian 10 based x86 test image for VK
118 DEBIAN_TAG: &x86_test-vk "2019-11-22"
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-11-22"
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
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"
276 - .gitlab-ci/meson-build.sh
277 - .gitlab-ci/run-shader-db.sh
288 -D platforms=surfaceless
292 -D gallium-vdpau=false
293 -D gallium-xvmc=false
294 -D gallium-omx=disabled
297 -D gallium-nine=false
304 VULKAN_DRIVERS: freedreno
305 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
307 -D I-love-half-baked-turnips=true
322 BUILDTYPE: "debugoptimized"
323 VULKAN_DRIVERS: "freedreno,amd"
325 - .gitlab-ci/meson-build.sh
326 - .gitlab-ci/prepare-artifacts.sh
329 extends: .meson-build
335 GALLIUM_DRIVERS: "auto"
336 VULKAN_DRIVERS: intel,amd,freedreno
338 CXX: "ccache clang++-8"
345 - $ENV:VERSION = "2019\Community"
347 - cmd /C .gitlab-ci\meson-build.bat
350 extends: .scons-build
352 SCONS_TARGET: "swr=1"
353 SCONS_CHECK_COMMAND: "true"
357 extends: .scons-build
359 SCONS_TARGET: platform=windows machine=x86_64
360 SCONS_CHECK_COMMAND: "true"
363 extends: .meson-build
372 -D gallium-vdpau=false
373 -D gallium-xvmc=false
374 -D gallium-omx=disabled
377 -D gallium-nine=false
378 -D gallium-opencl=icd
380 - export GALLIUM_DRIVERS="r600,radeonsi"
381 - .gitlab-ci/meson-build.sh
382 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
383 - export GALLIUM_DRIVERS="i915,r600"
384 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
385 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
387 meson-clover-old-llvm:
397 -D platforms=drm,surfaceless
398 GALLIUM_DRIVERS: "i915,r600"
400 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
401 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
402 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
405 extends: .meson-build
412 -D platforms=x11,wayland,drm
416 -D gallium-vdpau=false
417 -D gallium-xvmc=false
418 -D gallium-omx=disabled
421 -D gallium-nine=false
422 -D gallium-opencl=disabled
423 -D b_sanitize=undefined
424 -D c_args=-fno-sanitize-recover=all
425 -D cpp_args=-fno-sanitize-recover=all
426 UBSAN_OPTIONS: "print_stacktrace=1"
427 VULKAN_DRIVERS: intel,amd,freedreno
430 -D vulkan-overlay-layer=true
432 # While the main point of this build is testing the i386 cross build,
433 # we also use this one to test some other options that are exclusive
434 # with meson-main's choices (classic swrast and osmesa)
436 extends: .meson-cross
439 VULKAN_DRIVERS: intel
440 DRI_DRIVERS: "swrast"
441 GALLIUM_DRIVERS: "iris"
443 -D vulkan-overlay-layer=true
447 meson-mingw32-x86_64:
448 extends: .meson-build
452 GALLIUM_DRIVERS: "swrast"
456 --cross-file=.gitlab-ci/x86_64-w64-mingw32
459 extends: .scons-build
461 SCONS_TARGET: "llvm=1"
462 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
464 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
465 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
472 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
479 GIT_STRATEGY: none # testing doesn't build anything from source
481 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
483 - tar -xf artifacts/install.tar
484 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
487 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
498 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
508 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
517 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
521 LIBGL_ALWAYS_SOFTWARE: 1
524 - artifacts/piglit/run.sh
527 extends: .piglit-test
532 --process-isolation false
535 -x egl_ext_platform_device
536 -x glx-multithread-clearbuffer
537 -x glx-multithread-shader-compile
540 PIGLIT_PROFILES: quick_gl
543 extends: .piglit-test
547 PIGLIT_PROFILES: glslparser
550 extends: .piglit-test
554 PIGLIT_PROFILES: quick_shader
558 DEQP_SKIPS: deqp-default-skips.txt
560 - ./artifacts/deqp-runner.sh
579 # Don't use threads inside llvmpipe, we've already got all 4 cores
580 # busy with DEQP_PARALLEL.
582 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
583 LIBGL_ALWAYS_SOFTWARE: "true"
584 extends: .deqp-test-gl
587 extends: test-llvmpipe-gles2
589 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
590 DEQP_SKIPS: deqp-softpipe-skips.txt
591 GALLIUM_DRIVER: "softpipe"
597 extends: test-softpipe-gles2
599 test-softpipe-gles31:
603 extends: test-softpipe-gles2
611 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
612 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
615 FLAKES_CHANNEL: "#freedreno-ci"
622 extends: arm64_a630_gles2
627 extends: arm64_a630_gles2
632 extends: arm64_a630_gles2
634 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
635 DEQP_SKIPS: deqp-default-skips.txt
644 # Can only be triggered manually on personal branches because RADV is the only
645 # driver that does Vulkan testing at the moment.
647 # Never test RADV by default in the main project.
648 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
650 # Never test RADV by default for merge requests.
651 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
653 # Otherwise, allow testing RADV if the test image for VK has been manually
657 radv_polaris10_vkcts:
663 DEQP_SKIPS: deqp-radv-polaris10-skips.txt