blob: 00f5516d2adfb6b4170b942abfd44a09d004f95d [file] [log] [blame]
Eric Engestrom329f5cd2019-01-20 11:21:45 +00001variables:
Eric Anholtaf7dca32020-03-06 13:23:20 -08002 FDO_UPSTREAM_REPO: mesa/mesa
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +02003
4include:
Eric Anholtaf7dca32020-03-06 13:23:20 -08005 - project: 'freedesktop/ci-templates'
Michel Dänzer1c79ac12020-04-29 18:47:08 +02006 ref: 59de540b620c45739871d1a073d76d5521989d11
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änzerc2366f02020-05-16 17:17:23 +020013 - container-2
Michel Dänzercc9493f2020-02-27 18:27:56 +010014 - meson-x86_64
15 - scons
16 - meson-misc
17 - llvmpipe
18 - softpipe
19 - freedreno
20 - panfrost
Samuel Pitoiset48e92032020-03-06 08:39:25 +010021 - radv
22 - lima
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +020023 - virgl
Michel Dänzer8775b742020-01-13 09:45:57 +010024 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000025
26
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000027# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020028.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020029 rules:
Michel Dänzer42fe6002020-04-03 12:50:11 +020030 # If any files affecting the pipeline are changed, build/test jobs run
31 # automatically once all dependency jobs have passed
32 - changes: &all_paths
Michel Dänzer8775b742020-01-13 09:45:57 +010033 - VERSION
Eric Engestrom576bff52020-05-14 22:51:38 +020034 - bin/git_sha1_gen.py
35 - bin/install_megadrivers.py
36 - bin/meson_get_version.py
37 - bin/symbols-check.py
Michel Dänzer8775b742020-01-13 09:45:57 +010038 # GitLab CI
39 - .gitlab-ci.yml
40 - .gitlab-ci/**/*
41 # Meson
42 - meson*
43 - build-support/**/*
44 - subprojects/**/*
45 # SCons
46 - SConstruct
47 - scons/**/*
48 - common.py
49 # Source code
50 - include/**/*
51 - src/**/*
52 when: on_success
Michel Dänzer42fe6002020-04-03 12:50:11 +020053 # Otherwise, build/test jobs won't run
Michel Dänzer8775b742020-01-13 09:45:57 +010054 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010055 retry:
56 max: 2
57 when:
58 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000059 # Cancel CI run if a newer commit is pushed to the same branch
60 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000061
Michel Dänzer8775b742020-01-13 09:45:57 +010062success:
63 stage: success
64 image: debian:stable-slim
65 only:
66 - merge_requests
67 except:
68 changes:
Michel Dänzerc12576e2020-04-03 11:17:48 +020069 *all_paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010070 variables:
71 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010072 script:
73 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
74
75
Michel Dänzere426f402019-09-06 17:35:52 +020076.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070077 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +010078 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -070079 when: always
80 untracked: false
81 paths:
82 # Watch out! Artifacts are relative to the build dir.
83 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
84 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000085
Tomeu Vizoso22d97642019-12-17 11:50:14 +010086# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010087#
Eric Anholtaf7dca32020-03-06 13:23:20 -080088# FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
Michel Dänzerc6c76522019-11-11 18:13:28 +010089# image doesn't exist yet, the container stage job generates it.
90#
91# In order to generate a new image, one should generally change the tag.
92# While removing the image from the registry would also work, that's not
93# recommended except for ephemeral images during development: Replacing
94# an image after a significant amount of time might pull in newer
95# versions of gcc/clang or other packages, which might break the build
96# with older commits using the same tag.
97#
98# After merging a change resulting in generating a new image to the
99# main repository, it's recommended to remove the image from the source
100# repository's container registry, so that the image from the main
101# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +0200102
Eric Engestrom81b98e92019-10-14 23:04:14 +0100103.container:
104 stage: container
105 extends:
106 - .ci-run-policy
Michel Dänzer42fe6002020-04-03 12:50:11 +0200107 rules:
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200108 # Run pipeline by default if it was triggered by Marge Bot, is for a
109 # merge request, and any files affecting it were changed
110 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
Michel Dänzer42fe6002020-04-03 12:50:11 +0200111 changes:
112 *all_paths
113 when: on_success
114 # Run pipeline by default in the main project if any files affecting it were
115 # changed
116 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
117 changes:
118 *all_paths
119 when: on_success
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200120 # Allow triggering jobs manually for MRs or branches of forked projects if
121 # any files affecting the pipeline were changed
122 - changes:
Michel Dänzer42fe6002020-04-03 12:50:11 +0200123 *all_paths
124 when: manual
125 # Otherwise, container jobs won't run
126 - when: never
Eric Engestrom81b98e92019-10-14 23:04:14 +0100127 variables:
Eric Anholtaf7dca32020-03-06 13:23:20 -0800128 FDO_DISTRIBUTION_VERSION: buster-slim
Michel Dänzerfcd33772020-03-23 18:16:07 +0100129 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800130 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100131 # no need to pull the whole repo to build the container image
132 GIT_STRATEGY: none
133
Michel Dänzera85da8e2020-05-30 15:53:41 +0200134# Debian 10 based x86 build image base
135x86_build-base:
Michel Dänzere426f402019-09-06 17:35:52 +0200136 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100137 - .fdo.container-build@debian
Eric Engestrom81b98e92019-10-14 23:04:14 +0100138 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100139 variables:
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200140 FDO_DISTRIBUTION_TAG: &x86_build-base "2020-06-02"
Michel Dänzera85da8e2020-05-30 15:53:41 +0200141
142.use-x86_build-base:
143 extends:
144 - x86_build-base
145 - .ci-run-policy
146 stage: container-2
147 variables:
148 BASE_TAG: *x86_build-base
149 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_build-base:$BASE_TAG"
150 needs:
151 - x86_build-base
152
153# Debian 10 based x86 main build image
154x86_build:
155 extends:
156 - .use-x86_build-base
157 variables:
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200158 FDO_DISTRIBUTION_TAG: &x86_build "2020-06-02"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000159
Michel Dänzer3a48f452019-11-13 17:43:41 +0100160.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100161 variables:
162 TAG: *x86_build
163 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200164 needs:
Michel Dänzera85da8e2020-05-30 15:53:41 +0200165 - x86_build-base
Michel Dänzer3a48f452019-11-13 17:43:41 +0100166 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200167
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200168# Debian 10 based i386 cross-build image
169i386_build:
170 extends:
171 - .use-x86_build-base
172 variables:
173 FDO_DISTRIBUTION_TAG: &i386_build "2020-06-02"
174
175.use-i386_build:
176 variables:
177 TAG: *i386_build
178 image: "$CI_REGISTRY_IMAGE/debian/i386_build:$TAG"
179 needs:
180 - x86_build-base
181 - i386_build
182
183# Debian 10 based ppc64el cross-build image
184ppc64el_build:
185 extends:
186 - .use-x86_build-base
187 variables:
188 FDO_DISTRIBUTION_TAG: &ppc64el_build "2020-06-02"
189
190.use-ppc64el_build:
191 variables:
192 TAG: *ppc64el_build
193 image: "$CI_REGISTRY_IMAGE/debian/ppc64el_build:$TAG"
194 needs:
195 - x86_build-base
196 - ppc64el_build
197
198# Debian 10 based s390x cross-build image
199s390x_build:
200 extends:
201 - .use-x86_build-base
202 variables:
203 FDO_DISTRIBUTION_TAG: &s390x_build "2020-06-02"
204
205.use-s390x_build:
206 variables:
207 TAG: *s390x_build
208 image: "$CI_REGISTRY_IMAGE/debian/s390x_build:$TAG"
209 needs:
210 - x86_build-base
211 - s390x_build
212
Michel Dänzerc2366f02020-05-16 17:17:23 +0200213# Debian 10 based x86 test image base
214x86_test-base:
Michel Dänzera85da8e2020-05-30 15:53:41 +0200215 extends: x86_build-base
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100216 variables:
Michel Dänzerb19c0942020-05-31 00:09:18 +0200217 FDO_DISTRIBUTION_TAG: &x86_test-base "2020-06-02"
Michel Dänzerc2366f02020-05-16 17:17:23 +0200218
219.use-x86_test-base:
220 extends:
Michel Dänzera85da8e2020-05-30 15:53:41 +0200221 - x86_build-base
Michel Dänzerc2366f02020-05-16 17:17:23 +0200222 - .ci-run-policy
223 stage: container-2
224 variables:
225 BASE_TAG: *x86_test-base
226 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_test-base:$BASE_TAG"
227 needs:
228 - x86_test-base
229
230# Debian 10 based x86 test image for GL
231x86_test-gl:
232 extends: .use-x86_test-base
233 variables:
Dave Airlie4d7ee272020-06-04 14:03:47 +1000234 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-06-04"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100235
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100236# Debian 10 based x86 test image for VK
237x86_test-vk:
Michel Dänzerc2366f02020-05-16 17:17:23 +0200238 extends: .use-x86_test-base
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100239 variables:
Michel Dänzerb19c0942020-05-31 00:09:18 +0200240 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-06-02"
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100241
Michel Dänzerc6c76522019-11-11 18:13:28 +0100242# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100243x86_build_old:
Michel Dänzera85da8e2020-05-30 15:53:41 +0200244 extends: x86_build-base
Michel Dänzer8a199922019-09-06 17:04:47 +0200245 variables:
Michel Dänzer262e3882020-05-30 23:55:28 +0200246 FDO_DISTRIBUTION_TAG: &x86_build_old "2020-06-02"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800247 FDO_DISTRIBUTION_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200248
Michel Dänzer3a48f452019-11-13 17:43:41 +0100249.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100250 variables:
251 TAG: *x86_build_old
252 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200253 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100254 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200255
Michel Dänzerc6c76522019-11-11 18:13:28 +0100256# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100257arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200258 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100259 - .fdo.container-build@debian@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100260 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700261 variables:
Dylan Bakerc1a290b2020-04-24 10:58:53 -0700262 FDO_DISTRIBUTION_TAG: &arm_build "2020-06-01"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000263
Michel Dänzerc6c76522019-11-11 18:13:28 +0100264.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100265 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100266 TAG: *arm_build
267 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
268 needs:
269 - arm_build
270
Christian Gmeiner408b36a2020-06-07 22:03:34 +0200271# Debian 10 based x86 baremetal image base
272arm_test-base:
273 extends:
274 - .fdo.container-build@debian
275 - .container
276 variables:
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200277 FDO_DISTRIBUTION_TAG: &arm_test-base "2020-06-08"
Christian Gmeiner408b36a2020-06-07 22:03:34 +0200278
279.use-arm_test-base:
280 extends:
281 - arm_test-base
282 - .ci-run-policy
283 stage: container-2
284 variables:
285 BASE_TAG: *arm_test-base
286 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/arm_test-base:$BASE_TAG"
287 needs:
288 - arm_test-base
289
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200290# x86 image with ARM64 rootfs for baremetal testing.
291arm64_test:
Christian Gmeiner408b36a2020-06-07 22:03:34 +0200292 extends:
293 - .use-arm_test-base
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700294 variables:
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200295 FDO_DISTRIBUTION_TAG: &arm64_test "2020-06-08"
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700296
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200297.use-arm64_test:
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700298 variables:
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200299 TAG: *arm64_test
300 image: "$CI_REGISTRY_IMAGE/debian/arm64_test:$TAG"
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700301 needs:
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200302 - arm64_test
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700303
Daniel Stone07885cb2020-03-24 11:11:36 +0000304# Native Windows docker builds
Dylan Baker138c0032020-05-19 14:01:47 -0700305#
Daniel Stone07885cb2020-03-24 11:11:36 +0000306# Unlike the above Linux-based builds - including MinGW/SCons builds which
307# cross-compile for Windows - which use the freedesktop ci-templates, we
308# cannot use the same scheme here. As Windows lacks support for
309# Docker-in-Docker, and Podman does not run natively on Windows, we have
310# to open-code much of the same ourselves.
311#
312# This is achieved by first running in a native Windows shell instance
313# (host PowerShell) in the container stage to build and push the image,
314# then in the build stage by executing inside Docker.
315
316.windows-docker-vs2019:
317 variables:
Daniel Stone0f46a312020-05-05 15:49:22 +0100318 WINDOWS_TAG: "2020-05-05-llvm"
Daniel Stone07885cb2020-03-24 11:11:36 +0000319 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
320 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
321
Daniel Stone79113462020-04-16 14:56:18 +0100322windows_build_vs2019:
Daniel Stone07885cb2020-03-24 11:11:36 +0000323 extends:
324 - .container
325 - .windows-docker-vs2019
326 stage: container
327 variables:
328 GIT_STRATEGY: fetch # we do actually need the full repository though
Daniel Stone0f46a312020-05-05 15:49:22 +0100329 timeout: 4h # LLVM takes ages
Daniel Stone07885cb2020-03-24 11:11:36 +0000330 tags:
331 - windows
332 - shell
333 - "1809"
Daniel Stone2db1d732020-03-30 10:16:18 +0100334 - mesa
Daniel Stone07885cb2020-03-24 11:11:36 +0000335 script:
336 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
Dylan Baker138c0032020-05-19 14:01:47 -0700337
Daniel Stone07885cb2020-03-24 11:11:36 +0000338.use-windows_build_vs2019:
339 extends: .windows-docker-vs2019
340 image: "$WINDOWS_IMAGE"
341 needs:
Daniel Stone79113462020-04-16 14:56:18 +0100342 - windows_build_vs2019
Eric Engestrom81b98e92019-10-14 23:04:14 +0100343
Eric Engestrom46d23c02019-01-20 11:26:53 +0000344# BUILD
345
Dylan Baker06e46472019-10-23 14:21:31 -0700346# Shared between windows and Linux
347.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100348 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000349 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100350 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700351 when: always
352 paths:
353 - _build/meson-logs/*.txt
354 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200355 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700356 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700357
358# Just Linux
359.build-linux:
360 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200361 variables:
362 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100363 CCACHE_COMPRESS: "true"
364 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000365 # Use ccache transparently, and print stats before/after
366 before_script:
367 - export PATH="/usr/lib/ccache:$PATH"
368 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100369 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000370 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000371 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000372
Dylan Baker19851c92019-10-23 14:36:19 -0700373.build-windows:
374 extends: .build-common
375 tags:
Daniel Stone07885cb2020-03-24 11:11:36 +0000376 - windows
377 - docker
378 - "1809"
Daniel Stone9197fd52020-03-30 15:58:51 +0100379 - mesa
Dylan Baker19851c92019-10-23 14:36:19 -0700380 cache:
381 key: ${CI_JOB_NAME}
382 paths:
383 - subprojects/packagecache
384
Eric Engestrom46d23c02019-01-20 11:26:53 +0000385.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100386 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700387 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100388 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100389 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100390 variables:
391 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000392 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200393 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000394
Eric Engestrom06b245b2019-01-23 15:46:10 +0000395.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100396 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700397 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100398 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100399 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000400 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800401 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000402 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200403 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000404
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100405meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200406 extends:
407 - .meson-build
408 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200409 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700410 UNWIND: "enabled"
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200411 DRI_LOADERS: >
412 -D glx=dri
Dylan Baker138c0032020-05-19 14:01:47 -0700413 -D gbm=enabled
414 -D egl=enabled
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100415 -D platforms=x11,drm,surfaceless
416 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700417 -D dri3=enabled
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200418 GALLIUM_DRIVERS: "swrast,virgl"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100419 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100420 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800421 EXTRA_OPTION: >
422 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100423 script:
424 - .gitlab-ci/meson-build.sh
425 - .gitlab-ci/prepare-artifacts.sh
426
Michel Dänzerc56f0912020-03-12 12:29:40 +0100427meson-gallium:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100428 extends: .meson-build
429 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700430 UNWIND: "enabled"
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100431 DRI_LOADERS: >
432 -D glx=dri
Dylan Baker138c0032020-05-19 14:01:47 -0700433 -D gbm=enabled
434 -D egl=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200435 -D platforms=x11,wayland,drm,surfaceless
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200436 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700437 -D dri3=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200438 -D gallium-extra-hud=true
Dylan Baker138c0032020-05-19 14:01:47 -0700439 -D gallium-vdpau=enabled
440 -D gallium-xvmc=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200441 -D gallium-omx=bellagio
Dylan Baker138c0032020-05-19 14:01:47 -0700442 -D gallium-va=enabled
443 -D gallium-xa=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200444 -D gallium-nine=true
445 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100446 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 +0200447 EXTRA_OPTION: >
448 -D osmesa=gallium
449 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200450 script:
451 - .gitlab-ci/meson-build.sh
452 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200453
Michel Dänzerc56f0912020-03-12 12:29:40 +0100454meson-classic:
455 extends: .meson-build
456 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700457 UNWIND: "enabled"
Michel Dänzerc56f0912020-03-12 12:29:40 +0100458 DRI_LOADERS: >
459 -D glx=dri
Dylan Baker138c0032020-05-19 14:01:47 -0700460 -D gbm=enabled
461 -D egl=enabled
Michel Dänzerc56f0912020-03-12 12:29:40 +0100462 -D platforms=x11,wayland,drm,surfaceless
463 DRI_DRIVERS: "auto"
464 EXTRA_OPTION: >
465 -D osmesa=classic
466 -D tools=all
467
Michel Dänzere5364462019-09-13 11:59:43 +0200468.meson-cross:
469 extends:
470 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100471 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200472 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700473 UNWIND: "disabled"
Michel Dänzere5364462019-09-13 11:59:43 +0200474 DRI_LOADERS: >
475 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700476 -D gbm=disabled
477 -D egl=enabled
Michel Dänzere5364462019-09-13 11:59:43 +0200478 -D platforms=surfaceless
479 -D osmesa=none
480 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700481 -D dri3=disabled
482 -D gallium-vdpau=disabled
483 -D gallium-xvmc=disabled
Michel Dänzere5364462019-09-13 11:59:43 +0200484 -D gallium-omx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700485 -D gallium-va=disabled
486 -D gallium-xa=disabled
Michel Dänzere5364462019-09-13 11:59:43 +0200487 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100488 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200489
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200490.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100491 extends:
492 - .meson-cross
493 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200494 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200495 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200496 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100497 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200498 tags:
499 - aarch64
500
501meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100502 extends:
503 - .meson-arm
504 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200505 variables:
506 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200507 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800508 EXTRA_OPTION: >
Dylan Baker138c0032020-05-19 14:01:47 -0700509 -D llvm=disabled
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100510 script:
511 - .gitlab-ci/meson-build.sh
512 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200513
514meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200515 extends:
516 - .meson-arm
517 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200518 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100519 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800520 EXTRA_OPTION: >
Dylan Baker138c0032020-05-19 14:01:47 -0700521 -D llvm=disabled
Michel Dänzer59fcb012019-10-23 18:42:53 +0200522 script:
523 - .gitlab-ci/meson-build.sh
524 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200525
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100526meson-arm64-build-test:
527 extends:
528 - .meson-arm
529 - .ci-deqp-artifacts
530 variables:
531 VULKAN_DRIVERS: "amd"
532 script:
533 - .gitlab-ci/meson-build.sh
534
Michel Dänzera2cce702019-03-20 15:58:31 +0100535meson-clang:
536 extends: .meson-build
537 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700538 UNWIND: "enabled"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100539 DRI_LOADERS: >
540 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100541 DRI_DRIVERS: "auto"
542 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100543 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100544 CC: "ccache clang-9"
545 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100546
Daniel Stone79113462020-04-16 14:56:18 +0100547meson-windows-vs2019:
Dylan Baker19851c92019-10-23 14:36:19 -0700548 extends:
549 - .build-windows
Daniel Stone07885cb2020-03-24 11:11:36 +0000550 - .use-windows_build_vs2019
Michel Dänzercc9493f2020-02-27 18:27:56 +0100551 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700552 script:
Daniel Stone07885cb2020-03-24 11:11:36 +0000553 - . .\.gitlab-ci\windows\mesa_build.ps1
Dylan Baker19851c92019-10-23 14:36:19 -0700554
Michel Dänzer82b30092019-05-03 18:19:25 +0200555scons-win64:
556 extends: .scons-build
557 variables:
Jose Fonseca27d58a12020-03-28 10:36:28 +0000558 SCONS_TARGET: platform=windows machine=x86_64 debug=1
Michel Dänzer82b30092019-05-03 18:19:25 +0200559 SCONS_CHECK_COMMAND: "true"
Jose Fonseca27d58a12020-03-28 10:36:28 +0000560 allow_failure: true
Eric Engestrom89a74672019-01-21 09:42:37 +0000561
Michel Dänzer68977152019-05-03 10:58:48 +0200562meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000563 extends: .meson-build
564 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700565 UNWIND: "enabled"
Eric Engestromb5a70af2019-01-28 18:05:22 +0000566 DRI_LOADERS: >
567 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700568 -D egl=disabled
569 -D gbm=disabled
Michel Dänzer262e3882020-05-30 23:55:28 +0200570 GALLIUM_DRIVERS: "r600,radeonsi"
Eric Engestromb5a70af2019-01-28 18:05:22 +0000571 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700572 -D dri3=disabled
573 -D gallium-vdpau=disabled
574 -D gallium-xvmc=disabled
Eric Engestromb5a70af2019-01-28 18:05:22 +0000575 -D gallium-omx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700576 -D gallium-va=disabled
577 -D gallium-xa=disabled
Eric Engestromb5a70af2019-01-28 18:05:22 +0000578 -D gallium-nine=false
579 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200580 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200581 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200582 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200583
584meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200585 extends:
586 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100587 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200588 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700589 UNWIND: "disabled"
Michel Dänzer8a199922019-09-06 17:04:47 +0200590 DRI_LOADERS: >
591 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700592 -D egl=disabled
593 -D gbm=disabled
Michel Dänzer8a199922019-09-06 17:04:47 +0200594 -D platforms=drm,surfaceless
595 GALLIUM_DRIVERS: "i915,r600"
596 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200597 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
598 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
599 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Michel Dänzer262e3882020-05-30 23:55:28 +0200600 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
601 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000602
Michel Dänzer82b30092019-05-03 18:19:25 +0200603meson-vulkan:
604 extends: .meson-build
605 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700606 UNWIND: "disabled"
Michel Dänzer82b30092019-05-03 18:19:25 +0200607 DRI_LOADERS: >
608 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700609 -D gbm=disabled
610 -D egl=disabled
Michel Dänzer82b30092019-05-03 18:19:25 +0200611 -D platforms=x11,wayland,drm
612 -D osmesa=none
613 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700614 -D dri3=enabled
615 -D gallium-vdpau=disabled
616 -D gallium-xvmc=disabled
Michel Dänzer82b30092019-05-03 18:19:25 +0200617 -D gallium-omx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700618 -D gallium-va=disabled
619 -D gallium-xa=disabled
Michel Dänzer82b30092019-05-03 18:19:25 +0200620 -D gallium-nine=false
621 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200622 -D b_sanitize=undefined
623 -D c_args=-fno-sanitize-recover=all
624 -D cpp_args=-fno-sanitize-recover=all
625 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200626 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200627 EXTRA_OPTION: >
628 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800629 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200630
Eric Anholt11aa32a2019-07-11 12:58:28 -0700631meson-i386:
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200632 extends:
633 - .meson-cross
634 - .use-i386_build
Eric Anholt11aa32a2019-07-11 12:58:28 -0700635 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100636 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100637 VULKAN_DRIVERS: intel,amd
Michel Dänzera0591862020-03-12 12:31:05 +0100638 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700639 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700640 -D vulkan-overlay-layer=true
Eric Anholtf6e59912019-12-16 21:23:02 -0800641 -D werror=true
Eric Anholt11aa32a2019-07-11 12:58:28 -0700642
Michel Dänzer65610ec2020-01-30 18:21:15 +0100643meson-s390x:
644 extends:
645 - .meson-cross
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200646 - .use-s390x_build
Michel Dänzer130c0ba2020-03-18 18:41:43 +0100647 tags:
648 - kvm
Michel Dänzer65610ec2020-01-30 18:21:15 +0100649 variables:
650 CROSS: s390x
Michel Dänzer6c99de982020-05-23 16:07:53 +0200651 EXTRA_OPTION: >
652 -D werror=true
Michel Dänzer65610ec2020-01-30 18:21:15 +0100653 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100654
655meson-ppc64el:
656 extends:
657 - meson-s390x
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200658 - .use-ppc64el_build
Michel Dänzer65610ec2020-01-30 18:21:15 +0100659 variables:
660 CROSS: ppc64el
Michel Dänzer6c99de982020-05-23 16:07:53 +0200661 EXTRA_OPTION: ""
Michel Dänzer8be81f82020-01-31 16:07:10 +0100662 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100663 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100664
Dylan Baker449f8312019-10-11 09:04:14 -0700665meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700666 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100667 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700668 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700669 UNWIND: "disabled"
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700670 DRI_DRIVERS: ""
671 GALLIUM_DRIVERS: "swrast"
672 EXTRA_OPTION: >
Dylan Baker138c0032020-05-19 14:01:47 -0700673 -Dllvm=disabled
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700674 -Dosmesa=gallium
675 --cross-file=.gitlab-ci/x86_64-w64-mingw32
676
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100677.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200678 extends:
679 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700680 variables:
681 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200682 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700683 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
684 - rm -rf install
685 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100686 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700687 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800688 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100689 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700690 paths:
691 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200692 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100693 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100694
695.test-gl:
696 extends:
697 - .test
698 variables:
699 TAG: *x86_test-gl
700 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200701 needs:
Michel Dänzera85da8e2020-05-30 15:53:41 +0200702 - x86_build-base
Michel Dänzer43111ea2020-05-16 12:07:42 +0200703 - x86_build
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100704 - meson-testing
Michel Dänzerc2366f02020-05-16 17:17:23 +0200705 - x86_test-base
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100706 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700707
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100708.test-vk:
709 extends:
710 - .test
711 variables:
712 TAG: *x86_test-vk
713 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
714 needs:
Michel Dänzera85da8e2020-05-30 15:53:41 +0200715 - x86_build-base
Michel Dänzer43111ea2020-05-16 12:07:42 +0200716 - x86_build
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100717 - meson-testing
Michel Dänzerc2366f02020-05-16 17:17:23 +0200718 - x86_test-base
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100719 - x86_test-vk
720
Michel Dänzer576f7b62019-10-22 17:16:52 +0200721.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100722 extends:
723 - .test-gl
724 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100725 artifacts:
726 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100727 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100728 paths:
729 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200730 variables:
731 LIBGL_ALWAYS_SOFTWARE: 1
732 PIGLIT_NO_WINDOW: 1
733 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100734 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200735
736piglit-quick_gl:
737 extends: .piglit-test
738 variables:
739 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000740 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200741 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100742 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200743 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800744 -x egl_ext_device_
745 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800746 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200747 -x glx-multithread-clearbuffer
748 -x glx-multithread-shader-compile
749 -x max-texture-size
750 -x maxsize
751 PIGLIT_PROFILES: quick_gl
752
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100753piglit-glslparser:
754 extends: .piglit-test
755 variables:
756 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000757 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100758 PIGLIT_PROFILES: glslparser
759
760piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200761 extends: .piglit-test
762 variables:
763 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000764 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100765 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200766
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100767.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200768 variables:
769 DEQP_SKIPS: deqp-default-skips.txt
770 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100771 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200772
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100773.deqp-test-gl:
774 extends:
775 - .test-gl
776 - .deqp-test
777
778.deqp-test-vk:
779 extends:
780 - .test-vk
781 - .deqp-test
782 variables:
783 DEQP_VER: vk
784
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100785.fossilize-test:
786 extends: .test-vk
787 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100788 - ./install/fossilize-runner.sh
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100789
Michel Dänzer71436f92020-03-03 18:17:12 +0100790llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700791 variables:
792 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800793 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000794 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800795 # Don't use threads inside llvmpipe, we've already got all 4 cores
796 # busy with DEQP_PARALLEL.
797 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700798 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
799 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt8b221e02020-04-17 12:39:32 -0700800 DEQP_EXPECTED_RENDERER: llvmpipe
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100801 extends:
802 - .deqp-test-gl
803 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700804
Michel Dänzer71436f92020-03-03 18:17:12 +0100805softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100806 extends:
807 - llvmpipe-gles2
808 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700809 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700810 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800811 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700812 GALLIUM_DRIVER: "softpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700813 DEQP_EXPECTED_RENDERER: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700814
Michel Dänzer71436f92020-03-03 18:17:12 +0100815softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800816 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700817 variables:
818 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100819 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800820
Michel Dänzer71436f92020-03-03 18:17:12 +0100821softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800822 parallel: 4
823 variables:
824 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100825 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700826
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200827virgl-gles2:
828 variables:
829 DEQP_VER: gles2
830 DEQP_PARALLEL: 4
831 NIR_VALIDATE: 0
832 DEQP_NO_SAVE_RESULTS: 1
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200833 # Don't use threads inside llvmpipe, we've already got all 4 cores
834 # busy with DEQP_PARALLEL.
835 LP_NUM_THREADS: 0
836 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
837 LIBGL_ALWAYS_SOFTWARE: "true"
838 GALLIUM_DRIVER: "virpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700839 DEQP_EXPECTED_RENDERER: virgl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200840 extends:
841 - .deqp-test-gl
842 - .virgl-rules
843
844virgl-gles3:
845 variables:
846 DEQP_VER: gles3
847 CI_NODE_INDEX: 1
848 CI_NODE_TOTAL: 3
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700849 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200850 extends: virgl-gles2
851
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200852virgl-gles31:
853 variables:
854 DEQP_VER: gles31
855 CI_NODE_INDEX: 1
856 CI_NODE_TOTAL: 10
857 DEQP_OPTIONS: "--deqp-log-images=disable"
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700858 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200859 MESA_GLES_VERSION_OVERRIDE: "3.1"
860 MESA_GLSL_VERSION_OVERRIDE: "310"
Dave Airliec8c74502020-06-04 12:10:40 +1000861 MESA_EXTENSION_OVERRIDE: "-GL_OES_tessellation_shader"
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200862 extends: virgl-gles2
863
Eric Anholt8edaa842020-03-19 11:45:01 -0700864# Rules for tests that should not be present in MRs or the main
865# project's pipeline (don't block marge or report red on
866# mesa/mesamaster) but should be present on pipelines in personal
867# branches (so you can opt in to running the flaky test when you want
868# to).
869.test-manual:
870 rules:
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +0200871 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
872 changes:
873 *all_paths
874 when: manual
875 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -0700876
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000877arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100878 extends:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700879 - arm64_a306_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700880 variables:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700881 BM_KERNEL: /lava-files/cheza-kernel
882 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 root=/dev/nfs rw nfsrootdebug nfsroot=,tcp,nfsvers=4.2 init=/init"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700883 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
884 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
885 NIR_VALIDATE: 0
Eric Anholt8b221e02020-04-17 12:39:32 -0700886 DEQP_EXPECTED_RENDERER: FD630
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700887 DEQP_NO_SAVE_RESULTS: ""
Eric Anholt6f0dc082019-06-28 16:35:32 -0700888 tags:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700889 - google-freedreno-cheza
890 script:
891 - .gitlab-ci/bare-metal/cros-servo.sh
Eric Anholt6f0dc082019-06-28 16:35:32 -0700892
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000893arm64_a630_gles31:
894 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700895 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200896 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700897
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000898arm64_a630_gles3:
899 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700900 variables:
901 DEQP_VER: gles3
902
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700903# We almost always manage to lower UBOs back to constant uploads in
904# the test suite, so get a little testing for it here.
905arm64_a630_noubo:
906 extends: arm64_a630_gles31
Eric Anholt5082ac02020-04-17 12:02:37 -0700907 variables:
908 DEQP_VER: gles31
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700909 IR3_SHADER_DEBUG: nouboopt
910 DEQP_CASELIST_FILTER: "functional.*ubo"
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700911
912# The driver does some guessing as to whether to render using gmem
913# or bypass, and some GLES3.1 features interact with either one.
914# Do a little testing with gmem and bypass forced.
915arm64_a630_bypass:
916 extends: arm64_a630_gles31
917 variables:
Eric Anholt5082ac02020-04-17 12:02:37 -0700918 CI_NODE_INDEX: 1
919 CI_NODE_TOTAL: 5
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700920 FD_MESA_DEBUG: nogmem
921 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
922
923# Along with checking gmem path, check that we don't get obvious nir
924# validation failures (though it's too expensive to have it on for the
925# full CTS)
926arm64_a630_gmem:
927 extends: arm64_a630_gles31
928 variables:
929 CI_NODE_INDEX: 1
930 CI_NODE_TOTAL: 5
931 FD_MESA_DEBUG: nobypass
932 NIR_VALIDATE: 1
Eric Anholt5082ac02020-04-17 12:02:37 -0700933
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800934.baremetal-test:
935 extends:
936 - .ci-run-policy
937 stage: test
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700938 artifacts:
939 when: always
940 name: "mesa_${CI_JOB_NAME}"
941 paths:
942 - results/
943 - serial*.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800944
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800945arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800946 extends:
947 - .baremetal-test
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200948 - .use-arm64_test
Eric Anholtf778c482020-03-18 09:51:03 -0700949 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800950 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -0800951 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800952 BM_DTB: /lava-files/apq8016-sbc.dtb
953 BM_ROOTFS: /lava-files/rootfs-arm64
954 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholt3b5e71c2020-05-01 09:57:00 -0700955 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800956 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800957 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
958 DEQP_VER: gles2
959 DEQP_PARALLEL: 4
Eric Anholt8b221e02020-04-17 12:39:32 -0700960 DEQP_EXPECTED_RENDERER: FD307
Eric Anholt46d9b502020-05-22 15:48:55 -0700961 # Since we can't get artifacts back yet, skip making them.
962 DEQP_NO_SAVE_RESULTS: 1
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700963 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800964 script:
965 - .gitlab-ci/bare-metal/fastboot.sh
966 needs:
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200967 - arm64_test
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700968 - arm_build
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800969 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800970 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800971 - google-freedreno-db410c
972
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700973# Fractional run, single threaded, due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -0700974arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800975 extends:
976 - arm64_a306_gles2
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800977 variables:
978 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700979 DEQP_PARALLEL: 1
980 CI_NODE_INDEX: 1
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700981 CI_NODE_TOTAL: 25
982 NIR_VALIDATE: 0
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800983
Eric Anholtae442c32020-05-15 16:15:07 -0700984# Fractional runs with debug options. Note that since we're not
985# hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
986arm64_a306_gles3_options:
987 extends: arm64_a306_gles2
988 variables:
989 DEQP_VER: gles3
990 script:
991 # Check that the non-constbuf UBO case works.
992 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" .gitlab-ci/bare-metal/fastboot.sh
993
Eric Anholt4bc15e72020-03-03 14:38:09 -0800994arm64_a530_gles2:
995 extends:
996 - arm64_a306_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800997 variables:
998 BM_KERNEL: /lava-files/db820c-kernel
999 BM_DTB: /lava-files/db820c.dtb
Eric Anholt6033c102020-05-19 16:33:10 -07001000 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
1001 # current upstream kernel.
1002 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
Eric Anholt4bc15e72020-03-03 14:38:09 -08001003 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
1004 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
Eric Anholt8b221e02020-04-17 12:39:32 -07001005 DEQP_EXPECTED_RENDERER: FD530
Eric Anholtb4bccbd2020-05-15 11:20:44 -07001006 NIR_VALIDATE: 0
Eric Anholt4bc15e72020-03-03 14:38:09 -08001007 tags:
1008 - google-freedreno-db820c
1009
1010arm64_a530_gles3:
1011 extends:
1012 - arm64_a530_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -08001013 variables:
1014 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -07001015 DEQP_PARALLEL: 1
1016 CI_NODE_INDEX: 1
Eric Anholt6bf40c22020-05-19 16:44:14 -07001017 CI_NODE_TOTAL: 40
Eric Anholt4bc15e72020-03-03 14:38:09 -08001018
Eric Anholt6c011522020-04-22 12:08:06 -07001019arm64_a530_gles31:
1020 extends:
1021 - arm64_a530_gles3
1022 variables:
1023 DEQP_VER: gles31
Eric Anholt6bf40c22020-05-19 16:44:14 -07001024 CI_NODE_INDEX: 1
1025 CI_NODE_TOTAL: 10
Eric Anholt6c011522020-04-22 12:08:06 -07001026
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001027# RADV CI
1028.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +01001029 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +01001030 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001031 variables:
1032 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +01001033 RADV_DEBUG: checkir
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +02001034 ACO_DEBUG: validateir,validatera
Samuel Pitoiset42a3d822020-02-05 17:04:20 +01001035
Eric Anholt8edaa842020-03-19 11:45:01 -07001036# Can only be triggered manually on personal branches because RADV is the only
1037# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001038radv_polaris10_vkcts:
1039 extends:
1040 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -07001041 - .test-radv
1042 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001043 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001044 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
1045 tags:
1046 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001047
Samuel Pitoisete22d5622020-03-06 08:36:14 +01001048radv-fossils:
1049 extends:
1050 - .fossilize-test
1051 - .test-radv
1052 script:
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +02001053 # Pitcairn (GFX6)
1054 - export RADV_FORCE_FAMILY="pitcairn"
1055 - ./install/fossilize-runner.sh
1056 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1057 # Bonaire (GFX7)
1058 - export RADV_FORCE_FAMILY="bonaire"
1059 - ./install/fossilize-runner.sh
1060 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1061 # Polaris10 (GFX8)
Samuel Pitoisete22d5622020-03-06 08:36:14 +01001062 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001063 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +02001064 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +02001065 # Vega10 (GFX9)
Samuel Pitoisete22d5622020-03-06 08:36:14 +01001066 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001067 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +02001068 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +02001069 # Navi10 (GFX10)
Samuel Pitoisete22d5622020-03-06 08:36:14 +01001070 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001071 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +02001072 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +01001073
Andres Gomez0ac731b12020-02-20 18:26:30 +02001074# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001075.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001076 cache:
1077 key: ${CI_JOB_NAME}
1078 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +01001079 - traces-db/
Andres Gomez0ac731b12020-02-20 18:26:30 +02001080
1081.traces-test-gl:
1082 extends:
1083 - .test-gl
1084 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001085 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001086 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +02001087
1088.traces-test-vk:
1089 extends:
1090 - .test-vk
1091 - .traces-test
1092 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001093 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001094
1095llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +01001096 extends:
1097 - .traces-test-gl
1098 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001099 variables:
1100 LIBGL_ALWAYS_SOFTWARE: "true"
1101 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +02001102 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +02001103
1104radv-polaris10-traces:
1105 extends:
1106 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -07001107 - .test-radv
1108 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +02001109 variables:
1110 DEVICE_NAME: "vk-amd-polaris10"
1111 tags:
1112 - polaris10
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +02001113
1114virgl-traces:
1115 extends:
1116 - .traces-test-gl
1117 - .virgl-rules
1118 variables:
1119 LIBGL_ALWAYS_SOFTWARE: "true"
1120 GALLIUM_DRIVER: "virpipe"
1121 DEVICE_NAME: "gl-virgl"
1122 MESA_GLES_VERSION_OVERRIDE: "3.1"
1123 MESA_GLSL_VERSION_OVERRIDE: "310"