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
565 GALLIUM_DRIVERS: "swrast"
567 # For unknown reasons "too many" installed i386 libraries cause qemu to
568 # crash while executing llvm-config for s390x.
569 - apt-get purge -y wine32
570 - apt-get autoremove -y --purge
571 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
572 - .gitlab-ci/meson-build.sh
579 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
580 VULKAN_DRIVERS: "amd"
582 meson-mingw32-x86_64:
583 extends: .meson-build
588 GALLIUM_DRIVERS: "swrast"
592 --cross-file=.gitlab-ci/x86_64-w64-mingw32
598 GIT_STRATEGY: none # testing doesn't build anything from source
600 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
602 - tar -xf artifacts/install.tar
603 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
606 name: "mesa_${CI_JOB_NAME}"
617 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
627 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
638 name: "mesa_${CI_JOB_NAME}"
642 LIBGL_ALWAYS_SOFTWARE: 1
645 - install/piglit/run.sh
648 extends: .piglit-test
653 --process-isolation false
656 -x egl_ext_platform_device
657 -x ext_timer_query@time-elapsed
658 -x glx-multithread-clearbuffer
659 -x glx-multithread-shader-compile
662 PIGLIT_PROFILES: quick_gl
665 extends: .piglit-test
669 PIGLIT_PROFILES: glslparser
672 extends: .piglit-test
676 PIGLIT_PROFILES: quick_shader
680 DEQP_SKIPS: deqp-default-skips.txt
682 - ./install/deqp-runner.sh
699 - ./install/fossilize-runner.sh
706 # Don't use threads inside llvmpipe, we've already got all 4 cores
707 # busy with DEQP_PARALLEL.
709 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
710 LIBGL_ALWAYS_SOFTWARE: "true"
711 DEQP_EXPECTED_RENDERER: llvmpipe
721 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
722 DEQP_SKIPS: deqp-softpipe-skips.txt
723 GALLIUM_DRIVER: "softpipe"
724 DEQP_EXPECTED_RENDERER: softpipe
730 extends: softpipe-gles2
736 extends: softpipe-gles2
743 DEQP_NO_SAVE_RESULTS: 1
744 # Don't use threads inside llvmpipe, we've already got all 4 cores
745 # busy with DEQP_PARALLEL.
747 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
748 LIBGL_ALWAYS_SOFTWARE: "true"
749 GALLIUM_DRIVER: "virpipe"
750 DEQP_EXPECTED_RENDERER: virgl
760 DEQP_RUNNER_OPTIONS: "--timeout 120"
768 DEQP_OPTIONS: "--deqp-log-images=disable"
769 DEQP_RUNNER_OPTIONS: "--timeout 120"
770 MESA_GLES_VERSION_OVERRIDE: "3.1"
771 MESA_GLSL_VERSION_OVERRIDE: "310"
774 # Rules for tests that should not be present in MRs or the main
775 # project's pipeline (don't block marge or report red on
776 # mesa/mesamaster) but should be present on pipelines in personal
777 # branches (so you can opt in to running the flaky test when you want
781 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
794 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
795 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
798 FLAKES_CHANNEL: "#freedreno-ci"
799 DEQP_EXPECTED_RENDERER: FD630
806 extends: arm64_a630_gles2
811 extends: arm64_a630_gles2
815 arm64_a630_gles31_options:
816 extends: arm64_a630_gles2
822 # We almost always manage to lower UBOs back to constant uploads in
823 # the test suite, so get a little testing for it here.
824 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.\*ubo" ./install/deqp-runner.sh
825 # The driver does some guessing as to whether to render using gmem
826 # or bypass, and some GLES3.1 features interact with either one.
827 # Do a little testing with gmem and bypass forced.
828 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
829 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
839 - .use-x86_cross_arm_test
842 BM_KERNEL: /lava-files/Image.gz
843 BM_DTB: /lava-files/apq8016-sbc.dtb
844 BM_ROOTFS: /lava-files/rootfs-arm64
845 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
846 FLAKES_CHANNEL: "#freedreno-ci"
847 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
848 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
851 DEQP_EXPECTED_RENDERER: FD307
853 - .gitlab-ci/bare-metal/fastboot.sh
859 - google-freedreno-db410c
861 # Disabled due to flaky results
875 BM_KERNEL: /lava-files/db820c-kernel
876 BM_DTB: /lava-files/db820c.dtb
877 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
878 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
879 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
880 DEQP_EXPECTED_RENDERER: FD530
882 - google-freedreno-db820c
906 ACO_DEBUG: validateir,validatera
908 # Can only be triggered manually on personal branches because RADV is the only
909 # driver that does Vulkan testing at the moment.
910 radv_polaris10_vkcts:
916 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
926 - export RADV_FORCE_FAMILY="pitcairn"
927 - ./install/fossilize-runner.sh
928 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
930 - export RADV_FORCE_FAMILY="bonaire"
931 - ./install/fossilize-runner.sh
932 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
934 - export RADV_FORCE_FAMILY="polaris10"
935 - ./install/fossilize-runner.sh
936 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
938 - export RADV_FORCE_FAMILY="gfx900"
939 - ./install/fossilize-runner.sh
940 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
942 - export RADV_FORCE_FAMILY="gfx1010"
943 - ./install/fossilize-runner.sh
944 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
958 - ./install/tracie-runner-gl.sh
965 - ./install/tracie-runner-vk.sh
972 LIBGL_ALWAYS_SOFTWARE: "true"
973 GALLIUM_DRIVER: "llvmpipe"
974 DEVICE_NAME: "gl-vmware-llvmpipe"
976 radv-polaris10-traces:
982 DEVICE_NAME: "vk-amd-polaris10"
991 LIBGL_ALWAYS_SOFTWARE: "true"
992 GALLIUM_DRIVER: "virpipe"
993 DEVICE_NAME: "gl-virgl"
994 MESA_GLES_VERSION_OVERRIDE: "3.1"
995 MESA_GLSL_VERSION_OVERRIDE: "310"