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'
26 # When to automatically run the CI
29 # If any files affecting the pipeline are changed, build/test jobs run
30 # automatically once all dependency jobs have passed
49 # Otherwise, build/test jobs won't run
54 - runner_system_failure
55 # Cancel CI run if a newer commit is pushed to the same branch
60 image: debian:stable-slim
69 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
74 name: "mesa_${CI_JOB_NAME}"
78 # Watch out! Artifacts are relative to the build dir.
79 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
82 # Build the CI docker images.
84 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
85 # image doesn't exist yet, the container stage job generates it.
87 # In order to generate a new image, one should generally change the tag.
88 # While removing the image from the registry would also work, that's not
89 # recommended except for ephemeral images during development: Replacing
90 # an image after a significant amount of time might pull in newer
91 # versions of gcc/clang or other packages, which might break the build
92 # with older commits using the same tag.
94 # After merging a change resulting in generating a new image to the
95 # main repository, it's recommended to remove the image from the source
96 # repository's container registry, so that the image from the main
97 # repository's registry will be used there as well.
104 # Run pipeline by default if it was triggered by Marge Bot, is for a
105 # merge request, and any files affecting it were changed
106 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
110 # Run pipeline by default in the main project if any files affecting it were
112 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
116 # Allow triggering jobs manually for MRs or branches of forked projects if
117 # any files affecting the pipeline were changed
121 # Otherwise, container jobs won't run
124 FDO_DISTRIBUTION_VERSION: buster-slim
125 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
126 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
127 # no need to pull the whole repo to build the container image
130 # Debian 10 based x86 build image
133 - .fdo.container-build@debian
136 FDO_DISTRIBUTION_TAG: &x86_build "2020-03-18-jflags"
141 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
145 # Debian 10 based x86 test image for GL
149 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-04-20"
151 # Debian 10 based x86 test image for VK
155 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-04-09"
157 # Debian 9 based x86 build image (old LLVM)
161 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
162 FDO_DISTRIBUTION_VERSION: stretch-slim
167 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
171 # Debian 10 based ARM build image
174 - .fdo.container-build@debian@arm64v8
177 FDO_DISTRIBUTION_TAG: &arm_build "2020-04-01-jflags"
182 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
186 # Debian 10 based ARM test image
190 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
195 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
200 # Native Windows docker builds
202 # Unlike the above Linux-based builds - including MinGW/SCons builds which
203 # cross-compile for Windows - which use the freedesktop ci-templates, we
204 # cannot use the same scheme here. As Windows lacks support for
205 # Docker-in-Docker, and Podman does not run natively on Windows, we have
206 # to open-code much of the same ourselves.
208 # This is achieved by first running in a native Windows shell instance
209 # (host PowerShell) in the container stage to build and push the image,
210 # then in the build stage by executing inside Docker.
212 .windows-docker-vs2019:
214 WINDOWS_TAG: "2020-03-24"
215 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
216 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
218 windows_build_vs2019:
221 - .windows-docker-vs2019
224 GIT_STRATEGY: fetch # we do actually need the full repository though
231 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
233 .use-windows_build_vs2019:
234 extends: .windows-docker-vs2019
235 image: "$WINDOWS_IMAGE"
237 - windows_build_vs2019
241 # Shared between windows and Linux
243 extends: .ci-run-policy
245 name: "mesa_${CI_JOB_NAME}"
248 - _build/meson-logs/*.txt
255 extends: .build-common
257 CCACHE_COMPILERCHECK: "content"
258 CCACHE_COMPRESS: "true"
259 CCACHE_DIR: /cache/mesa/ccache
260 # Use ccache transparently, and print stats before/after
262 - export PATH="/usr/lib/ccache:$PATH"
263 - export CCACHE_BASEDIR="$PWD"
264 - ccache --show-stats
266 - ccache --show-stats
269 extends: .build-common
278 - subprojects/packagecache
288 - .gitlab-ci/meson-build.sh
298 - .gitlab-ci/scons-build.sh
310 -D platforms=x11,drm,surfaceless
313 GALLIUM_DRIVERS: "swrast,virgl"
315 BUILDTYPE: "debugoptimized"
319 - .gitlab-ci/meson-build.sh
320 - .gitlab-ci/prepare-artifacts.sh
323 extends: .meson-build
330 -D platforms=x11,wayland,drm,surfaceless
333 -D gallium-extra-hud=true
334 -D gallium-vdpau=true
336 -D gallium-omx=bellagio
340 -D gallium-opencl=disabled
341 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
346 - .gitlab-ci/meson-build.sh
347 - .gitlab-ci/run-shader-db.sh
350 extends: .meson-build
357 -D platforms=x11,wayland,drm,surfaceless
373 -D platforms=surfaceless
377 -D gallium-vdpau=false
378 -D gallium-xvmc=false
379 -D gallium-omx=disabled
382 -D gallium-nine=false
390 VULKAN_DRIVERS: freedreno
391 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
392 BUILDTYPE: "debugoptimized"
406 - .gitlab-ci/meson-build.sh
407 - .gitlab-ci/prepare-artifacts.sh
414 VULKAN_DRIVERS: "freedreno"
418 - .gitlab-ci/meson-build.sh
419 - .gitlab-ci/prepare-artifacts.sh
421 meson-arm64-build-test:
426 VULKAN_DRIVERS: "amd"
428 - .gitlab-ci/meson-build.sh
431 extends: .meson-build
437 GALLIUM_DRIVERS: "auto"
438 VULKAN_DRIVERS: intel,amd,freedreno
440 CXX: "ccache clang++-9"
442 meson-windows-vs2019:
445 - .use-windows_build_vs2019
448 - . .\.gitlab-ci\windows\mesa_build.ps1
451 extends: .scons-build
453 SCONS_TARGET: platform=windows machine=x86_64 debug=1
454 SCONS_CHECK_COMMAND: "true"
458 extends: .meson-build
467 -D gallium-vdpau=false
468 -D gallium-xvmc=false
469 -D gallium-omx=disabled
472 -D gallium-nine=false
473 -D gallium-opencl=icd
475 - export GALLIUM_DRIVERS="r600,radeonsi"
476 - .gitlab-ci/meson-build.sh
477 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
478 - export GALLIUM_DRIVERS="i915,r600"
479 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
480 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
482 meson-clover-old-llvm:
492 -D platforms=drm,surfaceless
493 GALLIUM_DRIVERS: "i915,r600"
495 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
496 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
497 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
500 extends: .meson-build
507 -D platforms=x11,wayland,drm
511 -D gallium-vdpau=false
512 -D gallium-xvmc=false
513 -D gallium-omx=disabled
516 -D gallium-nine=false
517 -D gallium-opencl=disabled
518 -D b_sanitize=undefined
519 -D c_args=-fno-sanitize-recover=all
520 -D cpp_args=-fno-sanitize-recover=all
521 UBSAN_OPTIONS: "print_stacktrace=1"
522 VULKAN_DRIVERS: intel,amd,freedreno
524 -D vulkan-overlay-layer=true
528 extends: .meson-cross
531 VULKAN_DRIVERS: intel,amd
532 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
534 -D vulkan-overlay-layer=true
537 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
538 - .gitlab-ci/meson-build.sh
547 GALLIUM_DRIVERS: "swrast"
549 # For unknown reasons "too many" installed i386 libraries cause qemu to
550 # crash while executing llvm-config for s390x.
551 - apt-get remove -y libglib2.0-0:i386
552 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
553 - .gitlab-ci/meson-build.sh
560 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
561 VULKAN_DRIVERS: "amd"
563 meson-mingw32-x86_64:
564 extends: .meson-build
569 GALLIUM_DRIVERS: "swrast"
573 --cross-file=.gitlab-ci/x86_64-w64-mingw32
579 GIT_STRATEGY: none # testing doesn't build anything from source
581 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
583 - tar -xf artifacts/install.tar
584 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
587 name: "mesa_${CI_JOB_NAME}"
598 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
608 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
619 name: "mesa_${CI_JOB_NAME}"
623 LIBGL_ALWAYS_SOFTWARE: 1
626 - install/piglit/run.sh
629 extends: .piglit-test
634 --process-isolation false
637 -x egl_ext_platform_device
638 -x ext_timer_query@time-elapsed
639 -x glx-multithread-clearbuffer
640 -x glx-multithread-shader-compile
643 PIGLIT_PROFILES: quick_gl
646 extends: .piglit-test
650 PIGLIT_PROFILES: glslparser
653 extends: .piglit-test
657 PIGLIT_PROFILES: quick_shader
661 DEQP_SKIPS: deqp-default-skips.txt
663 - ./install/deqp-runner.sh
680 - ./install/fossilize-runner.sh
687 # Don't use threads inside llvmpipe, we've already got all 4 cores
688 # busy with DEQP_PARALLEL.
690 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
691 LIBGL_ALWAYS_SOFTWARE: "true"
701 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
702 DEQP_SKIPS: deqp-softpipe-skips.txt
703 GALLIUM_DRIVER: "softpipe"
709 extends: softpipe-gles2
715 extends: softpipe-gles2
722 DEQP_NO_SAVE_RESULTS: 1
723 DEQP_RUNNER_OPTIONS: "--compact-display false"
724 # Don't use threads inside llvmpipe, we've already got all 4 cores
725 # busy with DEQP_PARALLEL.
727 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
728 LIBGL_ALWAYS_SOFTWARE: "true"
729 GALLIUM_DRIVER: "virpipe"
739 DEQP_RUNNER_OPTIONS: "--compact-display false --timeout 120"
742 # Rules for tests that should not be present in MRs or the main
743 # project's pipeline (don't block marge or report red on
744 # mesa/mesamaster) but should be present on pipelines in personal
745 # branches (so you can opt in to running the flaky test when you want
749 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
762 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
763 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
766 FLAKES_CHANNEL: "#freedreno-ci"
773 extends: arm64_a630_gles2
778 extends: arm64_a630_gles2
793 BM_KERNEL: /lava-files/Image.gz
794 BM_DTB: /lava-files/apq8016-sbc.dtb
795 BM_ROOTFS: /lava-files/rootfs-arm64
796 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
797 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
798 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
802 - .gitlab-ci/bare-metal/fastboot.sh
806 - google-freedreno-db410c
808 # Disabled due to flaky results
822 BM_KERNEL: /lava-files/db820c-kernel
823 BM_DTB: /lava-files/db820c.dtb
824 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
825 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
826 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
828 - google-freedreno-db820c
846 .test-radv-fossilize:
851 - ./install/fossilize-runner.sh
852 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
854 # Can only be triggered manually on personal branches because RADV is the only
855 # driver that does Vulkan testing at the moment.
856 radv_polaris10_vkcts:
862 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
872 - export RADV_FORCE_FAMILY="polaris10"
873 - ./install/fossilize-runner.sh
874 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
876 - export RADV_FORCE_FAMILY="gfx900"
877 - ./install/fossilize-runner.sh
878 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
880 - export RADV_FORCE_FAMILY="gfx1010"
881 - ./install/fossilize-runner.sh
882 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
896 - ./install/tracie-runner-gl.sh
903 - ./install/tracie-runner-vk.sh
910 LIBGL_ALWAYS_SOFTWARE: "true"
911 GALLIUM_DRIVER: "llvmpipe"
912 DEVICE_NAME: "gl-vmware-llvmpipe"
914 radv-polaris10-traces:
920 DEVICE_NAME: "vk-amd-polaris10"