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-gles"
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 # Debian 10 based x86 baremetal image base
274 - .fdo.container-build@debian
277 FDO_DISTRIBUTION_TAG: &arm_test-base "2020-06-09-rsync"
285 BASE_TAG: *arm_test-base
286 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/arm_test-base:$BASE_TAG"
290 # x86 image with ARM64 rootfs for baremetal testing.
295 FDO_DISTRIBUTION_TAG: &arm64_test "2020-06-09-rsync"
300 image: "$CI_REGISTRY_IMAGE/debian/arm64_test:$TAG"
305 # Native Windows docker builds
307 # Unlike the above Linux-based builds - including MinGW/SCons builds which
308 # cross-compile for Windows - which use the freedesktop ci-templates, we
309 # cannot use the same scheme here. As Windows lacks support for
310 # Docker-in-Docker, and Podman does not run natively on Windows, we have
311 # to open-code much of the same ourselves.
313 # This is achieved by first running in a native Windows shell instance
314 # (host PowerShell) in the container stage to build and push the image,
315 # then in the build stage by executing inside Docker.
317 .windows-docker-vs2019:
319 WINDOWS_TAG: "2020-05-05-llvm"
320 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
321 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
323 windows_build_vs2019:
326 - .windows-docker-vs2019
329 GIT_STRATEGY: fetch # we do actually need the full repository though
330 timeout: 4h # LLVM takes ages
337 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
339 .use-windows_build_vs2019:
340 extends: .windows-docker-vs2019
341 image: "$WINDOWS_IMAGE"
343 - windows_build_vs2019
347 # Shared between windows and Linux
349 extends: .ci-run-policy
351 name: "mesa_${CI_JOB_NAME}"
354 - _build/meson-logs/*.txt
361 extends: .build-common
363 CCACHE_COMPILERCHECK: "content"
364 CCACHE_COMPRESS: "true"
365 CCACHE_DIR: /cache/mesa/ccache
366 # Use ccache transparently, and print stats before/after
368 - export PATH="/usr/lib/ccache:$PATH"
369 - export CCACHE_BASEDIR="$PWD"
370 - ccache --show-stats
372 - ccache --show-stats
375 extends: .build-common
384 - subprojects/packagecache
394 - .gitlab-ci/meson-build.sh
404 - .gitlab-ci/scons-build.sh
416 -D platforms=x11,drm,surfaceless
419 GALLIUM_DRIVERS: "swrast,virgl"
421 BUILDTYPE: "debugoptimized"
425 - .gitlab-ci/meson-build.sh
426 - .gitlab-ci/prepare-artifacts.sh
429 extends: .meson-build
436 -D platforms=x11,wayland,drm,surfaceless
439 -D gallium-extra-hud=true
440 -D gallium-vdpau=enabled
441 -D gallium-xvmc=enabled
442 -D gallium-omx=bellagio
443 -D gallium-va=enabled
444 -D gallium-xa=enabled
446 -D gallium-opencl=disabled
447 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
452 - .gitlab-ci/meson-build.sh
453 - .gitlab-ci/run-shader-db.sh
456 extends: .meson-build
463 -D platforms=x11,wayland,drm,surfaceless
479 -D platforms=surfaceless
483 -D gallium-vdpau=disabled
484 -D gallium-xvmc=disabled
485 -D gallium-omx=disabled
486 -D gallium-va=disabled
487 -D gallium-xa=disabled
488 -D gallium-nine=false
496 VULKAN_DRIVERS: freedreno
497 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
498 BUILDTYPE: "debugoptimized"
512 - .gitlab-ci/meson-build.sh
513 - .gitlab-ci/prepare-artifacts.sh
520 VULKAN_DRIVERS: "freedreno"
524 - .gitlab-ci/meson-build.sh
525 - .gitlab-ci/prepare-artifacts.sh
527 meson-arm64-build-test:
532 VULKAN_DRIVERS: "amd"
534 - .gitlab-ci/meson-build.sh
537 extends: .meson-build
543 GALLIUM_DRIVERS: "auto"
544 VULKAN_DRIVERS: intel,amd,freedreno
546 CXX: "ccache clang++-9"
548 meson-windows-vs2019:
551 - .use-windows_build_vs2019
554 - . .\.gitlab-ci\windows\mesa_build.ps1
557 extends: .scons-build
559 SCONS_TARGET: platform=windows machine=x86_64 debug=1
560 SCONS_CHECK_COMMAND: "true"
564 extends: .meson-build
571 GALLIUM_DRIVERS: "r600,radeonsi"
574 -D gallium-vdpau=disabled
575 -D gallium-xvmc=disabled
576 -D gallium-omx=disabled
577 -D gallium-va=disabled
578 -D gallium-xa=disabled
579 -D gallium-nine=false
580 -D gallium-opencl=icd
582 - .gitlab-ci/meson-build.sh
583 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
585 meson-clover-old-llvm:
595 -D platforms=drm,surfaceless
596 GALLIUM_DRIVERS: "i915,r600"
598 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
599 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
600 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
601 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
602 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
605 extends: .meson-build
612 -D platforms=x11,wayland,drm
616 -D gallium-vdpau=disabled
617 -D gallium-xvmc=disabled
618 -D gallium-omx=disabled
619 -D gallium-va=disabled
620 -D gallium-xa=disabled
621 -D gallium-nine=false
622 -D gallium-opencl=disabled
623 -D b_sanitize=undefined
624 -D c_args=-fno-sanitize-recover=all
625 -D cpp_args=-fno-sanitize-recover=all
626 UBSAN_OPTIONS: "print_stacktrace=1"
627 VULKAN_DRIVERS: intel,amd,freedreno
629 -D vulkan-overlay-layer=true
638 VULKAN_DRIVERS: intel,amd
639 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
641 -D vulkan-overlay-layer=true
654 GALLIUM_DRIVERS: "swrast"
663 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
664 VULKAN_DRIVERS: "amd"
666 meson-mingw32-x86_64:
667 extends: .meson-build
672 GALLIUM_DRIVERS: "swrast"
676 --cross-file=.gitlab-ci/x86_64-w64-mingw32
682 GIT_STRATEGY: none # testing doesn't build anything from source
684 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
686 - tar -xf artifacts/install.tar
687 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
690 name: "mesa_${CI_JOB_NAME}"
699 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
714 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
730 name: "mesa_${CI_JOB_NAME}"
734 LIBGL_ALWAYS_SOFTWARE: 1
737 - install/piglit/run.sh
740 extends: .piglit-test
745 --process-isolation false
748 -x egl_ext_platform_device
749 -x ext_timer_query@time-elapsed
750 -x glx-multithread-clearbuffer
751 -x glx-multithread-shader-compile
754 PIGLIT_PROFILES: quick_gl
757 extends: .piglit-test
761 PIGLIT_PROFILES: glslparser
764 extends: .piglit-test
768 PIGLIT_PROFILES: quick_shader
772 DEQP_SKIPS: deqp-default-skips.txt
774 - ./install/deqp-runner.sh
791 - ./install/fossilize-runner.sh
798 # Don't use threads inside llvmpipe, we've already got all 4 cores
799 # busy with DEQP_PARALLEL.
801 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
802 LIBGL_ALWAYS_SOFTWARE: "true"
803 DEQP_EXPECTED_RENDERER: llvmpipe
813 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
814 DEQP_SKIPS: deqp-softpipe-skips.txt
815 GALLIUM_DRIVER: "softpipe"
816 DEQP_EXPECTED_RENDERER: softpipe
822 extends: softpipe-gles2
828 extends: softpipe-gles2
835 DEQP_NO_SAVE_RESULTS: 1
836 # Don't use threads inside llvmpipe, we've already got all 4 cores
837 # busy with DEQP_PARALLEL.
839 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
840 LIBGL_ALWAYS_SOFTWARE: "true"
841 GALLIUM_DRIVER: "virpipe"
842 DEQP_EXPECTED_RENDERER: virgl
852 DEQP_RUNNER_OPTIONS: "--timeout 120"
860 DEQP_OPTIONS: "--deqp-log-images=disable"
861 DEQP_RUNNER_OPTIONS: "--timeout 120"
862 MESA_GLES_VERSION_OVERRIDE: "3.1"
863 MESA_GLSL_VERSION_OVERRIDE: "310"
864 MESA_EXTENSION_OVERRIDE: "-GL_OES_tessellation_shader"
867 # Rules for tests that should not be present in MRs or the main
868 # project's pipeline (don't block marge or report red on
869 # mesa/mesamaster) but should be present on pipelines in personal
870 # branches (so you can opt in to running the flaky test when you want
874 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
884 BM_KERNEL: /lava-files/cheza-kernel
885 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 root=/dev/nfs rw nfsrootdebug nfsroot=,tcp,nfsvers=4.2 init=/init"
886 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
887 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
890 DEQP_EXPECTED_RENDERER: FD630
891 DEQP_NO_SAVE_RESULTS: ""
893 - google-freedreno-cheza
895 - ./install/bare-metal/cros-servo.sh
898 extends: arm64_a630_gles2
903 extends: arm64_a630_gles2
907 # We almost always manage to lower UBOs back to constant uploads in
908 # the test suite, so get a little testing for it here.
910 extends: arm64_a630_gles31
913 IR3_SHADER_DEBUG: nouboopt
914 DEQP_CASELIST_FILTER: "functional.*ubo"
916 # The driver does some guessing as to whether to render using gmem
917 # or bypass, and some GLES3.1 features interact with either one.
918 # Do a little testing with gmem and bypass forced.
920 extends: arm64_a630_gles31
924 FD_MESA_DEBUG: nogmem
925 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
927 # Along with checking gmem path, check that we don't get obvious nir
928 # validation failures (though it's too expensive to have it on for the
931 extends: arm64_a630_gles31
935 FD_MESA_DEBUG: nobypass
939 extends: arm64_a630_gles2
945 # Force binning in the main run, which makes sure we render at
946 # least 2 bins. This is the path that impacts the most different
947 # features. However, we end up with flaky results in
948 # dEQP-VK.binding_model.*.geometry and dEQP-VK.glsl.*_vertex.
951 # Do a separate sysmem pass over the testcases that really affect sysmem
952 # rendering. This is currently very flaky, leave it as an option for devs
953 # to click play on in their branches.
954 arm64_a630_vk_sysmem:
960 DEQP_CASELIST_FILTER: "dEQP-VK.renderpass.*"
961 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
971 name: "mesa_${CI_JOB_NAME}"
982 BM_KERNEL: /lava-files/Image.gz
983 BM_DTB: /lava-files/apq8016-sbc.dtb
984 BM_ROOTFS: /lava-files/rootfs-arm64
985 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
986 FLAKES_CHANNEL: "#freedreno-ci"
987 BARE_METAL_TEST_SCRIPT: "/install/deqp-runner.sh"
988 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
989 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
992 DEQP_EXPECTED_RENDERER: FD307
993 # Since we can't get artifacts back yet, skip making them.
994 DEQP_NO_SAVE_RESULTS: 1
995 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
997 - ./install/bare-metal/fastboot.sh
1004 - google-freedreno-db410c
1006 # Fractional run, single threaded, due to flaky results
1017 # Fractional runs with debug options. Note that since we're not
1018 # hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
1019 arm64_a306_gles3_options:
1020 extends: arm64_a306_gles2
1024 # Check that the non-constbuf UBO case works.
1025 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" ./install/bare-metal/fastboot.sh
1031 BM_KERNEL: /lava-files/db820c-kernel
1032 BM_DTB: /lava-files/db820c.dtb
1033 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
1034 # current upstream kernel.
1035 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
1036 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
1037 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
1038 DEQP_EXPECTED_RENDERER: FD530
1041 - google-freedreno-db820c
1062 extends: .radv-rules
1067 ACO_DEBUG: validateir,validatera
1069 # Can only be triggered manually on personal branches because RADV is the only
1070 # driver that does Vulkan testing at the moment.
1071 radv_polaris10_vkcts:
1077 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
1087 - export RADV_FORCE_FAMILY="pitcairn"
1088 - ./install/fossilize-runner.sh
1089 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1091 - export RADV_FORCE_FAMILY="bonaire"
1092 - ./install/fossilize-runner.sh
1093 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1095 - export RADV_FORCE_FAMILY="polaris10"
1096 - ./install/fossilize-runner.sh
1097 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1099 - export RADV_FORCE_FAMILY="gfx900"
1100 - ./install/fossilize-runner.sh
1101 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1103 - export RADV_FORCE_FAMILY="gfx1010"
1104 - ./install/fossilize-runner.sh
1105 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1119 - ./install/tracie-runner-gl.sh
1126 - ./install/tracie-runner-vk.sh
1133 LIBGL_ALWAYS_SOFTWARE: "true"
1134 GALLIUM_DRIVER: "llvmpipe"
1135 DEVICE_NAME: "gl-vmware-llvmpipe"
1137 radv-polaris10-traces:
1143 DEVICE_NAME: "vk-amd-polaris10"
1152 LIBGL_ALWAYS_SOFTWARE: "true"
1153 GALLIUM_DRIVER: "virpipe"
1154 DEVICE_NAME: "gl-virgl"
1155 MESA_GLES_VERSION_OVERRIDE: "3.1"
1156 MESA_GLSL_VERSION_OVERRIDE: "310"