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 base
137 - .fdo.container-build@debian
140 FDO_DISTRIBUTION_TAG: &x86_build-base "2020-06-02"
148 BASE_TAG: *x86_build-base
149 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_build-base:$BASE_TAG"
153 # Debian 10 based x86 main build image
156 - .use-x86_build-base
158 FDO_DISTRIBUTION_TAG: &x86_build "2020-06-02"
163 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
168 # Debian 10 based i386 cross-build image
171 - .use-x86_build-base
173 FDO_DISTRIBUTION_TAG: &i386_build "2020-06-02"
178 image: "$CI_REGISTRY_IMAGE/debian/i386_build:$TAG"
183 # Debian 10 based ppc64el cross-build image
186 - .use-x86_build-base
188 FDO_DISTRIBUTION_TAG: &ppc64el_build "2020-06-02"
193 image: "$CI_REGISTRY_IMAGE/debian/ppc64el_build:$TAG"
198 # Debian 10 based s390x cross-build image
201 - .use-x86_build-base
203 FDO_DISTRIBUTION_TAG: &s390x_build "2020-06-02"
208 image: "$CI_REGISTRY_IMAGE/debian/s390x_build:$TAG"
213 # Debian 10 based x86 test image base
215 extends: x86_build-base
217 FDO_DISTRIBUTION_TAG: &x86_test-base "2020-06-02"
225 BASE_TAG: *x86_test-base
226 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_test-base:$BASE_TAG"
230 # Debian 10 based x86 test image for GL
232 extends: .use-x86_test-base
234 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-06-04"
236 # Debian 10 based x86 test image for VK
238 extends: .use-x86_test-base
240 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-06-02"
242 # Debian 9 based x86 build image (old LLVM)
244 extends: x86_build-base
246 FDO_DISTRIBUTION_TAG: &x86_build_old "2020-06-02"
247 FDO_DISTRIBUTION_VERSION: stretch-slim
252 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
256 # Debian 10 based ARM build image
259 - .fdo.container-build@debian@arm64v8
262 FDO_DISTRIBUTION_TAG: &arm_build "2020-06-01"
267 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
271 # x86 image with ARM rootfses for baremetal testing.
273 extends: x86_build-base
275 FDO_DISTRIBUTION_TAG: &arm_test "2020-06-01"
280 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
284 # Native Windows docker builds
286 # Unlike the above Linux-based builds - including MinGW/SCons builds which
287 # cross-compile for Windows - which use the freedesktop ci-templates, we
288 # cannot use the same scheme here. As Windows lacks support for
289 # Docker-in-Docker, and Podman does not run natively on Windows, we have
290 # to open-code much of the same ourselves.
292 # This is achieved by first running in a native Windows shell instance
293 # (host PowerShell) in the container stage to build and push the image,
294 # then in the build stage by executing inside Docker.
296 .windows-docker-vs2019:
298 WINDOWS_TAG: "2020-05-05-llvm"
299 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
300 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
302 windows_build_vs2019:
305 - .windows-docker-vs2019
308 GIT_STRATEGY: fetch # we do actually need the full repository though
309 timeout: 4h # LLVM takes ages
316 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
318 .use-windows_build_vs2019:
319 extends: .windows-docker-vs2019
320 image: "$WINDOWS_IMAGE"
322 - windows_build_vs2019
326 # Shared between windows and Linux
328 extends: .ci-run-policy
330 name: "mesa_${CI_JOB_NAME}"
333 - _build/meson-logs/*.txt
340 extends: .build-common
342 CCACHE_COMPILERCHECK: "content"
343 CCACHE_COMPRESS: "true"
344 CCACHE_DIR: /cache/mesa/ccache
345 # Use ccache transparently, and print stats before/after
347 - export PATH="/usr/lib/ccache:$PATH"
348 - export CCACHE_BASEDIR="$PWD"
349 - ccache --show-stats
351 - ccache --show-stats
354 extends: .build-common
363 - subprojects/packagecache
373 - .gitlab-ci/meson-build.sh
383 - .gitlab-ci/scons-build.sh
395 -D platforms=x11,drm,surfaceless
398 GALLIUM_DRIVERS: "swrast,virgl"
400 BUILDTYPE: "debugoptimized"
404 - .gitlab-ci/meson-build.sh
405 - .gitlab-ci/prepare-artifacts.sh
408 extends: .meson-build
415 -D platforms=x11,wayland,drm,surfaceless
418 -D gallium-extra-hud=true
419 -D gallium-vdpau=enabled
420 -D gallium-xvmc=enabled
421 -D gallium-omx=bellagio
422 -D gallium-va=enabled
423 -D gallium-xa=enabled
425 -D gallium-opencl=disabled
426 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
431 - .gitlab-ci/meson-build.sh
432 - .gitlab-ci/run-shader-db.sh
435 extends: .meson-build
442 -D platforms=x11,wayland,drm,surfaceless
458 -D platforms=surfaceless
462 -D gallium-vdpau=disabled
463 -D gallium-xvmc=disabled
464 -D gallium-omx=disabled
465 -D gallium-va=disabled
466 -D gallium-xa=disabled
467 -D gallium-nine=false
475 VULKAN_DRIVERS: freedreno
476 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
477 BUILDTYPE: "debugoptimized"
491 - .gitlab-ci/meson-build.sh
492 - .gitlab-ci/prepare-artifacts.sh
499 VULKAN_DRIVERS: "freedreno"
503 - .gitlab-ci/meson-build.sh
504 - .gitlab-ci/prepare-artifacts.sh
506 meson-arm64-build-test:
511 VULKAN_DRIVERS: "amd"
513 - .gitlab-ci/meson-build.sh
516 extends: .meson-build
522 GALLIUM_DRIVERS: "auto"
523 VULKAN_DRIVERS: intel,amd,freedreno
525 CXX: "ccache clang++-9"
527 meson-windows-vs2019:
530 - .use-windows_build_vs2019
533 - . .\.gitlab-ci\windows\mesa_build.ps1
536 extends: .scons-build
538 SCONS_TARGET: platform=windows machine=x86_64 debug=1
539 SCONS_CHECK_COMMAND: "true"
543 extends: .meson-build
550 GALLIUM_DRIVERS: "r600,radeonsi"
553 -D gallium-vdpau=disabled
554 -D gallium-xvmc=disabled
555 -D gallium-omx=disabled
556 -D gallium-va=disabled
557 -D gallium-xa=disabled
558 -D gallium-nine=false
559 -D gallium-opencl=icd
561 - .gitlab-ci/meson-build.sh
562 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
564 meson-clover-old-llvm:
574 -D platforms=drm,surfaceless
575 GALLIUM_DRIVERS: "i915,r600"
577 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
578 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
579 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
580 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
581 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
584 extends: .meson-build
591 -D platforms=x11,wayland,drm
595 -D gallium-vdpau=disabled
596 -D gallium-xvmc=disabled
597 -D gallium-omx=disabled
598 -D gallium-va=disabled
599 -D gallium-xa=disabled
600 -D gallium-nine=false
601 -D gallium-opencl=disabled
602 -D b_sanitize=undefined
603 -D c_args=-fno-sanitize-recover=all
604 -D cpp_args=-fno-sanitize-recover=all
605 UBSAN_OPTIONS: "print_stacktrace=1"
606 VULKAN_DRIVERS: intel,amd,freedreno
608 -D vulkan-overlay-layer=true
617 VULKAN_DRIVERS: intel,amd
618 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
620 -D vulkan-overlay-layer=true
633 GALLIUM_DRIVERS: "swrast"
642 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
643 VULKAN_DRIVERS: "amd"
645 meson-mingw32-x86_64:
646 extends: .meson-build
651 GALLIUM_DRIVERS: "swrast"
655 --cross-file=.gitlab-ci/x86_64-w64-mingw32
661 GIT_STRATEGY: none # testing doesn't build anything from source
663 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
665 - tar -xf artifacts/install.tar
666 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
669 name: "mesa_${CI_JOB_NAME}"
680 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
693 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
707 name: "mesa_${CI_JOB_NAME}"
711 LIBGL_ALWAYS_SOFTWARE: 1
714 - install/piglit/run.sh
717 extends: .piglit-test
722 --process-isolation false
725 -x egl_ext_platform_device
726 -x ext_timer_query@time-elapsed
727 -x glx-multithread-clearbuffer
728 -x glx-multithread-shader-compile
731 PIGLIT_PROFILES: quick_gl
734 extends: .piglit-test
738 PIGLIT_PROFILES: glslparser
741 extends: .piglit-test
745 PIGLIT_PROFILES: quick_shader
749 DEQP_SKIPS: deqp-default-skips.txt
751 - ./install/deqp-runner.sh
768 - ./install/fossilize-runner.sh
775 # Don't use threads inside llvmpipe, we've already got all 4 cores
776 # busy with DEQP_PARALLEL.
778 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
779 LIBGL_ALWAYS_SOFTWARE: "true"
780 DEQP_EXPECTED_RENDERER: llvmpipe
790 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
791 DEQP_SKIPS: deqp-softpipe-skips.txt
792 GALLIUM_DRIVER: "softpipe"
793 DEQP_EXPECTED_RENDERER: softpipe
799 extends: softpipe-gles2
805 extends: softpipe-gles2
812 DEQP_NO_SAVE_RESULTS: 1
813 # Don't use threads inside llvmpipe, we've already got all 4 cores
814 # busy with DEQP_PARALLEL.
816 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
817 LIBGL_ALWAYS_SOFTWARE: "true"
818 GALLIUM_DRIVER: "virpipe"
819 DEQP_EXPECTED_RENDERER: virgl
829 DEQP_RUNNER_OPTIONS: "--timeout 120"
837 DEQP_OPTIONS: "--deqp-log-images=disable"
838 DEQP_RUNNER_OPTIONS: "--timeout 120"
839 MESA_GLES_VERSION_OVERRIDE: "3.1"
840 MESA_GLSL_VERSION_OVERRIDE: "310"
841 MESA_EXTENSION_OVERRIDE: "-GL_OES_tessellation_shader"
844 # Rules for tests that should not be present in MRs or the main
845 # project's pipeline (don't block marge or report red on
846 # mesa/mesamaster) but should be present on pipelines in personal
847 # branches (so you can opt in to running the flaky test when you want
851 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
861 BM_KERNEL: /lava-files/cheza-kernel
862 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 root=/dev/nfs rw nfsrootdebug nfsroot=,tcp,nfsvers=4.2 init=/init"
863 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
864 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
866 DEQP_EXPECTED_RENDERER: FD630
867 DEQP_NO_SAVE_RESULTS: ""
869 - google-freedreno-cheza
871 - .gitlab-ci/bare-metal/cros-servo.sh
874 extends: arm64_a630_gles2
879 extends: arm64_a630_gles2
883 # We almost always manage to lower UBOs back to constant uploads in
884 # the test suite, so get a little testing for it here.
886 extends: arm64_a630_gles31
889 IR3_SHADER_DEBUG: nouboopt
890 DEQP_CASELIST_FILTER: "functional.*ubo"
892 # The driver does some guessing as to whether to render using gmem
893 # or bypass, and some GLES3.1 features interact with either one.
894 # Do a little testing with gmem and bypass forced.
896 extends: arm64_a630_gles31
900 FD_MESA_DEBUG: nogmem
901 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
903 # Along with checking gmem path, check that we don't get obvious nir
904 # validation failures (though it's too expensive to have it on for the
907 extends: arm64_a630_gles31
911 FD_MESA_DEBUG: nobypass
920 name: "mesa_${CI_JOB_NAME}"
931 BM_KERNEL: /lava-files/Image.gz
932 BM_DTB: /lava-files/apq8016-sbc.dtb
933 BM_ROOTFS: /lava-files/rootfs-arm64
934 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
935 FLAKES_CHANNEL: "#freedreno-ci"
936 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
937 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
940 DEQP_EXPECTED_RENDERER: FD307
941 # Since we can't get artifacts back yet, skip making them.
942 DEQP_NO_SAVE_RESULTS: 1
943 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
945 - .gitlab-ci/bare-metal/fastboot.sh
951 - google-freedreno-db410c
953 # Fractional run, single threaded, due to flaky results
964 # Fractional runs with debug options. Note that since we're not
965 # hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
966 arm64_a306_gles3_options:
967 extends: arm64_a306_gles2
971 # Check that the non-constbuf UBO case works.
972 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" .gitlab-ci/bare-metal/fastboot.sh
978 BM_KERNEL: /lava-files/db820c-kernel
979 BM_DTB: /lava-files/db820c.dtb
980 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
981 # current upstream kernel.
982 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
983 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
984 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
985 DEQP_EXPECTED_RENDERER: FD530
988 - google-freedreno-db820c
1009 extends: .radv-rules
1014 ACO_DEBUG: validateir,validatera
1016 # Can only be triggered manually on personal branches because RADV is the only
1017 # driver that does Vulkan testing at the moment.
1018 radv_polaris10_vkcts:
1024 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
1034 - export RADV_FORCE_FAMILY="pitcairn"
1035 - ./install/fossilize-runner.sh
1036 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1038 - export RADV_FORCE_FAMILY="bonaire"
1039 - ./install/fossilize-runner.sh
1040 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1042 - export RADV_FORCE_FAMILY="polaris10"
1043 - ./install/fossilize-runner.sh
1044 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1046 - export RADV_FORCE_FAMILY="gfx900"
1047 - ./install/fossilize-runner.sh
1048 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1050 - export RADV_FORCE_FAMILY="gfx1010"
1051 - ./install/fossilize-runner.sh
1052 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1066 - ./install/tracie-runner-gl.sh
1073 - ./install/tracie-runner-vk.sh
1080 LIBGL_ALWAYS_SOFTWARE: "true"
1081 GALLIUM_DRIVER: "llvmpipe"
1082 DEVICE_NAME: "gl-vmware-llvmpipe"
1084 radv-polaris10-traces:
1090 DEVICE_NAME: "vk-amd-polaris10"
1099 LIBGL_ALWAYS_SOFTWARE: "true"
1100 GALLIUM_DRIVER: "virpipe"
1101 DEVICE_NAME: "gl-virgl"
1102 MESA_GLES_VERSION_OVERRIDE: "3.1"
1103 MESA_GLSL_VERSION_OVERRIDE: "310"