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-08"
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-08"
154 # Debian 10 based x86 test image for VK
158 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-05-08"
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-01-netcat"
185 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
189 # Debian 10 based ARM test image
193 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
198 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
203 # Native Windows docker builds
205 # Unlike the above Linux-based builds - including MinGW/SCons builds which
206 # cross-compile for Windows - which use the freedesktop ci-templates, we
207 # cannot use the same scheme here. As Windows lacks support for
208 # Docker-in-Docker, and Podman does not run natively on Windows, we have
209 # to open-code much of the same ourselves.
211 # This is achieved by first running in a native Windows shell instance
212 # (host PowerShell) in the container stage to build and push the image,
213 # then in the build stage by executing inside Docker.
215 .windows-docker-vs2019:
217 WINDOWS_TAG: "2020-05-05-llvm"
218 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
219 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
221 windows_build_vs2019:
224 - .windows-docker-vs2019
227 GIT_STRATEGY: fetch # we do actually need the full repository though
228 timeout: 4h # LLVM takes ages
235 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
237 .use-windows_build_vs2019:
238 extends: .windows-docker-vs2019
239 image: "$WINDOWS_IMAGE"
241 - windows_build_vs2019
245 # Shared between windows and Linux
247 extends: .ci-run-policy
249 name: "mesa_${CI_JOB_NAME}"
252 - _build/meson-logs/*.txt
259 extends: .build-common
261 CCACHE_COMPILERCHECK: "content"
262 CCACHE_COMPRESS: "true"
263 CCACHE_DIR: /cache/mesa/ccache
264 # Use ccache transparently, and print stats before/after
266 - export PATH="/usr/lib/ccache:$PATH"
267 - export CCACHE_BASEDIR="$PWD"
268 - ccache --show-stats
270 - ccache --show-stats
273 extends: .build-common
282 - subprojects/packagecache
292 - .gitlab-ci/meson-build.sh
302 - .gitlab-ci/scons-build.sh
314 -D platforms=x11,drm,surfaceless
317 GALLIUM_DRIVERS: "swrast,virgl"
319 BUILDTYPE: "debugoptimized"
323 - .gitlab-ci/meson-build.sh
324 - .gitlab-ci/prepare-artifacts.sh
327 extends: .meson-build
334 -D platforms=x11,wayland,drm,surfaceless
337 -D gallium-extra-hud=true
338 -D gallium-vdpau=true
340 -D gallium-omx=bellagio
344 -D gallium-opencl=disabled
345 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
350 - .gitlab-ci/meson-build.sh
351 - .gitlab-ci/run-shader-db.sh
354 extends: .meson-build
361 -D platforms=x11,wayland,drm,surfaceless
377 -D platforms=surfaceless
381 -D gallium-vdpau=false
382 -D gallium-xvmc=false
383 -D gallium-omx=disabled
386 -D gallium-nine=false
394 VULKAN_DRIVERS: freedreno
395 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
396 BUILDTYPE: "debugoptimized"
410 - .gitlab-ci/meson-build.sh
411 - .gitlab-ci/prepare-artifacts.sh
418 VULKAN_DRIVERS: "freedreno"
422 - .gitlab-ci/meson-build.sh
423 - .gitlab-ci/prepare-artifacts.sh
425 meson-arm64-build-test:
430 VULKAN_DRIVERS: "amd"
432 - .gitlab-ci/meson-build.sh
435 extends: .meson-build
441 GALLIUM_DRIVERS: "auto"
442 VULKAN_DRIVERS: intel,amd,freedreno
444 CXX: "ccache clang++-9"
446 meson-windows-vs2019:
449 - .use-windows_build_vs2019
452 - . .\.gitlab-ci\windows\mesa_build.ps1
455 extends: .scons-build
457 SCONS_TARGET: platform=windows machine=x86_64 debug=1
458 SCONS_CHECK_COMMAND: "true"
462 extends: .meson-build
471 -D gallium-vdpau=false
472 -D gallium-xvmc=false
473 -D gallium-omx=disabled
476 -D gallium-nine=false
477 -D gallium-opencl=icd
479 - export GALLIUM_DRIVERS="r600,radeonsi"
480 - .gitlab-ci/meson-build.sh
481 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
482 - export GALLIUM_DRIVERS="i915,r600"
483 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
484 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
486 meson-clover-old-llvm:
496 -D platforms=drm,surfaceless
497 GALLIUM_DRIVERS: "i915,r600"
499 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
500 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
501 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
504 extends: .meson-build
511 -D platforms=x11,wayland,drm
515 -D gallium-vdpau=false
516 -D gallium-xvmc=false
517 -D gallium-omx=disabled
520 -D gallium-nine=false
521 -D gallium-opencl=disabled
522 -D b_sanitize=undefined
523 -D c_args=-fno-sanitize-recover=all
524 -D cpp_args=-fno-sanitize-recover=all
525 UBSAN_OPTIONS: "print_stacktrace=1"
526 VULKAN_DRIVERS: intel,amd,freedreno
528 -D vulkan-overlay-layer=true
532 extends: .meson-cross
535 VULKAN_DRIVERS: intel,amd
536 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
538 -D vulkan-overlay-layer=true
541 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
542 - .gitlab-ci/meson-build.sh
551 GALLIUM_DRIVERS: "swrast"
553 # For unknown reasons "too many" installed i386 libraries cause qemu to
554 # crash while executing llvm-config for s390x.
555 - apt-get purge -y wine32
556 - apt-get autoremove -y --purge
557 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
558 - .gitlab-ci/meson-build.sh
565 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
566 VULKAN_DRIVERS: "amd"
568 meson-mingw32-x86_64:
569 extends: .meson-build
574 GALLIUM_DRIVERS: "swrast"
578 --cross-file=.gitlab-ci/x86_64-w64-mingw32
584 GIT_STRATEGY: none # testing doesn't build anything from source
586 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
588 - tar -xf artifacts/install.tar
589 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
592 name: "mesa_${CI_JOB_NAME}"
603 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
613 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
624 name: "mesa_${CI_JOB_NAME}"
628 LIBGL_ALWAYS_SOFTWARE: 1
631 - install/piglit/run.sh
634 extends: .piglit-test
639 --process-isolation false
642 -x egl_ext_platform_device
643 -x ext_timer_query@time-elapsed
644 -x glx-multithread-clearbuffer
645 -x glx-multithread-shader-compile
648 PIGLIT_PROFILES: quick_gl
651 extends: .piglit-test
655 PIGLIT_PROFILES: glslparser
658 extends: .piglit-test
662 PIGLIT_PROFILES: quick_shader
666 DEQP_SKIPS: deqp-default-skips.txt
668 - ./install/deqp-runner.sh
685 - ./install/fossilize-runner.sh
692 # Don't use threads inside llvmpipe, we've already got all 4 cores
693 # busy with DEQP_PARALLEL.
695 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
696 LIBGL_ALWAYS_SOFTWARE: "true"
697 DEQP_EXPECTED_RENDERER: llvmpipe
707 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
708 DEQP_SKIPS: deqp-softpipe-skips.txt
709 GALLIUM_DRIVER: "softpipe"
710 DEQP_EXPECTED_RENDERER: softpipe
716 extends: softpipe-gles2
722 extends: softpipe-gles2
729 DEQP_NO_SAVE_RESULTS: 1
730 # Don't use threads inside llvmpipe, we've already got all 4 cores
731 # busy with DEQP_PARALLEL.
733 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
734 LIBGL_ALWAYS_SOFTWARE: "true"
735 GALLIUM_DRIVER: "virpipe"
736 DEQP_EXPECTED_RENDERER: virgl
746 DEQP_RUNNER_OPTIONS: "--timeout 120"
754 DEQP_OPTIONS: "--deqp-log-images=disable"
755 DEQP_RUNNER_OPTIONS: "--timeout 120"
756 MESA_GLES_VERSION_OVERRIDE: "3.1"
757 MESA_GLSL_VERSION_OVERRIDE: "310"
760 # Rules for tests that should not be present in MRs or the main
761 # project's pipeline (don't block marge or report red on
762 # mesa/mesamaster) but should be present on pipelines in personal
763 # branches (so you can opt in to running the flaky test when you want
767 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
780 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
781 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
784 FLAKES_CHANNEL: "#freedreno-ci"
785 DEQP_EXPECTED_RENDERER: FD630
792 extends: arm64_a630_gles2
797 extends: arm64_a630_gles2
801 arm64_a630_gles31_options:
802 extends: arm64_a630_gles2
808 # We almost always manage to lower UBOs back to constant uploads in
809 # the test suite, so get a little testing for it here.
810 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.\*ubo" ./install/deqp-runner.sh
811 # The driver does some guessing as to whether to render using gmem
812 # or bypass, and some GLES3.1 features interact with either one.
813 # Do a little testing with gmem and bypass forced.
814 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
815 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
828 BM_KERNEL: /lava-files/Image.gz
829 BM_DTB: /lava-files/apq8016-sbc.dtb
830 BM_ROOTFS: /lava-files/rootfs-arm64
831 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
832 FLAKES_CHANNEL: "#freedreno-ci"
833 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
834 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
837 DEQP_EXPECTED_RENDERER: FD307
839 - .gitlab-ci/bare-metal/fastboot.sh
843 - google-freedreno-db410c
845 # Disabled due to flaky results
859 BM_KERNEL: /lava-files/db820c-kernel
860 BM_DTB: /lava-files/db820c.dtb
861 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
862 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
863 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
864 DEQP_EXPECTED_RENDERER: FD530
866 - google-freedreno-db820c
890 ACO_DEBUG: validateir,validatera
892 # Can only be triggered manually on personal branches because RADV is the only
893 # driver that does Vulkan testing at the moment.
894 radv_polaris10_vkcts:
900 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
910 - export RADV_FORCE_FAMILY="pitcairn"
911 - ./install/fossilize-runner.sh
912 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
914 - export RADV_FORCE_FAMILY="bonaire"
915 - ./install/fossilize-runner.sh
916 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
918 - export RADV_FORCE_FAMILY="polaris10"
919 - ./install/fossilize-runner.sh
920 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
922 - export RADV_FORCE_FAMILY="gfx900"
923 - ./install/fossilize-runner.sh
924 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
926 - export RADV_FORCE_FAMILY="gfx1010"
927 - ./install/fossilize-runner.sh
928 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
942 - ./install/tracie-runner-gl.sh
949 - ./install/tracie-runner-vk.sh
956 LIBGL_ALWAYS_SOFTWARE: "true"
957 GALLIUM_DRIVER: "llvmpipe"
958 DEVICE_NAME: "gl-vmware-llvmpipe"
960 radv-polaris10-traces:
966 DEVICE_NAME: "vk-amd-polaris10"
975 LIBGL_ALWAYS_SOFTWARE: "true"
976 GALLIUM_DRIVER: "virpipe"
977 DEVICE_NAME: "gl-virgl"
978 MESA_GLES_VERSION_OVERRIDE: "3.1"
979 MESA_GLSL_VERSION_OVERRIDE: "310"