2 FDO_UPSTREAM_REPO: mesa/mesa
5 - project: 'freedesktop/ci-templates'
6 ref: a1699326519fd28526485ce93464e33423bac564
7 file: '/templates/debian.yml'
8 - local: '.gitlab-ci/lava-gitlab-ci.yml'
9 - local: '.gitlab-ci/test-source-dep.yml'
25 # When to automatically run the CI
28 # Run pipeline by default for merge requests changing files affecting it
29 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
48 # Run pipeline by default in the main project if files affecting it were
50 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
54 # Allow triggering jobs manually on branches of forked projects
55 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
57 # Otherwise, most jobs won't run
62 - runner_system_failure
63 # Cancel CI run if a newer commit is pushed to the same branch
68 image: debian:stable-slim
77 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
82 name: "mesa_${CI_JOB_NAME}"
86 # Watch out! Artifacts are relative to the build dir.
87 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
90 # Build the CI docker images.
92 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
93 # image doesn't exist yet, the container stage job generates it.
95 # In order to generate a new image, one should generally change the tag.
96 # While removing the image from the registry would also work, that's not
97 # recommended except for ephemeral images during development: Replacing
98 # an image after a significant amount of time might pull in newer
99 # versions of gcc/clang or other packages, which might break the build
100 # with older commits using the same tag.
102 # After merging a change resulting in generating a new image to the
103 # main repository, it's recommended to remove the image from the source
104 # repository's container registry, so that the image from the main
105 # repository's registry will be used there as well.
112 FDO_DISTRIBUTION_VERSION: buster-slim
113 FDO_REPO_SUFFIX: $CI_JOB_NAME
114 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
115 # no need to pull the whole repo to build the container image
118 # Debian 10 based x86 build image
121 - .fdo.container-ifnot-exists@debian
124 FDO_DISTRIBUTION_TAG: &x86_build "2020-03-13"
129 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
133 # Debian 10 based x86 test image for GL
137 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-03-13"
139 # Debian 10 based x86 test image for VK
143 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-03-27"
145 # Debian 9 based x86 build image (old LLVM)
149 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-09-18"
150 FDO_DISTRIBUTION_VERSION: stretch-slim
155 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
159 # Debian 10 based ARM build image
162 - .fdo.container-ifnot-exists@debian@arm64v8
165 FDO_DISTRIBUTION_TAG: &arm_build "2020-03-24"
170 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
174 # Debian 10 based ARM test image
178 FDO_DISTRIBUTION_TAG: &arm_test "2020-01-30"
183 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
188 # Native Windows docker builds
190 # Unlike the above Linux-based builds - including MinGW/SCons builds which
191 # cross-compile for Windows - which use the freedesktop ci-templates, we
192 # cannot use the same scheme here. As Windows lacks support for
193 # Docker-in-Docker, and Podman does not run natively on Windows, we have
194 # to open-code much of the same ourselves.
196 # This is achieved by first running in a native Windows shell instance
197 # (host PowerShell) in the container stage to build and push the image,
198 # then in the build stage by executing inside Docker.
200 .windows-docker-vs2019:
202 WINDOWS_TAG: "2020-03-24"
203 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
204 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
206 windows_build_vs2019:
209 - .windows-docker-vs2019
212 GIT_STRATEGY: fetch # we do actually need the full repository though
218 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
220 .use-windows_build_vs2019:
221 extends: .windows-docker-vs2019
222 image: "$WINDOWS_IMAGE"
224 - windows_build_vs2019
228 # Shared between windows and Linux
230 extends: .ci-run-policy
232 name: "mesa_${CI_JOB_NAME}"
235 - _build/meson-logs/*.txt
242 extends: .build-common
244 CCACHE_COMPILERCHECK: "content"
245 CCACHE_COMPRESS: "true"
246 CCACHE_DIR: /cache/mesa/ccache
247 # Use ccache transparently, and print stats before/after
249 - export PATH="/usr/lib/ccache:$PATH"
250 - export CCACHE_BASEDIR="$PWD"
251 - ccache --show-stats
253 - ccache --show-stats
256 extends: .build-common
264 - subprojects/packagecache
274 - .gitlab-ci/meson-build.sh
284 - .gitlab-ci/scons-build.sh
296 -D platforms=x11,drm,surfaceless
299 GALLIUM_DRIVERS: "swrast"
301 BUILDTYPE: "debugoptimized"
305 - .gitlab-ci/meson-build.sh
306 - .gitlab-ci/prepare-artifacts.sh
309 extends: .meson-build
316 -D platforms=x11,wayland,drm,surfaceless
319 -D gallium-extra-hud=true
320 -D gallium-vdpau=true
322 -D gallium-omx=bellagio
326 -D gallium-opencl=disabled
327 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
332 - .gitlab-ci/meson-build.sh
333 - .gitlab-ci/run-shader-db.sh
336 extends: .meson-build
343 -D platforms=x11,wayland,drm,surfaceless
359 -D platforms=surfaceless
363 -D gallium-vdpau=false
364 -D gallium-xvmc=false
365 -D gallium-omx=disabled
368 -D gallium-nine=false
376 VULKAN_DRIVERS: freedreno
377 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
378 BUILDTYPE: "debugoptimized"
392 - .gitlab-ci/meson-build.sh
393 - .gitlab-ci/prepare-artifacts.sh
400 VULKAN_DRIVERS: "freedreno"
404 - .gitlab-ci/meson-build.sh
405 - .gitlab-ci/prepare-artifacts.sh
407 meson-arm64-build-test:
412 VULKAN_DRIVERS: "amd"
414 - .gitlab-ci/meson-build.sh
417 extends: .meson-build
423 GALLIUM_DRIVERS: "auto"
424 VULKAN_DRIVERS: intel,amd,freedreno
426 CXX: "ccache clang++-9"
428 meson-windows-vs2019:
431 - .use-windows_build_vs2019
434 - . .\.gitlab-ci\windows\mesa_build.ps1
437 extends: .scons-build
439 SCONS_TARGET: platform=windows machine=x86_64
440 SCONS_CHECK_COMMAND: "true"
443 extends: .meson-build
452 -D gallium-vdpau=false
453 -D gallium-xvmc=false
454 -D gallium-omx=disabled
457 -D gallium-nine=false
458 -D gallium-opencl=icd
460 - export GALLIUM_DRIVERS="r600,radeonsi"
461 - .gitlab-ci/meson-build.sh
462 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
463 - export GALLIUM_DRIVERS="i915,r600"
464 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
465 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
467 meson-clover-old-llvm:
477 -D platforms=drm,surfaceless
478 GALLIUM_DRIVERS: "i915,r600"
480 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
481 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
482 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
485 extends: .meson-build
492 -D platforms=x11,wayland,drm
496 -D gallium-vdpau=false
497 -D gallium-xvmc=false
498 -D gallium-omx=disabled
501 -D gallium-nine=false
502 -D gallium-opencl=disabled
503 -D b_sanitize=undefined
504 -D c_args=-fno-sanitize-recover=all
505 -D cpp_args=-fno-sanitize-recover=all
506 UBSAN_OPTIONS: "print_stacktrace=1"
507 VULKAN_DRIVERS: intel,amd,freedreno
509 -D vulkan-overlay-layer=true
513 extends: .meson-cross
516 VULKAN_DRIVERS: intel,amd
517 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
519 -D vulkan-overlay-layer=true
522 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
523 - .gitlab-ci/meson-build.sh
532 GALLIUM_DRIVERS: "swrast"
534 # For unknown reasons "too many" installed i386 libraries cause qemu to
535 # crash while executing llvm-config for s390x.
536 - apt-get remove -y libglib2.0-0:i386
537 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
538 - .gitlab-ci/meson-build.sh
545 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
546 VULKAN_DRIVERS: "amd"
548 meson-mingw32-x86_64:
549 extends: .meson-build
554 GALLIUM_DRIVERS: "swrast"
558 --cross-file=.gitlab-ci/x86_64-w64-mingw32
561 extends: .scons-build
563 SCONS_TARGET: "llvm=1 swr=1"
564 SCONS_CHECK_COMMAND: "scons force_scons=1 ${SCONS_TARGET} check"
566 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
567 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
574 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
580 GIT_STRATEGY: none # testing doesn't build anything from source
582 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
584 - tar -xf artifacts/install.tar
585 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
588 name: "mesa_${CI_JOB_NAME}"
599 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
609 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
620 name: "mesa_${CI_JOB_NAME}"
624 LIBGL_ALWAYS_SOFTWARE: 1
627 - install/piglit/run.sh
630 extends: .piglit-test
635 --process-isolation false
638 -x egl_ext_platform_device
639 -x ext_timer_query@time-elapsed
640 -x glx-multithread-clearbuffer
641 -x glx-multithread-shader-compile
644 PIGLIT_PROFILES: quick_gl
647 extends: .piglit-test
651 PIGLIT_PROFILES: glslparser
654 extends: .piglit-test
658 PIGLIT_PROFILES: quick_shader
662 DEQP_SKIPS: deqp-default-skips.txt
664 - ./install/deqp-runner.sh
681 - ./install/fossilize-runner.sh
688 # Don't use threads inside llvmpipe, we've already got all 4 cores
689 # busy with DEQP_PARALLEL.
691 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
692 LIBGL_ALWAYS_SOFTWARE: "true"
702 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
703 DEQP_SKIPS: deqp-softpipe-skips.txt
704 GALLIUM_DRIVER: "softpipe"
710 extends: softpipe-gles2
716 extends: softpipe-gles2
718 # Rules for tests that should not be present in MRs or the main
719 # project's pipeline (don't block marge or report red on
720 # mesa/mesamaster) but should be present on pipelines in personal
721 # branches (so you can opt in to running the flaky test when you want
725 # Never test in the main project.
726 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
728 # Never test in merge requests.
729 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
731 # Otherwise, allow testing manually for personal branches.
741 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
742 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
745 FLAKES_CHANNEL: "#freedreno-ci"
752 extends: arm64_a630_gles2
757 extends: arm64_a630_gles2
772 BM_KERNEL: /lava-files/Image.gz
773 BM_DTB: /lava-files/apq8016-sbc.dtb
774 BM_ROOTFS: /lava-files/rootfs-arm64
775 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
776 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
777 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
781 - .gitlab-ci/bare-metal/fastboot.sh
785 - google-freedreno-db410c
787 # Disabled due to flaky results
801 BM_KERNEL: /lava-files/db820c-kernel
802 BM_DTB: /lava-files/db820c.dtb
803 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
804 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
805 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
807 - google-freedreno-db820c
825 .test-radv-fossilize:
830 - ./install/fossilize-runner.sh
831 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
833 # Can only be triggered manually on personal branches because RADV is the only
834 # driver that does Vulkan testing at the moment.
835 radv_polaris10_vkcts:
841 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
851 - export RADV_FORCE_FAMILY="polaris10"
852 - ./install/fossilize-runner.sh
853 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
855 - export RADV_FORCE_FAMILY="gfx900"
856 - ./install/fossilize-runner.sh
857 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
859 - export RADV_FORCE_FAMILY="gfx1010"
860 - ./install/fossilize-runner.sh
861 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
875 - ./install/tracie-runner-gl.sh
882 - ./install/tracie-runner-vk.sh
889 LIBGL_ALWAYS_SOFTWARE: "true"
890 GALLIUM_DRIVER: "llvmpipe"
891 DEVICE_NAME: "gl-vmware-llvmpipe"
893 radv-polaris10-traces:
899 DEVICE_NAME: "vk-amd-polaris10"