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
49 # Otherwise, build/test jobs won't run
54 - runner_system_failure
55 # Cancel CI run if a newer commit is pushed to the same branch
60 image: debian:stable-slim
69 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
74 name: "mesa_${CI_JOB_NAME}"
78 # Watch out! Artifacts are relative to the build dir.
79 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
82 # Build the CI docker images.
84 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
85 # image doesn't exist yet, the container stage job generates it.
87 # In order to generate a new image, one should generally change the tag.
88 # While removing the image from the registry would also work, that's not
89 # recommended except for ephemeral images during development: Replacing
90 # an image after a significant amount of time might pull in newer
91 # versions of gcc/clang or other packages, which might break the build
92 # with older commits using the same tag.
94 # After merging a change resulting in generating a new image to the
95 # main repository, it's recommended to remove the image from the source
96 # repository's container registry, so that the image from the main
97 # repository's registry will be used there as well.
104 # Run pipeline by default if it was triggered by Marge Bot, is for a
105 # merge request, and any files affecting it were changed
106 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
110 # Run pipeline by default in the main project if any files affecting it were
112 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
116 # Allow triggering jobs manually for MRs or branches of forked projects if
117 # any files affecting the pipeline were changed
121 # Otherwise, container jobs won't run
124 FDO_DISTRIBUTION_VERSION: buster-slim
125 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
126 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
127 # no need to pull the whole repo to build the container image
130 # Debian 10 based x86 build image
133 - .fdo.container-build@debian
136 FDO_DISTRIBUTION_TAG: &x86_build "2020-05-08"
141 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
145 # Debian 10 based x86 test image for GL
149 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-05-08"
151 # Debian 10 based x86 test image for VK
155 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-05-08"
157 # Debian 9 based x86 build image (old LLVM)
161 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
162 FDO_DISTRIBUTION_VERSION: stretch-slim
167 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
171 # Debian 10 based ARM build image
174 - .fdo.container-build@debian@arm64v8
177 FDO_DISTRIBUTION_TAG: &arm_build "2020-05-01-netcat"
182 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
186 # Debian 10 based ARM test image
190 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
195 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
200 # Native Windows docker builds
202 # Unlike the above Linux-based builds - including MinGW/SCons builds which
203 # cross-compile for Windows - which use the freedesktop ci-templates, we
204 # cannot use the same scheme here. As Windows lacks support for
205 # Docker-in-Docker, and Podman does not run natively on Windows, we have
206 # to open-code much of the same ourselves.
208 # This is achieved by first running in a native Windows shell instance
209 # (host PowerShell) in the container stage to build and push the image,
210 # then in the build stage by executing inside Docker.
212 .windows-docker-vs2019:
214 WINDOWS_TAG: "2020-05-05-llvm"
215 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
216 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
218 windows_build_vs2019:
221 - .windows-docker-vs2019
224 GIT_STRATEGY: fetch # we do actually need the full repository though
225 timeout: 4h # LLVM takes ages
232 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
234 .use-windows_build_vs2019:
235 extends: .windows-docker-vs2019
236 image: "$WINDOWS_IMAGE"
238 - windows_build_vs2019
242 # Shared between windows and Linux
244 extends: .ci-run-policy
246 name: "mesa_${CI_JOB_NAME}"
249 - _build/meson-logs/*.txt
256 extends: .build-common
258 CCACHE_COMPILERCHECK: "content"
259 CCACHE_COMPRESS: "true"
260 CCACHE_DIR: /cache/mesa/ccache
261 # Use ccache transparently, and print stats before/after
263 - export PATH="/usr/lib/ccache:$PATH"
264 - export CCACHE_BASEDIR="$PWD"
265 - ccache --show-stats
267 - ccache --show-stats
270 extends: .build-common
279 - subprojects/packagecache
289 - .gitlab-ci/meson-build.sh
299 - .gitlab-ci/scons-build.sh
311 -D platforms=x11,drm,surfaceless
314 GALLIUM_DRIVERS: "swrast,virgl"
316 BUILDTYPE: "debugoptimized"
320 - .gitlab-ci/meson-build.sh
321 - .gitlab-ci/prepare-artifacts.sh
324 extends: .meson-build
331 -D platforms=x11,wayland,drm,surfaceless
334 -D gallium-extra-hud=true
335 -D gallium-vdpau=true
337 -D gallium-omx=bellagio
341 -D gallium-opencl=disabled
342 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
347 - .gitlab-ci/meson-build.sh
348 - .gitlab-ci/run-shader-db.sh
351 extends: .meson-build
358 -D platforms=x11,wayland,drm,surfaceless
374 -D platforms=surfaceless
378 -D gallium-vdpau=false
379 -D gallium-xvmc=false
380 -D gallium-omx=disabled
383 -D gallium-nine=false
391 VULKAN_DRIVERS: freedreno
392 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
393 BUILDTYPE: "debugoptimized"
407 - .gitlab-ci/meson-build.sh
408 - .gitlab-ci/prepare-artifacts.sh
415 VULKAN_DRIVERS: "freedreno"
419 - .gitlab-ci/meson-build.sh
420 - .gitlab-ci/prepare-artifacts.sh
422 meson-arm64-build-test:
427 VULKAN_DRIVERS: "amd"
429 - .gitlab-ci/meson-build.sh
432 extends: .meson-build
438 GALLIUM_DRIVERS: "auto"
439 VULKAN_DRIVERS: intel,amd,freedreno
441 CXX: "ccache clang++-9"
443 meson-windows-vs2019:
446 - .use-windows_build_vs2019
449 - . .\.gitlab-ci\windows\mesa_build.ps1
452 extends: .scons-build
454 SCONS_TARGET: platform=windows machine=x86_64 debug=1
455 SCONS_CHECK_COMMAND: "true"
459 extends: .meson-build
468 -D gallium-vdpau=false
469 -D gallium-xvmc=false
470 -D gallium-omx=disabled
473 -D gallium-nine=false
474 -D gallium-opencl=icd
476 - export GALLIUM_DRIVERS="r600,radeonsi"
477 - .gitlab-ci/meson-build.sh
478 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
479 - export GALLIUM_DRIVERS="i915,r600"
480 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
481 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
483 meson-clover-old-llvm:
493 -D platforms=drm,surfaceless
494 GALLIUM_DRIVERS: "i915,r600"
496 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
497 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
498 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
501 extends: .meson-build
508 -D platforms=x11,wayland,drm
512 -D gallium-vdpau=false
513 -D gallium-xvmc=false
514 -D gallium-omx=disabled
517 -D gallium-nine=false
518 -D gallium-opencl=disabled
519 -D b_sanitize=undefined
520 -D c_args=-fno-sanitize-recover=all
521 -D cpp_args=-fno-sanitize-recover=all
522 UBSAN_OPTIONS: "print_stacktrace=1"
523 VULKAN_DRIVERS: intel,amd,freedreno
525 -D vulkan-overlay-layer=true
529 extends: .meson-cross
532 VULKAN_DRIVERS: intel,amd
533 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
535 -D vulkan-overlay-layer=true
538 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
539 - .gitlab-ci/meson-build.sh
548 GALLIUM_DRIVERS: "swrast"
550 # For unknown reasons "too many" installed i386 libraries cause qemu to
551 # crash while executing llvm-config for s390x.
552 - apt-get purge -y wine32
553 - apt-get autoremove -y --purge
554 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
555 - .gitlab-ci/meson-build.sh
562 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
563 VULKAN_DRIVERS: "amd"
565 meson-mingw32-x86_64:
566 extends: .meson-build
571 GALLIUM_DRIVERS: "swrast"
575 --cross-file=.gitlab-ci/x86_64-w64-mingw32
581 GIT_STRATEGY: none # testing doesn't build anything from source
583 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
585 - tar -xf artifacts/install.tar
586 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
589 name: "mesa_${CI_JOB_NAME}"
600 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
610 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
621 name: "mesa_${CI_JOB_NAME}"
625 LIBGL_ALWAYS_SOFTWARE: 1
628 - install/piglit/run.sh
631 extends: .piglit-test
636 --process-isolation false
639 -x egl_ext_platform_device
640 -x ext_timer_query@time-elapsed
641 -x glx-multithread-clearbuffer
642 -x glx-multithread-shader-compile
645 PIGLIT_PROFILES: quick_gl
648 extends: .piglit-test
652 PIGLIT_PROFILES: glslparser
655 extends: .piglit-test
659 PIGLIT_PROFILES: quick_shader
663 DEQP_SKIPS: deqp-default-skips.txt
665 - ./install/deqp-runner.sh
682 - ./install/fossilize-runner.sh
689 # Don't use threads inside llvmpipe, we've already got all 4 cores
690 # busy with DEQP_PARALLEL.
692 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
693 LIBGL_ALWAYS_SOFTWARE: "true"
694 DEQP_EXPECTED_RENDERER: llvmpipe
704 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
705 DEQP_SKIPS: deqp-softpipe-skips.txt
706 GALLIUM_DRIVER: "softpipe"
707 DEQP_EXPECTED_RENDERER: softpipe
713 extends: softpipe-gles2
719 extends: softpipe-gles2
726 DEQP_NO_SAVE_RESULTS: 1
727 # Don't use threads inside llvmpipe, we've already got all 4 cores
728 # busy with DEQP_PARALLEL.
730 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
731 LIBGL_ALWAYS_SOFTWARE: "true"
732 GALLIUM_DRIVER: "virpipe"
733 DEQP_EXPECTED_RENDERER: virgl
743 DEQP_RUNNER_OPTIONS: "--timeout 120"
751 DEQP_OPTIONS: "--deqp-log-images=disable"
752 DEQP_RUNNER_OPTIONS: "--timeout 120"
753 MESA_GLES_VERSION_OVERRIDE: "3.1"
754 MESA_GLSL_VERSION_OVERRIDE: "310"
757 # Rules for tests that should not be present in MRs or the main
758 # project's pipeline (don't block marge or report red on
759 # mesa/mesamaster) but should be present on pipelines in personal
760 # branches (so you can opt in to running the flaky test when you want
764 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
777 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
778 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
781 FLAKES_CHANNEL: "#freedreno-ci"
782 DEQP_EXPECTED_RENDERER: FD630
789 extends: arm64_a630_gles2
794 extends: arm64_a630_gles2
798 arm64_a630_gles31_options:
799 extends: arm64_a630_gles2
805 # We almost always manage to lower UBOs back to constant uploads in
806 # the test suite, so get a little testing for it here.
807 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.\*ubo" ./install/deqp-runner.sh
808 # The driver does some guessing as to whether to render using gmem
809 # or bypass, and some GLES3.1 features interact with either one.
810 # Do a little testing with gmem and bypass forced.
811 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
812 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
825 BM_KERNEL: /lava-files/Image.gz
826 BM_DTB: /lava-files/apq8016-sbc.dtb
827 BM_ROOTFS: /lava-files/rootfs-arm64
828 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
829 FLAKES_CHANNEL: "#freedreno-ci"
830 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
831 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
834 DEQP_EXPECTED_RENDERER: FD307
836 - .gitlab-ci/bare-metal/fastboot.sh
840 - google-freedreno-db410c
842 # Disabled due to flaky results
856 BM_KERNEL: /lava-files/db820c-kernel
857 BM_DTB: /lava-files/db820c.dtb
858 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
859 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
860 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
861 DEQP_EXPECTED_RENDERER: FD530
863 - google-freedreno-db820c
887 ACO_DEBUG: validateir,validatera
889 # Can only be triggered manually on personal branches because RADV is the only
890 # driver that does Vulkan testing at the moment.
891 radv_polaris10_vkcts:
897 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
907 - export RADV_FORCE_FAMILY="pitcairn"
908 - ./install/fossilize-runner.sh
909 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
911 - export RADV_FORCE_FAMILY="bonaire"
912 - ./install/fossilize-runner.sh
913 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
915 - export RADV_FORCE_FAMILY="polaris10"
916 - ./install/fossilize-runner.sh
917 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
919 - export RADV_FORCE_FAMILY="gfx900"
920 - ./install/fossilize-runner.sh
921 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
923 - export RADV_FORCE_FAMILY="gfx1010"
924 - ./install/fossilize-runner.sh
925 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
939 - ./install/tracie-runner-gl.sh
946 - ./install/tracie-runner-vk.sh
953 LIBGL_ALWAYS_SOFTWARE: "true"
954 GALLIUM_DRIVER: "llvmpipe"
955 DEVICE_NAME: "gl-vmware-llvmpipe"
957 radv-polaris10-traces:
963 DEVICE_NAME: "vk-amd-polaris10"
972 LIBGL_ALWAYS_SOFTWARE: "true"
973 GALLIUM_DRIVER: "virpipe"
974 DEVICE_NAME: "gl-virgl"
975 MESA_GLES_VERSION_OVERRIDE: "3.1"
976 MESA_GLSL_VERSION_OVERRIDE: "310"