2 FDO_UPSTREAM_REPO: mesa/mesa
5 - project: 'freedesktop/ci-templates'
6 ref: 4b2997287317808830e9cb4eb0f99b691787da88
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: "debian/$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-build@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-build@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
219 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
221 .use-windows_build_vs2019:
222 extends: .windows-docker-vs2019
223 image: "$WINDOWS_IMAGE"
225 - windows_build_vs2019
229 # Shared between windows and Linux
231 extends: .ci-run-policy
233 name: "mesa_${CI_JOB_NAME}"
236 - _build/meson-logs/*.txt
243 extends: .build-common
245 CCACHE_COMPILERCHECK: "content"
246 CCACHE_COMPRESS: "true"
247 CCACHE_DIR: /cache/mesa/ccache
248 # Use ccache transparently, and print stats before/after
250 - export PATH="/usr/lib/ccache:$PATH"
251 - export CCACHE_BASEDIR="$PWD"
252 - ccache --show-stats
254 - ccache --show-stats
257 extends: .build-common
265 - subprojects/packagecache
275 - .gitlab-ci/meson-build.sh
285 - .gitlab-ci/scons-build.sh
297 -D platforms=x11,drm,surfaceless
300 GALLIUM_DRIVERS: "swrast"
302 BUILDTYPE: "debugoptimized"
306 - .gitlab-ci/meson-build.sh
307 - .gitlab-ci/prepare-artifacts.sh
310 extends: .meson-build
317 -D platforms=x11,wayland,drm,surfaceless
320 -D gallium-extra-hud=true
321 -D gallium-vdpau=true
323 -D gallium-omx=bellagio
327 -D gallium-opencl=disabled
328 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
333 - .gitlab-ci/meson-build.sh
334 - .gitlab-ci/run-shader-db.sh
337 extends: .meson-build
344 -D platforms=x11,wayland,drm,surfaceless
360 -D platforms=surfaceless
364 -D gallium-vdpau=false
365 -D gallium-xvmc=false
366 -D gallium-omx=disabled
369 -D gallium-nine=false
377 VULKAN_DRIVERS: freedreno
378 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
379 BUILDTYPE: "debugoptimized"
393 - .gitlab-ci/meson-build.sh
394 - .gitlab-ci/prepare-artifacts.sh
401 VULKAN_DRIVERS: "freedreno"
405 - .gitlab-ci/meson-build.sh
406 - .gitlab-ci/prepare-artifacts.sh
408 meson-arm64-build-test:
413 VULKAN_DRIVERS: "amd"
415 - .gitlab-ci/meson-build.sh
418 extends: .meson-build
424 GALLIUM_DRIVERS: "auto"
425 VULKAN_DRIVERS: intel,amd,freedreno
427 CXX: "ccache clang++-9"
429 .meson-windows-vs2019:
432 - .use-windows_build_vs2019
435 - . .\.gitlab-ci\windows\mesa_build.ps1
438 extends: .scons-build
440 SCONS_TARGET: platform=windows machine=x86_64
441 SCONS_CHECK_COMMAND: "true"
444 extends: .meson-build
453 -D gallium-vdpau=false
454 -D gallium-xvmc=false
455 -D gallium-omx=disabled
458 -D gallium-nine=false
459 -D gallium-opencl=icd
461 - export GALLIUM_DRIVERS="r600,radeonsi"
462 - .gitlab-ci/meson-build.sh
463 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
464 - export GALLIUM_DRIVERS="i915,r600"
465 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
466 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
468 meson-clover-old-llvm:
478 -D platforms=drm,surfaceless
479 GALLIUM_DRIVERS: "i915,r600"
481 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
482 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
483 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
486 extends: .meson-build
493 -D platforms=x11,wayland,drm
497 -D gallium-vdpau=false
498 -D gallium-xvmc=false
499 -D gallium-omx=disabled
502 -D gallium-nine=false
503 -D gallium-opencl=disabled
504 -D b_sanitize=undefined
505 -D c_args=-fno-sanitize-recover=all
506 -D cpp_args=-fno-sanitize-recover=all
507 UBSAN_OPTIONS: "print_stacktrace=1"
508 VULKAN_DRIVERS: intel,amd,freedreno
510 -D vulkan-overlay-layer=true
514 extends: .meson-cross
517 VULKAN_DRIVERS: intel,amd
518 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
520 -D vulkan-overlay-layer=true
523 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
524 - .gitlab-ci/meson-build.sh
533 GALLIUM_DRIVERS: "swrast"
535 # For unknown reasons "too many" installed i386 libraries cause qemu to
536 # crash while executing llvm-config for s390x.
537 - apt-get remove -y libglib2.0-0:i386
538 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
539 - .gitlab-ci/meson-build.sh
546 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
547 VULKAN_DRIVERS: "amd"
549 meson-mingw32-x86_64:
550 extends: .meson-build
555 GALLIUM_DRIVERS: "swrast"
559 --cross-file=.gitlab-ci/x86_64-w64-mingw32
562 extends: .scons-build
564 SCONS_TARGET: "llvm=1 swr=1"
565 SCONS_CHECK_COMMAND: "scons force_scons=1 ${SCONS_TARGET} check"
567 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
568 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
575 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
581 GIT_STRATEGY: none # testing doesn't build anything from source
583 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
585 - tar -xf artifacts/install.tar
586 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
589 name: "mesa_${CI_JOB_NAME}"
600 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
610 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
621 name: "mesa_${CI_JOB_NAME}"
625 LIBGL_ALWAYS_SOFTWARE: 1
628 - install/piglit/run.sh
631 extends: .piglit-test
636 --process-isolation false
639 -x egl_ext_platform_device
640 -x ext_timer_query@time-elapsed
641 -x glx-multithread-clearbuffer
642 -x glx-multithread-shader-compile
645 PIGLIT_PROFILES: quick_gl
648 extends: .piglit-test
652 PIGLIT_PROFILES: glslparser
655 extends: .piglit-test
659 PIGLIT_PROFILES: quick_shader
663 DEQP_SKIPS: deqp-default-skips.txt
665 - ./install/deqp-runner.sh
682 - ./install/fossilize-runner.sh
689 # Don't use threads inside llvmpipe, we've already got all 4 cores
690 # busy with DEQP_PARALLEL.
692 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
693 LIBGL_ALWAYS_SOFTWARE: "true"
703 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
704 DEQP_SKIPS: deqp-softpipe-skips.txt
705 GALLIUM_DRIVER: "softpipe"
711 extends: softpipe-gles2
717 extends: softpipe-gles2
719 # Rules for tests that should not be present in MRs or the main
720 # project's pipeline (don't block marge or report red on
721 # mesa/mesamaster) but should be present on pipelines in personal
722 # branches (so you can opt in to running the flaky test when you want
726 # Never test in the main project.
727 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
729 # Never test in merge requests.
730 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
732 # Otherwise, allow testing manually for personal branches.
742 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
743 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
746 FLAKES_CHANNEL: "#freedreno-ci"
753 extends: arm64_a630_gles2
758 extends: arm64_a630_gles2
773 BM_KERNEL: /lava-files/Image.gz
774 BM_DTB: /lava-files/apq8016-sbc.dtb
775 BM_ROOTFS: /lava-files/rootfs-arm64
776 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
777 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
778 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
782 - .gitlab-ci/bare-metal/fastboot.sh
786 - google-freedreno-db410c
788 # Disabled due to flaky results
802 BM_KERNEL: /lava-files/db820c-kernel
803 BM_DTB: /lava-files/db820c.dtb
804 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
805 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
806 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
808 - google-freedreno-db820c
826 .test-radv-fossilize:
831 - ./install/fossilize-runner.sh
832 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
834 # Can only be triggered manually on personal branches because RADV is the only
835 # driver that does Vulkan testing at the moment.
836 radv_polaris10_vkcts:
842 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
852 - export RADV_FORCE_FAMILY="polaris10"
853 - ./install/fossilize-runner.sh
854 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
856 - export RADV_FORCE_FAMILY="gfx900"
857 - ./install/fossilize-runner.sh
858 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
860 - export RADV_FORCE_FAMILY="gfx1010"
861 - ./install/fossilize-runner.sh
862 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
876 - ./install/tracie-runner-gl.sh
883 - ./install/tracie-runner-vk.sh
890 LIBGL_ALWAYS_SOFTWARE: "true"
891 GALLIUM_DRIVER: "llvmpipe"
892 DEVICE_NAME: "gl-vmware-llvmpipe"
894 radv-polaris10-traces:
900 DEVICE_NAME: "vk-amd-polaris10"