blob: b595f75e019107726b7f400f7684a82988d45870 [file] [log] [blame]
Eric Engestrom329f5cd2019-01-20 11:21:45 +00001variables:
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +02002 UPSTREAM_REPO: mesa/mesa
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +02003
4include:
5 - project: 'wayland/ci-templates'
Michel Dänzer84fefa22020-01-31 16:57:31 +01006 ref: b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71
Michel Dänzerd00b1c42019-04-02 16:56:54 +02007 file: '/templates/debian.yml'
Dylan Baker19851c92019-10-23 14:36:19 -07008 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +01009 - local: '.gitlab-ci/test-source-dep.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020010
Eric Engestrom329f5cd2019-01-20 11:21:45 +000011stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010012 - container
Michel Dänzercc9493f2020-02-27 18:27:56 +010013 - meson-x86_64
14 - scons
15 - meson-misc
16 - llvmpipe
17 - softpipe
18 - freedreno
19 - panfrost
20 - misc-tests
Michel Dänzer8775b742020-01-13 09:45:57 +010021 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000022
23
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000024# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020025.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020026 rules:
Michel Dänzer8775b742020-01-13 09:45:57 +010027 # Run pipeline by default for merge requests changing files affecting it
28 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
29 changes: &paths
30 - VERSION
31 - bin/**/*
32 # GitLab CI
33 - .gitlab-ci.yml
34 - .gitlab-ci/**/*
35 # Meson
36 - meson*
37 - build-support/**/*
38 - subprojects/**/*
39 # SCons
40 - SConstruct
41 - scons/**/*
42 - common.py
43 # Source code
44 - include/**/*
45 - src/**/*
46 when: on_success
47 # Run pipeline by default in the main project if files affecting it were
48 # changed
49 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
50 changes:
51 *paths
52 when: on_success
53 # Allow triggering jobs manually on branches of forked projects
Michel Dänzer5a6a88f2020-01-20 18:39:50 +010054 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
Michel Dänzer8775b742020-01-13 09:45:57 +010055 when: manual
56 # Otherwise, most jobs won't run
57 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010058 retry:
59 max: 2
60 when:
61 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000062 # Cancel CI run if a newer commit is pushed to the same branch
63 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000064
Michel Dänzer8775b742020-01-13 09:45:57 +010065success:
66 stage: success
67 image: debian:stable-slim
68 only:
69 - merge_requests
70 except:
71 changes:
72 *paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010073 variables:
74 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010075 script:
76 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
77
78
Michel Dänzere426f402019-09-06 17:35:52 +020079.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070080 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +010081 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -070082 when: always
83 untracked: false
84 paths:
85 # Watch out! Artifacts are relative to the build dir.
86 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
87 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000088
Tomeu Vizoso22d97642019-12-17 11:50:14 +010089# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010090#
91# DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
92# image doesn't exist yet, the container stage job generates it.
93#
94# In order to generate a new image, one should generally change the tag.
95# While removing the image from the registry would also work, that's not
96# recommended except for ephemeral images during development: Replacing
97# an image after a significant amount of time might pull in newer
98# versions of gcc/clang or other packages, which might break the build
99# with older commits using the same tag.
100#
101# After merging a change resulting in generating a new image to the
102# main repository, it's recommended to remove the image from the source
103# repository's container registry, so that the image from the main
104# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +0200105
Eric Engestrom81b98e92019-10-14 23:04:14 +0100106.container:
107 stage: container
108 extends:
109 - .ci-run-policy
110 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100111 DEBIAN_VERSION: buster-slim
112 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +0100113 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100114 # no need to pull the whole repo to build the container image
115 GIT_STRATEGY: none
116
Michel Dänzerc6c76522019-11-11 18:13:28 +0100117# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100118x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200119 extends:
120 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +0100121 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100122 variables:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100123 DEBIAN_TAG: &x86_build "2020-03-11"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000124
Michel Dänzer3a48f452019-11-13 17:43:41 +0100125.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100126 variables:
127 TAG: *x86_build
128 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200129 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100130 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200131
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100132# Debian 10 based x86 test image for GL
133x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100134 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100135 variables:
Andres Gomezf5235a52020-03-08 01:30:45 +0200136 DEBIAN_TAG: &x86_test-gl "2020-03-11"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100137
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100138# Debian 10 based x86 test image for VK
139x86_test-vk:
140 extends: x86_build
141 variables:
Samuel Pitoiset93fcc9a2020-02-26 09:32:41 +0100142 DEBIAN_TAG: &x86_test-vk "2020-03-05"
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100143
Michel Dänzerc6c76522019-11-11 18:13:28 +0100144# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100145x86_build_old:
146 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200147 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100148 DEBIAN_TAG: &x86_build_old "2019-09-18"
149 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200150
Michel Dänzer3a48f452019-11-13 17:43:41 +0100151.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100152 variables:
153 TAG: *x86_build_old
154 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200155 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100156 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200157
Michel Dänzerc6c76522019-11-11 18:13:28 +0100158# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100159arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200160 extends:
161 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100162 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700163 variables:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800164 DEBIAN_TAG: &arm_build "2020-03-09"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000165
Michel Dänzerc6c76522019-11-11 18:13:28 +0100166.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100167 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100168 TAG: *arm_build
169 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
170 needs:
171 - arm_build
172
173# Debian 10 based ARM test image
174arm_test:
175 extends: arm_build
176 variables:
Eric Anholt658eb692020-01-30 15:53:39 -0800177 DEBIAN_TAG: &arm_test "2020-01-30"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100178
179.use-arm_test:
180 variables:
181 TAG: *arm_test
182 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
183 needs:
184 - meson-arm64
185 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100186
Eric Engestrom81b98e92019-10-14 23:04:14 +0100187
Eric Engestrom46d23c02019-01-20 11:26:53 +0000188# BUILD
189
Dylan Baker06e46472019-10-23 14:21:31 -0700190# Shared between windows and Linux
191.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100192 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000193 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100194 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700195 when: always
196 paths:
197 - _build/meson-logs/*.txt
198 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200199 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700200 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700201
202# Just Linux
203.build-linux:
204 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200205 variables:
206 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100207 CCACHE_COMPRESS: "true"
208 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000209 # Use ccache transparently, and print stats before/after
210 before_script:
211 - export PATH="/usr/lib/ccache:$PATH"
212 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100213 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000214 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000215 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000216
Dylan Baker19851c92019-10-23 14:36:19 -0700217.build-windows:
218 extends: .build-common
219 tags:
220 - mesa-windows
221 cache:
222 key: ${CI_JOB_NAME}
223 paths:
224 - subprojects/packagecache
225
Eric Engestrom46d23c02019-01-20 11:26:53 +0000226.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100227 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700228 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100229 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100230 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100231 variables:
232 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000233 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200234 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000235
Eric Engestrom06b245b2019-01-23 15:46:10 +0000236.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100237 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700238 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100239 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100240 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000241 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800242 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000243 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200244 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000245
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100246meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200247 extends:
248 - .meson-build
249 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200250 variables:
251 UNWIND: "true"
252 DRI_LOADERS: >
253 -D glx=dri
254 -D gbm=true
255 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100256 -D platforms=x11,drm,surfaceless
257 GALLIUM_ST: >
258 -D dri3=true
259 GALLIUM_DRIVERS: "swrast"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100260 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100261 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800262 EXTRA_OPTION: >
263 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100264 script:
265 - .gitlab-ci/meson-build.sh
266 - .gitlab-ci/prepare-artifacts.sh
267
268meson-main:
269 extends: .meson-build
270 variables:
271 UNWIND: "true"
272 DRI_LOADERS: >
273 -D glx=dri
274 -D gbm=true
275 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200276 -D platforms=x11,wayland,drm,surfaceless
277 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
278 GALLIUM_ST: >
279 -D dri3=true
280 -D gallium-extra-hud=true
281 -D gallium-vdpau=true
282 -D gallium-xvmc=true
283 -D gallium-omx=bellagio
284 -D gallium-va=true
285 -D gallium-xa=true
286 -D gallium-nine=true
287 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100288 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200289 EXTRA_OPTION: >
290 -D osmesa=gallium
291 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200292 script:
293 - .gitlab-ci/meson-build.sh
294 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200295
Michel Dänzere5364462019-09-13 11:59:43 +0200296.meson-cross:
297 extends:
298 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100299 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200300 variables:
301 UNWIND: "false"
302 DRI_LOADERS: >
303 -D glx=disabled
304 -D gbm=false
305 -D egl=true
306 -D platforms=surfaceless
307 -D osmesa=none
308 GALLIUM_ST: >
309 -D dri3=false
310 -D gallium-vdpau=false
311 -D gallium-xvmc=false
312 -D gallium-omx=disabled
313 -D gallium-va=false
314 -D gallium-xa=false
315 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100316 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200317
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200318.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100319 extends:
320 - .meson-cross
321 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200322 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200323 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200324 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100325 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200326 tags:
327 - aarch64
328
329meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100330 extends:
331 - .meson-arm
332 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200333 variables:
334 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200335 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800336 EXTRA_OPTION: >
337 -D llvm=false
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100338 script:
339 - .gitlab-ci/meson-build.sh
340 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200341
342meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200343 extends:
344 - .meson-arm
345 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200346 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100347 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800348 EXTRA_OPTION: >
349 -D llvm=false
Michel Dänzer59fcb012019-10-23 18:42:53 +0200350 script:
351 - .gitlab-ci/meson-build.sh
352 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200353
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100354meson-arm64-build-test:
355 extends:
356 - .meson-arm
357 - .ci-deqp-artifacts
358 variables:
359 VULKAN_DRIVERS: "amd"
360 script:
361 - .gitlab-ci/meson-build.sh
362
Michel Dänzera2cce702019-03-20 15:58:31 +0100363meson-clang:
364 extends: .meson-build
365 variables:
366 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100367 DRI_LOADERS: >
368 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100369 DRI_DRIVERS: "auto"
370 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100371 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100372 CC: "ccache clang-9"
373 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100374
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100375.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700376 extends:
377 - .build-windows
Michel Dänzercc9493f2020-02-27 18:27:56 +0100378 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700379 before_script:
380 - $ENV:ARCH = "x86"
381 - $ENV:VERSION = "2019\Community"
382 script:
383 - cmd /C .gitlab-ci\meson-build.bat
384
Michel Dänzer82b30092019-05-03 18:19:25 +0200385scons-swr:
386 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000387 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200388 SCONS_TARGET: "swr=1"
389 SCONS_CHECK_COMMAND: "true"
390 LLVM_VERSION: "6.0"
391
392scons-win64:
393 extends: .scons-build
394 variables:
395 SCONS_TARGET: platform=windows machine=x86_64
396 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000397
Michel Dänzer68977152019-05-03 10:58:48 +0200398meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000399 extends: .meson-build
400 variables:
401 UNWIND: "true"
402 DRI_LOADERS: >
403 -D glx=disabled
404 -D egl=false
405 -D gbm=false
406 GALLIUM_ST: >
407 -D dri3=false
408 -D gallium-vdpau=false
409 -D gallium-xvmc=false
410 -D gallium-omx=disabled
411 -D gallium-va=false
412 -D gallium-xa=false
413 -D gallium-nine=false
414 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200415 script:
416 - export GALLIUM_DRIVERS="r600,radeonsi"
417 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200418 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200419 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200420 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
421 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
422
423meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200424 extends:
425 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100426 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200427 variables:
428 UNWIND: "false"
429 DRI_LOADERS: >
430 -D glx=disabled
431 -D egl=false
432 -D gbm=false
433 -D platforms=drm,surfaceless
434 GALLIUM_DRIVERS: "i915,r600"
435 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200436 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
437 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
438 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000439
Michel Dänzer82b30092019-05-03 18:19:25 +0200440meson-vulkan:
441 extends: .meson-build
442 variables:
443 UNWIND: "false"
444 DRI_LOADERS: >
445 -D glx=disabled
446 -D gbm=false
447 -D egl=false
448 -D platforms=x11,wayland,drm
449 -D osmesa=none
450 GALLIUM_ST: >
451 -D dri3=true
452 -D gallium-vdpau=false
453 -D gallium-xvmc=false
454 -D gallium-omx=disabled
455 -D gallium-va=false
456 -D gallium-xa=false
457 -D gallium-nine=false
458 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200459 -D b_sanitize=undefined
460 -D c_args=-fno-sanitize-recover=all
461 -D cpp_args=-fno-sanitize-recover=all
462 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200463 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200464 EXTRA_OPTION: >
465 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800466 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200467
Eric Anholt030aa6e2019-08-07 14:05:51 -0700468# While the main point of this build is testing the i386 cross build,
469# we also use this one to test some other options that are exclusive
470# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700471meson-i386:
472 extends: .meson-cross
473 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100474 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100475 VULKAN_DRIVERS: intel,amd
Eric Anholt030aa6e2019-08-07 14:05:51 -0700476 DRI_DRIVERS: "swrast"
477 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700478 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700479 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700480 -D osmesa=classic
Eric Anholtf6e59912019-12-16 21:23:02 -0800481 -D werror=true
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100482 script:
483 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
484 - .gitlab-ci/meson-build.sh
Eric Anholt11aa32a2019-07-11 12:58:28 -0700485
Michel Dänzer65610ec2020-01-30 18:21:15 +0100486meson-s390x:
487 extends:
488 - .meson-cross
489 variables:
490 CROSS: s390x
491 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100492 script:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100493 # For unknown reasons "too many" installed i386 libraries cause qemu to
494 # crash while executing llvm-config for s390x.
495 - apt-get remove -y libglib2.0-0:i386
Michel Dänzer65610ec2020-01-30 18:21:15 +0100496 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
497 - .gitlab-ci/meson-build.sh
498
499meson-ppc64el:
500 extends:
501 - meson-s390x
502 variables:
503 CROSS: ppc64el
Michel Dänzer8be81f82020-01-31 16:07:10 +0100504 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100505 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100506
Dylan Baker449f8312019-10-11 09:04:14 -0700507meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700508 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100509 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700510 variables:
511 UNWIND: "false"
512 DRI_DRIVERS: ""
513 GALLIUM_DRIVERS: "swrast"
514 EXTRA_OPTION: >
515 -Dllvm=false
516 -Dosmesa=gallium
517 --cross-file=.gitlab-ci/x86_64-w64-mingw32
518
Michel Dänzer88e57962019-09-12 11:45:13 +0200519scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000520 extends: .scons-build
521 variables:
522 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700523 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200524 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700525 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100526 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200527
528scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200529 extends:
530 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100531 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200532 script:
533 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700534
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100535.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200536 extends:
537 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700538 variables:
539 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200540 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700541 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
542 - rm -rf install
543 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100544 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700545 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800546 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100547 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700548 paths:
549 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200550 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100551 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100552
553.test-gl:
554 extends:
555 - .test
556 variables:
557 TAG: *x86_test-gl
558 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200559 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100560 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100561 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700562
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100563.test-vk:
564 extends:
565 - .test
566 variables:
567 TAG: *x86_test-vk
568 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
569 needs:
570 - meson-testing
571 - x86_test-vk
572
Michel Dänzer576f7b62019-10-22 17:16:52 +0200573.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100574 extends:
575 - .test-gl
576 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100577 artifacts:
578 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100579 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100580 paths:
581 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200582 variables:
583 LIBGL_ALWAYS_SOFTWARE: 1
584 PIGLIT_NO_WINDOW: 1
585 script:
586 - artifacts/piglit/run.sh
587
588piglit-quick_gl:
589 extends: .piglit-test
590 variables:
591 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000592 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200593 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100594 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200595 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800596 -x egl_ext_device_
597 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800598 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200599 -x glx-multithread-clearbuffer
600 -x glx-multithread-shader-compile
601 -x max-texture-size
602 -x maxsize
603 PIGLIT_PROFILES: quick_gl
604
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100605piglit-glslparser:
606 extends: .piglit-test
607 variables:
608 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000609 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100610 PIGLIT_PROFILES: glslparser
611
612piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200613 extends: .piglit-test
614 variables:
615 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000616 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100617 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200618
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100619.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200620 variables:
621 DEQP_SKIPS: deqp-default-skips.txt
622 script:
623 - ./artifacts/deqp-runner.sh
624
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100625.deqp-test-gl:
626 extends:
627 - .test-gl
628 - .deqp-test
629
630.deqp-test-vk:
631 extends:
632 - .test-vk
633 - .deqp-test
634 variables:
635 DEQP_VER: vk
636
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100637.fossilize-test:
638 extends: .test-vk
639 script:
640 - ./artifacts/fossilize-runner.sh
641
Michel Dänzer71436f92020-03-03 18:17:12 +0100642llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700643 variables:
644 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800645 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000646 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800647 # Don't use threads inside llvmpipe, we've already got all 4 cores
648 # busy with DEQP_PARALLEL.
649 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700650 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
651 LIBGL_ALWAYS_SOFTWARE: "true"
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100652 extends:
653 - .deqp-test-gl
654 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700655
Michel Dänzer71436f92020-03-03 18:17:12 +0100656softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100657 extends:
658 - llvmpipe-gles2
659 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700660 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700661 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800662 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700663 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700664
Michel Dänzer71436f92020-03-03 18:17:12 +0100665softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800666 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700667 variables:
668 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100669 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800670
Michel Dänzer71436f92020-03-03 18:17:12 +0100671softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800672 parallel: 4
673 variables:
674 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100675 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700676
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000677arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100678 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100679 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100680 - .use-arm_test
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100681 - .freedreno-rules
Eric Anholt6f0dc082019-06-28 16:35:32 -0700682 variables:
683 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700684 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
685 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
686 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800687 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800688 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700689 tags:
690 - mesa-cheza
691 dependencies:
692 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700693
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000694arm64_a630_gles31:
695 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700696 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200697 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700698
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000699arm64_a630_gles3:
700 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700701 variables:
702 DEQP_VER: gles3
703
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800704.baremetal-test:
705 extends:
706 - .ci-run-policy
707 stage: test
708
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800709arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800710 extends:
711 - .baremetal-test
712 - .use-arm_build
713 stage: freedreno
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800714 variables:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800715 BM_KERNEL: /lava-files/Image
716 BM_DTB: /lava-files/apq8016-sbc.dtb
717 BM_ROOTFS: /lava-files/rootfs-arm64
718 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800719 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800720 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
721 DEQP_VER: gles2
722 DEQP_PARALLEL: 4
723 script:
724 - .gitlab-ci/bare-metal/fastboot.sh
725 needs:
726 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800727 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800728 - google-freedreno-db410c
729
730# Disabled due to flaky results
731.arm64_a306_gles3:
732 extends:
733 - arm64_a306_gles2
734 parallel: 8
735 variables:
736 DEQP_VER: gles3
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800737
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100738# RADV CI
739.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +0100740 extends: .radv-rules
Michel Dänzercc9493f2020-02-27 18:27:56 +0100741 stage: misc-tests
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100742 variables:
743 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100744 RADV_DEBUG: checkir
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100745
746.test-radv-unsafe:
747 extends: .test-radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100748 # Can only be triggered manually on personal branches because RADV is the only
749 # driver that does Vulkan testing at the moment.
750 rules:
751 # Never test RADV by default in the main project.
752 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
753 when: never
754 # Never test RADV by default for merge requests.
755 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
756 when: never
Samuel Pitoisetaf1cd452020-02-26 08:49:27 +0100757 # Otherwise, allow testing RADV manually for personal branches.
758 - when: manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100759
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100760.test-radv-fossilize:
761 extends:
762 - .fossilize-test
763 - .test-radv
764
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100765radv_polaris10_vkcts:
766 extends:
767 - .deqp-test-vk
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100768 - .test-radv-unsafe
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100769 variables:
770 DEQP_PARALLEL: 4
771 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
772 tags:
773 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200774
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100775radv-polaris10-fossils:
776 extends: .test-radv-fossilize
777 variables:
778 RADV_FORCE_FAMILY: "polaris10" # Force creating a null device
779
Andres Gomez0ac731b12020-02-20 18:26:30 +0200780# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200781.traces-test:
Michel Dänzercc9493f2020-02-27 18:27:56 +0100782 stage: misc-tests
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200783 cache:
784 key: ${CI_JOB_NAME}
785 paths:
786 - .git-lfs-storage/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200787
788.traces-test-gl:
789 extends:
790 - .test-gl
791 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200792 script:
Andres Gomez0ac731b12020-02-20 18:26:30 +0200793 - ./artifacts/tracie-runner-gl.sh
794
795.traces-test-vk:
796 extends:
797 - .test-vk
798 - .traces-test
799 script:
800 - ./artifacts/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200801
802llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100803 extends:
804 - .traces-test-gl
805 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200806 variables:
807 LIBGL_ALWAYS_SOFTWARE: "true"
808 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +0200809 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +0200810
811radv-polaris10-traces:
812 extends:
813 - .traces-test-vk
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100814 - .test-radv-unsafe
Andres Gomez0ac731b12020-02-20 18:26:30 +0200815 variables:
816 DEVICE_NAME: "vk-amd-polaris10"
817 tags:
818 - polaris10