2 UPSTREAM_REPO: mesa/mesa
5 - project: 'wayland/ci-templates'
6 ref: b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71
7 file: '/templates/debian.yml'
8 - local: '.gitlab-ci/lava-gitlab-ci.yml'
23 # When to automatically run the CI
26 # Run pipeline by default for merge requests changing files affecting it
27 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
46 # Run pipeline by default in the main project if files affecting it were
48 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
52 # Allow triggering jobs manually on branches of forked projects
53 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
55 # Otherwise, most jobs won't run
60 - runner_system_failure
61 # Cancel CI run if a newer commit is pushed to the same branch
66 image: debian:stable-slim
75 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
83 # Watch out! Artifacts are relative to the build dir.
84 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
87 # Build the CI docker images.
89 # DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
90 # image doesn't exist yet, the container stage job generates it.
92 # In order to generate a new image, one should generally change the tag.
93 # While removing the image from the registry would also work, that's not
94 # recommended except for ephemeral images during development: Replacing
95 # an image after a significant amount of time might pull in newer
96 # versions of gcc/clang or other packages, which might break the build
97 # with older commits using the same tag.
99 # After merging a change resulting in generating a new image to the
100 # main repository, it's recommended to remove the image from the source
101 # repository's container registry, so that the image from the main
102 # repository's registry will be used there as well.
109 DEBIAN_VERSION: buster-slim
110 REPO_SUFFIX: $CI_JOB_NAME
111 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
112 # no need to pull the whole repo to build the container image
115 # Debian 10 based x86 build image
118 - .debian@container-ifnot-exists
121 DEBIAN_TAG: &x86_build "2020-02-15"
126 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
130 # Debian 10 based x86 test image for GL
134 DEBIAN_TAG: &x86_test-gl "2020-02-14"
136 # Debian 10 based x86 test image for VK
140 DEBIAN_TAG: &x86_test-vk "2020-03-05"
141 # Can only be triggered manually on personal branches because RADV is the only
142 # driver that does Vulkan testing at the moment.
144 # Never build the test image for VK by default in the main project.
145 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
147 # Never build the test image for VK by default for merge requests.
148 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
150 # Otherwise, allow building it manually for personal branches.
154 # Debian 9 based x86 build image (old LLVM)
158 DEBIAN_TAG: &x86_build_old "2019-09-18"
159 DEBIAN_VERSION: stretch-slim
164 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
168 # Debian 10 based ARM build image
171 - .debian@container-ifnot-exists@arm64v8
174 DEBIAN_TAG: &arm_build "2020-02-26"
179 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
183 # Debian 10 based ARM test image
187 DEBIAN_TAG: &arm_test "2020-01-30"
192 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
200 # Shared between windows and Linux
202 extends: .ci-run-policy
206 - _build/meson-logs/*.txt
213 extends: .build-common
215 CCACHE_COMPILERCHECK: "content"
216 CCACHE_COMPRESS: "true"
217 CCACHE_DIR: /cache/mesa/ccache
218 # Use ccache transparently, and print stats before/after
220 - export PATH="/usr/lib/ccache:$PATH"
221 - export CCACHE_BASEDIR="$PWD"
222 - ccache --show-stats
224 - ccache --show-stats
227 extends: .build-common
233 - subprojects/packagecache
243 - .gitlab-ci/meson-build.sh
253 - .gitlab-ci/scons-build.sh
265 -D platforms=x11,drm,surfaceless
268 GALLIUM_DRIVERS: "swrast"
270 BUILDTYPE: "debugoptimized"
274 - .gitlab-ci/meson-build.sh
275 - .gitlab-ci/prepare-artifacts.sh
278 extends: .meson-build
285 -D platforms=x11,wayland,drm,surfaceless
286 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
289 -D gallium-extra-hud=true
290 -D gallium-vdpau=true
292 -D gallium-omx=bellagio
296 -D gallium-opencl=disabled
297 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
302 - .gitlab-ci/meson-build.sh
303 - .gitlab-ci/run-shader-db.sh
315 -D platforms=surfaceless
319 -D gallium-vdpau=false
320 -D gallium-xvmc=false
321 -D gallium-omx=disabled
324 -D gallium-nine=false
332 VULKAN_DRIVERS: freedreno
333 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
334 BUILDTYPE: "debugoptimized"
348 - .gitlab-ci/meson-build.sh
349 - .gitlab-ci/prepare-artifacts.sh
356 VULKAN_DRIVERS: "freedreno"
360 - .gitlab-ci/meson-build.sh
361 - .gitlab-ci/prepare-artifacts.sh
363 meson-arm64-build-test:
368 VULKAN_DRIVERS: "amd"
370 - .gitlab-ci/meson-build.sh
373 extends: .meson-build
379 GALLIUM_DRIVERS: "auto"
380 VULKAN_DRIVERS: intel,amd,freedreno
382 CXX: "ccache clang++-9"
390 - $ENV:VERSION = "2019\Community"
392 - cmd /C .gitlab-ci\meson-build.bat
395 extends: .scons-build
397 SCONS_TARGET: "swr=1"
398 SCONS_CHECK_COMMAND: "true"
402 extends: .scons-build
404 SCONS_TARGET: platform=windows machine=x86_64
405 SCONS_CHECK_COMMAND: "true"
408 extends: .meson-build
417 -D gallium-vdpau=false
418 -D gallium-xvmc=false
419 -D gallium-omx=disabled
422 -D gallium-nine=false
423 -D gallium-opencl=icd
425 - export GALLIUM_DRIVERS="r600,radeonsi"
426 - .gitlab-ci/meson-build.sh
427 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
428 - export GALLIUM_DRIVERS="i915,r600"
429 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
430 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
432 meson-clover-old-llvm:
442 -D platforms=drm,surfaceless
443 GALLIUM_DRIVERS: "i915,r600"
445 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
446 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
447 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
450 extends: .meson-build
457 -D platforms=x11,wayland,drm
461 -D gallium-vdpau=false
462 -D gallium-xvmc=false
463 -D gallium-omx=disabled
466 -D gallium-nine=false
467 -D gallium-opencl=disabled
468 -D b_sanitize=undefined
469 -D c_args=-fno-sanitize-recover=all
470 -D cpp_args=-fno-sanitize-recover=all
471 UBSAN_OPTIONS: "print_stacktrace=1"
472 VULKAN_DRIVERS: intel,amd,freedreno
474 -D vulkan-overlay-layer=true
477 # While the main point of this build is testing the i386 cross build,
478 # we also use this one to test some other options that are exclusive
479 # with meson-main's choices (classic swrast and osmesa)
481 extends: .meson-cross
484 VULKAN_DRIVERS: intel
485 DRI_DRIVERS: "swrast"
486 GALLIUM_DRIVERS: "iris"
488 -D vulkan-overlay-layer=true
500 GALLIUM_DRIVERS: "swrast"
502 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
503 - .gitlab-ci/meson-build.sh
510 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
511 VULKAN_DRIVERS: "amd"
513 meson-mingw32-x86_64:
514 extends: .meson-build
519 GALLIUM_DRIVERS: "swrast"
523 --cross-file=.gitlab-ci/x86_64-w64-mingw32
526 extends: .scons-build
528 SCONS_TARGET: "llvm=1"
529 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
531 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
532 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
539 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
545 GIT_STRATEGY: none # testing doesn't build anything from source
547 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
549 - tar -xf artifacts/install.tar
550 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
553 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
564 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
574 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
584 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
588 LIBGL_ALWAYS_SOFTWARE: 1
591 - artifacts/piglit/run.sh
594 extends: .piglit-test
599 --process-isolation false
602 -x egl_ext_platform_device
603 -x ext_timer_query@time-elapsed
604 -x glx-multithread-clearbuffer
605 -x glx-multithread-shader-compile
608 PIGLIT_PROFILES: quick_gl
611 extends: .piglit-test
615 PIGLIT_PROFILES: glslparser
618 extends: .piglit-test
622 PIGLIT_PROFILES: quick_shader
626 DEQP_SKIPS: deqp-default-skips.txt
628 - ./artifacts/deqp-runner.sh
645 - ./artifacts/fossilize-runner.sh
652 # Don't use threads inside llvmpipe, we've already got all 4 cores
653 # busy with DEQP_PARALLEL.
655 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
656 LIBGL_ALWAYS_SOFTWARE: "true"
657 extends: .deqp-test-gl
661 extends: llvmpipe-gles2
664 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
665 DEQP_SKIPS: deqp-softpipe-skips.txt
666 GALLIUM_DRIVER: "softpipe"
672 extends: softpipe-gles2
678 extends: softpipe-gles2
687 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
688 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
691 FLAKES_CHANNEL: "#freedreno-ci"
698 extends: arm64_a630_gles2
703 extends: arm64_a630_gles2
708 extends: arm64_a630_gles2
710 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
711 DEQP_SKIPS: deqp-default-skips.txt
721 # Can only be triggered manually on personal branches because RADV is the only
722 # driver that does Vulkan testing at the moment.
724 # Never test RADV by default in the main project.
725 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
727 # Never test RADV by default for merge requests.
728 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
730 # Otherwise, allow testing RADV if the test image for VK has been manually
734 radv_polaris10_vkcts:
740 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
757 - ./artifacts/tracie-runner-gl.sh
764 - ./artifacts/tracie-runner-vk.sh
767 extends: .traces-test-gl
769 LIBGL_ALWAYS_SOFTWARE: "true"
770 GALLIUM_DRIVER: "llvmpipe"
771 DEVICE_NAME: "gl-vmware-llvmpipe"
773 radv-polaris10-traces:
778 DEVICE_NAME: "vk-amd-polaris10"