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'
27 # When to automatically run the CI
30 # If any files affecting the pipeline are changed, build/test jobs run
31 # automatically once all dependency jobs have passed
35 - bin/install_megadrivers.py
36 - bin/meson_get_version.py
37 - bin/symbols-check.py
53 # Otherwise, build/test jobs won't run
58 - runner_system_failure
59 # Cancel CI run if a newer commit is pushed to the same branch
64 image: debian:stable-slim
73 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
78 name: "mesa_${CI_JOB_NAME}"
82 # Watch out! Artifacts are relative to the build dir.
83 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
86 # Build the CI docker images.
88 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
89 # image doesn't exist yet, the container stage job generates it.
91 # In order to generate a new image, one should generally change the tag.
92 # While removing the image from the registry would also work, that's not
93 # recommended except for ephemeral images during development: Replacing
94 # an image after a significant amount of time might pull in newer
95 # versions of gcc/clang or other packages, which might break the build
96 # with older commits using the same tag.
98 # After merging a change resulting in generating a new image to the
99 # main repository, it's recommended to remove the image from the source
100 # repository's container registry, so that the image from the main
101 # repository's registry will be used there as well.
108 # Run pipeline by default if it was triggered by Marge Bot, is for a
109 # merge request, and any files affecting it were changed
110 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
114 # Run pipeline by default in the main project if any files affecting it were
116 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
120 # Allow triggering jobs manually for MRs or branches of forked projects if
121 # any files affecting the pipeline were changed
125 # Otherwise, container jobs won't run
128 FDO_DISTRIBUTION_VERSION: buster-slim
129 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
130 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
131 # no need to pull the whole repo to build the container image
134 # Debian 10 based x86 build image
137 - .fdo.container-build@debian
140 FDO_DISTRIBUTION_TAG: &x86_build "2020-05-18-baremetal-2"
145 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
149 # Debian 10 based x86 test image base
153 FDO_DISTRIBUTION_TAG: &x86_test-base "2020-05-26"
161 BASE_TAG: *x86_test-base
162 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_test-base:$BASE_TAG"
166 # Debian 10 based x86 test image for GL
168 extends: .use-x86_test-base
170 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-05-26"
172 # Debian 10 based x86 test image for VK
174 extends: .use-x86_test-base
176 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-05-26"
178 # Debian 9 based x86 build image (old LLVM)
182 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
183 FDO_DISTRIBUTION_VERSION: stretch-slim
188 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
192 # Debian 10 based ARM build image
195 - .fdo.container-build@debian@arm64v8
198 FDO_DISTRIBUTION_TAG: &arm_build "2020-05-28-cheza"
203 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
207 # x86 image with ARM rootfses for baremetal testing.
211 FDO_DISTRIBUTION_TAG: &x86_cross_arm_test "2020-05-28-cheza"
213 .use-x86_cross_arm_test:
215 TAG: *x86_cross_arm_test
216 image: "$CI_REGISTRY_IMAGE/debian/x86_cross_arm_test:$TAG"
221 # Debian 10 based ARM test image
225 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
230 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
236 # Native Windows docker builds
238 # Unlike the above Linux-based builds - including MinGW/SCons builds which
239 # cross-compile for Windows - which use the freedesktop ci-templates, we
240 # cannot use the same scheme here. As Windows lacks support for
241 # Docker-in-Docker, and Podman does not run natively on Windows, we have
242 # to open-code much of the same ourselves.
244 # This is achieved by first running in a native Windows shell instance
245 # (host PowerShell) in the container stage to build and push the image,
246 # then in the build stage by executing inside Docker.
248 .windows-docker-vs2019:
250 WINDOWS_TAG: "2020-05-05-llvm"
251 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
252 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
254 windows_build_vs2019:
257 - .windows-docker-vs2019
260 GIT_STRATEGY: fetch # we do actually need the full repository though
261 timeout: 4h # LLVM takes ages
268 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
270 .use-windows_build_vs2019:
271 extends: .windows-docker-vs2019
272 image: "$WINDOWS_IMAGE"
274 - windows_build_vs2019
278 # Shared between windows and Linux
280 extends: .ci-run-policy
282 name: "mesa_${CI_JOB_NAME}"
285 - _build/meson-logs/*.txt
292 extends: .build-common
294 CCACHE_COMPILERCHECK: "content"
295 CCACHE_COMPRESS: "true"
296 CCACHE_DIR: /cache/mesa/ccache
297 # Use ccache transparently, and print stats before/after
299 - export PATH="/usr/lib/ccache:$PATH"
300 - export CCACHE_BASEDIR="$PWD"
301 - ccache --show-stats
303 - ccache --show-stats
306 extends: .build-common
315 - subprojects/packagecache
325 - .gitlab-ci/meson-build.sh
335 - .gitlab-ci/scons-build.sh
347 -D platforms=x11,drm,surfaceless
350 GALLIUM_DRIVERS: "swrast,virgl"
352 BUILDTYPE: "debugoptimized"
356 - .gitlab-ci/meson-build.sh
357 - .gitlab-ci/prepare-artifacts.sh
360 extends: .meson-build
367 -D platforms=x11,wayland,drm,surfaceless
370 -D gallium-extra-hud=true
371 -D gallium-vdpau=true
373 -D gallium-omx=bellagio
377 -D gallium-opencl=disabled
378 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
383 - .gitlab-ci/meson-build.sh
384 - .gitlab-ci/run-shader-db.sh
387 extends: .meson-build
394 -D platforms=x11,wayland,drm,surfaceless
410 -D platforms=surfaceless
414 -D gallium-vdpau=false
415 -D gallium-xvmc=false
416 -D gallium-omx=disabled
419 -D gallium-nine=false
427 VULKAN_DRIVERS: freedreno
428 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
429 BUILDTYPE: "debugoptimized"
443 - .gitlab-ci/meson-build.sh
444 - .gitlab-ci/prepare-artifacts.sh
451 VULKAN_DRIVERS: "freedreno"
455 - .gitlab-ci/meson-build.sh
456 - .gitlab-ci/prepare-artifacts.sh
458 meson-arm64-build-test:
463 VULKAN_DRIVERS: "amd"
465 - .gitlab-ci/meson-build.sh
468 extends: .meson-build
474 GALLIUM_DRIVERS: "auto"
475 VULKAN_DRIVERS: intel,amd,freedreno
477 CXX: "ccache clang++-9"
479 meson-windows-vs2019:
482 - .use-windows_build_vs2019
485 - . .\.gitlab-ci\windows\mesa_build.ps1
488 extends: .scons-build
490 SCONS_TARGET: platform=windows machine=x86_64 debug=1
491 SCONS_CHECK_COMMAND: "true"
495 extends: .meson-build
504 -D gallium-vdpau=false
505 -D gallium-xvmc=false
506 -D gallium-omx=disabled
509 -D gallium-nine=false
510 -D gallium-opencl=icd
512 - export GALLIUM_DRIVERS="r600,radeonsi"
513 - .gitlab-ci/meson-build.sh
514 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
515 - export GALLIUM_DRIVERS="i915,r600"
516 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
517 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
519 meson-clover-old-llvm:
529 -D platforms=drm,surfaceless
530 GALLIUM_DRIVERS: "i915,r600"
532 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
533 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
534 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
537 extends: .meson-build
544 -D platforms=x11,wayland,drm
548 -D gallium-vdpau=false
549 -D gallium-xvmc=false
550 -D gallium-omx=disabled
553 -D gallium-nine=false
554 -D gallium-opencl=disabled
555 -D b_sanitize=undefined
556 -D c_args=-fno-sanitize-recover=all
557 -D cpp_args=-fno-sanitize-recover=all
558 UBSAN_OPTIONS: "print_stacktrace=1"
559 VULKAN_DRIVERS: intel,amd,freedreno
561 -D vulkan-overlay-layer=true
565 extends: .meson-cross
568 VULKAN_DRIVERS: intel,amd
569 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
571 -D vulkan-overlay-layer=true
574 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
575 - .gitlab-ci/meson-build.sh
586 GALLIUM_DRIVERS: "swrast"
588 # For unknown reasons "too many" installed i386 libraries cause qemu to
589 # crash while executing llvm-config for s390x.
590 - apt-get purge -y wine32
591 - apt-get autoremove -y --purge
592 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
593 - .gitlab-ci/meson-build.sh
601 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
602 VULKAN_DRIVERS: "amd"
604 meson-mingw32-x86_64:
605 extends: .meson-build
610 GALLIUM_DRIVERS: "swrast"
614 --cross-file=.gitlab-ci/x86_64-w64-mingw32
620 GIT_STRATEGY: none # testing doesn't build anything from source
622 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
624 - tar -xf artifacts/install.tar
625 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
628 name: "mesa_${CI_JOB_NAME}"
639 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
651 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
664 name: "mesa_${CI_JOB_NAME}"
668 LIBGL_ALWAYS_SOFTWARE: 1
671 - install/piglit/run.sh
674 extends: .piglit-test
679 --process-isolation false
682 -x egl_ext_platform_device
683 -x ext_timer_query@time-elapsed
684 -x glx-multithread-clearbuffer
685 -x glx-multithread-shader-compile
688 PIGLIT_PROFILES: quick_gl
691 extends: .piglit-test
695 PIGLIT_PROFILES: glslparser
698 extends: .piglit-test
702 PIGLIT_PROFILES: quick_shader
706 DEQP_SKIPS: deqp-default-skips.txt
708 - ./install/deqp-runner.sh
725 - ./install/fossilize-runner.sh
732 # Don't use threads inside llvmpipe, we've already got all 4 cores
733 # busy with DEQP_PARALLEL.
735 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
736 LIBGL_ALWAYS_SOFTWARE: "true"
737 DEQP_EXPECTED_RENDERER: llvmpipe
747 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
748 DEQP_SKIPS: deqp-softpipe-skips.txt
749 GALLIUM_DRIVER: "softpipe"
750 DEQP_EXPECTED_RENDERER: softpipe
756 extends: softpipe-gles2
762 extends: softpipe-gles2
769 DEQP_NO_SAVE_RESULTS: 1
770 # Don't use threads inside llvmpipe, we've already got all 4 cores
771 # busy with DEQP_PARALLEL.
773 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
774 LIBGL_ALWAYS_SOFTWARE: "true"
775 GALLIUM_DRIVER: "virpipe"
776 DEQP_EXPECTED_RENDERER: virgl
786 DEQP_RUNNER_OPTIONS: "--timeout 120"
794 DEQP_OPTIONS: "--deqp-log-images=disable"
795 DEQP_RUNNER_OPTIONS: "--timeout 120"
796 MESA_GLES_VERSION_OVERRIDE: "3.1"
797 MESA_GLSL_VERSION_OVERRIDE: "310"
800 # Rules for tests that should not be present in MRs or the main
801 # project's pipeline (don't block marge or report red on
802 # mesa/mesamaster) but should be present on pipelines in personal
803 # branches (so you can opt in to running the flaky test when you want
807 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
820 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
821 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
824 FLAKES_CHANNEL: "#freedreno-ci"
825 DEQP_EXPECTED_RENDERER: FD630
832 extends: arm64_a630_gles2
837 extends: arm64_a630_gles2
841 arm64_a630_gles31_options:
842 extends: arm64_a630_gles2
848 # We almost always manage to lower UBOs back to constant uploads in
849 # the test suite, so get a little testing for it here.
850 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" DEQP_EXPECTED_FAILS=deqp-freedreno-a630-noubo-fails.txt CI_NODE_INDEX= ./install/deqp-runner.sh
851 # The driver does some guessing as to whether to render using gmem
852 # or bypass, and some GLES3.1 features interact with either one.
853 # Do a little testing with gmem and bypass forced.
854 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
855 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
856 # Check that we don't get obvious nir validation failures (though it's too expensive to run for the full CTS)
857 - DEQP_RUN_SUFFIX=-validate NIR_VALIDATE=1 ./install/deqp-runner.sh
867 - .use-x86_cross_arm_test
870 BM_KERNEL: /lava-files/Image.gz
871 BM_DTB: /lava-files/apq8016-sbc.dtb
872 BM_ROOTFS: /lava-files/rootfs-arm64
873 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
874 FLAKES_CHANNEL: "#freedreno-ci"
875 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
876 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
879 DEQP_EXPECTED_RENDERER: FD307
880 # Since we can't get artifacts back yet, skip making them.
881 DEQP_NO_SAVE_RESULTS: 1
882 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
884 - .gitlab-ci/bare-metal/fastboot.sh
890 - google-freedreno-db410c
892 # Fractional run, single threaded, due to flaky results
903 # Fractional runs with debug options. Note that since we're not
904 # hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
905 arm64_a306_gles3_options:
906 extends: arm64_a306_gles2
910 # Check that the non-constbuf UBO case works.
911 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" .gitlab-ci/bare-metal/fastboot.sh
917 BM_KERNEL: /lava-files/db820c-kernel
918 BM_DTB: /lava-files/db820c.dtb
919 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
920 # current upstream kernel.
921 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
922 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
923 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
924 DEQP_EXPECTED_RENDERER: FD530
927 - google-freedreno-db820c
953 ACO_DEBUG: validateir,validatera
955 # Can only be triggered manually on personal branches because RADV is the only
956 # driver that does Vulkan testing at the moment.
957 radv_polaris10_vkcts:
963 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
973 - export RADV_FORCE_FAMILY="pitcairn"
974 - ./install/fossilize-runner.sh
975 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
977 - export RADV_FORCE_FAMILY="bonaire"
978 - ./install/fossilize-runner.sh
979 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
981 - export RADV_FORCE_FAMILY="polaris10"
982 - ./install/fossilize-runner.sh
983 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
985 - export RADV_FORCE_FAMILY="gfx900"
986 - ./install/fossilize-runner.sh
987 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
989 - export RADV_FORCE_FAMILY="gfx1010"
990 - ./install/fossilize-runner.sh
991 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1005 - ./install/tracie-runner-gl.sh
1012 - ./install/tracie-runner-vk.sh
1019 LIBGL_ALWAYS_SOFTWARE: "true"
1020 GALLIUM_DRIVER: "llvmpipe"
1021 DEVICE_NAME: "gl-vmware-llvmpipe"
1023 radv-polaris10-traces:
1029 DEVICE_NAME: "vk-amd-polaris10"
1038 LIBGL_ALWAYS_SOFTWARE: "true"
1039 GALLIUM_DRIVER: "virpipe"
1040 DEVICE_NAME: "gl-virgl"
1041 MESA_GLES_VERSION_OVERRIDE: "3.1"
1042 MESA_GLSL_VERSION_OVERRIDE: "310"