1 # This is the tag of the docker image used for the build jobs. If the
2 # image doesn't exist yet, the containers-build stage generates it.
4 # In order to generate a new image, one should generally change the tag.
5 # While removing the image from the registry would also work, that's not
6 # recommended except for ephemeral images during development: Replacing
7 # an image after a significant amount of time might pull in newer
8 # versions of gcc/clang or other packages, which might break the build
9 # with older commits using the same tag.
11 # After merging a change resulting in generating a new image to the
12 # main repository, it's recommended to remove the image from the source
13 # repository's container registry, so that the image from the main
14 # repository's registry will be used there as well.
16 UPSTREAM_REPO: mesa/mesa
17 DEBIAN_TAG: "2019-09-11"
18 DEBIAN_ARM64_TAG: "arm64v8-2019-08-09"
19 DEBIAN_VERSION: stretch-slim
20 DEBIAN_ARM64_VERSION: buster-slim
21 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
22 DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_ARM64_VERSION:$DEBIAN_ARM64_TAG"
25 - project: 'wayland/ci-templates'
27 file: '/templates/debian.yml'
35 # When to automatically run the CI
36 .ci-run-policy: &ci-run-policy
44 - runner_system_failure
46 .ci-deqp-artifacts: &ci-deqp-artifacts
51 # Watch out! Artifacts are relative to the build dir.
52 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
55 # Builds the normal CI native and cross-build docker image.
57 extends: .debian@container-ifnot-exists
58 stage: containers-build
61 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
62 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
64 # Builds a Docker image with the native environment and VK-GL-CTS for testing.
66 extends: .debian@container-ifnot-exists@arm64v8
68 stage: containers-build
70 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
71 DEBIAN_VERSION: "$DEBIAN_ARM64_VERSION"
72 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
73 DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
87 - _build/meson-logs/*.txt
92 CCACHE_COMPILERCHECK: "content"
93 # Use ccache transparently, and print stats before/after
95 - export PATH="/usr/lib/ccache:$PATH"
96 - export CCACHE_BASEDIR="$PWD"
97 - export CCACHE_DIR="$PWD/ccache"
98 - ccache --zero-stats || true
99 - ccache --show-stats || true
101 # In case the install dir is being saved as artifacts, tar it up
102 # so that symlinks and hardlinks aren't each packed separately in
104 - if [ -d install ]; then
105 tar -cf artifacts/install.tar install;
107 - export CCACHE_DIR="$PWD/ccache"
108 - ccache --show-stats
113 - .gitlab-ci/meson-build.sh
120 - if test -n "$LLVM_VERSION"; then
121 export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
123 - scons $SCONS_TARGET
124 - eval $SCONS_CHECK_COMMAND
127 extends: .meson-build
134 -D platforms=x11,wayland,drm,surfaceless
135 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
138 -D gallium-extra-hud=true
139 -D gallium-vdpau=true
141 -D gallium-omx=bellagio
145 -D gallium-opencl=disabled
146 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
151 MESON_SHADERDB: "true"
152 BUILDTYPE: "debugoptimized"
153 <<: *ci-deqp-artifacts
155 # NOTE: Building SWR is 2x (yes two) times slower than all the other
156 # gallium drivers combined.
157 # Start this early so that it doesn't limit the total run time.
159 # We also stick the glvnd build here, since we want non-glvnd in
160 # meson-main for actual driver CI.
162 extends: .meson-build
170 -D gallium-vdpau=false
171 -D gallium-xvmc=false
172 -D gallium-omx=disabled
175 -D gallium-nine=false
176 -D gallium-opencl=disabled
177 GALLIUM_DRIVERS: "swr,iris"
181 extends: .meson-build
185 GALLIUM_DRIVERS: "auto"
186 VULKAN_DRIVERS: intel,amd,freedreno
188 CXX: "ccache clang++-8"
190 - export CCACHE_BASEDIR="$PWD" CCACHE_DIR="$PWD/ccache"
191 - ccache --zero-stats --show-stats || true
192 # clang++ breaks if it picks up the GCC 8 directory without libstdc++.so
193 - apt-get remove -y libgcc-8-dev
196 extends: .scons-build
198 SCONS_TARGET: "swr=1"
199 SCONS_CHECK_COMMAND: "true"
203 extends: .scons-build
205 SCONS_TARGET: platform=windows machine=x86_64
206 SCONS_CHECK_COMMAND: "true"
209 extends: .meson-build
218 -D gallium-vdpau=false
219 -D gallium-xvmc=false
220 -D gallium-omx=disabled
223 -D gallium-nine=false
224 -D gallium-opencl=icd
226 - export GALLIUM_DRIVERS="r600,radeonsi"
227 - .gitlab-ci/meson-build.sh
228 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
229 - export GALLIUM_DRIVERS="i915,r600"
230 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
231 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
232 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
233 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
234 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
237 extends: .meson-build
244 -D platforms=x11,wayland,drm
248 -D gallium-vdpau=false
249 -D gallium-xvmc=false
250 -D gallium-omx=disabled
253 -D gallium-nine=false
254 -D gallium-opencl=disabled
255 VULKAN_DRIVERS: intel,amd,freedreno
258 -D vulkan-overlay-layer=true
261 extends: .meson-build
268 -D platforms=surfaceless
272 -D gallium-vdpau=false
273 -D gallium-xvmc=false
274 -D gallium-omx=disabled
277 -D gallium-nine=false
279 <<: *ci-deqp-artifacts
281 - .gitlab-ci/meson-build.sh
284 extends: .meson-cross
287 VULKAN_DRIVERS: freedreno
288 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
289 # Disable the tests since we're cross compiling.
292 -D I-love-half-baked-turnips=true
293 -D vulkan-overlay-layer=true
296 extends: .meson-cross
299 VULKAN_DRIVERS: freedreno
300 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
301 # Disable the tests since we're cross compiling.
304 -D I-love-half-baked-turnips=true
305 -D vulkan-overlay-layer=true
306 BUILDTYPE: "debugoptimized"
308 # While the main point of this build is testing the i386 cross build,
309 # we also use this one to test some other options that are exclusive
310 # with meson-main's choices (classic swrast and osmesa)
312 extends: .meson-cross
315 VULKAN_DRIVERS: intel
316 DRI_DRIVERS: "swrast"
317 GALLIUM_DRIVERS: "iris"
318 # Disable i386 tests, because u_format_tests gets precision
319 # failures in dxtn unpacking
322 -D vulkan-overlay-layer=true
327 extends: .scons-build
329 SCONS_TARGET: "llvm=0"
330 SCONS_CHECK_COMMAND: "scons llvm=0 check"
333 extends: .scons-build
335 SCONS_TARGET: "llvm=1"
336 SCONS_CHECK_COMMAND: "scons llvm=1 check"
344 GIT_STRATEGY: none # testing doesn't build anything from source
345 DEQP_SKIPS: deqp-default-skips.txt
347 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
349 - tar -xf artifacts/install.tar
350 - ./artifacts/deqp-runner.sh
353 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
361 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
362 LIBGL_ALWAYS_SOFTWARE: "true"
363 DEQP_RENDERER_MATCH: "llvmpipe"
373 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
374 LIBGL_ALWAYS_SOFTWARE: "true"
375 DEQP_RENDERER_MATCH: "softpipe"
376 GALLIUM_DRIVER: "softpipe"
382 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
383 # 25 minutes. Until we can get its runtime down, just do a partial
384 # (every 10 tests) run.
385 test-softpipe-gles3-limited:
388 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
389 LIBGL_ALWAYS_SOFTWARE: "true"
390 DEQP_RENDERER_MATCH: "softpipe"
391 GALLIUM_DRIVER: "softpipe"
402 image: $DEBIAN_ARM64_IMAGE
405 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
407 DEQP_RENDERER_MATCH: "FD307"
414 image: $DEBIAN_ARM64_IMAGE
417 DEQP_RENDERER_MATCH: "FD630"
418 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
419 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
425 needs: [ meson-arm64 ]