2 FDO_UPSTREAM_REPO: mesa/mesa
5 - project: 'freedesktop/ci-templates'
6 ref: 59de540b620c45739871d1a073d76d5521989d11
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
34 - bin/install_megadrivers.py
35 - bin/meson_get_version.py
36 - bin/symbols-check.py
52 # Otherwise, build/test jobs won't run
57 - runner_system_failure
58 # Cancel CI run if a newer commit is pushed to the same branch
63 image: debian:stable-slim
72 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
77 name: "mesa_${CI_JOB_NAME}"
81 # Watch out! Artifacts are relative to the build dir.
82 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
85 # Build the CI docker images.
87 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
88 # image doesn't exist yet, the container stage job generates it.
90 # In order to generate a new image, one should generally change the tag.
91 # While removing the image from the registry would also work, that's not
92 # recommended except for ephemeral images during development: Replacing
93 # an image after a significant amount of time might pull in newer
94 # versions of gcc/clang or other packages, which might break the build
95 # with older commits using the same tag.
97 # After merging a change resulting in generating a new image to the
98 # main repository, it's recommended to remove the image from the source
99 # repository's container registry, so that the image from the main
100 # repository's registry will be used there as well.
107 # Run pipeline by default if it was triggered by Marge Bot, is for a
108 # merge request, and any files affecting it were changed
109 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
113 # Run pipeline by default in the main project if any files affecting it were
115 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
119 # Allow triggering jobs manually for MRs or branches of forked projects if
120 # any files affecting the pipeline were changed
124 # Otherwise, container jobs won't run
127 FDO_DISTRIBUTION_VERSION: buster-slim
128 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
129 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
130 # no need to pull the whole repo to build the container image
133 # Debian 10 based x86 build image
136 - .fdo.container-build@debian
139 FDO_DISTRIBUTION_TAG: &x86_build "2020-05-18-baremetal-2"
144 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
148 # Debian 10 based x86 test image for GL
152 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-05-18"
154 # Debian 10 based x86 test image for VK
158 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-05-18"
160 # Debian 9 based x86 build image (old LLVM)
164 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
165 FDO_DISTRIBUTION_VERSION: stretch-slim
170 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
174 # Debian 10 based ARM build image
177 - .fdo.container-build@debian@arm64v8
180 FDO_DISTRIBUTION_TAG: &arm_build "2020-05-14-baremetal-5"
185 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
189 # x86 image with ARM rootfses for baremetal testing.
193 FDO_DISTRIBUTION_TAG: &x86_cross_arm_test "2020-05-13"
195 .use-x86_cross_arm_test:
197 TAG: *x86_cross_arm_test
198 image: "$CI_REGISTRY_IMAGE/debian/x86_cross_arm_test:$TAG"
203 # Debian 10 based ARM test image
207 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
212 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
218 # Native Windows docker builds
220 # Unlike the above Linux-based builds - including MinGW/SCons builds which
221 # cross-compile for Windows - which use the freedesktop ci-templates, we
222 # cannot use the same scheme here. As Windows lacks support for
223 # Docker-in-Docker, and Podman does not run natively on Windows, we have
224 # to open-code much of the same ourselves.
226 # This is achieved by first running in a native Windows shell instance
227 # (host PowerShell) in the container stage to build and push the image,
228 # then in the build stage by executing inside Docker.
230 .windows-docker-vs2019:
232 WINDOWS_TAG: "2020-05-05-llvm"
233 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
234 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
236 windows_build_vs2019:
239 - .windows-docker-vs2019
242 GIT_STRATEGY: fetch # we do actually need the full repository though
243 timeout: 4h # LLVM takes ages
250 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
252 .use-windows_build_vs2019:
253 extends: .windows-docker-vs2019
254 image: "$WINDOWS_IMAGE"
256 - windows_build_vs2019
260 # Shared between windows and Linux
262 extends: .ci-run-policy
264 name: "mesa_${CI_JOB_NAME}"
267 - _build/meson-logs/*.txt
274 extends: .build-common
276 CCACHE_COMPILERCHECK: "content"
277 CCACHE_COMPRESS: "true"
278 CCACHE_DIR: /cache/mesa/ccache
279 # Use ccache transparently, and print stats before/after
281 - export PATH="/usr/lib/ccache:$PATH"
282 - export CCACHE_BASEDIR="$PWD"
283 - ccache --show-stats
285 - ccache --show-stats
288 extends: .build-common
297 - subprojects/packagecache
307 - .gitlab-ci/meson-build.sh
317 - .gitlab-ci/scons-build.sh
329 -D platforms=x11,drm,surfaceless
332 GALLIUM_DRIVERS: "swrast,virgl"
334 BUILDTYPE: "debugoptimized"
338 - .gitlab-ci/meson-build.sh
339 - .gitlab-ci/prepare-artifacts.sh
342 extends: .meson-build
349 -D platforms=x11,wayland,drm,surfaceless
352 -D gallium-extra-hud=true
353 -D gallium-vdpau=true
355 -D gallium-omx=bellagio
359 -D gallium-opencl=disabled
360 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
365 - .gitlab-ci/meson-build.sh
366 - .gitlab-ci/run-shader-db.sh
369 extends: .meson-build
376 -D platforms=x11,wayland,drm,surfaceless
392 -D platforms=surfaceless
396 -D gallium-vdpau=false
397 -D gallium-xvmc=false
398 -D gallium-omx=disabled
401 -D gallium-nine=false
409 VULKAN_DRIVERS: freedreno
410 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
411 BUILDTYPE: "debugoptimized"
425 - .gitlab-ci/meson-build.sh
426 - .gitlab-ci/prepare-artifacts.sh
433 VULKAN_DRIVERS: "freedreno"
437 - .gitlab-ci/meson-build.sh
438 - .gitlab-ci/prepare-artifacts.sh
440 meson-arm64-build-test:
445 VULKAN_DRIVERS: "amd"
447 - .gitlab-ci/meson-build.sh
450 extends: .meson-build
456 GALLIUM_DRIVERS: "auto"
457 VULKAN_DRIVERS: intel,amd,freedreno
459 CXX: "ccache clang++-9"
461 meson-windows-vs2019:
464 - .use-windows_build_vs2019
467 - . .\.gitlab-ci\windows\mesa_build.ps1
470 extends: .scons-build
472 SCONS_TARGET: platform=windows machine=x86_64 debug=1
473 SCONS_CHECK_COMMAND: "true"
477 extends: .meson-build
486 -D gallium-vdpau=false
487 -D gallium-xvmc=false
488 -D gallium-omx=disabled
491 -D gallium-nine=false
492 -D gallium-opencl=icd
494 - export GALLIUM_DRIVERS="r600,radeonsi"
495 - .gitlab-ci/meson-build.sh
496 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
497 - export GALLIUM_DRIVERS="i915,r600"
498 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
499 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
501 meson-clover-old-llvm:
511 -D platforms=drm,surfaceless
512 GALLIUM_DRIVERS: "i915,r600"
514 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
515 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
516 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
519 extends: .meson-build
526 -D platforms=x11,wayland,drm
530 -D gallium-vdpau=false
531 -D gallium-xvmc=false
532 -D gallium-omx=disabled
535 -D gallium-nine=false
536 -D gallium-opencl=disabled
537 -D b_sanitize=undefined
538 -D c_args=-fno-sanitize-recover=all
539 -D cpp_args=-fno-sanitize-recover=all
540 UBSAN_OPTIONS: "print_stacktrace=1"
541 VULKAN_DRIVERS: intel,amd,freedreno
543 -D vulkan-overlay-layer=true
547 extends: .meson-cross
550 VULKAN_DRIVERS: intel,amd
551 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
553 -D vulkan-overlay-layer=true
556 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
557 - .gitlab-ci/meson-build.sh
568 GALLIUM_DRIVERS: "swrast"
570 # For unknown reasons "too many" installed i386 libraries cause qemu to
571 # crash while executing llvm-config for s390x.
572 - apt-get purge -y wine32
573 - apt-get autoremove -y --purge
574 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
575 - .gitlab-ci/meson-build.sh
583 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
584 VULKAN_DRIVERS: "amd"
586 meson-mingw32-x86_64:
587 extends: .meson-build
592 GALLIUM_DRIVERS: "swrast"
596 --cross-file=.gitlab-ci/x86_64-w64-mingw32
602 GIT_STRATEGY: none # testing doesn't build anything from source
604 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
606 - tar -xf artifacts/install.tar
607 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
610 name: "mesa_${CI_JOB_NAME}"
621 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
632 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
644 name: "mesa_${CI_JOB_NAME}"
648 LIBGL_ALWAYS_SOFTWARE: 1
651 - install/piglit/run.sh
654 extends: .piglit-test
659 --process-isolation false
662 -x egl_ext_platform_device
663 -x ext_timer_query@time-elapsed
664 -x glx-multithread-clearbuffer
665 -x glx-multithread-shader-compile
668 PIGLIT_PROFILES: quick_gl
671 extends: .piglit-test
675 PIGLIT_PROFILES: glslparser
678 extends: .piglit-test
682 PIGLIT_PROFILES: quick_shader
686 DEQP_SKIPS: deqp-default-skips.txt
688 - ./install/deqp-runner.sh
705 - ./install/fossilize-runner.sh
712 # Don't use threads inside llvmpipe, we've already got all 4 cores
713 # busy with DEQP_PARALLEL.
715 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
716 LIBGL_ALWAYS_SOFTWARE: "true"
717 DEQP_EXPECTED_RENDERER: llvmpipe
727 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
728 DEQP_SKIPS: deqp-softpipe-skips.txt
729 GALLIUM_DRIVER: "softpipe"
730 DEQP_EXPECTED_RENDERER: softpipe
736 extends: softpipe-gles2
742 extends: softpipe-gles2
749 DEQP_NO_SAVE_RESULTS: 1
750 # Don't use threads inside llvmpipe, we've already got all 4 cores
751 # busy with DEQP_PARALLEL.
753 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
754 LIBGL_ALWAYS_SOFTWARE: "true"
755 GALLIUM_DRIVER: "virpipe"
756 DEQP_EXPECTED_RENDERER: virgl
766 DEQP_RUNNER_OPTIONS: "--timeout 120"
774 DEQP_OPTIONS: "--deqp-log-images=disable"
775 DEQP_RUNNER_OPTIONS: "--timeout 120"
776 MESA_GLES_VERSION_OVERRIDE: "3.1"
777 MESA_GLSL_VERSION_OVERRIDE: "310"
780 # Rules for tests that should not be present in MRs or the main
781 # project's pipeline (don't block marge or report red on
782 # mesa/mesamaster) but should be present on pipelines in personal
783 # branches (so you can opt in to running the flaky test when you want
787 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
800 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
801 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
804 FLAKES_CHANNEL: "#freedreno-ci"
805 DEQP_EXPECTED_RENDERER: FD630
812 extends: arm64_a630_gles2
817 extends: arm64_a630_gles2
821 arm64_a630_gles31_options:
822 extends: arm64_a630_gles2
828 # We almost always manage to lower UBOs back to constant uploads in
829 # the test suite, so get a little testing for it here.
830 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" DEQP_EXPECTED_FAILS=deqp-freedreno-a630-noubo-fails.txt CI_NODE_INDEX= ./install/deqp-runner.sh
831 # The driver does some guessing as to whether to render using gmem
832 # or bypass, and some GLES3.1 features interact with either one.
833 # Do a little testing with gmem and bypass forced.
834 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
835 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
836 # Check that we don't get obvious nir validation failures (though it's too expensive to run for the full CTS)
837 - DEQP_RUN_SUFFIX=-validate NIR_VALIDATE=1 ./install/deqp-runner.sh
847 - .use-x86_cross_arm_test
850 BM_KERNEL: /lava-files/Image.gz
851 BM_DTB: /lava-files/apq8016-sbc.dtb
852 BM_ROOTFS: /lava-files/rootfs-arm64
853 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
854 FLAKES_CHANNEL: "#freedreno-ci"
855 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
856 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
859 DEQP_EXPECTED_RENDERER: FD307
860 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
862 - .gitlab-ci/bare-metal/fastboot.sh
868 - google-freedreno-db410c
870 # Fractional run, single threaded, due to flaky results
881 # Fractional runs with debug options. Note that since we're not
882 # hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
883 arm64_a306_gles3_options:
884 extends: arm64_a306_gles2
888 # Check that the non-constbuf UBO case works.
889 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" .gitlab-ci/bare-metal/fastboot.sh
895 BM_KERNEL: /lava-files/db820c-kernel
896 BM_DTB: /lava-files/db820c.dtb
897 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
898 # current upstream kernel.
899 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
900 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
901 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
902 DEQP_EXPECTED_RENDERER: FD530
905 - google-freedreno-db820c
931 ACO_DEBUG: validateir,validatera
933 # Can only be triggered manually on personal branches because RADV is the only
934 # driver that does Vulkan testing at the moment.
935 radv_polaris10_vkcts:
941 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
951 - export RADV_FORCE_FAMILY="pitcairn"
952 - ./install/fossilize-runner.sh
953 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
955 - export RADV_FORCE_FAMILY="bonaire"
956 - ./install/fossilize-runner.sh
957 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
959 - export RADV_FORCE_FAMILY="polaris10"
960 - ./install/fossilize-runner.sh
961 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
963 - export RADV_FORCE_FAMILY="gfx900"
964 - ./install/fossilize-runner.sh
965 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
967 - export RADV_FORCE_FAMILY="gfx1010"
968 - ./install/fossilize-runner.sh
969 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
983 - ./install/tracie-runner-gl.sh
990 - ./install/tracie-runner-vk.sh
997 LIBGL_ALWAYS_SOFTWARE: "true"
998 GALLIUM_DRIVER: "llvmpipe"
999 DEVICE_NAME: "gl-vmware-llvmpipe"
1001 radv-polaris10-traces:
1007 DEVICE_NAME: "vk-amd-polaris10"
1016 LIBGL_ALWAYS_SOFTWARE: "true"
1017 GALLIUM_DRIVER: "virpipe"
1018 DEVICE_NAME: "gl-virgl"
1019 MESA_GLES_VERSION_OVERRIDE: "3.1"
1020 MESA_GLSL_VERSION_OVERRIDE: "310"