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-18-jflags"
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-18-jflags"
139 # Debian 10 based x86 test image for VK
143 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-04-01-jflags"
145 # Debian 9 based x86 build image (old LLVM)
149 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
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-04-01-jflags"
170 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
174 # Debian 10 based ARM test image
178 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
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
266 - subprojects/packagecache
276 - .gitlab-ci/meson-build.sh
286 - .gitlab-ci/scons-build.sh
298 -D platforms=x11,drm,surfaceless
301 GALLIUM_DRIVERS: "swrast"
303 BUILDTYPE: "debugoptimized"
307 - .gitlab-ci/meson-build.sh
308 - .gitlab-ci/prepare-artifacts.sh
311 extends: .meson-build
318 -D platforms=x11,wayland,drm,surfaceless
321 -D gallium-extra-hud=true
322 -D gallium-vdpau=true
324 -D gallium-omx=bellagio
328 -D gallium-opencl=disabled
329 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
334 - .gitlab-ci/meson-build.sh
335 - .gitlab-ci/run-shader-db.sh
338 extends: .meson-build
345 -D platforms=x11,wayland,drm,surfaceless
361 -D platforms=surfaceless
365 -D gallium-vdpau=false
366 -D gallium-xvmc=false
367 -D gallium-omx=disabled
370 -D gallium-nine=false
378 VULKAN_DRIVERS: freedreno
379 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
380 BUILDTYPE: "debugoptimized"
394 - .gitlab-ci/meson-build.sh
395 - .gitlab-ci/prepare-artifacts.sh
402 VULKAN_DRIVERS: "freedreno"
406 - .gitlab-ci/meson-build.sh
407 - .gitlab-ci/prepare-artifacts.sh
409 meson-arm64-build-test:
414 VULKAN_DRIVERS: "amd"
416 - .gitlab-ci/meson-build.sh
419 extends: .meson-build
425 GALLIUM_DRIVERS: "auto"
426 VULKAN_DRIVERS: intel,amd,freedreno
428 CXX: "ccache clang++-9"
430 meson-windows-vs2019:
433 - .use-windows_build_vs2019
436 - . .\.gitlab-ci\windows\mesa_build.ps1
439 extends: .scons-build
441 SCONS_TARGET: platform=windows machine=x86_64 debug=1
442 SCONS_CHECK_COMMAND: "true"
446 extends: .meson-build
455 -D gallium-vdpau=false
456 -D gallium-xvmc=false
457 -D gallium-omx=disabled
460 -D gallium-nine=false
461 -D gallium-opencl=icd
463 - export GALLIUM_DRIVERS="r600,radeonsi"
464 - .gitlab-ci/meson-build.sh
465 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
466 - export GALLIUM_DRIVERS="i915,r600"
467 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
468 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
470 meson-clover-old-llvm:
480 -D platforms=drm,surfaceless
481 GALLIUM_DRIVERS: "i915,r600"
483 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
484 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
485 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
488 extends: .meson-build
495 -D platforms=x11,wayland,drm
499 -D gallium-vdpau=false
500 -D gallium-xvmc=false
501 -D gallium-omx=disabled
504 -D gallium-nine=false
505 -D gallium-opencl=disabled
506 -D b_sanitize=undefined
507 -D c_args=-fno-sanitize-recover=all
508 -D cpp_args=-fno-sanitize-recover=all
509 UBSAN_OPTIONS: "print_stacktrace=1"
510 VULKAN_DRIVERS: intel,amd,freedreno
512 -D vulkan-overlay-layer=true
516 extends: .meson-cross
519 VULKAN_DRIVERS: intel,amd
520 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
522 -D vulkan-overlay-layer=true
525 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
526 - .gitlab-ci/meson-build.sh
535 GALLIUM_DRIVERS: "swrast"
537 # For unknown reasons "too many" installed i386 libraries cause qemu to
538 # crash while executing llvm-config for s390x.
539 - apt-get remove -y libglib2.0-0:i386
540 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
541 - .gitlab-ci/meson-build.sh
548 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
549 VULKAN_DRIVERS: "amd"
551 meson-mingw32-x86_64:
552 extends: .meson-build
557 GALLIUM_DRIVERS: "swrast"
561 --cross-file=.gitlab-ci/x86_64-w64-mingw32
567 GIT_STRATEGY: none # testing doesn't build anything from source
569 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
571 - tar -xf artifacts/install.tar
572 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
575 name: "mesa_${CI_JOB_NAME}"
586 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
596 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
607 name: "mesa_${CI_JOB_NAME}"
611 LIBGL_ALWAYS_SOFTWARE: 1
614 - install/piglit/run.sh
617 extends: .piglit-test
622 --process-isolation false
625 -x egl_ext_platform_device
626 -x ext_timer_query@time-elapsed
627 -x glx-multithread-clearbuffer
628 -x glx-multithread-shader-compile
631 PIGLIT_PROFILES: quick_gl
634 extends: .piglit-test
638 PIGLIT_PROFILES: glslparser
641 extends: .piglit-test
645 PIGLIT_PROFILES: quick_shader
649 DEQP_SKIPS: deqp-default-skips.txt
651 - ./install/deqp-runner.sh
668 - ./install/fossilize-runner.sh
675 # Don't use threads inside llvmpipe, we've already got all 4 cores
676 # busy with DEQP_PARALLEL.
678 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
679 LIBGL_ALWAYS_SOFTWARE: "true"
689 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
690 DEQP_SKIPS: deqp-softpipe-skips.txt
691 GALLIUM_DRIVER: "softpipe"
697 extends: softpipe-gles2
703 extends: softpipe-gles2
705 # Rules for tests that should not be present in MRs or the main
706 # project's pipeline (don't block marge or report red on
707 # mesa/mesamaster) but should be present on pipelines in personal
708 # branches (so you can opt in to running the flaky test when you want
712 # Never test in the main project.
713 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
715 # Never test in merge requests.
716 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
718 # Otherwise, allow testing manually for personal branches.
728 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
729 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
732 FLAKES_CHANNEL: "#freedreno-ci"
739 extends: arm64_a630_gles2
744 extends: arm64_a630_gles2
759 BM_KERNEL: /lava-files/Image.gz
760 BM_DTB: /lava-files/apq8016-sbc.dtb
761 BM_ROOTFS: /lava-files/rootfs-arm64
762 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
763 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
764 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
768 - .gitlab-ci/bare-metal/fastboot.sh
772 - google-freedreno-db410c
774 # Disabled due to flaky results
788 BM_KERNEL: /lava-files/db820c-kernel
789 BM_DTB: /lava-files/db820c.dtb
790 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
791 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
792 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
794 - google-freedreno-db820c
812 .test-radv-fossilize:
817 - ./install/fossilize-runner.sh
818 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
820 # Can only be triggered manually on personal branches because RADV is the only
821 # driver that does Vulkan testing at the moment.
822 radv_polaris10_vkcts:
828 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
838 - export RADV_FORCE_FAMILY="polaris10"
839 - ./install/fossilize-runner.sh
840 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
842 - export RADV_FORCE_FAMILY="gfx900"
843 - ./install/fossilize-runner.sh
844 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
846 - export RADV_FORCE_FAMILY="gfx1010"
847 - ./install/fossilize-runner.sh
848 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
862 - ./install/tracie-runner-gl.sh
869 - ./install/tracie-runner-vk.sh
876 LIBGL_ALWAYS_SOFTWARE: "true"
877 GALLIUM_DRIVER: "llvmpipe"
878 DEVICE_NAME: "gl-vmware-llvmpipe"
880 radv-polaris10-traces:
886 DEVICE_NAME: "vk-amd-polaris10"