blob: a2343ed6e38ec1be8ba9f020f92cd9c94c41071c [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:
Michel Dänzer262e3882020-05-30 23:55:28 +0200140 FDO_DISTRIBUTION_TAG: &x86_build "2020-05-29"
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:
Dylan Bakerc1a290b2020-04-24 10:58:53 -0700153 FDO_DISTRIBUTION_TAG: &x86_test-base "2020-06-01"
Michel Dänzerc2366f02020-05-16 17:17:23 +0200154
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:
Dylan Bakerc1a290b2020-04-24 10:58:53 -0700170 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-06-01"
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:
Dylan Bakerc1a290b2020-04-24 10:58:53 -0700176 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-06-01"
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:
Michel Dänzer262e3882020-05-30 23:55:28 +0200182 FDO_DISTRIBUTION_TAG: &x86_build_old "2020-06-02"
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:
Dylan Bakerc1a290b2020-04-24 10:58:53 -0700198 FDO_DISTRIBUTION_TAG: &arm_build "2020-06-01"
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.
Eric Anholt601a0292020-05-22 20:00:07 -0700208arm_test:
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700209 extends: x86_build
210 variables:
Dylan Bakerc1a290b2020-04-24 10:58:53 -0700211 FDO_DISTRIBUTION_TAG: &arm_test "2020-06-01"
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700212
Eric Anholt601a0292020-05-22 20:00:07 -0700213.use-arm_test:
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700214 variables:
Eric Anholt601a0292020-05-22 20:00:07 -0700215 TAG: *arm_test
216 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700217 needs:
Eric Anholt601a0292020-05-22 20:00:07 -0700218 - arm_test
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700219
Daniel Stone07885cb2020-03-24 11:11:36 +0000220# Native Windows docker builds
Dylan Baker138c0032020-05-19 14:01:47 -0700221#
Daniel Stone07885cb2020-03-24 11:11:36 +0000222# Unlike the above Linux-based builds - including MinGW/SCons builds which
223# cross-compile for Windows - which use the freedesktop ci-templates, we
224# cannot use the same scheme here. As Windows lacks support for
225# Docker-in-Docker, and Podman does not run natively on Windows, we have
226# to open-code much of the same ourselves.
227#
228# This is achieved by first running in a native Windows shell instance
229# (host PowerShell) in the container stage to build and push the image,
230# then in the build stage by executing inside Docker.
231
232.windows-docker-vs2019:
233 variables:
Daniel Stone0f46a312020-05-05 15:49:22 +0100234 WINDOWS_TAG: "2020-05-05-llvm"
Daniel Stone07885cb2020-03-24 11:11:36 +0000235 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
236 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
237
Daniel Stone79113462020-04-16 14:56:18 +0100238windows_build_vs2019:
Daniel Stone07885cb2020-03-24 11:11:36 +0000239 extends:
240 - .container
241 - .windows-docker-vs2019
242 stage: container
243 variables:
244 GIT_STRATEGY: fetch # we do actually need the full repository though
Daniel Stone0f46a312020-05-05 15:49:22 +0100245 timeout: 4h # LLVM takes ages
Daniel Stone07885cb2020-03-24 11:11:36 +0000246 tags:
247 - windows
248 - shell
249 - "1809"
Daniel Stone2db1d732020-03-30 10:16:18 +0100250 - mesa
Daniel Stone07885cb2020-03-24 11:11:36 +0000251 script:
252 - .\.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 -0700253
Daniel Stone07885cb2020-03-24 11:11:36 +0000254.use-windows_build_vs2019:
255 extends: .windows-docker-vs2019
256 image: "$WINDOWS_IMAGE"
257 needs:
Daniel Stone79113462020-04-16 14:56:18 +0100258 - windows_build_vs2019
Eric Engestrom81b98e92019-10-14 23:04:14 +0100259
Eric Engestrom46d23c02019-01-20 11:26:53 +0000260# BUILD
261
Dylan Baker06e46472019-10-23 14:21:31 -0700262# Shared between windows and Linux
263.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100264 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000265 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100266 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700267 when: always
268 paths:
269 - _build/meson-logs/*.txt
270 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200271 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700272 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700273
274# Just Linux
275.build-linux:
276 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200277 variables:
278 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100279 CCACHE_COMPRESS: "true"
280 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000281 # Use ccache transparently, and print stats before/after
282 before_script:
283 - export PATH="/usr/lib/ccache:$PATH"
284 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100285 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000286 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000287 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000288
Dylan Baker19851c92019-10-23 14:36:19 -0700289.build-windows:
290 extends: .build-common
291 tags:
Daniel Stone07885cb2020-03-24 11:11:36 +0000292 - windows
293 - docker
294 - "1809"
Daniel Stone9197fd52020-03-30 15:58:51 +0100295 - mesa
Dylan Baker19851c92019-10-23 14:36:19 -0700296 cache:
297 key: ${CI_JOB_NAME}
298 paths:
299 - subprojects/packagecache
300
Eric Engestrom46d23c02019-01-20 11:26:53 +0000301.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100302 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700303 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100304 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100305 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100306 variables:
307 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000308 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200309 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000310
Eric Engestrom06b245b2019-01-23 15:46:10 +0000311.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100312 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700313 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100314 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100315 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000316 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800317 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000318 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200319 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000320
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100321meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200322 extends:
323 - .meson-build
324 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200325 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700326 UNWIND: "enabled"
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200327 DRI_LOADERS: >
328 -D glx=dri
Dylan Baker138c0032020-05-19 14:01:47 -0700329 -D gbm=enabled
330 -D egl=enabled
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100331 -D platforms=x11,drm,surfaceless
332 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700333 -D dri3=enabled
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200334 GALLIUM_DRIVERS: "swrast,virgl"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100335 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100336 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800337 EXTRA_OPTION: >
338 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100339 script:
340 - .gitlab-ci/meson-build.sh
341 - .gitlab-ci/prepare-artifacts.sh
342
Michel Dänzerc56f0912020-03-12 12:29:40 +0100343meson-gallium:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100344 extends: .meson-build
345 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700346 UNWIND: "enabled"
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100347 DRI_LOADERS: >
348 -D glx=dri
Dylan Baker138c0032020-05-19 14:01:47 -0700349 -D gbm=enabled
350 -D egl=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200351 -D platforms=x11,wayland,drm,surfaceless
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200352 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700353 -D dri3=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200354 -D gallium-extra-hud=true
Dylan Baker138c0032020-05-19 14:01:47 -0700355 -D gallium-vdpau=enabled
356 -D gallium-xvmc=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200357 -D gallium-omx=bellagio
Dylan Baker138c0032020-05-19 14:01:47 -0700358 -D gallium-va=enabled
359 -D gallium-xa=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200360 -D gallium-nine=true
361 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100362 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 +0200363 EXTRA_OPTION: >
364 -D osmesa=gallium
365 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200366 script:
367 - .gitlab-ci/meson-build.sh
368 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200369
Michel Dänzerc56f0912020-03-12 12:29:40 +0100370meson-classic:
371 extends: .meson-build
372 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700373 UNWIND: "enabled"
Michel Dänzerc56f0912020-03-12 12:29:40 +0100374 DRI_LOADERS: >
375 -D glx=dri
Dylan Baker138c0032020-05-19 14:01:47 -0700376 -D gbm=enabled
377 -D egl=enabled
Michel Dänzerc56f0912020-03-12 12:29:40 +0100378 -D platforms=x11,wayland,drm,surfaceless
379 DRI_DRIVERS: "auto"
380 EXTRA_OPTION: >
381 -D osmesa=classic
382 -D tools=all
383
Michel Dänzere5364462019-09-13 11:59:43 +0200384.meson-cross:
385 extends:
386 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100387 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200388 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700389 UNWIND: "disabled"
Michel Dänzere5364462019-09-13 11:59:43 +0200390 DRI_LOADERS: >
391 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700392 -D gbm=disabled
393 -D egl=enabled
Michel Dänzere5364462019-09-13 11:59:43 +0200394 -D platforms=surfaceless
395 -D osmesa=none
396 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700397 -D dri3=disabled
398 -D gallium-vdpau=disabled
399 -D gallium-xvmc=disabled
Michel Dänzere5364462019-09-13 11:59:43 +0200400 -D gallium-omx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700401 -D gallium-va=disabled
402 -D gallium-xa=disabled
Michel Dänzere5364462019-09-13 11:59:43 +0200403 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100404 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200405
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200406.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100407 extends:
408 - .meson-cross
409 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200410 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200411 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200412 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100413 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200414 tags:
415 - aarch64
416
417meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100418 extends:
419 - .meson-arm
420 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200421 variables:
422 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200423 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800424 EXTRA_OPTION: >
Dylan Baker138c0032020-05-19 14:01:47 -0700425 -D llvm=disabled
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100426 script:
427 - .gitlab-ci/meson-build.sh
428 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200429
430meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200431 extends:
432 - .meson-arm
433 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200434 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100435 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800436 EXTRA_OPTION: >
Dylan Baker138c0032020-05-19 14:01:47 -0700437 -D llvm=disabled
Michel Dänzer59fcb012019-10-23 18:42:53 +0200438 script:
439 - .gitlab-ci/meson-build.sh
440 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200441
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100442meson-arm64-build-test:
443 extends:
444 - .meson-arm
445 - .ci-deqp-artifacts
446 variables:
447 VULKAN_DRIVERS: "amd"
448 script:
449 - .gitlab-ci/meson-build.sh
450
Michel Dänzera2cce702019-03-20 15:58:31 +0100451meson-clang:
452 extends: .meson-build
453 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700454 UNWIND: "enabled"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100455 DRI_LOADERS: >
456 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100457 DRI_DRIVERS: "auto"
458 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100459 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100460 CC: "ccache clang-9"
461 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100462
Daniel Stone79113462020-04-16 14:56:18 +0100463meson-windows-vs2019:
Dylan Baker19851c92019-10-23 14:36:19 -0700464 extends:
465 - .build-windows
Daniel Stone07885cb2020-03-24 11:11:36 +0000466 - .use-windows_build_vs2019
Michel Dänzercc9493f2020-02-27 18:27:56 +0100467 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700468 script:
Daniel Stone07885cb2020-03-24 11:11:36 +0000469 - . .\.gitlab-ci\windows\mesa_build.ps1
Dylan Baker19851c92019-10-23 14:36:19 -0700470
Michel Dänzer82b30092019-05-03 18:19:25 +0200471scons-win64:
472 extends: .scons-build
473 variables:
Jose Fonseca27d58a12020-03-28 10:36:28 +0000474 SCONS_TARGET: platform=windows machine=x86_64 debug=1
Michel Dänzer82b30092019-05-03 18:19:25 +0200475 SCONS_CHECK_COMMAND: "true"
Jose Fonseca27d58a12020-03-28 10:36:28 +0000476 allow_failure: true
Eric Engestrom89a74672019-01-21 09:42:37 +0000477
Michel Dänzer68977152019-05-03 10:58:48 +0200478meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000479 extends: .meson-build
480 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700481 UNWIND: "enabled"
Eric Engestromb5a70af2019-01-28 18:05:22 +0000482 DRI_LOADERS: >
483 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700484 -D egl=disabled
485 -D gbm=disabled
Michel Dänzer262e3882020-05-30 23:55:28 +0200486 GALLIUM_DRIVERS: "r600,radeonsi"
Eric Engestromb5a70af2019-01-28 18:05:22 +0000487 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700488 -D dri3=disabled
489 -D gallium-vdpau=disabled
490 -D gallium-xvmc=disabled
Eric Engestromb5a70af2019-01-28 18:05:22 +0000491 -D gallium-omx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700492 -D gallium-va=disabled
493 -D gallium-xa=disabled
Eric Engestromb5a70af2019-01-28 18:05:22 +0000494 -D gallium-nine=false
495 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200496 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200497 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200498 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200499
500meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200501 extends:
502 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100503 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200504 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700505 UNWIND: "disabled"
Michel Dänzer8a199922019-09-06 17:04:47 +0200506 DRI_LOADERS: >
507 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700508 -D egl=disabled
509 -D gbm=disabled
Michel Dänzer8a199922019-09-06 17:04:47 +0200510 -D platforms=drm,surfaceless
511 GALLIUM_DRIVERS: "i915,r600"
512 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200513 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
514 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
515 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Michel Dänzer262e3882020-05-30 23:55:28 +0200516 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
517 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000518
Michel Dänzer82b30092019-05-03 18:19:25 +0200519meson-vulkan:
520 extends: .meson-build
521 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700522 UNWIND: "disabled"
Michel Dänzer82b30092019-05-03 18:19:25 +0200523 DRI_LOADERS: >
524 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700525 -D gbm=disabled
526 -D egl=disabled
Michel Dänzer82b30092019-05-03 18:19:25 +0200527 -D platforms=x11,wayland,drm
528 -D osmesa=none
529 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700530 -D dri3=enabled
531 -D gallium-vdpau=disabled
532 -D gallium-xvmc=disabled
Michel Dänzer82b30092019-05-03 18:19:25 +0200533 -D gallium-omx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700534 -D gallium-va=disabled
535 -D gallium-xa=disabled
Michel Dänzer82b30092019-05-03 18:19:25 +0200536 -D gallium-nine=false
537 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200538 -D b_sanitize=undefined
539 -D c_args=-fno-sanitize-recover=all
540 -D cpp_args=-fno-sanitize-recover=all
541 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200542 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200543 EXTRA_OPTION: >
544 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800545 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200546
Eric Anholt11aa32a2019-07-11 12:58:28 -0700547meson-i386:
548 extends: .meson-cross
549 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100550 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100551 VULKAN_DRIVERS: intel,amd
Michel Dänzera0591862020-03-12 12:31:05 +0100552 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700553 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700554 -D vulkan-overlay-layer=true
Eric Anholtf6e59912019-12-16 21:23:02 -0800555 -D werror=true
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100556 script:
557 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
558 - .gitlab-ci/meson-build.sh
Eric Anholt11aa32a2019-07-11 12:58:28 -0700559
Michel Dänzer65610ec2020-01-30 18:21:15 +0100560meson-s390x:
561 extends:
562 - .meson-cross
Michel Dänzer130c0ba2020-03-18 18:41:43 +0100563 tags:
564 - kvm
Michel Dänzer65610ec2020-01-30 18:21:15 +0100565 variables:
566 CROSS: s390x
Michel Dänzer6c99de982020-05-23 16:07:53 +0200567 EXTRA_OPTION: >
568 -D werror=true
Michel Dänzer65610ec2020-01-30 18:21:15 +0100569 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100570 script:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100571 # For unknown reasons "too many" installed i386 libraries cause qemu to
572 # crash while executing llvm-config for s390x.
Michel Dänzerda3aee92020-04-27 12:42:58 +0200573 - apt-get purge -y wine32
Andres Gomezcb055c62020-04-22 16:51:48 +0300574 - apt-get autoremove -y --purge
Michel Dänzer65610ec2020-01-30 18:21:15 +0100575 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
576 - .gitlab-ci/meson-build.sh
577
578meson-ppc64el:
579 extends:
580 - meson-s390x
581 variables:
582 CROSS: ppc64el
Michel Dänzer6c99de982020-05-23 16:07:53 +0200583 EXTRA_OPTION: ""
Michel Dänzer8be81f82020-01-31 16:07:10 +0100584 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100585 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100586
Dylan Baker449f8312019-10-11 09:04:14 -0700587meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700588 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100589 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700590 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700591 UNWIND: "disabled"
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700592 DRI_DRIVERS: ""
593 GALLIUM_DRIVERS: "swrast"
594 EXTRA_OPTION: >
Dylan Baker138c0032020-05-19 14:01:47 -0700595 -Dllvm=disabled
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700596 -Dosmesa=gallium
597 --cross-file=.gitlab-ci/x86_64-w64-mingw32
598
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100599.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200600 extends:
601 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700602 variables:
603 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200604 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700605 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
606 - rm -rf install
607 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100608 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700609 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800610 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100611 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700612 paths:
613 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200614 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100615 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100616
617.test-gl:
618 extends:
619 - .test
620 variables:
621 TAG: *x86_test-gl
622 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200623 needs:
Michel Dänzer43111ea2020-05-16 12:07:42 +0200624 - x86_build
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100625 - meson-testing
Michel Dänzerc2366f02020-05-16 17:17:23 +0200626 - x86_test-base
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100627 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700628
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100629.test-vk:
630 extends:
631 - .test
632 variables:
633 TAG: *x86_test-vk
634 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
635 needs:
Michel Dänzer43111ea2020-05-16 12:07:42 +0200636 - x86_build
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100637 - meson-testing
Michel Dänzerc2366f02020-05-16 17:17:23 +0200638 - x86_test-base
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100639 - x86_test-vk
640
Michel Dänzer576f7b62019-10-22 17:16:52 +0200641.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100642 extends:
643 - .test-gl
644 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100645 artifacts:
646 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100647 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100648 paths:
649 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200650 variables:
651 LIBGL_ALWAYS_SOFTWARE: 1
652 PIGLIT_NO_WINDOW: 1
653 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100654 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200655
656piglit-quick_gl:
657 extends: .piglit-test
658 variables:
659 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000660 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200661 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100662 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200663 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800664 -x egl_ext_device_
665 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800666 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200667 -x glx-multithread-clearbuffer
668 -x glx-multithread-shader-compile
669 -x max-texture-size
670 -x maxsize
671 PIGLIT_PROFILES: quick_gl
672
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100673piglit-glslparser:
674 extends: .piglit-test
675 variables:
676 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000677 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100678 PIGLIT_PROFILES: glslparser
679
680piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200681 extends: .piglit-test
682 variables:
683 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000684 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100685 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200686
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100687.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200688 variables:
689 DEQP_SKIPS: deqp-default-skips.txt
690 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100691 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200692
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100693.deqp-test-gl:
694 extends:
695 - .test-gl
696 - .deqp-test
697
698.deqp-test-vk:
699 extends:
700 - .test-vk
701 - .deqp-test
702 variables:
703 DEQP_VER: vk
704
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100705.fossilize-test:
706 extends: .test-vk
707 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100708 - ./install/fossilize-runner.sh
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100709
Michel Dänzer71436f92020-03-03 18:17:12 +0100710llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700711 variables:
712 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800713 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000714 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800715 # Don't use threads inside llvmpipe, we've already got all 4 cores
716 # busy with DEQP_PARALLEL.
717 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700718 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
719 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt8b221e02020-04-17 12:39:32 -0700720 DEQP_EXPECTED_RENDERER: llvmpipe
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100721 extends:
722 - .deqp-test-gl
723 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700724
Michel Dänzer71436f92020-03-03 18:17:12 +0100725softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100726 extends:
727 - llvmpipe-gles2
728 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700729 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700730 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800731 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700732 GALLIUM_DRIVER: "softpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700733 DEQP_EXPECTED_RENDERER: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700734
Michel Dänzer71436f92020-03-03 18:17:12 +0100735softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800736 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700737 variables:
738 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100739 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800740
Michel Dänzer71436f92020-03-03 18:17:12 +0100741softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800742 parallel: 4
743 variables:
744 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100745 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700746
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200747virgl-gles2:
748 variables:
749 DEQP_VER: gles2
750 DEQP_PARALLEL: 4
751 NIR_VALIDATE: 0
752 DEQP_NO_SAVE_RESULTS: 1
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200753 # Don't use threads inside llvmpipe, we've already got all 4 cores
754 # busy with DEQP_PARALLEL.
755 LP_NUM_THREADS: 0
756 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
757 LIBGL_ALWAYS_SOFTWARE: "true"
758 GALLIUM_DRIVER: "virpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700759 DEQP_EXPECTED_RENDERER: virgl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200760 extends:
761 - .deqp-test-gl
762 - .virgl-rules
763
764virgl-gles3:
765 variables:
766 DEQP_VER: gles3
767 CI_NODE_INDEX: 1
768 CI_NODE_TOTAL: 3
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700769 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200770 extends: virgl-gles2
771
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200772virgl-gles31:
773 variables:
774 DEQP_VER: gles31
775 CI_NODE_INDEX: 1
776 CI_NODE_TOTAL: 10
777 DEQP_OPTIONS: "--deqp-log-images=disable"
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700778 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200779 MESA_GLES_VERSION_OVERRIDE: "3.1"
780 MESA_GLSL_VERSION_OVERRIDE: "310"
781 extends: virgl-gles2
782
Eric Anholt8edaa842020-03-19 11:45:01 -0700783# Rules for tests that should not be present in MRs or the main
784# project's pipeline (don't block marge or report red on
785# mesa/mesamaster) but should be present on pipelines in personal
786# branches (so you can opt in to running the flaky test when you want
787# to).
788.test-manual:
789 rules:
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +0200790 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
791 changes:
792 *all_paths
793 when: manual
794 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -0700795
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000796arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100797 extends:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700798 - arm64_a306_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700799 variables:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700800 BM_KERNEL: /lava-files/cheza-kernel
801 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 -0700802 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
803 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
804 NIR_VALIDATE: 0
Eric Anholt8b221e02020-04-17 12:39:32 -0700805 DEQP_EXPECTED_RENDERER: FD630
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700806 DEQP_NO_SAVE_RESULTS: ""
Eric Anholt6f0dc082019-06-28 16:35:32 -0700807 tags:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700808 - google-freedreno-cheza
809 script:
810 - .gitlab-ci/bare-metal/cros-servo.sh
Eric Anholt6f0dc082019-06-28 16:35:32 -0700811
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000812arm64_a630_gles31:
813 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700814 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200815 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700816
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000817arm64_a630_gles3:
818 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700819 variables:
820 DEQP_VER: gles3
821
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700822# We almost always manage to lower UBOs back to constant uploads in
823# the test suite, so get a little testing for it here.
824arm64_a630_noubo:
825 extends: arm64_a630_gles31
Eric Anholt5082ac02020-04-17 12:02:37 -0700826 variables:
827 DEQP_VER: gles31
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700828 IR3_SHADER_DEBUG: nouboopt
829 DEQP_CASELIST_FILTER: "functional.*ubo"
830 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-noubo-fails.txt
831
832# The driver does some guessing as to whether to render using gmem
833# or bypass, and some GLES3.1 features interact with either one.
834# Do a little testing with gmem and bypass forced.
835arm64_a630_bypass:
836 extends: arm64_a630_gles31
837 variables:
Eric Anholt5082ac02020-04-17 12:02:37 -0700838 CI_NODE_INDEX: 1
839 CI_NODE_TOTAL: 5
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700840 FD_MESA_DEBUG: nogmem
841 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
842
843# Along with checking gmem path, check that we don't get obvious nir
844# validation failures (though it's too expensive to have it on for the
845# full CTS)
846arm64_a630_gmem:
847 extends: arm64_a630_gles31
848 variables:
849 CI_NODE_INDEX: 1
850 CI_NODE_TOTAL: 5
851 FD_MESA_DEBUG: nobypass
852 NIR_VALIDATE: 1
Eric Anholt5082ac02020-04-17 12:02:37 -0700853
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800854.baremetal-test:
855 extends:
856 - .ci-run-policy
857 stage: test
Eric Anholt6f4fc4f2020-05-15 11:22:37 -0700858 artifacts:
859 when: always
860 name: "mesa_${CI_JOB_NAME}"
861 paths:
862 - results/
863 - serial*.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800864
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800865arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800866 extends:
867 - .baremetal-test
Eric Anholt601a0292020-05-22 20:00:07 -0700868 - .use-arm_test
Eric Anholtf778c482020-03-18 09:51:03 -0700869 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800870 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -0800871 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800872 BM_DTB: /lava-files/apq8016-sbc.dtb
873 BM_ROOTFS: /lava-files/rootfs-arm64
874 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholt3b5e71c2020-05-01 09:57:00 -0700875 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800876 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800877 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
878 DEQP_VER: gles2
879 DEQP_PARALLEL: 4
Eric Anholt8b221e02020-04-17 12:39:32 -0700880 DEQP_EXPECTED_RENDERER: FD307
Eric Anholt46d9b502020-05-22 15:48:55 -0700881 # Since we can't get artifacts back yet, skip making them.
882 DEQP_NO_SAVE_RESULTS: 1
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700883 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800884 script:
885 - .gitlab-ci/bare-metal/fastboot.sh
886 needs:
Eric Anholt601a0292020-05-22 20:00:07 -0700887 - arm_test
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700888 - arm_build
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800889 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800890 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800891 - google-freedreno-db410c
892
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700893# Fractional run, single threaded, due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -0700894arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800895 extends:
896 - arm64_a306_gles2
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800897 variables:
898 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700899 DEQP_PARALLEL: 1
900 CI_NODE_INDEX: 1
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700901 CI_NODE_TOTAL: 25
902 NIR_VALIDATE: 0
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800903
Eric Anholtae442c32020-05-15 16:15:07 -0700904# Fractional runs with debug options. Note that since we're not
905# hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
906arm64_a306_gles3_options:
907 extends: arm64_a306_gles2
908 variables:
909 DEQP_VER: gles3
910 script:
911 # Check that the non-constbuf UBO case works.
912 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" .gitlab-ci/bare-metal/fastboot.sh
913
Eric Anholt4bc15e72020-03-03 14:38:09 -0800914arm64_a530_gles2:
915 extends:
916 - arm64_a306_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800917 variables:
918 BM_KERNEL: /lava-files/db820c-kernel
919 BM_DTB: /lava-files/db820c.dtb
Eric Anholt6033c102020-05-19 16:33:10 -0700920 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
921 # current upstream kernel.
922 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
Eric Anholt4bc15e72020-03-03 14:38:09 -0800923 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
924 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
Eric Anholt8b221e02020-04-17 12:39:32 -0700925 DEQP_EXPECTED_RENDERER: FD530
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700926 NIR_VALIDATE: 0
Eric Anholt4bc15e72020-03-03 14:38:09 -0800927 tags:
928 - google-freedreno-db820c
929
930arm64_a530_gles3:
931 extends:
932 - arm64_a530_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800933 variables:
934 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700935 DEQP_PARALLEL: 1
936 CI_NODE_INDEX: 1
Eric Anholt6bf40c22020-05-19 16:44:14 -0700937 CI_NODE_TOTAL: 40
Eric Anholt4bc15e72020-03-03 14:38:09 -0800938
Eric Anholt6c011522020-04-22 12:08:06 -0700939arm64_a530_gles31:
940 extends:
941 - arm64_a530_gles3
942 variables:
943 DEQP_VER: gles31
Eric Anholt6bf40c22020-05-19 16:44:14 -0700944 CI_NODE_INDEX: 1
945 CI_NODE_TOTAL: 10
Eric Anholt6c011522020-04-22 12:08:06 -0700946
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100947# RADV CI
948.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +0100949 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +0100950 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100951 variables:
952 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100953 RADV_DEBUG: checkir
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200954 ACO_DEBUG: validateir,validatera
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100955
Eric Anholt8edaa842020-03-19 11:45:01 -0700956# Can only be triggered manually on personal branches because RADV is the only
957# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100958radv_polaris10_vkcts:
959 extends:
960 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700961 - .test-radv
962 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100963 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100964 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
965 tags:
966 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200967
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100968radv-fossils:
969 extends:
970 - .fossilize-test
971 - .test-radv
972 script:
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200973 # Pitcairn (GFX6)
974 - export RADV_FORCE_FAMILY="pitcairn"
975 - ./install/fossilize-runner.sh
976 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
977 # Bonaire (GFX7)
978 - export RADV_FORCE_FAMILY="bonaire"
979 - ./install/fossilize-runner.sh
980 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
981 # Polaris10 (GFX8)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100982 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100983 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200984 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200985 # Vega10 (GFX9)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100986 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100987 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200988 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200989 # Navi10 (GFX10)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100990 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100991 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200992 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100993
Andres Gomez0ac731b12020-02-20 18:26:30 +0200994# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200995.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200996 cache:
997 key: ${CI_JOB_NAME}
998 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +0100999 - traces-db/
Andres Gomez0ac731b12020-02-20 18:26:30 +02001000
1001.traces-test-gl:
1002 extends:
1003 - .test-gl
1004 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001005 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001006 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +02001007
1008.traces-test-vk:
1009 extends:
1010 - .test-vk
1011 - .traces-test
1012 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001013 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001014
1015llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +01001016 extends:
1017 - .traces-test-gl
1018 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001019 variables:
1020 LIBGL_ALWAYS_SOFTWARE: "true"
1021 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +02001022 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +02001023
1024radv-polaris10-traces:
1025 extends:
1026 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -07001027 - .test-radv
1028 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +02001029 variables:
1030 DEVICE_NAME: "vk-amd-polaris10"
1031 tags:
1032 - polaris10
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +02001033
1034virgl-traces:
1035 extends:
1036 - .traces-test-gl
1037 - .virgl-rules
1038 variables:
1039 LIBGL_ALWAYS_SOFTWARE: "true"
1040 GALLIUM_DRIVER: "virpipe"
1041 DEVICE_NAME: "gl-virgl"
1042 MESA_GLES_VERSION_OVERRIDE: "3.1"
1043 MESA_GLSL_VERSION_OVERRIDE: "310"