2 UPSTREAM_REPO: mesa/mesa
5 - project: 'wayland/ci-templates'
6 ref: b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71
7 file: '/templates/debian.yml'
8 - local: '.gitlab-ci/lava-gitlab-ci.yml'
9 - local: '.gitlab-ci/test-source-dep.yml'
24 # When to automatically run the CI
27 # Run pipeline by default for merge requests changing files affecting it
28 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
47 # Run pipeline by default in the main project if files affecting it were
49 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
53 # Allow triggering jobs manually on branches of forked projects
54 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
56 # Otherwise, most jobs won't run
61 - runner_system_failure
62 # Cancel CI run if a newer commit is pushed to the same branch
67 image: debian:stable-slim
76 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
81 name: "mesa_${CI_JOB_NAME}"
85 # Watch out! Artifacts are relative to the build dir.
86 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
89 # Build the CI docker images.
91 # DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
92 # image doesn't exist yet, the container stage job generates it.
94 # In order to generate a new image, one should generally change the tag.
95 # While removing the image from the registry would also work, that's not
96 # recommended except for ephemeral images during development: Replacing
97 # an image after a significant amount of time might pull in newer
98 # versions of gcc/clang or other packages, which might break the build
99 # with older commits using the same tag.
101 # After merging a change resulting in generating a new image to the
102 # main repository, it's recommended to remove the image from the source
103 # repository's container registry, so that the image from the main
104 # repository's registry will be used there as well.
111 DEBIAN_VERSION: buster-slim
112 REPO_SUFFIX: $CI_JOB_NAME
113 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
114 # no need to pull the whole repo to build the container image
117 # Debian 10 based x86 build image
120 - .debian@container-ifnot-exists
123 DEBIAN_TAG: &x86_build "2020-03-13"
128 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
132 # Debian 10 based x86 test image for GL
136 DEBIAN_TAG: &x86_test-gl "2020-03-13"
138 # Debian 10 based x86 test image for VK
142 DEBIAN_TAG: &x86_test-vk "2020-03-16"
144 # Debian 9 based x86 build image (old LLVM)
148 DEBIAN_TAG: &x86_build_old "2019-09-18"
149 DEBIAN_VERSION: stretch-slim
154 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
158 # Debian 10 based ARM build image
161 - .debian@container-ifnot-exists@arm64v8
164 DEBIAN_TAG: &arm_build "2020-03-13"
169 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
173 # Debian 10 based ARM test image
177 DEBIAN_TAG: &arm_test "2020-01-30"
182 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
190 # Shared between windows and Linux
192 extends: .ci-run-policy
194 name: "mesa_${CI_JOB_NAME}"
197 - _build/meson-logs/*.txt
204 extends: .build-common
206 CCACHE_COMPILERCHECK: "content"
207 CCACHE_COMPRESS: "true"
208 CCACHE_DIR: /cache/mesa/ccache
209 # Use ccache transparently, and print stats before/after
211 - export PATH="/usr/lib/ccache:$PATH"
212 - export CCACHE_BASEDIR="$PWD"
213 - ccache --show-stats
215 - ccache --show-stats
218 extends: .build-common
224 - subprojects/packagecache
234 - .gitlab-ci/meson-build.sh
244 - .gitlab-ci/scons-build.sh
256 -D platforms=x11,drm,surfaceless
259 GALLIUM_DRIVERS: "swrast"
261 BUILDTYPE: "debugoptimized"
265 - .gitlab-ci/meson-build.sh
266 - .gitlab-ci/prepare-artifacts.sh
269 extends: .meson-build
276 -D platforms=x11,wayland,drm,surfaceless
277 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
280 -D gallium-extra-hud=true
281 -D gallium-vdpau=true
283 -D gallium-omx=bellagio
287 -D gallium-opencl=disabled
288 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
293 - .gitlab-ci/meson-build.sh
294 - .gitlab-ci/run-shader-db.sh
306 -D platforms=surfaceless
310 -D gallium-vdpau=false
311 -D gallium-xvmc=false
312 -D gallium-omx=disabled
315 -D gallium-nine=false
323 VULKAN_DRIVERS: freedreno
324 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
325 BUILDTYPE: "debugoptimized"
339 - .gitlab-ci/meson-build.sh
340 - .gitlab-ci/prepare-artifacts.sh
347 VULKAN_DRIVERS: "freedreno"
351 - .gitlab-ci/meson-build.sh
352 - .gitlab-ci/prepare-artifacts.sh
354 meson-arm64-build-test:
359 VULKAN_DRIVERS: "amd"
361 - .gitlab-ci/meson-build.sh
364 extends: .meson-build
370 GALLIUM_DRIVERS: "auto"
371 VULKAN_DRIVERS: intel,amd,freedreno
373 CXX: "ccache clang++-9"
381 - $ENV:VERSION = "2019\Community"
383 - cmd /C .gitlab-ci\meson-build.bat
386 extends: .scons-build
388 SCONS_TARGET: platform=windows machine=x86_64
389 SCONS_CHECK_COMMAND: "true"
392 extends: .meson-build
401 -D gallium-vdpau=false
402 -D gallium-xvmc=false
403 -D gallium-omx=disabled
406 -D gallium-nine=false
407 -D gallium-opencl=icd
409 - export GALLIUM_DRIVERS="r600,radeonsi"
410 - .gitlab-ci/meson-build.sh
411 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
412 - export GALLIUM_DRIVERS="i915,r600"
413 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
414 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
416 meson-clover-old-llvm:
426 -D platforms=drm,surfaceless
427 GALLIUM_DRIVERS: "i915,r600"
429 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
430 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
431 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
434 extends: .meson-build
441 -D platforms=x11,wayland,drm
445 -D gallium-vdpau=false
446 -D gallium-xvmc=false
447 -D gallium-omx=disabled
450 -D gallium-nine=false
451 -D gallium-opencl=disabled
452 -D b_sanitize=undefined
453 -D c_args=-fno-sanitize-recover=all
454 -D cpp_args=-fno-sanitize-recover=all
455 UBSAN_OPTIONS: "print_stacktrace=1"
456 VULKAN_DRIVERS: intel,amd,freedreno
458 -D vulkan-overlay-layer=true
461 # While the main point of this build is testing the i386 cross build,
462 # we also use this one to test some other options that are exclusive
463 # with meson-main's choices (classic swrast and osmesa)
465 extends: .meson-cross
468 VULKAN_DRIVERS: intel,amd
469 DRI_DRIVERS: "swrast"
470 GALLIUM_DRIVERS: "iris"
472 -D vulkan-overlay-layer=true
476 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
477 - .gitlab-ci/meson-build.sh
484 GALLIUM_DRIVERS: "swrast"
486 # For unknown reasons "too many" installed i386 libraries cause qemu to
487 # crash while executing llvm-config for s390x.
488 - apt-get remove -y libglib2.0-0:i386
489 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
490 - .gitlab-ci/meson-build.sh
497 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
498 VULKAN_DRIVERS: "amd"
500 meson-mingw32-x86_64:
501 extends: .meson-build
506 GALLIUM_DRIVERS: "swrast"
510 --cross-file=.gitlab-ci/x86_64-w64-mingw32
513 extends: .scons-build
515 SCONS_TARGET: "llvm=1 swr=1"
516 SCONS_CHECK_COMMAND: "scons force_scons=1 ${SCONS_TARGET} check"
518 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
519 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
526 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
532 GIT_STRATEGY: none # testing doesn't build anything from source
534 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
536 - tar -xf artifacts/install.tar
537 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
540 name: "mesa_${CI_JOB_NAME}"
551 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
561 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
572 name: "mesa_${CI_JOB_NAME}"
576 LIBGL_ALWAYS_SOFTWARE: 1
579 - artifacts/piglit/run.sh
582 extends: .piglit-test
587 --process-isolation false
590 -x egl_ext_platform_device
591 -x ext_timer_query@time-elapsed
592 -x glx-multithread-clearbuffer
593 -x glx-multithread-shader-compile
596 PIGLIT_PROFILES: quick_gl
599 extends: .piglit-test
603 PIGLIT_PROFILES: glslparser
606 extends: .piglit-test
610 PIGLIT_PROFILES: quick_shader
614 DEQP_SKIPS: deqp-default-skips.txt
616 - ./artifacts/deqp-runner.sh
633 - ./artifacts/fossilize-runner.sh
640 # Don't use threads inside llvmpipe, we've already got all 4 cores
641 # busy with DEQP_PARALLEL.
643 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
644 LIBGL_ALWAYS_SOFTWARE: "true"
654 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
655 DEQP_SKIPS: deqp-softpipe-skips.txt
656 GALLIUM_DRIVER: "softpipe"
662 extends: softpipe-gles2
668 extends: softpipe-gles2
677 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
678 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
681 FLAKES_CHANNEL: "#freedreno-ci"
688 extends: arm64_a630_gles2
693 extends: arm64_a630_gles2
708 BM_KERNEL: /lava-files/Image
709 BM_DTB: /lava-files/apq8016-sbc.dtb
710 BM_ROOTFS: /lava-files/rootfs-arm64
711 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
712 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
713 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
717 - .gitlab-ci/bare-metal/fastboot.sh
721 - google-freedreno-db410c
723 # Disabled due to flaky results
741 # Can only be triggered manually on personal branches because RADV is the only
742 # driver that does Vulkan testing at the moment.
744 # Never test RADV by default in the main project.
745 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
747 # Never test RADV by default for merge requests.
748 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
750 # Otherwise, allow testing RADV manually for personal branches.
753 .test-radv-fossilize:
758 radv_polaris10_vkcts:
763 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
767 radv-polaris10-fossils:
768 extends: .test-radv-fossilize
770 RADV_FORCE_FAMILY: "polaris10" # Force creating a null device
785 - ./artifacts/tracie-runner-gl.sh
792 - ./artifacts/tracie-runner-vk.sh
799 LIBGL_ALWAYS_SOFTWARE: "true"
800 GALLIUM_DRIVER: "llvmpipe"
801 DEVICE_NAME: "gl-vmware-llvmpipe"
803 radv-polaris10-traces:
808 DEVICE_NAME: "vk-amd-polaris10"