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"
217 # Native Windows docker builds
219 # Unlike the above Linux-based builds - including MinGW/SCons builds which
220 # cross-compile for Windows - which use the freedesktop ci-templates, we
221 # cannot use the same scheme here. As Windows lacks support for
222 # Docker-in-Docker, and Podman does not run natively on Windows, we have
223 # to open-code much of the same ourselves.
225 # This is achieved by first running in a native Windows shell instance
226 # (host PowerShell) in the container stage to build and push the image,
227 # then in the build stage by executing inside Docker.
229 .windows-docker-vs2019:
231 WINDOWS_TAG: "2020-05-05-llvm"
232 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
233 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
235 windows_build_vs2019:
238 - .windows-docker-vs2019
241 GIT_STRATEGY: fetch # we do actually need the full repository though
242 timeout: 4h # LLVM takes ages
249 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
251 .use-windows_build_vs2019:
252 extends: .windows-docker-vs2019
253 image: "$WINDOWS_IMAGE"
255 - windows_build_vs2019
259 # Shared between windows and Linux
261 extends: .ci-run-policy
263 name: "mesa_${CI_JOB_NAME}"
266 - _build/meson-logs/*.txt
273 extends: .build-common
275 CCACHE_COMPILERCHECK: "content"
276 CCACHE_COMPRESS: "true"
277 CCACHE_DIR: /cache/mesa/ccache
278 # Use ccache transparently, and print stats before/after
280 - export PATH="/usr/lib/ccache:$PATH"
281 - export CCACHE_BASEDIR="$PWD"
282 - ccache --show-stats
284 - ccache --show-stats
287 extends: .build-common
296 - subprojects/packagecache
306 - .gitlab-ci/meson-build.sh
316 - .gitlab-ci/scons-build.sh
328 -D platforms=x11,drm,surfaceless
331 GALLIUM_DRIVERS: "swrast,virgl"
333 BUILDTYPE: "debugoptimized"
337 - .gitlab-ci/meson-build.sh
338 - .gitlab-ci/prepare-artifacts.sh
341 extends: .meson-build
348 -D platforms=x11,wayland,drm,surfaceless
351 -D gallium-extra-hud=true
352 -D gallium-vdpau=true
354 -D gallium-omx=bellagio
358 -D gallium-opencl=disabled
359 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
364 - .gitlab-ci/meson-build.sh
365 - .gitlab-ci/run-shader-db.sh
368 extends: .meson-build
375 -D platforms=x11,wayland,drm,surfaceless
391 -D platforms=surfaceless
395 -D gallium-vdpau=false
396 -D gallium-xvmc=false
397 -D gallium-omx=disabled
400 -D gallium-nine=false
408 VULKAN_DRIVERS: freedreno
409 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
410 BUILDTYPE: "debugoptimized"
424 - .gitlab-ci/meson-build.sh
425 - .gitlab-ci/prepare-artifacts.sh
432 VULKAN_DRIVERS: "freedreno"
436 - .gitlab-ci/meson-build.sh
437 - .gitlab-ci/prepare-artifacts.sh
439 meson-arm64-build-test:
444 VULKAN_DRIVERS: "amd"
446 - .gitlab-ci/meson-build.sh
449 extends: .meson-build
455 GALLIUM_DRIVERS: "auto"
456 VULKAN_DRIVERS: intel,amd,freedreno
458 CXX: "ccache clang++-9"
460 meson-windows-vs2019:
463 - .use-windows_build_vs2019
466 - . .\.gitlab-ci\windows\mesa_build.ps1
469 extends: .scons-build
471 SCONS_TARGET: platform=windows machine=x86_64 debug=1
472 SCONS_CHECK_COMMAND: "true"
476 extends: .meson-build
485 -D gallium-vdpau=false
486 -D gallium-xvmc=false
487 -D gallium-omx=disabled
490 -D gallium-nine=false
491 -D gallium-opencl=icd
493 - export GALLIUM_DRIVERS="r600,radeonsi"
494 - .gitlab-ci/meson-build.sh
495 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
496 - export GALLIUM_DRIVERS="i915,r600"
497 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
498 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
500 meson-clover-old-llvm:
510 -D platforms=drm,surfaceless
511 GALLIUM_DRIVERS: "i915,r600"
513 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
514 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
515 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
518 extends: .meson-build
525 -D platforms=x11,wayland,drm
529 -D gallium-vdpau=false
530 -D gallium-xvmc=false
531 -D gallium-omx=disabled
534 -D gallium-nine=false
535 -D gallium-opencl=disabled
536 -D b_sanitize=undefined
537 -D c_args=-fno-sanitize-recover=all
538 -D cpp_args=-fno-sanitize-recover=all
539 UBSAN_OPTIONS: "print_stacktrace=1"
540 VULKAN_DRIVERS: intel,amd,freedreno
542 -D vulkan-overlay-layer=true
546 extends: .meson-cross
549 VULKAN_DRIVERS: intel,amd
550 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
552 -D vulkan-overlay-layer=true
555 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
556 - .gitlab-ci/meson-build.sh
567 GALLIUM_DRIVERS: "swrast"
569 # For unknown reasons "too many" installed i386 libraries cause qemu to
570 # crash while executing llvm-config for s390x.
571 - apt-get purge -y wine32
572 - apt-get autoremove -y --purge
573 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
574 - .gitlab-ci/meson-build.sh
582 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
583 VULKAN_DRIVERS: "amd"
585 meson-mingw32-x86_64:
586 extends: .meson-build
591 GALLIUM_DRIVERS: "swrast"
595 --cross-file=.gitlab-ci/x86_64-w64-mingw32
601 GIT_STRATEGY: none # testing doesn't build anything from source
603 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
605 - tar -xf artifacts/install.tar
606 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
609 name: "mesa_${CI_JOB_NAME}"
620 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
630 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
641 name: "mesa_${CI_JOB_NAME}"
645 LIBGL_ALWAYS_SOFTWARE: 1
648 - install/piglit/run.sh
651 extends: .piglit-test
656 --process-isolation false
659 -x egl_ext_platform_device
660 -x ext_timer_query@time-elapsed
661 -x glx-multithread-clearbuffer
662 -x glx-multithread-shader-compile
665 PIGLIT_PROFILES: quick_gl
668 extends: .piglit-test
672 PIGLIT_PROFILES: glslparser
675 extends: .piglit-test
679 PIGLIT_PROFILES: quick_shader
683 DEQP_SKIPS: deqp-default-skips.txt
685 - ./install/deqp-runner.sh
702 - ./install/fossilize-runner.sh
709 # Don't use threads inside llvmpipe, we've already got all 4 cores
710 # busy with DEQP_PARALLEL.
712 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
713 LIBGL_ALWAYS_SOFTWARE: "true"
714 DEQP_EXPECTED_RENDERER: llvmpipe
724 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
725 DEQP_SKIPS: deqp-softpipe-skips.txt
726 GALLIUM_DRIVER: "softpipe"
727 DEQP_EXPECTED_RENDERER: softpipe
733 extends: softpipe-gles2
739 extends: softpipe-gles2
746 DEQP_NO_SAVE_RESULTS: 1
747 # Don't use threads inside llvmpipe, we've already got all 4 cores
748 # busy with DEQP_PARALLEL.
750 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
751 LIBGL_ALWAYS_SOFTWARE: "true"
752 GALLIUM_DRIVER: "virpipe"
753 DEQP_EXPECTED_RENDERER: virgl
763 DEQP_RUNNER_OPTIONS: "--timeout 120"
771 DEQP_OPTIONS: "--deqp-log-images=disable"
772 DEQP_RUNNER_OPTIONS: "--timeout 120"
773 MESA_GLES_VERSION_OVERRIDE: "3.1"
774 MESA_GLSL_VERSION_OVERRIDE: "310"
777 # Rules for tests that should not be present in MRs or the main
778 # project's pipeline (don't block marge or report red on
779 # mesa/mesamaster) but should be present on pipelines in personal
780 # branches (so you can opt in to running the flaky test when you want
784 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
797 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
798 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
801 FLAKES_CHANNEL: "#freedreno-ci"
802 DEQP_EXPECTED_RENDERER: FD630
809 extends: arm64_a630_gles2
814 extends: arm64_a630_gles2
818 arm64_a630_gles31_options:
819 extends: arm64_a630_gles2
825 # We almost always manage to lower UBOs back to constant uploads in
826 # the test suite, so get a little testing for it here.
827 - 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
828 # The driver does some guessing as to whether to render using gmem
829 # or bypass, and some GLES3.1 features interact with either one.
830 # Do a little testing with gmem and bypass forced.
831 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
832 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
833 # Check that we don't get obvious nir validation failures (though it's too expensive to run for the full CTS)
834 - DEQP_RUN_SUFFIX=-validate NIR_VALIDATE=1 ./install/deqp-runner.sh
844 - .use-x86_cross_arm_test
847 BM_KERNEL: /lava-files/Image.gz
848 BM_DTB: /lava-files/apq8016-sbc.dtb
849 BM_ROOTFS: /lava-files/rootfs-arm64
850 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
851 FLAKES_CHANNEL: "#freedreno-ci"
852 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
853 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
856 DEQP_EXPECTED_RENDERER: FD307
857 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
859 - .gitlab-ci/bare-metal/fastboot.sh
865 - google-freedreno-db410c
867 # Fractional run, single threaded, due to flaky results
878 # Fractional runs with debug options. Note that since we're not
879 # hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
880 arm64_a306_gles3_options:
881 extends: arm64_a306_gles2
885 # Check that the non-constbuf UBO case works.
886 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" .gitlab-ci/bare-metal/fastboot.sh
892 BM_KERNEL: /lava-files/db820c-kernel
893 BM_DTB: /lava-files/db820c.dtb
894 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
895 # current upstream kernel.
896 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
897 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
898 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
899 DEQP_EXPECTED_RENDERER: FD530
902 - google-freedreno-db820c
928 ACO_DEBUG: validateir,validatera
930 # Can only be triggered manually on personal branches because RADV is the only
931 # driver that does Vulkan testing at the moment.
932 radv_polaris10_vkcts:
938 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
948 - export RADV_FORCE_FAMILY="pitcairn"
949 - ./install/fossilize-runner.sh
950 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
952 - export RADV_FORCE_FAMILY="bonaire"
953 - ./install/fossilize-runner.sh
954 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
956 - export RADV_FORCE_FAMILY="polaris10"
957 - ./install/fossilize-runner.sh
958 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
960 - export RADV_FORCE_FAMILY="gfx900"
961 - ./install/fossilize-runner.sh
962 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
964 - export RADV_FORCE_FAMILY="gfx1010"
965 - ./install/fossilize-runner.sh
966 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
980 - ./install/tracie-runner-gl.sh
987 - ./install/tracie-runner-vk.sh
994 LIBGL_ALWAYS_SOFTWARE: "true"
995 GALLIUM_DRIVER: "llvmpipe"
996 DEVICE_NAME: "gl-vmware-llvmpipe"
998 radv-polaris10-traces:
1004 DEVICE_NAME: "vk-amd-polaris10"
1013 LIBGL_ALWAYS_SOFTWARE: "true"
1014 GALLIUM_DRIVER: "virpipe"
1015 DEVICE_NAME: "gl-virgl"
1016 MESA_GLES_VERSION_OVERRIDE: "3.1"
1017 MESA_GLSL_VERSION_OVERRIDE: "310"