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'
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"
158 # NOTE: Building SWR is 2x (yes two) times slower than all the other
159 # gallium drivers combined.
160 # Start this early so that it doesn't limit the total run time.
162 # We also stick the glvnd build here, since we want non-glvnd in
163 # meson-main for actual driver CI.
165 extends: .meson-build
173 -D gallium-vdpau=false
174 -D gallium-xvmc=false
175 -D gallium-omx=disabled
178 -D gallium-nine=false
179 -D gallium-opencl=disabled
180 GALLIUM_DRIVERS: "swr,iris"
184 extends: .meson-build
188 GALLIUM_DRIVERS: "auto"
189 VULKAN_DRIVERS: intel,amd,freedreno
191 CXX: "ccache clang++-8"
193 - export CCACHE_BASEDIR="$PWD" CCACHE_DIR="$PWD/ccache"
194 - ccache --zero-stats --show-stats || true
195 # clang++ breaks if it picks up the GCC 8 directory without libstdc++.so
196 - apt-get remove -y libgcc-8-dev
199 extends: .scons-build
201 SCONS_TARGET: "swr=1"
202 SCONS_CHECK_COMMAND: "true"
206 extends: .scons-build
208 SCONS_TARGET: platform=windows machine=x86_64
209 SCONS_CHECK_COMMAND: "true"
212 extends: .meson-build
221 -D gallium-vdpau=false
222 -D gallium-xvmc=false
223 -D gallium-omx=disabled
226 -D gallium-nine=false
227 -D gallium-opencl=icd
229 - export GALLIUM_DRIVERS="r600,radeonsi"
230 - .gitlab-ci/meson-build.sh
231 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
232 - export GALLIUM_DRIVERS="i915,r600"
233 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
234 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
235 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
236 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
237 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
240 extends: .meson-build
247 -D platforms=x11,wayland,drm
251 -D gallium-vdpau=false
252 -D gallium-xvmc=false
253 -D gallium-omx=disabled
256 -D gallium-nine=false
257 -D gallium-opencl=disabled
258 VULKAN_DRIVERS: intel,amd,freedreno
261 -D vulkan-overlay-layer=true
273 -D platforms=surfaceless
277 -D gallium-vdpau=false
278 -D gallium-xvmc=false
279 -D gallium-omx=disabled
282 -D gallium-nine=false
285 - .gitlab-ci/meson-build.sh
288 extends: .meson-cross
291 VULKAN_DRIVERS: freedreno
292 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
293 # Disable the tests since we're cross compiling.
296 -D I-love-half-baked-turnips=true
297 -D vulkan-overlay-layer=true
303 BUILDTYPE: "debugoptimized"
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"
315 # Disable i386 tests, because u_format_tests gets precision
316 # failures in dxtn unpacking
319 -D vulkan-overlay-layer=true
324 extends: .scons-build
326 SCONS_TARGET: "llvm=0"
327 SCONS_CHECK_COMMAND: "scons llvm=0 check"
330 extends: .scons-build
332 SCONS_TARGET: "llvm=1"
333 SCONS_CHECK_COMMAND: "scons llvm=1 check"
337 extends: .ci-run-policy
341 GIT_STRATEGY: none # testing doesn't build anything from source
342 DEQP_SKIPS: deqp-default-skips.txt
344 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
346 - tar -xf artifacts/install.tar
347 - ./artifacts/deqp-runner.sh
350 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"
367 extends: test-llvmpipe-gles2
369 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
370 DEQP_RENDERER_MATCH: "softpipe"
371 GALLIUM_DRIVER: "softpipe"
373 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
374 # 25 minutes. Until we can get its runtime down, just do a partial
375 # (every 10 tests) run.
376 test-softpipe-gles3-limited:
379 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
380 LIBGL_ALWAYS_SOFTWARE: "true"
381 DEQP_RENDERER_MATCH: "softpipe"
382 GALLIUM_DRIVER: "softpipe"
392 image: $DEBIAN_ARM64_IMAGE
395 DEQP_RENDERER_MATCH: "FD630"
396 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
397 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
403 needs: [ meson-arm64 ]
406 extends: arm64_a630_gles2
413 extends: arm64_a630_gles2
419 extends: arm64_a630_gles2
421 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
422 DEQP_SKIPS: deqp-default-skips.txt
423 DEQP_RENDERER_MATCH: "FD307"