blob: 56b9a7606c0d5d7c0dc770661490030390d0c419 [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'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +02009
Eric Engestrom329f5cd2019-01-20 11:21:45 +000010stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010011 - container
Michel Dänzercc9493f2020-02-27 18:27:56 +010012 - meson-x86_64
13 - scons
14 - meson-misc
15 - llvmpipe
16 - softpipe
17 - freedreno
18 - panfrost
19 - misc-tests
Michel Dänzer8775b742020-01-13 09:45:57 +010020 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000021
22
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000023# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020024.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020025 rules:
Michel Dänzer8775b742020-01-13 09:45:57 +010026 # Run pipeline by default for merge requests changing files affecting it
27 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
28 changes: &paths
29 - VERSION
30 - bin/**/*
31 # GitLab CI
32 - .gitlab-ci.yml
33 - .gitlab-ci/**/*
34 # Meson
35 - meson*
36 - build-support/**/*
37 - subprojects/**/*
38 # SCons
39 - SConstruct
40 - scons/**/*
41 - common.py
42 # Source code
43 - include/**/*
44 - src/**/*
45 when: on_success
46 # Run pipeline by default in the main project if files affecting it were
47 # changed
48 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
49 changes:
50 *paths
51 when: on_success
52 # Allow triggering jobs manually on branches of forked projects
Michel Dänzer5a6a88f2020-01-20 18:39:50 +010053 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
Michel Dänzer8775b742020-01-13 09:45:57 +010054 when: manual
55 # Otherwise, most jobs won't run
56 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010057 retry:
58 max: 2
59 when:
60 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000061 # Cancel CI run if a newer commit is pushed to the same branch
62 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000063
Michel Dänzer8775b742020-01-13 09:45:57 +010064success:
65 stage: success
66 image: debian:stable-slim
67 only:
68 - merge_requests
69 except:
70 changes:
71 *paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010072 variables:
73 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010074 script:
75 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
76
77
Michel Dänzere426f402019-09-06 17:35:52 +020078.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070079 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +010080 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -070081 when: always
82 untracked: false
83 paths:
84 # Watch out! Artifacts are relative to the build dir.
85 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
86 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000087
Tomeu Vizoso22d97642019-12-17 11:50:14 +010088# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010089#
90# DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
91# image doesn't exist yet, the container stage job generates it.
92#
93# In order to generate a new image, one should generally change the tag.
94# While removing the image from the registry would also work, that's not
95# recommended except for ephemeral images during development: Replacing
96# an image after a significant amount of time might pull in newer
97# versions of gcc/clang or other packages, which might break the build
98# with older commits using the same tag.
99#
100# After merging a change resulting in generating a new image to the
101# main repository, it's recommended to remove the image from the source
102# repository's container registry, so that the image from the main
103# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +0200104
Eric Engestrom81b98e92019-10-14 23:04:14 +0100105.container:
106 stage: container
107 extends:
108 - .ci-run-policy
109 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100110 DEBIAN_VERSION: buster-slim
111 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +0100112 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100113 # no need to pull the whole repo to build the container image
114 GIT_STRATEGY: none
115
Michel Dänzerc6c76522019-11-11 18:13:28 +0100116# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100117x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200118 extends:
119 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +0100120 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100121 variables:
Dave Airlie8f5a2522020-02-14 15:47:20 +1000122 DEBIAN_TAG: &x86_build "2020-02-15"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000123
Michel Dänzer3a48f452019-11-13 17:43:41 +0100124.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100125 variables:
126 TAG: *x86_build
127 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200128 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100129 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200130
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100131# Debian 10 based x86 test image for GL
132x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100133 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100134 variables:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200135 DEBIAN_TAG: &x86_test-gl "2020-02-14"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100136
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100137# Debian 10 based x86 test image for VK
138x86_test-vk:
139 extends: x86_build
140 variables:
Samuel Pitoiset93fcc9a2020-02-26 09:32:41 +0100141 DEBIAN_TAG: &x86_test-vk "2020-03-05"
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100142
Michel Dänzerc6c76522019-11-11 18:13:28 +0100143# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100144x86_build_old:
145 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200146 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100147 DEBIAN_TAG: &x86_build_old "2019-09-18"
148 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200149
Michel Dänzer3a48f452019-11-13 17:43:41 +0100150.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100151 variables:
152 TAG: *x86_build_old
153 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200154 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100155 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200156
Michel Dänzerc6c76522019-11-11 18:13:28 +0100157# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100158arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200159 extends:
160 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100161 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700162 variables:
Eric Anholt33f38602020-01-28 12:02:39 -0800163 DEBIAN_TAG: &arm_build "2020-02-26"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000164
Michel Dänzerc6c76522019-11-11 18:13:28 +0100165.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100166 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100167 TAG: *arm_build
168 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
169 needs:
170 - arm_build
171
172# Debian 10 based ARM test image
173arm_test:
174 extends: arm_build
175 variables:
Eric Anholt658eb692020-01-30 15:53:39 -0800176 DEBIAN_TAG: &arm_test "2020-01-30"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100177
178.use-arm_test:
179 variables:
180 TAG: *arm_test
181 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
182 needs:
183 - meson-arm64
184 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100185
Eric Engestrom81b98e92019-10-14 23:04:14 +0100186
Eric Engestrom46d23c02019-01-20 11:26:53 +0000187# BUILD
188
Dylan Baker06e46472019-10-23 14:21:31 -0700189# Shared between windows and Linux
190.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100191 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000192 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100193 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700194 when: always
195 paths:
196 - _build/meson-logs/*.txt
197 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200198 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700199 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700200
201# Just Linux
202.build-linux:
203 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200204 variables:
205 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100206 CCACHE_COMPRESS: "true"
207 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000208 # Use ccache transparently, and print stats before/after
209 before_script:
210 - export PATH="/usr/lib/ccache:$PATH"
211 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100212 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000213 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000214 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000215
Dylan Baker19851c92019-10-23 14:36:19 -0700216.build-windows:
217 extends: .build-common
218 tags:
219 - mesa-windows
220 cache:
221 key: ${CI_JOB_NAME}
222 paths:
223 - subprojects/packagecache
224
Eric Engestrom46d23c02019-01-20 11:26:53 +0000225.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100226 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700227 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100228 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100229 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100230 variables:
231 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000232 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200233 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000234
Eric Engestrom06b245b2019-01-23 15:46:10 +0000235.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100236 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700237 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100238 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100239 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000240 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800241 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000242 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200243 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000244
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100245meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200246 extends:
247 - .meson-build
248 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200249 variables:
250 UNWIND: "true"
251 DRI_LOADERS: >
252 -D glx=dri
253 -D gbm=true
254 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100255 -D platforms=x11,drm,surfaceless
256 GALLIUM_ST: >
257 -D dri3=true
258 GALLIUM_DRIVERS: "swrast"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100259 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100260 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800261 EXTRA_OPTION: >
262 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100263 script:
264 - .gitlab-ci/meson-build.sh
265 - .gitlab-ci/prepare-artifacts.sh
266
267meson-main:
268 extends: .meson-build
269 variables:
270 UNWIND: "true"
271 DRI_LOADERS: >
272 -D glx=dri
273 -D gbm=true
274 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200275 -D platforms=x11,wayland,drm,surfaceless
276 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
277 GALLIUM_ST: >
278 -D dri3=true
279 -D gallium-extra-hud=true
280 -D gallium-vdpau=true
281 -D gallium-xvmc=true
282 -D gallium-omx=bellagio
283 -D gallium-va=true
284 -D gallium-xa=true
285 -D gallium-nine=true
286 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100287 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 +0200288 EXTRA_OPTION: >
289 -D osmesa=gallium
290 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200291 script:
292 - .gitlab-ci/meson-build.sh
293 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200294
Michel Dänzere5364462019-09-13 11:59:43 +0200295.meson-cross:
296 extends:
297 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100298 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200299 variables:
300 UNWIND: "false"
301 DRI_LOADERS: >
302 -D glx=disabled
303 -D gbm=false
304 -D egl=true
305 -D platforms=surfaceless
306 -D osmesa=none
307 GALLIUM_ST: >
308 -D dri3=false
309 -D gallium-vdpau=false
310 -D gallium-xvmc=false
311 -D gallium-omx=disabled
312 -D gallium-va=false
313 -D gallium-xa=false
314 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100315 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200316
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200317.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100318 extends:
319 - .meson-cross
320 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200321 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200322 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200323 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100324 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200325 tags:
326 - aarch64
327
328meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100329 extends:
330 - .meson-arm
331 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200332 variables:
333 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200334 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800335 EXTRA_OPTION: >
336 -D llvm=false
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100337 script:
338 - .gitlab-ci/meson-build.sh
339 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200340
341meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200342 extends:
343 - .meson-arm
344 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200345 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100346 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800347 EXTRA_OPTION: >
348 -D llvm=false
Michel Dänzer59fcb012019-10-23 18:42:53 +0200349 script:
350 - .gitlab-ci/meson-build.sh
351 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200352
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100353meson-arm64-build-test:
354 extends:
355 - .meson-arm
356 - .ci-deqp-artifacts
357 variables:
358 VULKAN_DRIVERS: "amd"
359 script:
360 - .gitlab-ci/meson-build.sh
361
Michel Dänzera2cce702019-03-20 15:58:31 +0100362meson-clang:
363 extends: .meson-build
364 variables:
365 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100366 DRI_LOADERS: >
367 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100368 DRI_DRIVERS: "auto"
369 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100370 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100371 CC: "ccache clang-9"
372 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100373
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100374.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700375 extends:
376 - .build-windows
Michel Dänzercc9493f2020-02-27 18:27:56 +0100377 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700378 before_script:
379 - $ENV:ARCH = "x86"
380 - $ENV:VERSION = "2019\Community"
381 script:
382 - cmd /C .gitlab-ci\meson-build.bat
383
Michel Dänzer82b30092019-05-03 18:19:25 +0200384scons-swr:
385 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000386 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200387 SCONS_TARGET: "swr=1"
388 SCONS_CHECK_COMMAND: "true"
389 LLVM_VERSION: "6.0"
390
391scons-win64:
392 extends: .scons-build
393 variables:
394 SCONS_TARGET: platform=windows machine=x86_64
395 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000396
Michel Dänzer68977152019-05-03 10:58:48 +0200397meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000398 extends: .meson-build
399 variables:
400 UNWIND: "true"
401 DRI_LOADERS: >
402 -D glx=disabled
403 -D egl=false
404 -D gbm=false
405 GALLIUM_ST: >
406 -D dri3=false
407 -D gallium-vdpau=false
408 -D gallium-xvmc=false
409 -D gallium-omx=disabled
410 -D gallium-va=false
411 -D gallium-xa=false
412 -D gallium-nine=false
413 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200414 script:
415 - export GALLIUM_DRIVERS="r600,radeonsi"
416 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200417 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200418 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200419 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
420 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
421
422meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200423 extends:
424 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100425 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200426 variables:
427 UNWIND: "false"
428 DRI_LOADERS: >
429 -D glx=disabled
430 -D egl=false
431 -D gbm=false
432 -D platforms=drm,surfaceless
433 GALLIUM_DRIVERS: "i915,r600"
434 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200435 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
436 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
437 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000438
Michel Dänzer82b30092019-05-03 18:19:25 +0200439meson-vulkan:
440 extends: .meson-build
441 variables:
442 UNWIND: "false"
443 DRI_LOADERS: >
444 -D glx=disabled
445 -D gbm=false
446 -D egl=false
447 -D platforms=x11,wayland,drm
448 -D osmesa=none
449 GALLIUM_ST: >
450 -D dri3=true
451 -D gallium-vdpau=false
452 -D gallium-xvmc=false
453 -D gallium-omx=disabled
454 -D gallium-va=false
455 -D gallium-xa=false
456 -D gallium-nine=false
457 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200458 -D b_sanitize=undefined
459 -D c_args=-fno-sanitize-recover=all
460 -D cpp_args=-fno-sanitize-recover=all
461 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200462 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200463 EXTRA_OPTION: >
464 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800465 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200466
Eric Anholt030aa6e2019-08-07 14:05:51 -0700467# While the main point of this build is testing the i386 cross build,
468# we also use this one to test some other options that are exclusive
469# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700470meson-i386:
471 extends: .meson-cross
472 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100473 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700474 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700475 DRI_DRIVERS: "swrast"
476 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700477 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700478 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700479 -D llvm=false
480 -D osmesa=classic
Eric Anholtf6e59912019-12-16 21:23:02 -0800481 -D werror=true
Eric Anholt11aa32a2019-07-11 12:58:28 -0700482
Michel Dänzer65610ec2020-01-30 18:21:15 +0100483meson-s390x:
484 extends:
485 - .meson-cross
Michel Dänzer23037622020-02-10 12:13:04 +0100486 tags:
487 - gstreamer
Michel Dänzer65610ec2020-01-30 18:21:15 +0100488 variables:
489 CROSS: s390x
490 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100491 script:
492 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
493 - .gitlab-ci/meson-build.sh
494
495meson-ppc64el:
496 extends:
497 - meson-s390x
498 variables:
499 CROSS: ppc64el
Michel Dänzer8be81f82020-01-31 16:07:10 +0100500 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100501 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100502
Dylan Baker449f8312019-10-11 09:04:14 -0700503meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700504 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100505 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700506 variables:
507 UNWIND: "false"
508 DRI_DRIVERS: ""
509 GALLIUM_DRIVERS: "swrast"
510 EXTRA_OPTION: >
511 -Dllvm=false
512 -Dosmesa=gallium
513 --cross-file=.gitlab-ci/x86_64-w64-mingw32
514
Michel Dänzer88e57962019-09-12 11:45:13 +0200515scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000516 extends: .scons-build
517 variables:
518 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700519 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200520 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700521 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100522 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200523
524scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200525 extends:
526 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100527 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200528 script:
529 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700530
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100531.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200532 extends:
533 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700534 variables:
535 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200536 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700537 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
538 - rm -rf install
539 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100540 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700541 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800542 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100543 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700544 paths:
545 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200546 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100547 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100548
549.test-gl:
550 extends:
551 - .test
552 variables:
553 TAG: *x86_test-gl
554 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200555 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100556 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100557 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700558
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100559.test-vk:
560 extends:
561 - .test
562 variables:
563 TAG: *x86_test-vk
564 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
565 needs:
566 - meson-testing
567 - x86_test-vk
568
Michel Dänzer576f7b62019-10-22 17:16:52 +0200569.piglit-test:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100570 extends: .test-gl
Michel Dänzercc9493f2020-02-27 18:27:56 +0100571 stage: llvmpipe
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100572 artifacts:
573 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100574 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100575 paths:
576 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200577 variables:
578 LIBGL_ALWAYS_SOFTWARE: 1
579 PIGLIT_NO_WINDOW: 1
580 script:
581 - artifacts/piglit/run.sh
582
583piglit-quick_gl:
584 extends: .piglit-test
585 variables:
586 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000587 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200588 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100589 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200590 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800591 -x egl_ext_device_
592 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800593 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200594 -x glx-multithread-clearbuffer
595 -x glx-multithread-shader-compile
596 -x max-texture-size
597 -x maxsize
598 PIGLIT_PROFILES: quick_gl
599
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100600piglit-glslparser:
601 extends: .piglit-test
602 variables:
603 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000604 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100605 PIGLIT_PROFILES: glslparser
606
607piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200608 extends: .piglit-test
609 variables:
610 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000611 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100612 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200613
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100614.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200615 variables:
616 DEQP_SKIPS: deqp-default-skips.txt
617 script:
618 - ./artifacts/deqp-runner.sh
619
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100620.deqp-test-gl:
621 extends:
622 - .test-gl
623 - .deqp-test
624
625.deqp-test-vk:
626 extends:
627 - .test-vk
628 - .deqp-test
629 variables:
630 DEQP_VER: vk
631
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100632.fossilize-test:
633 extends: .test-vk
634 script:
635 - ./artifacts/fossilize-runner.sh
636
Michel Dänzer71436f92020-03-03 18:17:12 +0100637llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700638 variables:
639 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800640 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000641 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800642 # Don't use threads inside llvmpipe, we've already got all 4 cores
643 # busy with DEQP_PARALLEL.
644 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700645 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
646 LIBGL_ALWAYS_SOFTWARE: "true"
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100647 extends: .deqp-test-gl
Michel Dänzercc9493f2020-02-27 18:27:56 +0100648 stage: llvmpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700649
Michel Dänzer71436f92020-03-03 18:17:12 +0100650softpipe-gles2:
651 extends: llvmpipe-gles2
Michel Dänzercc9493f2020-02-27 18:27:56 +0100652 stage: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700653 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700654 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800655 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700656 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700657
Michel Dänzer71436f92020-03-03 18:17:12 +0100658softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800659 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700660 variables:
661 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100662 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800663
Michel Dänzer71436f92020-03-03 18:17:12 +0100664softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800665 parallel: 4
666 variables:
667 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100668 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700669
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000670arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100671 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100672 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100673 - .use-arm_test
Michel Dänzercc9493f2020-02-27 18:27:56 +0100674 stage: freedreno
Eric Anholt6f0dc082019-06-28 16:35:32 -0700675 variables:
676 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700677 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
678 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
679 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800680 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800681 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700682 tags:
683 - mesa-cheza
684 dependencies:
685 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700686
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000687arm64_a630_gles31:
688 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700689 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200690 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700691
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000692arm64_a630_gles3:
693 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700694 variables:
695 DEQP_VER: gles3
696
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800697arm64_a306_gles2:
698 extends: arm64_a630_gles2
699 variables:
700 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
701 DEQP_SKIPS: deqp-default-skips.txt
702 tags:
703 - db410c
704
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100705# RADV CI
706.test-radv:
Michel Dänzercc9493f2020-02-27 18:27:56 +0100707 stage: misc-tests
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100708 variables:
709 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100710 RADV_DEBUG: checkir
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100711
712.test-radv-unsafe:
713 extends: .test-radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100714 # Can only be triggered manually on personal branches because RADV is the only
715 # driver that does Vulkan testing at the moment.
716 rules:
717 # Never test RADV by default in the main project.
718 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
719 when: never
720 # Never test RADV by default for merge requests.
721 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
722 when: never
Samuel Pitoisetaf1cd452020-02-26 08:49:27 +0100723 # Otherwise, allow testing RADV manually for personal branches.
724 - when: manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100725
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100726.test-radv-fossilize:
727 extends:
728 - .fossilize-test
729 - .test-radv
730
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100731radv_polaris10_vkcts:
732 extends:
733 - .deqp-test-vk
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100734 - .test-radv-unsafe
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100735 variables:
736 DEQP_PARALLEL: 4
737 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
738 tags:
739 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200740
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100741radv-polaris10-fossils:
742 extends: .test-radv-fossilize
743 variables:
744 RADV_FORCE_FAMILY: "polaris10" # Force creating a null device
745
Andres Gomez0ac731b12020-02-20 18:26:30 +0200746# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200747.traces-test:
Michel Dänzercc9493f2020-02-27 18:27:56 +0100748 stage: misc-tests
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200749 cache:
750 key: ${CI_JOB_NAME}
751 paths:
752 - .git-lfs-storage/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200753
754.traces-test-gl:
755 extends:
756 - .test-gl
757 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200758 script:
Andres Gomez0ac731b12020-02-20 18:26:30 +0200759 - ./artifacts/tracie-runner-gl.sh
760
761.traces-test-vk:
762 extends:
763 - .test-vk
764 - .traces-test
765 script:
766 - ./artifacts/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200767
768llvmpipe-traces:
Andres Gomez0ac731b12020-02-20 18:26:30 +0200769 extends: .traces-test-gl
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200770 variables:
771 LIBGL_ALWAYS_SOFTWARE: "true"
772 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +0200773 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +0200774
775radv-polaris10-traces:
776 extends:
777 - .traces-test-vk
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100778 - .test-radv-unsafe
Andres Gomez0ac731b12020-02-20 18:26:30 +0200779 variables:
780 DEVICE_NAME: "vk-amd-polaris10"
781 tags:
782 - polaris10