blob: 6e28b4713db6f205f101624b73ba32a06afb6613 [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änzerc6c76522019-11-11 18:13:28 +0100134# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100135x86_build:
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:
Eric Anholt588ea312020-05-14 10:38:12 -0700140 FDO_DISTRIBUTION_TAG: &x86_build "2020-05-18-baremetal-2"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000141
Michel Dänzer3a48f452019-11-13 17:43:41 +0100142.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100143 variables:
144 TAG: *x86_build
145 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200146 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100147 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200148
Michel Dänzerc2366f02020-05-16 17:17:23 +0200149# Debian 10 based x86 test image base
150x86_test-base:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100151 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100152 variables:
Michel Dänzerc2366f02020-05-16 17:17:23 +0200153 FDO_DISTRIBUTION_TAG: &x86_test-base "2020-05-23"
154
155.use-x86_test-base:
156 extends:
157 - x86_build
158 - .ci-run-policy
159 stage: container-2
160 variables:
161 BASE_TAG: *x86_test-base
162 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_test-base:$BASE_TAG"
163 needs:
164 - x86_test-base
165
166# Debian 10 based x86 test image for GL
167x86_test-gl:
168 extends: .use-x86_test-base
169 variables:
170 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-05-23"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100171
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100172# Debian 10 based x86 test image for VK
173x86_test-vk:
Michel Dänzerc2366f02020-05-16 17:17:23 +0200174 extends: .use-x86_test-base
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100175 variables:
Michel Dänzerc2366f02020-05-16 17:17:23 +0200176 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-05-23"
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100177
Michel Dänzerc6c76522019-11-11 18:13:28 +0100178# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100179x86_build_old:
180 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200181 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800182 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800183 FDO_DISTRIBUTION_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200184
Michel Dänzer3a48f452019-11-13 17:43:41 +0100185.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100186 variables:
187 TAG: *x86_build_old
188 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200189 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100190 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200191
Michel Dänzerc6c76522019-11-11 18:13:28 +0100192# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100193arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200194 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100195 - .fdo.container-build@debian@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100196 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700197 variables:
Eric Anholt8094a9a2020-05-13 16:58:26 -0700198 FDO_DISTRIBUTION_TAG: &arm_build "2020-05-14-baremetal-5"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000199
Michel Dänzerc6c76522019-11-11 18:13:28 +0100200.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100201 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100202 TAG: *arm_build
203 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
204 needs:
205 - arm_build
206
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700207# x86 image with ARM rootfses for baremetal testing.
208x86_cross_arm_test:
209 extends: x86_build
210 variables:
211 FDO_DISTRIBUTION_TAG: &x86_cross_arm_test "2020-05-13"
212
213.use-x86_cross_arm_test:
214 variables:
215 TAG: *x86_cross_arm_test
216 image: "$CI_REGISTRY_IMAGE/debian/x86_cross_arm_test:$TAG"
217 needs:
218 - x86_cross_arm_test
219
220
Michel Dänzerc6c76522019-11-11 18:13:28 +0100221# Debian 10 based ARM test image
222arm_test:
223 extends: arm_build
224 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800225 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100226
227.use-arm_test:
228 variables:
229 TAG: *arm_test
230 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
231 needs:
Michel Dänzer43111ea2020-05-16 12:07:42 +0200232 - arm_build
Michel Dänzerc6c76522019-11-11 18:13:28 +0100233 - meson-arm64
234 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100235
Daniel Stone07885cb2020-03-24 11:11:36 +0000236# Native Windows docker builds
237#
238# Unlike the above Linux-based builds - including MinGW/SCons builds which
239# cross-compile for Windows - which use the freedesktop ci-templates, we
240# cannot use the same scheme here. As Windows lacks support for
241# Docker-in-Docker, and Podman does not run natively on Windows, we have
242# to open-code much of the same ourselves.
243#
244# This is achieved by first running in a native Windows shell instance
245# (host PowerShell) in the container stage to build and push the image,
246# then in the build stage by executing inside Docker.
247
248.windows-docker-vs2019:
249 variables:
Daniel Stone0f46a312020-05-05 15:49:22 +0100250 WINDOWS_TAG: "2020-05-05-llvm"
Daniel Stone07885cb2020-03-24 11:11:36 +0000251 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
252 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
253
Daniel Stone79113462020-04-16 14:56:18 +0100254windows_build_vs2019:
Daniel Stone07885cb2020-03-24 11:11:36 +0000255 extends:
256 - .container
257 - .windows-docker-vs2019
258 stage: container
259 variables:
260 GIT_STRATEGY: fetch # we do actually need the full repository though
Daniel Stone0f46a312020-05-05 15:49:22 +0100261 timeout: 4h # LLVM takes ages
Daniel Stone07885cb2020-03-24 11:11:36 +0000262 tags:
263 - windows
264 - shell
265 - "1809"
Daniel Stone2db1d732020-03-30 10:16:18 +0100266 - mesa
Daniel Stone07885cb2020-03-24 11:11:36 +0000267 script:
268 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
269
270.use-windows_build_vs2019:
271 extends: .windows-docker-vs2019
272 image: "$WINDOWS_IMAGE"
273 needs:
Daniel Stone79113462020-04-16 14:56:18 +0100274 - windows_build_vs2019
Eric Engestrom81b98e92019-10-14 23:04:14 +0100275
Eric Engestrom46d23c02019-01-20 11:26:53 +0000276# BUILD
277
Dylan Baker06e46472019-10-23 14:21:31 -0700278# Shared between windows and Linux
279.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100280 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000281 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100282 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700283 when: always
284 paths:
285 - _build/meson-logs/*.txt
286 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200287 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700288 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700289
290# Just Linux
291.build-linux:
292 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200293 variables:
294 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100295 CCACHE_COMPRESS: "true"
296 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000297 # Use ccache transparently, and print stats before/after
298 before_script:
299 - export PATH="/usr/lib/ccache:$PATH"
300 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100301 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000302 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000303 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000304
Dylan Baker19851c92019-10-23 14:36:19 -0700305.build-windows:
306 extends: .build-common
307 tags:
Daniel Stone07885cb2020-03-24 11:11:36 +0000308 - windows
309 - docker
310 - "1809"
Daniel Stone9197fd52020-03-30 15:58:51 +0100311 - mesa
Dylan Baker19851c92019-10-23 14:36:19 -0700312 cache:
313 key: ${CI_JOB_NAME}
314 paths:
315 - subprojects/packagecache
316
Eric Engestrom46d23c02019-01-20 11:26:53 +0000317.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100318 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700319 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100320 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100321 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100322 variables:
323 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000324 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200325 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000326
Eric Engestrom06b245b2019-01-23 15:46:10 +0000327.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100328 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700329 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100330 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100331 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000332 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800333 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000334 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200335 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000336
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100337meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200338 extends:
339 - .meson-build
340 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200341 variables:
342 UNWIND: "true"
343 DRI_LOADERS: >
344 -D glx=dri
345 -D gbm=true
346 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100347 -D platforms=x11,drm,surfaceless
348 GALLIUM_ST: >
349 -D dri3=true
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200350 GALLIUM_DRIVERS: "swrast,virgl"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100351 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100352 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800353 EXTRA_OPTION: >
354 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100355 script:
356 - .gitlab-ci/meson-build.sh
357 - .gitlab-ci/prepare-artifacts.sh
358
Michel Dänzerc56f0912020-03-12 12:29:40 +0100359meson-gallium:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100360 extends: .meson-build
361 variables:
362 UNWIND: "true"
363 DRI_LOADERS: >
364 -D glx=dri
365 -D gbm=true
366 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200367 -D platforms=x11,wayland,drm,surfaceless
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200368 GALLIUM_ST: >
369 -D dri3=true
370 -D gallium-extra-hud=true
371 -D gallium-vdpau=true
372 -D gallium-xvmc=true
373 -D gallium-omx=bellagio
374 -D gallium-va=true
375 -D gallium-xa=true
376 -D gallium-nine=true
377 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100378 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 +0200379 EXTRA_OPTION: >
380 -D osmesa=gallium
381 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200382 script:
383 - .gitlab-ci/meson-build.sh
384 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200385
Michel Dänzerc56f0912020-03-12 12:29:40 +0100386meson-classic:
387 extends: .meson-build
388 variables:
389 UNWIND: "true"
390 DRI_LOADERS: >
391 -D glx=dri
392 -D gbm=true
393 -D egl=true
394 -D platforms=x11,wayland,drm,surfaceless
395 DRI_DRIVERS: "auto"
396 EXTRA_OPTION: >
397 -D osmesa=classic
398 -D tools=all
399
Michel Dänzere5364462019-09-13 11:59:43 +0200400.meson-cross:
401 extends:
402 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100403 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200404 variables:
405 UNWIND: "false"
406 DRI_LOADERS: >
407 -D glx=disabled
408 -D gbm=false
409 -D egl=true
410 -D platforms=surfaceless
411 -D osmesa=none
412 GALLIUM_ST: >
413 -D dri3=false
414 -D gallium-vdpau=false
415 -D gallium-xvmc=false
416 -D gallium-omx=disabled
417 -D gallium-va=false
418 -D gallium-xa=false
419 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100420 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200421
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200422.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100423 extends:
424 - .meson-cross
425 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200426 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200427 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200428 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100429 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200430 tags:
431 - aarch64
432
433meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100434 extends:
435 - .meson-arm
436 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200437 variables:
438 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200439 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800440 EXTRA_OPTION: >
441 -D llvm=false
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100442 script:
443 - .gitlab-ci/meson-build.sh
444 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200445
446meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200447 extends:
448 - .meson-arm
449 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200450 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100451 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800452 EXTRA_OPTION: >
453 -D llvm=false
Michel Dänzer59fcb012019-10-23 18:42:53 +0200454 script:
455 - .gitlab-ci/meson-build.sh
456 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200457
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100458meson-arm64-build-test:
459 extends:
460 - .meson-arm
461 - .ci-deqp-artifacts
462 variables:
463 VULKAN_DRIVERS: "amd"
464 script:
465 - .gitlab-ci/meson-build.sh
466
Michel Dänzera2cce702019-03-20 15:58:31 +0100467meson-clang:
468 extends: .meson-build
469 variables:
470 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100471 DRI_LOADERS: >
472 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100473 DRI_DRIVERS: "auto"
474 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100475 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100476 CC: "ccache clang-9"
477 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100478
Daniel Stone79113462020-04-16 14:56:18 +0100479meson-windows-vs2019:
Dylan Baker19851c92019-10-23 14:36:19 -0700480 extends:
481 - .build-windows
Daniel Stone07885cb2020-03-24 11:11:36 +0000482 - .use-windows_build_vs2019
Michel Dänzercc9493f2020-02-27 18:27:56 +0100483 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700484 script:
Daniel Stone07885cb2020-03-24 11:11:36 +0000485 - . .\.gitlab-ci\windows\mesa_build.ps1
Dylan Baker19851c92019-10-23 14:36:19 -0700486
Michel Dänzer82b30092019-05-03 18:19:25 +0200487scons-win64:
488 extends: .scons-build
489 variables:
Jose Fonseca27d58a12020-03-28 10:36:28 +0000490 SCONS_TARGET: platform=windows machine=x86_64 debug=1
Michel Dänzer82b30092019-05-03 18:19:25 +0200491 SCONS_CHECK_COMMAND: "true"
Jose Fonseca27d58a12020-03-28 10:36:28 +0000492 allow_failure: true
Eric Engestrom89a74672019-01-21 09:42:37 +0000493
Michel Dänzer68977152019-05-03 10:58:48 +0200494meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000495 extends: .meson-build
496 variables:
497 UNWIND: "true"
498 DRI_LOADERS: >
499 -D glx=disabled
500 -D egl=false
501 -D gbm=false
502 GALLIUM_ST: >
503 -D dri3=false
504 -D gallium-vdpau=false
505 -D gallium-xvmc=false
506 -D gallium-omx=disabled
507 -D gallium-va=false
508 -D gallium-xa=false
509 -D gallium-nine=false
510 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200511 script:
512 - export GALLIUM_DRIVERS="r600,radeonsi"
513 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200514 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200515 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200516 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
517 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
518
519meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200520 extends:
521 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100522 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200523 variables:
524 UNWIND: "false"
525 DRI_LOADERS: >
526 -D glx=disabled
527 -D egl=false
528 -D gbm=false
529 -D platforms=drm,surfaceless
530 GALLIUM_DRIVERS: "i915,r600"
531 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200532 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
533 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
534 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000535
Michel Dänzer82b30092019-05-03 18:19:25 +0200536meson-vulkan:
537 extends: .meson-build
538 variables:
539 UNWIND: "false"
540 DRI_LOADERS: >
541 -D glx=disabled
542 -D gbm=false
543 -D egl=false
544 -D platforms=x11,wayland,drm
545 -D osmesa=none
546 GALLIUM_ST: >
547 -D dri3=true
548 -D gallium-vdpau=false
549 -D gallium-xvmc=false
550 -D gallium-omx=disabled
551 -D gallium-va=false
552 -D gallium-xa=false
553 -D gallium-nine=false
554 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200555 -D b_sanitize=undefined
556 -D c_args=-fno-sanitize-recover=all
557 -D cpp_args=-fno-sanitize-recover=all
558 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200559 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200560 EXTRA_OPTION: >
561 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800562 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200563
Eric Anholt11aa32a2019-07-11 12:58:28 -0700564meson-i386:
565 extends: .meson-cross
566 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100567 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100568 VULKAN_DRIVERS: intel,amd
Michel Dänzera0591862020-03-12 12:31:05 +0100569 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700570 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700571 -D vulkan-overlay-layer=true
Eric Anholtf6e59912019-12-16 21:23:02 -0800572 -D werror=true
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100573 script:
574 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
575 - .gitlab-ci/meson-build.sh
Eric Anholt11aa32a2019-07-11 12:58:28 -0700576
Michel Dänzer65610ec2020-01-30 18:21:15 +0100577meson-s390x:
578 extends:
579 - .meson-cross
Michel Dänzer130c0ba2020-03-18 18:41:43 +0100580 tags:
581 - kvm
Michel Dänzer65610ec2020-01-30 18:21:15 +0100582 variables:
583 CROSS: s390x
Michel Dänzer6c99de982020-05-23 16:07:53 +0200584 EXTRA_OPTION: >
585 -D werror=true
Michel Dänzer65610ec2020-01-30 18:21:15 +0100586 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100587 script:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100588 # For unknown reasons "too many" installed i386 libraries cause qemu to
589 # crash while executing llvm-config for s390x.
Michel Dänzerda3aee92020-04-27 12:42:58 +0200590 - apt-get purge -y wine32
Andres Gomezcb055c62020-04-22 16:51:48 +0300591 - apt-get autoremove -y --purge
Michel Dänzer65610ec2020-01-30 18:21:15 +0100592 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
593 - .gitlab-ci/meson-build.sh
594
595meson-ppc64el:
596 extends:
597 - meson-s390x
598 variables:
599 CROSS: ppc64el
Michel Dänzer6c99de982020-05-23 16:07:53 +0200600 EXTRA_OPTION: ""
Michel Dänzer8be81f82020-01-31 16:07:10 +0100601 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100602 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100603
Dylan Baker449f8312019-10-11 09:04:14 -0700604meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700605 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100606 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700607 variables:
608 UNWIND: "false"
609 DRI_DRIVERS: ""
610 GALLIUM_DRIVERS: "swrast"
611 EXTRA_OPTION: >
612 -Dllvm=false
613 -Dosmesa=gallium
614 --cross-file=.gitlab-ci/x86_64-w64-mingw32
615
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100616.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200617 extends:
618 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700619 variables:
620 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200621 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700622 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
623 - rm -rf install
624 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100625 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700626 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800627 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100628 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700629 paths:
630 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200631 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100632 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100633
634.test-gl:
635 extends:
636 - .test
637 variables:
638 TAG: *x86_test-gl
639 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200640 needs:
Michel Dänzer43111ea2020-05-16 12:07:42 +0200641 - x86_build
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100642 - meson-testing
Michel Dänzerc2366f02020-05-16 17:17:23 +0200643 - x86_test-base
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100644 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700645
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100646.test-vk:
647 extends:
648 - .test
649 variables:
650 TAG: *x86_test-vk
651 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
652 needs:
Michel Dänzer43111ea2020-05-16 12:07:42 +0200653 - x86_build
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100654 - meson-testing
Michel Dänzerc2366f02020-05-16 17:17:23 +0200655 - x86_test-base
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100656 - x86_test-vk
657
Michel Dänzer576f7b62019-10-22 17:16:52 +0200658.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100659 extends:
660 - .test-gl
661 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100662 artifacts:
663 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100664 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100665 paths:
666 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200667 variables:
668 LIBGL_ALWAYS_SOFTWARE: 1
669 PIGLIT_NO_WINDOW: 1
670 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100671 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200672
673piglit-quick_gl:
674 extends: .piglit-test
675 variables:
676 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000677 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200678 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100679 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200680 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800681 -x egl_ext_device_
682 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800683 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200684 -x glx-multithread-clearbuffer
685 -x glx-multithread-shader-compile
686 -x max-texture-size
687 -x maxsize
688 PIGLIT_PROFILES: quick_gl
689
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100690piglit-glslparser:
691 extends: .piglit-test
692 variables:
693 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000694 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100695 PIGLIT_PROFILES: glslparser
696
697piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200698 extends: .piglit-test
699 variables:
700 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000701 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100702 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200703
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100704.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200705 variables:
706 DEQP_SKIPS: deqp-default-skips.txt
707 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100708 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200709
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100710.deqp-test-gl:
711 extends:
712 - .test-gl
713 - .deqp-test
714
715.deqp-test-vk:
716 extends:
717 - .test-vk
718 - .deqp-test
719 variables:
720 DEQP_VER: vk
721
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100722.fossilize-test:
723 extends: .test-vk
724 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100725 - ./install/fossilize-runner.sh
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100726
Michel Dänzer71436f92020-03-03 18:17:12 +0100727llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700728 variables:
729 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800730 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000731 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800732 # Don't use threads inside llvmpipe, we've already got all 4 cores
733 # busy with DEQP_PARALLEL.
734 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700735 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
736 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt8b221e02020-04-17 12:39:32 -0700737 DEQP_EXPECTED_RENDERER: llvmpipe
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100738 extends:
739 - .deqp-test-gl
740 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700741
Michel Dänzer71436f92020-03-03 18:17:12 +0100742softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100743 extends:
744 - llvmpipe-gles2
745 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700746 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700747 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800748 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700749 GALLIUM_DRIVER: "softpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700750 DEQP_EXPECTED_RENDERER: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700751
Michel Dänzer71436f92020-03-03 18:17:12 +0100752softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800753 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700754 variables:
755 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100756 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800757
Michel Dänzer71436f92020-03-03 18:17:12 +0100758softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800759 parallel: 4
760 variables:
761 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100762 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700763
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200764virgl-gles2:
765 variables:
766 DEQP_VER: gles2
767 DEQP_PARALLEL: 4
768 NIR_VALIDATE: 0
769 DEQP_NO_SAVE_RESULTS: 1
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200770 # Don't use threads inside llvmpipe, we've already got all 4 cores
771 # busy with DEQP_PARALLEL.
772 LP_NUM_THREADS: 0
773 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
774 LIBGL_ALWAYS_SOFTWARE: "true"
775 GALLIUM_DRIVER: "virpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700776 DEQP_EXPECTED_RENDERER: virgl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200777 extends:
778 - .deqp-test-gl
779 - .virgl-rules
780
781virgl-gles3:
782 variables:
783 DEQP_VER: gles3
784 CI_NODE_INDEX: 1
785 CI_NODE_TOTAL: 3
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700786 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200787 extends: virgl-gles2
788
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200789virgl-gles31:
790 variables:
791 DEQP_VER: gles31
792 CI_NODE_INDEX: 1
793 CI_NODE_TOTAL: 10
794 DEQP_OPTIONS: "--deqp-log-images=disable"
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700795 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200796 MESA_GLES_VERSION_OVERRIDE: "3.1"
797 MESA_GLSL_VERSION_OVERRIDE: "310"
798 extends: virgl-gles2
799
Eric Anholt8edaa842020-03-19 11:45:01 -0700800# Rules for tests that should not be present in MRs or the main
801# project's pipeline (don't block marge or report red on
802# mesa/mesamaster) but should be present on pipelines in personal
803# branches (so you can opt in to running the flaky test when you want
804# to).
805.test-manual:
806 rules:
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +0200807 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
808 changes:
809 *all_paths
810 when: manual
811 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -0700812
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000813arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100814 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100815 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100816 - .use-arm_test
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100817 - .freedreno-rules
Eric Anholt6f0dc082019-06-28 16:35:32 -0700818 variables:
819 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700820 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
821 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
822 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800823 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800824 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt8b221e02020-04-17 12:39:32 -0700825 DEQP_EXPECTED_RENDERER: FD630
Eric Anholt6f0dc082019-06-28 16:35:32 -0700826 tags:
827 - mesa-cheza
828 dependencies:
829 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700830
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000831arm64_a630_gles31:
832 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700833 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200834 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700835
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000836arm64_a630_gles3:
837 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700838 variables:
839 DEQP_VER: gles3
840
Eric Anholt5082ac02020-04-17 12:02:37 -0700841arm64_a630_gles31_options:
842 extends: arm64_a630_gles2
843 variables:
844 DEQP_VER: gles31
845 CI_NODE_INDEX: 1
846 CI_NODE_TOTAL: 5
847 script:
848 # We almost always manage to lower UBOs back to constant uploads in
849 # the test suite, so get a little testing for it here.
Eric Anholt90cf4942020-05-15 17:18:12 -0700850 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" DEQP_EXPECTED_FAILS=deqp-freedreno-a630-noubo-fails.txt CI_NODE_INDEX= ./install/deqp-runner.sh
Eric Anholt5082ac02020-04-17 12:02:37 -0700851 # The driver does some guessing as to whether to render using gmem
852 # or bypass, and some GLES3.1 features interact with either one.
853 # Do a little testing with gmem and bypass forced.
854 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
855 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
Eric Anholt6839ad52020-05-15 16:01:15 -0700856 # Check that we don't get obvious nir validation failures (though it's too expensive to run for the full CTS)
857 - DEQP_RUN_SUFFIX=-validate NIR_VALIDATE=1 ./install/deqp-runner.sh
Eric Anholt5082ac02020-04-17 12:02:37 -0700858
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800859.baremetal-test:
860 extends:
861 - .ci-run-policy
862 stage: test
863
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800864arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800865 extends:
866 - .baremetal-test
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700867 - .use-x86_cross_arm_test
Eric Anholtf778c482020-03-18 09:51:03 -0700868 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800869 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -0800870 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800871 BM_DTB: /lava-files/apq8016-sbc.dtb
872 BM_ROOTFS: /lava-files/rootfs-arm64
873 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholt3b5e71c2020-05-01 09:57:00 -0700874 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800875 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800876 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
877 DEQP_VER: gles2
878 DEQP_PARALLEL: 4
Eric Anholt8b221e02020-04-17 12:39:32 -0700879 DEQP_EXPECTED_RENDERER: FD307
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700880 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800881 script:
882 - .gitlab-ci/bare-metal/fastboot.sh
883 needs:
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700884 - x86_cross_arm_test
885 - arm_build
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800886 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800887 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800888 - google-freedreno-db410c
889
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700890# Fractional run, single threaded, due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -0700891arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800892 extends:
893 - arm64_a306_gles2
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800894 variables:
895 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700896 DEQP_PARALLEL: 1
897 CI_NODE_INDEX: 1
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700898 CI_NODE_TOTAL: 25
899 NIR_VALIDATE: 0
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800900
Eric Anholtae442c32020-05-15 16:15:07 -0700901# Fractional runs with debug options. Note that since we're not
902# hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
903arm64_a306_gles3_options:
904 extends: arm64_a306_gles2
905 variables:
906 DEQP_VER: gles3
907 script:
908 # Check that the non-constbuf UBO case works.
909 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" .gitlab-ci/bare-metal/fastboot.sh
910
Eric Anholt4bc15e72020-03-03 14:38:09 -0800911arm64_a530_gles2:
912 extends:
913 - arm64_a306_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800914 variables:
915 BM_KERNEL: /lava-files/db820c-kernel
916 BM_DTB: /lava-files/db820c.dtb
Eric Anholt6033c102020-05-19 16:33:10 -0700917 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
918 # current upstream kernel.
919 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
Eric Anholt4bc15e72020-03-03 14:38:09 -0800920 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
921 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
Eric Anholt8b221e02020-04-17 12:39:32 -0700922 DEQP_EXPECTED_RENDERER: FD530
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700923 NIR_VALIDATE: 0
Eric Anholt4bc15e72020-03-03 14:38:09 -0800924 tags:
925 - google-freedreno-db820c
926
927arm64_a530_gles3:
928 extends:
929 - arm64_a530_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800930 variables:
931 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700932 DEQP_PARALLEL: 1
933 CI_NODE_INDEX: 1
Eric Anholt6bf40c22020-05-19 16:44:14 -0700934 CI_NODE_TOTAL: 40
Eric Anholt4bc15e72020-03-03 14:38:09 -0800935
Eric Anholt6c011522020-04-22 12:08:06 -0700936arm64_a530_gles31:
937 extends:
938 - arm64_a530_gles3
939 variables:
940 DEQP_VER: gles31
Eric Anholt6bf40c22020-05-19 16:44:14 -0700941 CI_NODE_INDEX: 1
942 CI_NODE_TOTAL: 10
Eric Anholt6c011522020-04-22 12:08:06 -0700943
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100944# RADV CI
945.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +0100946 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +0100947 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100948 variables:
949 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100950 RADV_DEBUG: checkir
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200951 ACO_DEBUG: validateir,validatera
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100952
Eric Anholt8edaa842020-03-19 11:45:01 -0700953# Can only be triggered manually on personal branches because RADV is the only
954# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100955radv_polaris10_vkcts:
956 extends:
957 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700958 - .test-radv
959 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100960 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100961 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
962 tags:
963 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200964
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100965radv-fossils:
966 extends:
967 - .fossilize-test
968 - .test-radv
969 script:
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200970 # Pitcairn (GFX6)
971 - export RADV_FORCE_FAMILY="pitcairn"
972 - ./install/fossilize-runner.sh
973 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
974 # Bonaire (GFX7)
975 - export RADV_FORCE_FAMILY="bonaire"
976 - ./install/fossilize-runner.sh
977 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
978 # Polaris10 (GFX8)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100979 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100980 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200981 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200982 # Vega10 (GFX9)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100983 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100984 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200985 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200986 # Navi10 (GFX10)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100987 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100988 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200989 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100990
Andres Gomez0ac731b12020-02-20 18:26:30 +0200991# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200992.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200993 cache:
994 key: ${CI_JOB_NAME}
995 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +0100996 - traces-db/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200997
998.traces-test-gl:
999 extends:
1000 - .test-gl
1001 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001002 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001003 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +02001004
1005.traces-test-vk:
1006 extends:
1007 - .test-vk
1008 - .traces-test
1009 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001010 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001011
1012llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +01001013 extends:
1014 - .traces-test-gl
1015 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001016 variables:
1017 LIBGL_ALWAYS_SOFTWARE: "true"
1018 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +02001019 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +02001020
1021radv-polaris10-traces:
1022 extends:
1023 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -07001024 - .test-radv
1025 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +02001026 variables:
1027 DEVICE_NAME: "vk-amd-polaris10"
1028 tags:
1029 - polaris10
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +02001030
1031virgl-traces:
1032 extends:
1033 - .traces-test-gl
1034 - .virgl-rules
1035 variables:
1036 LIBGL_ALWAYS_SOFTWARE: "true"
1037 GALLIUM_DRIVER: "virpipe"
1038 DEVICE_NAME: "gl-virgl"
1039 MESA_GLES_VERSION_OVERRIDE: "3.1"
1040 MESA_GLSL_VERSION_OVERRIDE: "310"