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'
25 # When to automatically run the CI
28 # If any files affecting the pipeline are changed, build/test jobs run
29 # automatically once all dependency jobs have passed
48 # Otherwise, build/test jobs won't run
53 - runner_system_failure
54 # Cancel CI run if a newer commit is pushed to the same branch
59 image: debian:stable-slim
68 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
73 name: "mesa_${CI_JOB_NAME}"
77 # Watch out! Artifacts are relative to the build dir.
78 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
81 # Build the CI docker images.
83 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
84 # image doesn't exist yet, the container stage job generates it.
86 # In order to generate a new image, one should generally change the tag.
87 # While removing the image from the registry would also work, that's not
88 # recommended except for ephemeral images during development: Replacing
89 # an image after a significant amount of time might pull in newer
90 # versions of gcc/clang or other packages, which might break the build
91 # with older commits using the same tag.
93 # After merging a change resulting in generating a new image to the
94 # main repository, it's recommended to remove the image from the source
95 # repository's container registry, so that the image from the main
96 # repository's registry will be used there as well.
103 # Run pipeline by default if it was triggered by Marge Bot, is for a
104 # merge request, and any files affecting it were changed
105 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
109 # Run pipeline by default in the main project if any files affecting it were
111 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
115 # Allow triggering jobs manually for MRs or branches of forked projects if
116 # any files affecting the pipeline were changed
120 # Otherwise, container jobs won't run
123 FDO_DISTRIBUTION_VERSION: buster-slim
124 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
125 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
126 # no need to pull the whole repo to build the container image
129 # Debian 10 based x86 build image
132 - .fdo.container-build@debian
135 FDO_DISTRIBUTION_TAG: &x86_build "2020-03-18-jflags"
140 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
144 # Debian 10 based x86 test image for GL
148 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-03-18-jflags"
150 # Debian 10 based x86 test image for VK
154 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-04-09"
156 # Debian 9 based x86 build image (old LLVM)
160 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
161 FDO_DISTRIBUTION_VERSION: stretch-slim
166 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
170 # Debian 10 based ARM build image
173 - .fdo.container-build@debian@arm64v8
176 FDO_DISTRIBUTION_TAG: &arm_build "2020-04-01-jflags"
181 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
185 # Debian 10 based ARM test image
189 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
194 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
199 # Native Windows docker builds
201 # Unlike the above Linux-based builds - including MinGW/SCons builds which
202 # cross-compile for Windows - which use the freedesktop ci-templates, we
203 # cannot use the same scheme here. As Windows lacks support for
204 # Docker-in-Docker, and Podman does not run natively on Windows, we have
205 # to open-code much of the same ourselves.
207 # This is achieved by first running in a native Windows shell instance
208 # (host PowerShell) in the container stage to build and push the image,
209 # then in the build stage by executing inside Docker.
211 .windows-docker-vs2019:
213 WINDOWS_TAG: "2020-03-24"
214 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
215 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
217 windows_build_vs2019:
220 - .windows-docker-vs2019
223 GIT_STRATEGY: fetch # we do actually need the full repository though
230 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
232 .use-windows_build_vs2019:
233 extends: .windows-docker-vs2019
234 image: "$WINDOWS_IMAGE"
236 - windows_build_vs2019
240 # Shared between windows and Linux
242 extends: .ci-run-policy
244 name: "mesa_${CI_JOB_NAME}"
247 - _build/meson-logs/*.txt
254 extends: .build-common
256 CCACHE_COMPILERCHECK: "content"
257 CCACHE_COMPRESS: "true"
258 CCACHE_DIR: /cache/mesa/ccache
259 # Use ccache transparently, and print stats before/after
261 - export PATH="/usr/lib/ccache:$PATH"
262 - export CCACHE_BASEDIR="$PWD"
263 - ccache --show-stats
265 - ccache --show-stats
268 extends: .build-common
277 - subprojects/packagecache
287 - .gitlab-ci/meson-build.sh
297 - .gitlab-ci/scons-build.sh
309 -D platforms=x11,drm,surfaceless
312 GALLIUM_DRIVERS: "swrast"
314 BUILDTYPE: "debugoptimized"
318 - .gitlab-ci/meson-build.sh
319 - .gitlab-ci/prepare-artifacts.sh
322 extends: .meson-build
329 -D platforms=x11,wayland,drm,surfaceless
332 -D gallium-extra-hud=true
333 -D gallium-vdpau=true
335 -D gallium-omx=bellagio
339 -D gallium-opencl=disabled
340 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
345 - .gitlab-ci/meson-build.sh
346 - .gitlab-ci/run-shader-db.sh
349 extends: .meson-build
356 -D platforms=x11,wayland,drm,surfaceless
372 -D platforms=surfaceless
376 -D gallium-vdpau=false
377 -D gallium-xvmc=false
378 -D gallium-omx=disabled
381 -D gallium-nine=false
389 VULKAN_DRIVERS: freedreno
390 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
391 BUILDTYPE: "debugoptimized"
405 - .gitlab-ci/meson-build.sh
406 - .gitlab-ci/prepare-artifacts.sh
413 VULKAN_DRIVERS: "freedreno"
417 - .gitlab-ci/meson-build.sh
418 - .gitlab-ci/prepare-artifacts.sh
420 meson-arm64-build-test:
425 VULKAN_DRIVERS: "amd"
427 - .gitlab-ci/meson-build.sh
430 extends: .meson-build
436 GALLIUM_DRIVERS: "auto"
437 VULKAN_DRIVERS: intel,amd,freedreno
439 CXX: "ccache clang++-9"
441 meson-windows-vs2019:
444 - .use-windows_build_vs2019
447 - . .\.gitlab-ci\windows\mesa_build.ps1
450 extends: .scons-build
452 SCONS_TARGET: platform=windows machine=x86_64 debug=1
453 SCONS_CHECK_COMMAND: "true"
457 extends: .meson-build
466 -D gallium-vdpau=false
467 -D gallium-xvmc=false
468 -D gallium-omx=disabled
471 -D gallium-nine=false
472 -D gallium-opencl=icd
474 - export GALLIUM_DRIVERS="r600,radeonsi"
475 - .gitlab-ci/meson-build.sh
476 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
477 - export GALLIUM_DRIVERS="i915,r600"
478 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
479 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
481 meson-clover-old-llvm:
491 -D platforms=drm,surfaceless
492 GALLIUM_DRIVERS: "i915,r600"
494 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
495 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
496 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
499 extends: .meson-build
506 -D platforms=x11,wayland,drm
510 -D gallium-vdpau=false
511 -D gallium-xvmc=false
512 -D gallium-omx=disabled
515 -D gallium-nine=false
516 -D gallium-opencl=disabled
517 -D b_sanitize=undefined
518 -D c_args=-fno-sanitize-recover=all
519 -D cpp_args=-fno-sanitize-recover=all
520 UBSAN_OPTIONS: "print_stacktrace=1"
521 VULKAN_DRIVERS: intel,amd,freedreno
523 -D vulkan-overlay-layer=true
527 extends: .meson-cross
530 VULKAN_DRIVERS: intel,amd
531 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
533 -D vulkan-overlay-layer=true
536 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
537 - .gitlab-ci/meson-build.sh
546 GALLIUM_DRIVERS: "swrast"
548 # For unknown reasons "too many" installed i386 libraries cause qemu to
549 # crash while executing llvm-config for s390x.
550 - apt-get remove -y libglib2.0-0:i386
551 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
552 - .gitlab-ci/meson-build.sh
559 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
560 VULKAN_DRIVERS: "amd"
562 meson-mingw32-x86_64:
563 extends: .meson-build
568 GALLIUM_DRIVERS: "swrast"
572 --cross-file=.gitlab-ci/x86_64-w64-mingw32
578 GIT_STRATEGY: none # testing doesn't build anything from source
580 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
582 - tar -xf artifacts/install.tar
583 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
586 name: "mesa_${CI_JOB_NAME}"
597 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
607 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
618 name: "mesa_${CI_JOB_NAME}"
622 LIBGL_ALWAYS_SOFTWARE: 1
625 - install/piglit/run.sh
628 extends: .piglit-test
633 --process-isolation false
636 -x egl_ext_platform_device
637 -x ext_timer_query@time-elapsed
638 -x glx-multithread-clearbuffer
639 -x glx-multithread-shader-compile
642 PIGLIT_PROFILES: quick_gl
645 extends: .piglit-test
649 PIGLIT_PROFILES: glslparser
652 extends: .piglit-test
656 PIGLIT_PROFILES: quick_shader
660 DEQP_SKIPS: deqp-default-skips.txt
662 - ./install/deqp-runner.sh
679 - ./install/fossilize-runner.sh
686 # Don't use threads inside llvmpipe, we've already got all 4 cores
687 # busy with DEQP_PARALLEL.
689 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
690 LIBGL_ALWAYS_SOFTWARE: "true"
700 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
701 DEQP_SKIPS: deqp-softpipe-skips.txt
702 GALLIUM_DRIVER: "softpipe"
708 extends: softpipe-gles2
714 extends: softpipe-gles2
716 # Rules for tests that should not be present in MRs or the main
717 # project's pipeline (don't block marge or report red on
718 # mesa/mesamaster) but should be present on pipelines in personal
719 # branches (so you can opt in to running the flaky test when you want
723 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
736 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
737 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
740 FLAKES_CHANNEL: "#freedreno-ci"
747 extends: arm64_a630_gles2
752 extends: arm64_a630_gles2
767 BM_KERNEL: /lava-files/Image.gz
768 BM_DTB: /lava-files/apq8016-sbc.dtb
769 BM_ROOTFS: /lava-files/rootfs-arm64
770 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
771 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
772 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
776 - .gitlab-ci/bare-metal/fastboot.sh
780 - google-freedreno-db410c
782 # Disabled due to flaky results
796 BM_KERNEL: /lava-files/db820c-kernel
797 BM_DTB: /lava-files/db820c.dtb
798 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
799 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
800 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
802 - google-freedreno-db820c
820 .test-radv-fossilize:
825 - ./install/fossilize-runner.sh
826 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
828 # Can only be triggered manually on personal branches because RADV is the only
829 # driver that does Vulkan testing at the moment.
830 radv_polaris10_vkcts:
836 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
846 - export RADV_FORCE_FAMILY="polaris10"
847 - ./install/fossilize-runner.sh
848 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
850 - export RADV_FORCE_FAMILY="gfx900"
851 - ./install/fossilize-runner.sh
852 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
854 - export RADV_FORCE_FAMILY="gfx1010"
855 - ./install/fossilize-runner.sh
856 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
870 - ./install/tracie-runner-gl.sh
877 - ./install/tracie-runner-vk.sh
884 LIBGL_ALWAYS_SOFTWARE: "true"
885 GALLIUM_DRIVER: "llvmpipe"
886 DEVICE_NAME: "gl-vmware-llvmpipe"
888 radv-polaris10-traces:
894 DEVICE_NAME: "vk-amd-polaris10"