2 FDO_UPSTREAM_REPO: mesa/mesa
5 - project: 'freedesktop/ci-templates'
6 ref: a1699326519fd28526485ce93464e33423bac564
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: $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-ifnot-exists@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-23"
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-ifnot-exists@debian@arm64v8
165 FDO_DISTRIBUTION_TAG: &arm_build "2020-03-17-db820c"
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"
191 # Shared between windows and Linux
193 extends: .ci-run-policy
195 name: "mesa_${CI_JOB_NAME}"
198 - _build/meson-logs/*.txt
205 extends: .build-common
207 CCACHE_COMPILERCHECK: "content"
208 CCACHE_COMPRESS: "true"
209 CCACHE_DIR: /cache/mesa/ccache
210 # Use ccache transparently, and print stats before/after
212 - export PATH="/usr/lib/ccache:$PATH"
213 - export CCACHE_BASEDIR="$PWD"
214 - ccache --show-stats
216 - ccache --show-stats
219 extends: .build-common
225 - subprojects/packagecache
235 - .gitlab-ci/meson-build.sh
245 - .gitlab-ci/scons-build.sh
257 -D platforms=x11,drm,surfaceless
260 GALLIUM_DRIVERS: "swrast"
262 BUILDTYPE: "debugoptimized"
266 - .gitlab-ci/meson-build.sh
267 - .gitlab-ci/prepare-artifacts.sh
270 extends: .meson-build
277 -D platforms=x11,wayland,drm,surfaceless
280 -D gallium-extra-hud=true
281 -D gallium-vdpau=true
283 -D gallium-omx=bellagio
287 -D gallium-opencl=disabled
288 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
293 - .gitlab-ci/meson-build.sh
294 - .gitlab-ci/run-shader-db.sh
297 extends: .meson-build
304 -D platforms=x11,wayland,drm,surfaceless
320 -D platforms=surfaceless
324 -D gallium-vdpau=false
325 -D gallium-xvmc=false
326 -D gallium-omx=disabled
329 -D gallium-nine=false
337 VULKAN_DRIVERS: freedreno
338 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
339 BUILDTYPE: "debugoptimized"
353 - .gitlab-ci/meson-build.sh
354 - .gitlab-ci/prepare-artifacts.sh
361 VULKAN_DRIVERS: "freedreno"
365 - .gitlab-ci/meson-build.sh
366 - .gitlab-ci/prepare-artifacts.sh
368 meson-arm64-build-test:
373 VULKAN_DRIVERS: "amd"
375 - .gitlab-ci/meson-build.sh
378 extends: .meson-build
384 GALLIUM_DRIVERS: "auto"
385 VULKAN_DRIVERS: intel,amd,freedreno
387 CXX: "ccache clang++-9"
395 - $ENV:VERSION = "2019\Community"
397 - cmd /C .gitlab-ci\meson-build.bat
400 extends: .scons-build
402 SCONS_TARGET: platform=windows machine=x86_64
403 SCONS_CHECK_COMMAND: "true"
406 extends: .meson-build
415 -D gallium-vdpau=false
416 -D gallium-xvmc=false
417 -D gallium-omx=disabled
420 -D gallium-nine=false
421 -D gallium-opencl=icd
423 - export GALLIUM_DRIVERS="r600,radeonsi"
424 - .gitlab-ci/meson-build.sh
425 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
426 - export GALLIUM_DRIVERS="i915,r600"
427 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
428 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
430 meson-clover-old-llvm:
440 -D platforms=drm,surfaceless
441 GALLIUM_DRIVERS: "i915,r600"
443 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
444 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
445 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
448 extends: .meson-build
455 -D platforms=x11,wayland,drm
459 -D gallium-vdpau=false
460 -D gallium-xvmc=false
461 -D gallium-omx=disabled
464 -D gallium-nine=false
465 -D gallium-opencl=disabled
466 -D b_sanitize=undefined
467 -D c_args=-fno-sanitize-recover=all
468 -D cpp_args=-fno-sanitize-recover=all
469 UBSAN_OPTIONS: "print_stacktrace=1"
470 VULKAN_DRIVERS: intel,amd,freedreno
472 -D vulkan-overlay-layer=true
476 extends: .meson-cross
479 VULKAN_DRIVERS: intel,amd
480 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
482 -D vulkan-overlay-layer=true
485 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
486 - .gitlab-ci/meson-build.sh
495 GALLIUM_DRIVERS: "swrast"
497 # For unknown reasons "too many" installed i386 libraries cause qemu to
498 # crash while executing llvm-config for s390x.
499 - apt-get remove -y libglib2.0-0:i386
500 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
501 - .gitlab-ci/meson-build.sh
508 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
509 VULKAN_DRIVERS: "amd"
511 meson-mingw32-x86_64:
512 extends: .meson-build
517 GALLIUM_DRIVERS: "swrast"
521 --cross-file=.gitlab-ci/x86_64-w64-mingw32
524 extends: .scons-build
526 SCONS_TARGET: "llvm=1 swr=1"
527 SCONS_CHECK_COMMAND: "scons force_scons=1 ${SCONS_TARGET} check"
529 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
530 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
537 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
543 GIT_STRATEGY: none # testing doesn't build anything from source
545 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
547 - tar -xf artifacts/install.tar
548 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
551 name: "mesa_${CI_JOB_NAME}"
562 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
572 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
583 name: "mesa_${CI_JOB_NAME}"
587 LIBGL_ALWAYS_SOFTWARE: 1
590 - install/piglit/run.sh
593 extends: .piglit-test
598 --process-isolation false
601 -x egl_ext_platform_device
602 -x ext_timer_query@time-elapsed
603 -x glx-multithread-clearbuffer
604 -x glx-multithread-shader-compile
607 PIGLIT_PROFILES: quick_gl
610 extends: .piglit-test
614 PIGLIT_PROFILES: glslparser
617 extends: .piglit-test
621 PIGLIT_PROFILES: quick_shader
625 DEQP_SKIPS: deqp-default-skips.txt
627 - ./install/deqp-runner.sh
644 - ./install/fossilize-runner.sh
651 # Don't use threads inside llvmpipe, we've already got all 4 cores
652 # busy with DEQP_PARALLEL.
654 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
655 LIBGL_ALWAYS_SOFTWARE: "true"
665 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
666 DEQP_SKIPS: deqp-softpipe-skips.txt
667 GALLIUM_DRIVER: "softpipe"
673 extends: softpipe-gles2
679 extends: softpipe-gles2
681 # Rules for tests that should not be present in MRs or the main
682 # project's pipeline (don't block marge or report red on
683 # mesa/mesamaster) but should be present on pipelines in personal
684 # branches (so you can opt in to running the flaky test when you want
688 # Never test in the main project.
689 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
691 # Never test in merge requests.
692 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
694 # Otherwise, allow testing manually for personal branches.
704 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
705 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
708 FLAKES_CHANNEL: "#freedreno-ci"
715 extends: arm64_a630_gles2
720 extends: arm64_a630_gles2
735 BM_KERNEL: /lava-files/Image.gz
736 BM_DTB: /lava-files/apq8016-sbc.dtb
737 BM_ROOTFS: /lava-files/rootfs-arm64
738 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
739 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
740 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
744 - .gitlab-ci/bare-metal/fastboot.sh
748 - google-freedreno-db410c
750 # Disabled due to flaky results
764 BM_KERNEL: /lava-files/db820c-kernel
765 BM_DTB: /lava-files/db820c.dtb
766 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
767 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
768 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
770 - google-freedreno-db820c
788 .test-radv-fossilize:
793 - ./install/fossilize-runner.sh
794 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
796 # Can only be triggered manually on personal branches because RADV is the only
797 # driver that does Vulkan testing at the moment.
798 radv_polaris10_vkcts:
804 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
814 - export RADV_FORCE_FAMILY="polaris10"
815 - ./install/fossilize-runner.sh
816 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
818 - export RADV_FORCE_FAMILY="gfx900"
819 - ./install/fossilize-runner.sh
820 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
822 - export RADV_FORCE_FAMILY="gfx1010"
823 - ./install/fossilize-runner.sh
824 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
838 - ./install/tracie-runner-gl.sh
845 - ./install/tracie-runner-vk.sh
852 LIBGL_ALWAYS_SOFTWARE: "true"
853 GALLIUM_DRIVER: "llvmpipe"
854 DEVICE_NAME: "gl-vmware-llvmpipe"
856 radv-polaris10-traces:
862 DEVICE_NAME: "vk-amd-polaris10"