1 # This is the tag of the docker image used for the build jobs. If the
2 # image doesn't exist yet, the containers 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'
26 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
27 file: '/templates/debian.yml'
35 # When to automatically run the CI
44 - runner_system_failure
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.
58 - .debian@container-ifnot-exists
62 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
63 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
65 # Builds a Docker image with the native environment and VK-GL-CTS for testing.
68 - .debian@container-ifnot-exists@arm64v8
72 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
73 DEBIAN_VERSION: "$DEBIAN_ARM64_VERSION"
74 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
75 DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
80 extends: .ci-run-policy
89 - _build/meson-logs/*.txt
94 CCACHE_COMPILERCHECK: "content"
95 # Use ccache transparently, and print stats before/after
97 - export PATH="/usr/lib/ccache:$PATH"
98 - export CCACHE_BASEDIR="$PWD"
99 - export CCACHE_DIR="$PWD/ccache"
100 - ccache --zero-stats || true
101 - ccache --show-stats || true
103 # In case the install dir is being saved as artifacts, tar it up
104 # so that symlinks and hardlinks aren't each packed separately in
106 - if [ -d install ]; then
107 tar -cf artifacts/install.tar install;
109 - export CCACHE_DIR="$PWD/ccache"
110 - ccache --show-stats
115 - .gitlab-ci/meson-build.sh
122 - if test -n "$LLVM_VERSION"; then
123 export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
125 - scons $SCONS_TARGET
126 - eval $SCONS_CHECK_COMMAND
138 -D platforms=x11,wayland,drm,surfaceless
139 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
142 -D gallium-extra-hud=true
143 -D gallium-vdpau=true
145 -D gallium-omx=bellagio
149 -D gallium-opencl=disabled
150 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
155 MESON_SHADERDB: "true"
156 BUILDTYPE: "debugoptimized"
168 -D platforms=surfaceless
172 -D gallium-vdpau=false
173 -D gallium-xvmc=false
174 -D gallium-omx=disabled
177 -D gallium-nine=false
180 - .gitlab-ci/meson-build.sh
183 extends: .meson-cross
186 VULKAN_DRIVERS: freedreno
187 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
188 # Disable the tests since we're cross compiling.
191 -D I-love-half-baked-turnips=true
192 -D vulkan-overlay-layer=true
198 BUILDTYPE: "debugoptimized"
200 # NOTE: Building SWR is 2x (yes two) times slower than all the other
201 # gallium drivers combined.
202 # Start this early so that it doesn't limit the total run time.
204 # We also stick the glvnd build here, since we want non-glvnd in
205 # meson-main for actual driver CI.
207 extends: .meson-build
215 -D gallium-vdpau=false
216 -D gallium-xvmc=false
217 -D gallium-omx=disabled
220 -D gallium-nine=false
221 -D gallium-opencl=disabled
222 GALLIUM_DRIVERS: "swr,iris"
226 extends: .meson-build
230 GALLIUM_DRIVERS: "auto"
231 VULKAN_DRIVERS: intel,amd,freedreno
233 CXX: "ccache clang++-8"
235 - export CCACHE_BASEDIR="$PWD" CCACHE_DIR="$PWD/ccache"
236 - ccache --zero-stats --show-stats || true
237 # clang++ breaks if it picks up the GCC 8 directory without libstdc++.so
238 - apt-get remove -y libgcc-8-dev
241 extends: .scons-build
243 SCONS_TARGET: "swr=1"
244 SCONS_CHECK_COMMAND: "true"
248 extends: .scons-build
250 SCONS_TARGET: platform=windows machine=x86_64
251 SCONS_CHECK_COMMAND: "true"
254 extends: .meson-build
263 -D gallium-vdpau=false
264 -D gallium-xvmc=false
265 -D gallium-omx=disabled
268 -D gallium-nine=false
269 -D gallium-opencl=icd
271 - export GALLIUM_DRIVERS="r600,radeonsi"
272 - .gitlab-ci/meson-build.sh
273 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
274 - export GALLIUM_DRIVERS="i915,r600"
275 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
276 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
277 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
278 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
279 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
282 extends: .meson-build
289 -D platforms=x11,wayland,drm
293 -D gallium-vdpau=false
294 -D gallium-xvmc=false
295 -D gallium-omx=disabled
298 -D gallium-nine=false
299 -D gallium-opencl=disabled
300 VULKAN_DRIVERS: intel,amd,freedreno
303 -D vulkan-overlay-layer=true
305 # While the main point of this build is testing the i386 cross build,
306 # we also use this one to test some other options that are exclusive
307 # with meson-main's choices (classic swrast and osmesa)
309 extends: .meson-cross
312 VULKAN_DRIVERS: intel
313 DRI_DRIVERS: "swrast"
314 GALLIUM_DRIVERS: "iris"
316 -D vulkan-overlay-layer=true
321 extends: .scons-build
323 SCONS_TARGET: "llvm=0"
324 SCONS_CHECK_COMMAND: "scons llvm=0 check"
327 extends: .scons-build
329 SCONS_TARGET: "llvm=1"
330 SCONS_CHECK_COMMAND: "scons llvm=1 check"
334 extends: .ci-run-policy
338 GIT_STRATEGY: none # testing doesn't build anything from source
339 DEQP_SKIPS: deqp-default-skips.txt
341 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
343 - tar -xf artifacts/install.tar
344 - ./artifacts/deqp-runner.sh
347 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
358 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
359 LIBGL_ALWAYS_SOFTWARE: "true"
360 DEQP_RENDERER_MATCH: "llvmpipe"
364 extends: test-llvmpipe-gles2
366 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
367 DEQP_RENDERER_MATCH: "softpipe"
368 GALLIUM_DRIVER: "softpipe"
370 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
371 # 25 minutes. Until we can get its runtime down, just do a partial
372 # (every 10 tests) run.
373 test-softpipe-gles3-limited:
376 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
377 LIBGL_ALWAYS_SOFTWARE: "true"
378 DEQP_RENDERER_MATCH: "softpipe"
379 GALLIUM_DRIVER: "softpipe"
386 image: $DEBIAN_ARM64_IMAGE
389 DEQP_RENDERER_MATCH: "FD630"
390 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
391 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
397 needs: [ meson-arm64 ]
400 extends: arm64_a630_gles2
407 extends: arm64_a630_gles2
413 extends: arm64_a630_gles2
415 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
416 DEQP_SKIPS: deqp-default-skips.txt
417 DEQP_RENDERER_MATCH: "FD307"