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 # Run pipeline by default for merge requests changing files affecting it
29 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
48 # Run pipeline by default in the main project if files affecting it were
50 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
54 # Allow triggering jobs manually on branches of forked projects
55 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
57 # Otherwise, most jobs won't run
62 - runner_system_failure
63 # Cancel CI run if a newer commit is pushed to the same branch
68 image: debian:stable-slim
77 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
82 name: "mesa_${CI_JOB_NAME}"
86 # Watch out! Artifacts are relative to the build dir.
87 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
90 # Build the CI docker images.
92 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
93 # image doesn't exist yet, the container stage job generates it.
95 # In order to generate a new image, one should generally change the tag.
96 # While removing the image from the registry would also work, that's not
97 # recommended except for ephemeral images during development: Replacing
98 # an image after a significant amount of time might pull in newer
99 # versions of gcc/clang or other packages, which might break the build
100 # with older commits using the same tag.
102 # After merging a change resulting in generating a new image to the
103 # main repository, it's recommended to remove the image from the source
104 # repository's container registry, so that the image from the main
105 # repository's registry will be used there as well.
112 FDO_DISTRIBUTION_VERSION: buster-slim
113 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
114 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
115 # no need to pull the whole repo to build the container image
118 # Debian 10 based x86 build image
121 - .fdo.container-build@debian
124 FDO_DISTRIBUTION_TAG: &x86_build "2020-03-13"
129 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
133 # Debian 10 based x86 test image for GL
137 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-03-13"
139 # Debian 10 based x86 test image for VK
143 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-03-27"
145 # Debian 9 based x86 build image (old LLVM)
149 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-09-18"
150 FDO_DISTRIBUTION_VERSION: stretch-slim
155 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
159 # Debian 10 based ARM build image
162 - .fdo.container-build@debian@arm64v8
165 FDO_DISTRIBUTION_TAG: &arm_build "2020-03-24"
170 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
174 # Debian 10 based ARM test image
178 FDO_DISTRIBUTION_TAG: &arm_test "2020-01-30"
183 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
188 # Native Windows docker builds
190 # Unlike the above Linux-based builds - including MinGW/SCons builds which
191 # cross-compile for Windows - which use the freedesktop ci-templates, we
192 # cannot use the same scheme here. As Windows lacks support for
193 # Docker-in-Docker, and Podman does not run natively on Windows, we have
194 # to open-code much of the same ourselves.
196 # This is achieved by first running in a native Windows shell instance
197 # (host PowerShell) in the container stage to build and push the image,
198 # then in the build stage by executing inside Docker.
200 .windows-docker-vs2019:
202 WINDOWS_TAG: "2020-03-24"
203 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
204 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
206 windows_build_vs2019:
209 - .windows-docker-vs2019
212 GIT_STRATEGY: fetch # we do actually need the full repository though
219 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
221 .use-windows_build_vs2019:
222 extends: .windows-docker-vs2019
223 image: "$WINDOWS_IMAGE"
225 - windows_build_vs2019
229 # Shared between windows and Linux
231 extends: .ci-run-policy
233 name: "mesa_${CI_JOB_NAME}"
236 - _build/meson-logs/*.txt
243 extends: .build-common
245 CCACHE_COMPILERCHECK: "content"
246 CCACHE_COMPRESS: "true"
247 CCACHE_DIR: /cache/mesa/ccache
248 # Use ccache transparently, and print stats before/after
250 - export PATH="/usr/lib/ccache:$PATH"
251 - export CCACHE_BASEDIR="$PWD"
252 - ccache --show-stats
254 - ccache --show-stats
257 extends: .build-common
265 - subprojects/packagecache
275 - .gitlab-ci/meson-build.sh
285 - .gitlab-ci/scons-build.sh
297 -D platforms=x11,drm,surfaceless
300 GALLIUM_DRIVERS: "swrast"
302 BUILDTYPE: "debugoptimized"
306 - .gitlab-ci/meson-build.sh
307 - .gitlab-ci/prepare-artifacts.sh
310 extends: .meson-build
317 -D platforms=x11,wayland,drm,surfaceless
320 -D gallium-extra-hud=true
321 -D gallium-vdpau=true
323 -D gallium-omx=bellagio
327 -D gallium-opencl=disabled
328 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
333 - .gitlab-ci/meson-build.sh
334 - .gitlab-ci/run-shader-db.sh
337 extends: .meson-build
344 -D platforms=x11,wayland,drm,surfaceless
360 -D platforms=surfaceless
364 -D gallium-vdpau=false
365 -D gallium-xvmc=false
366 -D gallium-omx=disabled
369 -D gallium-nine=false
377 VULKAN_DRIVERS: freedreno
378 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
379 BUILDTYPE: "debugoptimized"
393 - .gitlab-ci/meson-build.sh
394 - .gitlab-ci/prepare-artifacts.sh
401 VULKAN_DRIVERS: "freedreno"
405 - .gitlab-ci/meson-build.sh
406 - .gitlab-ci/prepare-artifacts.sh
408 meson-arm64-build-test:
413 VULKAN_DRIVERS: "amd"
415 - .gitlab-ci/meson-build.sh
418 extends: .meson-build
424 GALLIUM_DRIVERS: "auto"
425 VULKAN_DRIVERS: intel,amd,freedreno
427 CXX: "ccache clang++-9"
429 .meson-windows-vs2019:
432 - .use-windows_build_vs2019
435 - . .\.gitlab-ci\windows\mesa_build.ps1
438 extends: .scons-build
440 SCONS_TARGET: platform=windows machine=x86_64 debug=1
441 SCONS_CHECK_COMMAND: "true"
445 extends: .meson-build
454 -D gallium-vdpau=false
455 -D gallium-xvmc=false
456 -D gallium-omx=disabled
459 -D gallium-nine=false
460 -D gallium-opencl=icd
462 - export GALLIUM_DRIVERS="r600,radeonsi"
463 - .gitlab-ci/meson-build.sh
464 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
465 - export GALLIUM_DRIVERS="i915,r600"
466 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
467 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
469 meson-clover-old-llvm:
479 -D platforms=drm,surfaceless
480 GALLIUM_DRIVERS: "i915,r600"
482 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
483 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
484 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
487 extends: .meson-build
494 -D platforms=x11,wayland,drm
498 -D gallium-vdpau=false
499 -D gallium-xvmc=false
500 -D gallium-omx=disabled
503 -D gallium-nine=false
504 -D gallium-opencl=disabled
505 -D b_sanitize=undefined
506 -D c_args=-fno-sanitize-recover=all
507 -D cpp_args=-fno-sanitize-recover=all
508 UBSAN_OPTIONS: "print_stacktrace=1"
509 VULKAN_DRIVERS: intel,amd,freedreno
511 -D vulkan-overlay-layer=true
515 extends: .meson-cross
518 VULKAN_DRIVERS: intel,amd
519 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
521 -D vulkan-overlay-layer=true
524 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
525 - .gitlab-ci/meson-build.sh
534 GALLIUM_DRIVERS: "swrast"
536 # For unknown reasons "too many" installed i386 libraries cause qemu to
537 # crash while executing llvm-config for s390x.
538 - apt-get remove -y libglib2.0-0:i386
539 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
540 - .gitlab-ci/meson-build.sh
547 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
548 VULKAN_DRIVERS: "amd"
550 meson-mingw32-x86_64:
551 extends: .meson-build
556 GALLIUM_DRIVERS: "swrast"
560 --cross-file=.gitlab-ci/x86_64-w64-mingw32
566 GIT_STRATEGY: none # testing doesn't build anything from source
568 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
570 - tar -xf artifacts/install.tar
571 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
574 name: "mesa_${CI_JOB_NAME}"
585 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
595 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
606 name: "mesa_${CI_JOB_NAME}"
610 LIBGL_ALWAYS_SOFTWARE: 1
613 - install/piglit/run.sh
616 extends: .piglit-test
621 --process-isolation false
624 -x egl_ext_platform_device
625 -x ext_timer_query@time-elapsed
626 -x glx-multithread-clearbuffer
627 -x glx-multithread-shader-compile
630 PIGLIT_PROFILES: quick_gl
633 extends: .piglit-test
637 PIGLIT_PROFILES: glslparser
640 extends: .piglit-test
644 PIGLIT_PROFILES: quick_shader
648 DEQP_SKIPS: deqp-default-skips.txt
650 - ./install/deqp-runner.sh
667 - ./install/fossilize-runner.sh
674 # Don't use threads inside llvmpipe, we've already got all 4 cores
675 # busy with DEQP_PARALLEL.
677 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
678 LIBGL_ALWAYS_SOFTWARE: "true"
688 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
689 DEQP_SKIPS: deqp-softpipe-skips.txt
690 GALLIUM_DRIVER: "softpipe"
696 extends: softpipe-gles2
702 extends: softpipe-gles2
704 # Rules for tests that should not be present in MRs or the main
705 # project's pipeline (don't block marge or report red on
706 # mesa/mesamaster) but should be present on pipelines in personal
707 # branches (so you can opt in to running the flaky test when you want
711 # Never test in the main project.
712 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
714 # Never test in merge requests.
715 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
717 # Otherwise, allow testing manually for personal branches.
727 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
728 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
731 FLAKES_CHANNEL: "#freedreno-ci"
738 extends: arm64_a630_gles2
743 extends: arm64_a630_gles2
758 BM_KERNEL: /lava-files/Image.gz
759 BM_DTB: /lava-files/apq8016-sbc.dtb
760 BM_ROOTFS: /lava-files/rootfs-arm64
761 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
762 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
763 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
767 - .gitlab-ci/bare-metal/fastboot.sh
771 - google-freedreno-db410c
773 # Disabled due to flaky results
787 BM_KERNEL: /lava-files/db820c-kernel
788 BM_DTB: /lava-files/db820c.dtb
789 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
790 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
791 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
793 - google-freedreno-db820c
811 .test-radv-fossilize:
816 - ./install/fossilize-runner.sh
817 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
819 # Can only be triggered manually on personal branches because RADV is the only
820 # driver that does Vulkan testing at the moment.
821 radv_polaris10_vkcts:
827 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
837 - export RADV_FORCE_FAMILY="polaris10"
838 - ./install/fossilize-runner.sh
839 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
841 - export RADV_FORCE_FAMILY="gfx900"
842 - ./install/fossilize-runner.sh
843 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
845 - export RADV_FORCE_FAMILY="gfx1010"
846 - ./install/fossilize-runner.sh
847 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
861 - ./install/tracie-runner-gl.sh
868 - ./install/tracie-runner-vk.sh
875 LIBGL_ALWAYS_SOFTWARE: "true"
876 GALLIUM_DRIVER: "llvmpipe"
877 DEVICE_NAME: "gl-vmware-llvmpipe"
879 radv-polaris10-traces:
885 DEVICE_NAME: "vk-amd-polaris10"