blob: 85c390de996b8863b1e08ee19b4a24fe9714f6b9 [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änzercc9493f2020-02-27 18:27:56 +010013 - meson-x86_64
14 - scons
15 - meson-misc
16 - llvmpipe
17 - softpipe
18 - freedreno
19 - panfrost
Samuel Pitoiset48e92032020-03-06 08:39:25 +010020 - radv
21 - lima
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +020022 - virgl
Michel Dänzer8775b742020-01-13 09:45:57 +010023 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000024
25
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000026# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020027.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020028 rules:
Michel Dänzer42fe6002020-04-03 12:50:11 +020029 # If any files affecting the pipeline are changed, build/test jobs run
30 # automatically once all dependency jobs have passed
31 - changes: &all_paths
Michel Dänzer8775b742020-01-13 09:45:57 +010032 - VERSION
Eric Engestrom576bff52020-05-14 22:51:38 +020033 - bin/git_sha1_gen.py
34 - bin/install_megadrivers.py
35 - bin/meson_get_version.py
36 - bin/symbols-check.py
Michel Dänzer8775b742020-01-13 09:45:57 +010037 # GitLab CI
38 - .gitlab-ci.yml
39 - .gitlab-ci/**/*
40 # Meson
41 - meson*
42 - build-support/**/*
43 - subprojects/**/*
44 # SCons
45 - SConstruct
46 - scons/**/*
47 - common.py
48 # Source code
49 - include/**/*
50 - src/**/*
51 when: on_success
Michel Dänzer42fe6002020-04-03 12:50:11 +020052 # Otherwise, build/test jobs won't run
Michel Dänzer8775b742020-01-13 09:45:57 +010053 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010054 retry:
55 max: 2
56 when:
57 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000058 # Cancel CI run if a newer commit is pushed to the same branch
59 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000060
Michel Dänzer8775b742020-01-13 09:45:57 +010061success:
62 stage: success
63 image: debian:stable-slim
64 only:
65 - merge_requests
66 except:
67 changes:
Michel Dänzerc12576e2020-04-03 11:17:48 +020068 *all_paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010069 variables:
70 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010071 script:
72 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
73
74
Michel Dänzere426f402019-09-06 17:35:52 +020075.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070076 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +010077 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -070078 when: always
79 untracked: false
80 paths:
81 # Watch out! Artifacts are relative to the build dir.
82 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
83 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000084
Tomeu Vizoso22d97642019-12-17 11:50:14 +010085# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010086#
Eric Anholtaf7dca32020-03-06 13:23:20 -080087# 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 +010088# image doesn't exist yet, the container stage job generates it.
89#
90# In order to generate a new image, one should generally change the tag.
91# While removing the image from the registry would also work, that's not
92# recommended except for ephemeral images during development: Replacing
93# an image after a significant amount of time might pull in newer
94# versions of gcc/clang or other packages, which might break the build
95# with older commits using the same tag.
96#
97# After merging a change resulting in generating a new image to the
98# main repository, it's recommended to remove the image from the source
99# repository's container registry, so that the image from the main
100# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +0200101
Eric Engestrom81b98e92019-10-14 23:04:14 +0100102.container:
103 stage: container
104 extends:
105 - .ci-run-policy
Michel Dänzer42fe6002020-04-03 12:50:11 +0200106 rules:
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200107 # Run pipeline by default if it was triggered by Marge Bot, is for a
108 # merge request, and any files affecting it were changed
109 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
Michel Dänzer42fe6002020-04-03 12:50:11 +0200110 changes:
111 *all_paths
112 when: on_success
113 # Run pipeline by default in the main project if any files affecting it were
114 # changed
115 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
116 changes:
117 *all_paths
118 when: on_success
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200119 # Allow triggering jobs manually for MRs or branches of forked projects if
120 # any files affecting the pipeline were changed
121 - changes:
Michel Dänzer42fe6002020-04-03 12:50:11 +0200122 *all_paths
123 when: manual
124 # Otherwise, container jobs won't run
125 - when: never
Eric Engestrom81b98e92019-10-14 23:04:14 +0100126 variables:
Eric Anholtaf7dca32020-03-06 13:23:20 -0800127 FDO_DISTRIBUTION_VERSION: buster-slim
Michel Dänzerfcd33772020-03-23 18:16:07 +0100128 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800129 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100130 # no need to pull the whole repo to build the container image
131 GIT_STRATEGY: none
132
Michel Dänzerc6c76522019-11-11 18:13:28 +0100133# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100134x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200135 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100136 - .fdo.container-build@debian
Eric Engestrom81b98e92019-10-14 23:04:14 +0100137 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100138 variables:
Eric Anholt588ea312020-05-14 10:38:12 -0700139 FDO_DISTRIBUTION_TAG: &x86_build "2020-05-18-baremetal-2"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000140
Michel Dänzer3a48f452019-11-13 17:43:41 +0100141.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100142 variables:
143 TAG: *x86_build
144 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200145 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100146 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200147
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100148# Debian 10 based x86 test image for GL
149x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100150 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100151 variables:
Pablo Saavedra550a4f72020-05-04 18:11:08 +0200152 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-05-18"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100153
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100154# Debian 10 based x86 test image for VK
155x86_test-vk:
156 extends: x86_build
157 variables:
Pablo Saavedra550a4f72020-05-04 18:11:08 +0200158 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-05-18"
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100159
Michel Dänzerc6c76522019-11-11 18:13:28 +0100160# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100161x86_build_old:
162 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200163 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800164 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800165 FDO_DISTRIBUTION_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200166
Michel Dänzer3a48f452019-11-13 17:43:41 +0100167.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100168 variables:
169 TAG: *x86_build_old
170 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200171 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100172 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200173
Michel Dänzerc6c76522019-11-11 18:13:28 +0100174# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100175arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200176 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100177 - .fdo.container-build@debian@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100178 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700179 variables:
Eric Anholt8094a9a2020-05-13 16:58:26 -0700180 FDO_DISTRIBUTION_TAG: &arm_build "2020-05-14-baremetal-5"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000181
Michel Dänzerc6c76522019-11-11 18:13:28 +0100182.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100183 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100184 TAG: *arm_build
185 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
186 needs:
187 - arm_build
188
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700189# x86 image with ARM rootfses for baremetal testing.
190x86_cross_arm_test:
191 extends: x86_build
192 variables:
193 FDO_DISTRIBUTION_TAG: &x86_cross_arm_test "2020-05-13"
194
195.use-x86_cross_arm_test:
196 variables:
197 TAG: *x86_cross_arm_test
198 image: "$CI_REGISTRY_IMAGE/debian/x86_cross_arm_test:$TAG"
199 needs:
200 - x86_cross_arm_test
201
202
Michel Dänzerc6c76522019-11-11 18:13:28 +0100203# Debian 10 based ARM test image
204arm_test:
205 extends: arm_build
206 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800207 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100208
209.use-arm_test:
210 variables:
211 TAG: *arm_test
212 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
213 needs:
214 - meson-arm64
215 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100216
Daniel Stone07885cb2020-03-24 11:11:36 +0000217# Native Windows docker builds
218#
219# Unlike the above Linux-based builds - including MinGW/SCons builds which
220# cross-compile for Windows - which use the freedesktop ci-templates, we
221# cannot use the same scheme here. As Windows lacks support for
222# Docker-in-Docker, and Podman does not run natively on Windows, we have
223# to open-code much of the same ourselves.
224#
225# This is achieved by first running in a native Windows shell instance
226# (host PowerShell) in the container stage to build and push the image,
227# then in the build stage by executing inside Docker.
228
229.windows-docker-vs2019:
230 variables:
Daniel Stone0f46a312020-05-05 15:49:22 +0100231 WINDOWS_TAG: "2020-05-05-llvm"
Daniel Stone07885cb2020-03-24 11:11:36 +0000232 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
233 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
234
Daniel Stone79113462020-04-16 14:56:18 +0100235windows_build_vs2019:
Daniel Stone07885cb2020-03-24 11:11:36 +0000236 extends:
237 - .container
238 - .windows-docker-vs2019
239 stage: container
240 variables:
241 GIT_STRATEGY: fetch # we do actually need the full repository though
Daniel Stone0f46a312020-05-05 15:49:22 +0100242 timeout: 4h # LLVM takes ages
Daniel Stone07885cb2020-03-24 11:11:36 +0000243 tags:
244 - windows
245 - shell
246 - "1809"
Daniel Stone2db1d732020-03-30 10:16:18 +0100247 - mesa
Daniel Stone07885cb2020-03-24 11:11:36 +0000248 script:
249 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
250
251.use-windows_build_vs2019:
252 extends: .windows-docker-vs2019
253 image: "$WINDOWS_IMAGE"
254 needs:
Daniel Stone79113462020-04-16 14:56:18 +0100255 - windows_build_vs2019
Eric Engestrom81b98e92019-10-14 23:04:14 +0100256
Eric Engestrom46d23c02019-01-20 11:26:53 +0000257# BUILD
258
Dylan Baker06e46472019-10-23 14:21:31 -0700259# Shared between windows and Linux
260.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100261 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000262 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100263 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700264 when: always
265 paths:
266 - _build/meson-logs/*.txt
267 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200268 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700269 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700270
271# Just Linux
272.build-linux:
273 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200274 variables:
275 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100276 CCACHE_COMPRESS: "true"
277 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000278 # Use ccache transparently, and print stats before/after
279 before_script:
280 - export PATH="/usr/lib/ccache:$PATH"
281 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100282 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000283 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000284 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000285
Dylan Baker19851c92019-10-23 14:36:19 -0700286.build-windows:
287 extends: .build-common
288 tags:
Daniel Stone07885cb2020-03-24 11:11:36 +0000289 - windows
290 - docker
291 - "1809"
Daniel Stone9197fd52020-03-30 15:58:51 +0100292 - mesa
Dylan Baker19851c92019-10-23 14:36:19 -0700293 cache:
294 key: ${CI_JOB_NAME}
295 paths:
296 - subprojects/packagecache
297
Eric Engestrom46d23c02019-01-20 11:26:53 +0000298.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100299 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700300 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100301 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100302 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100303 variables:
304 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000305 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200306 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000307
Eric Engestrom06b245b2019-01-23 15:46:10 +0000308.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100309 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700310 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100311 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100312 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000313 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800314 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000315 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200316 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000317
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100318meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200319 extends:
320 - .meson-build
321 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200322 variables:
323 UNWIND: "true"
324 DRI_LOADERS: >
325 -D glx=dri
326 -D gbm=true
327 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100328 -D platforms=x11,drm,surfaceless
329 GALLIUM_ST: >
330 -D dri3=true
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200331 GALLIUM_DRIVERS: "swrast,virgl"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100332 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100333 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800334 EXTRA_OPTION: >
335 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100336 script:
337 - .gitlab-ci/meson-build.sh
338 - .gitlab-ci/prepare-artifacts.sh
339
Michel Dänzerc56f0912020-03-12 12:29:40 +0100340meson-gallium:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100341 extends: .meson-build
342 variables:
343 UNWIND: "true"
344 DRI_LOADERS: >
345 -D glx=dri
346 -D gbm=true
347 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200348 -D platforms=x11,wayland,drm,surfaceless
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200349 GALLIUM_ST: >
350 -D dri3=true
351 -D gallium-extra-hud=true
352 -D gallium-vdpau=true
353 -D gallium-xvmc=true
354 -D gallium-omx=bellagio
355 -D gallium-va=true
356 -D gallium-xa=true
357 -D gallium-nine=true
358 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100359 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 +0200360 EXTRA_OPTION: >
361 -D osmesa=gallium
362 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200363 script:
364 - .gitlab-ci/meson-build.sh
365 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200366
Michel Dänzerc56f0912020-03-12 12:29:40 +0100367meson-classic:
368 extends: .meson-build
369 variables:
370 UNWIND: "true"
371 DRI_LOADERS: >
372 -D glx=dri
373 -D gbm=true
374 -D egl=true
375 -D platforms=x11,wayland,drm,surfaceless
376 DRI_DRIVERS: "auto"
377 EXTRA_OPTION: >
378 -D osmesa=classic
379 -D tools=all
380
Michel Dänzere5364462019-09-13 11:59:43 +0200381.meson-cross:
382 extends:
383 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100384 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200385 variables:
386 UNWIND: "false"
387 DRI_LOADERS: >
388 -D glx=disabled
389 -D gbm=false
390 -D egl=true
391 -D platforms=surfaceless
392 -D osmesa=none
393 GALLIUM_ST: >
394 -D dri3=false
395 -D gallium-vdpau=false
396 -D gallium-xvmc=false
397 -D gallium-omx=disabled
398 -D gallium-va=false
399 -D gallium-xa=false
400 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100401 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200402
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200403.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100404 extends:
405 - .meson-cross
406 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200407 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200408 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200409 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100410 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200411 tags:
412 - aarch64
413
414meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100415 extends:
416 - .meson-arm
417 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200418 variables:
419 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200420 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800421 EXTRA_OPTION: >
422 -D llvm=false
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100423 script:
424 - .gitlab-ci/meson-build.sh
425 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200426
427meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200428 extends:
429 - .meson-arm
430 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200431 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100432 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800433 EXTRA_OPTION: >
434 -D llvm=false
Michel Dänzer59fcb012019-10-23 18:42:53 +0200435 script:
436 - .gitlab-ci/meson-build.sh
437 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200438
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100439meson-arm64-build-test:
440 extends:
441 - .meson-arm
442 - .ci-deqp-artifacts
443 variables:
444 VULKAN_DRIVERS: "amd"
445 script:
446 - .gitlab-ci/meson-build.sh
447
Michel Dänzera2cce702019-03-20 15:58:31 +0100448meson-clang:
449 extends: .meson-build
450 variables:
451 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100452 DRI_LOADERS: >
453 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100454 DRI_DRIVERS: "auto"
455 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100456 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100457 CC: "ccache clang-9"
458 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100459
Daniel Stone79113462020-04-16 14:56:18 +0100460meson-windows-vs2019:
Dylan Baker19851c92019-10-23 14:36:19 -0700461 extends:
462 - .build-windows
Daniel Stone07885cb2020-03-24 11:11:36 +0000463 - .use-windows_build_vs2019
Michel Dänzercc9493f2020-02-27 18:27:56 +0100464 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700465 script:
Daniel Stone07885cb2020-03-24 11:11:36 +0000466 - . .\.gitlab-ci\windows\mesa_build.ps1
Dylan Baker19851c92019-10-23 14:36:19 -0700467
Michel Dänzer82b30092019-05-03 18:19:25 +0200468scons-win64:
469 extends: .scons-build
470 variables:
Jose Fonseca27d58a12020-03-28 10:36:28 +0000471 SCONS_TARGET: platform=windows machine=x86_64 debug=1
Michel Dänzer82b30092019-05-03 18:19:25 +0200472 SCONS_CHECK_COMMAND: "true"
Jose Fonseca27d58a12020-03-28 10:36:28 +0000473 allow_failure: true
Eric Engestrom89a74672019-01-21 09:42:37 +0000474
Michel Dänzer68977152019-05-03 10:58:48 +0200475meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000476 extends: .meson-build
477 variables:
478 UNWIND: "true"
479 DRI_LOADERS: >
480 -D glx=disabled
481 -D egl=false
482 -D gbm=false
483 GALLIUM_ST: >
484 -D dri3=false
485 -D gallium-vdpau=false
486 -D gallium-xvmc=false
487 -D gallium-omx=disabled
488 -D gallium-va=false
489 -D gallium-xa=false
490 -D gallium-nine=false
491 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200492 script:
493 - export GALLIUM_DRIVERS="r600,radeonsi"
494 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200495 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200496 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200497 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
498 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
499
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:
505 UNWIND: "false"
506 DRI_LOADERS: >
507 -D glx=disabled
508 -D egl=false
509 -D gbm=false
510 -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
Eric Engestrom8dab7072019-01-28 18:09:24 +0000516
Michel Dänzer82b30092019-05-03 18:19:25 +0200517meson-vulkan:
518 extends: .meson-build
519 variables:
520 UNWIND: "false"
521 DRI_LOADERS: >
522 -D glx=disabled
523 -D gbm=false
524 -D egl=false
525 -D platforms=x11,wayland,drm
526 -D osmesa=none
527 GALLIUM_ST: >
528 -D dri3=true
529 -D gallium-vdpau=false
530 -D gallium-xvmc=false
531 -D gallium-omx=disabled
532 -D gallium-va=false
533 -D gallium-xa=false
534 -D gallium-nine=false
535 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200536 -D b_sanitize=undefined
537 -D c_args=-fno-sanitize-recover=all
538 -D cpp_args=-fno-sanitize-recover=all
539 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200540 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200541 EXTRA_OPTION: >
542 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800543 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200544
Eric Anholt11aa32a2019-07-11 12:58:28 -0700545meson-i386:
546 extends: .meson-cross
547 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100548 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100549 VULKAN_DRIVERS: intel,amd
Michel Dänzera0591862020-03-12 12:31:05 +0100550 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700551 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700552 -D vulkan-overlay-layer=true
Eric Anholtf6e59912019-12-16 21:23:02 -0800553 -D werror=true
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100554 script:
555 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
556 - .gitlab-ci/meson-build.sh
Eric Anholt11aa32a2019-07-11 12:58:28 -0700557
Michel Dänzer65610ec2020-01-30 18:21:15 +0100558meson-s390x:
559 extends:
560 - .meson-cross
Michel Dänzer130c0ba2020-03-18 18:41:43 +0100561 tags:
562 - kvm
Michel Dänzer65610ec2020-01-30 18:21:15 +0100563 variables:
564 CROSS: s390x
Michel Dänzer6c99de982020-05-23 16:07:53 +0200565 EXTRA_OPTION: >
566 -D werror=true
Michel Dänzer65610ec2020-01-30 18:21:15 +0100567 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100568 script:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100569 # For unknown reasons "too many" installed i386 libraries cause qemu to
570 # crash while executing llvm-config for s390x.
Michel Dänzerda3aee92020-04-27 12:42:58 +0200571 - apt-get purge -y wine32
Andres Gomezcb055c62020-04-22 16:51:48 +0300572 - apt-get autoremove -y --purge
Michel Dänzer65610ec2020-01-30 18:21:15 +0100573 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
574 - .gitlab-ci/meson-build.sh
575
576meson-ppc64el:
577 extends:
578 - meson-s390x
579 variables:
580 CROSS: ppc64el
Michel Dänzer6c99de982020-05-23 16:07:53 +0200581 EXTRA_OPTION: ""
Michel Dänzer8be81f82020-01-31 16:07:10 +0100582 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100583 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100584
Dylan Baker449f8312019-10-11 09:04:14 -0700585meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700586 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100587 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700588 variables:
589 UNWIND: "false"
590 DRI_DRIVERS: ""
591 GALLIUM_DRIVERS: "swrast"
592 EXTRA_OPTION: >
593 -Dllvm=false
594 -Dosmesa=gallium
595 --cross-file=.gitlab-ci/x86_64-w64-mingw32
596
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100597.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200598 extends:
599 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700600 variables:
601 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200602 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700603 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
604 - rm -rf install
605 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100606 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700607 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800608 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100609 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700610 paths:
611 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200612 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100613 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100614
615.test-gl:
616 extends:
617 - .test
618 variables:
619 TAG: *x86_test-gl
620 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200621 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100622 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100623 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700624
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100625.test-vk:
626 extends:
627 - .test
628 variables:
629 TAG: *x86_test-vk
630 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
631 needs:
632 - meson-testing
633 - x86_test-vk
634
Michel Dänzer576f7b62019-10-22 17:16:52 +0200635.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100636 extends:
637 - .test-gl
638 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100639 artifacts:
640 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100641 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100642 paths:
643 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200644 variables:
645 LIBGL_ALWAYS_SOFTWARE: 1
646 PIGLIT_NO_WINDOW: 1
647 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100648 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200649
650piglit-quick_gl:
651 extends: .piglit-test
652 variables:
653 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000654 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200655 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100656 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200657 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800658 -x egl_ext_device_
659 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800660 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200661 -x glx-multithread-clearbuffer
662 -x glx-multithread-shader-compile
663 -x max-texture-size
664 -x maxsize
665 PIGLIT_PROFILES: quick_gl
666
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100667piglit-glslparser:
668 extends: .piglit-test
669 variables:
670 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000671 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100672 PIGLIT_PROFILES: glslparser
673
674piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200675 extends: .piglit-test
676 variables:
677 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000678 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100679 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200680
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100681.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200682 variables:
683 DEQP_SKIPS: deqp-default-skips.txt
684 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100685 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200686
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100687.deqp-test-gl:
688 extends:
689 - .test-gl
690 - .deqp-test
691
692.deqp-test-vk:
693 extends:
694 - .test-vk
695 - .deqp-test
696 variables:
697 DEQP_VER: vk
698
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100699.fossilize-test:
700 extends: .test-vk
701 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100702 - ./install/fossilize-runner.sh
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100703
Michel Dänzer71436f92020-03-03 18:17:12 +0100704llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700705 variables:
706 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800707 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000708 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800709 # Don't use threads inside llvmpipe, we've already got all 4 cores
710 # busy with DEQP_PARALLEL.
711 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700712 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
713 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt8b221e02020-04-17 12:39:32 -0700714 DEQP_EXPECTED_RENDERER: llvmpipe
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100715 extends:
716 - .deqp-test-gl
717 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700718
Michel Dänzer71436f92020-03-03 18:17:12 +0100719softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100720 extends:
721 - llvmpipe-gles2
722 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700723 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700724 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800725 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700726 GALLIUM_DRIVER: "softpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700727 DEQP_EXPECTED_RENDERER: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700728
Michel Dänzer71436f92020-03-03 18:17:12 +0100729softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800730 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700731 variables:
732 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100733 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800734
Michel Dänzer71436f92020-03-03 18:17:12 +0100735softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800736 parallel: 4
737 variables:
738 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100739 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700740
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200741virgl-gles2:
742 variables:
743 DEQP_VER: gles2
744 DEQP_PARALLEL: 4
745 NIR_VALIDATE: 0
746 DEQP_NO_SAVE_RESULTS: 1
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200747 # Don't use threads inside llvmpipe, we've already got all 4 cores
748 # busy with DEQP_PARALLEL.
749 LP_NUM_THREADS: 0
750 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
751 LIBGL_ALWAYS_SOFTWARE: "true"
752 GALLIUM_DRIVER: "virpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700753 DEQP_EXPECTED_RENDERER: virgl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200754 extends:
755 - .deqp-test-gl
756 - .virgl-rules
757
758virgl-gles3:
759 variables:
760 DEQP_VER: gles3
761 CI_NODE_INDEX: 1
762 CI_NODE_TOTAL: 3
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700763 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200764 extends: virgl-gles2
765
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200766virgl-gles31:
767 variables:
768 DEQP_VER: gles31
769 CI_NODE_INDEX: 1
770 CI_NODE_TOTAL: 10
771 DEQP_OPTIONS: "--deqp-log-images=disable"
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700772 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200773 MESA_GLES_VERSION_OVERRIDE: "3.1"
774 MESA_GLSL_VERSION_OVERRIDE: "310"
775 extends: virgl-gles2
776
Eric Anholt8edaa842020-03-19 11:45:01 -0700777# Rules for tests that should not be present in MRs or the main
778# project's pipeline (don't block marge or report red on
779# mesa/mesamaster) but should be present on pipelines in personal
780# branches (so you can opt in to running the flaky test when you want
781# to).
782.test-manual:
783 rules:
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +0200784 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
785 changes:
786 *all_paths
787 when: manual
788 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -0700789
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000790arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100791 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100792 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100793 - .use-arm_test
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100794 - .freedreno-rules
Eric Anholt6f0dc082019-06-28 16:35:32 -0700795 variables:
796 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700797 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
798 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
799 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800800 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800801 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt8b221e02020-04-17 12:39:32 -0700802 DEQP_EXPECTED_RENDERER: FD630
Eric Anholt6f0dc082019-06-28 16:35:32 -0700803 tags:
804 - mesa-cheza
805 dependencies:
806 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700807
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000808arm64_a630_gles31:
809 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700810 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200811 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700812
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000813arm64_a630_gles3:
814 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700815 variables:
816 DEQP_VER: gles3
817
Eric Anholt5082ac02020-04-17 12:02:37 -0700818arm64_a630_gles31_options:
819 extends: arm64_a630_gles2
820 variables:
821 DEQP_VER: gles31
822 CI_NODE_INDEX: 1
823 CI_NODE_TOTAL: 5
824 script:
825 # We almost always manage to lower UBOs back to constant uploads in
826 # the test suite, so get a little testing for it here.
Eric Anholt90cf4942020-05-15 17:18:12 -0700827 - 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 -0700828 # The driver does some guessing as to whether to render using gmem
829 # or bypass, and some GLES3.1 features interact with either one.
830 # Do a little testing with gmem and bypass forced.
831 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
832 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
Eric Anholt6839ad52020-05-15 16:01:15 -0700833 # Check that we don't get obvious nir validation failures (though it's too expensive to run for the full CTS)
834 - DEQP_RUN_SUFFIX=-validate NIR_VALIDATE=1 ./install/deqp-runner.sh
Eric Anholt5082ac02020-04-17 12:02:37 -0700835
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800836.baremetal-test:
837 extends:
838 - .ci-run-policy
839 stage: test
840
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800841arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800842 extends:
843 - .baremetal-test
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700844 - .use-x86_cross_arm_test
Eric Anholtf778c482020-03-18 09:51:03 -0700845 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800846 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -0800847 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800848 BM_DTB: /lava-files/apq8016-sbc.dtb
849 BM_ROOTFS: /lava-files/rootfs-arm64
850 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholt3b5e71c2020-05-01 09:57:00 -0700851 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800852 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800853 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
854 DEQP_VER: gles2
855 DEQP_PARALLEL: 4
Eric Anholt8b221e02020-04-17 12:39:32 -0700856 DEQP_EXPECTED_RENDERER: FD307
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700857 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800858 script:
859 - .gitlab-ci/bare-metal/fastboot.sh
860 needs:
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700861 - x86_cross_arm_test
862 - arm_build
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800863 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800864 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800865 - google-freedreno-db410c
866
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700867# Fractional run, single threaded, due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -0700868arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800869 extends:
870 - arm64_a306_gles2
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800871 variables:
872 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700873 DEQP_PARALLEL: 1
874 CI_NODE_INDEX: 1
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700875 CI_NODE_TOTAL: 25
876 NIR_VALIDATE: 0
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800877
Eric Anholtae442c32020-05-15 16:15:07 -0700878# Fractional runs with debug options. Note that since we're not
879# hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
880arm64_a306_gles3_options:
881 extends: arm64_a306_gles2
882 variables:
883 DEQP_VER: gles3
884 script:
885 # Check that the non-constbuf UBO case works.
886 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" .gitlab-ci/bare-metal/fastboot.sh
887
Eric Anholt4bc15e72020-03-03 14:38:09 -0800888arm64_a530_gles2:
889 extends:
890 - arm64_a306_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800891 variables:
892 BM_KERNEL: /lava-files/db820c-kernel
893 BM_DTB: /lava-files/db820c.dtb
Eric Anholt6033c102020-05-19 16:33:10 -0700894 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
895 # current upstream kernel.
896 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
Eric Anholt4bc15e72020-03-03 14:38:09 -0800897 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
898 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
Eric Anholt8b221e02020-04-17 12:39:32 -0700899 DEQP_EXPECTED_RENDERER: FD530
Eric Anholtb4bccbd2020-05-15 11:20:44 -0700900 NIR_VALIDATE: 0
Eric Anholt4bc15e72020-03-03 14:38:09 -0800901 tags:
902 - google-freedreno-db820c
903
904arm64_a530_gles3:
905 extends:
906 - arm64_a530_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800907 variables:
908 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700909 DEQP_PARALLEL: 1
910 CI_NODE_INDEX: 1
Eric Anholt6bf40c22020-05-19 16:44:14 -0700911 CI_NODE_TOTAL: 40
Eric Anholt4bc15e72020-03-03 14:38:09 -0800912
Eric Anholt6c011522020-04-22 12:08:06 -0700913arm64_a530_gles31:
914 extends:
915 - arm64_a530_gles3
916 variables:
917 DEQP_VER: gles31
Eric Anholt6bf40c22020-05-19 16:44:14 -0700918 CI_NODE_INDEX: 1
919 CI_NODE_TOTAL: 10
Eric Anholt6c011522020-04-22 12:08:06 -0700920
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100921# RADV CI
922.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +0100923 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +0100924 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100925 variables:
926 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100927 RADV_DEBUG: checkir
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200928 ACO_DEBUG: validateir,validatera
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100929
Eric Anholt8edaa842020-03-19 11:45:01 -0700930# Can only be triggered manually on personal branches because RADV is the only
931# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100932radv_polaris10_vkcts:
933 extends:
934 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700935 - .test-radv
936 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100937 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100938 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
939 tags:
940 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200941
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100942radv-fossils:
943 extends:
944 - .fossilize-test
945 - .test-radv
946 script:
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200947 # Pitcairn (GFX6)
948 - export RADV_FORCE_FAMILY="pitcairn"
949 - ./install/fossilize-runner.sh
950 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
951 # Bonaire (GFX7)
952 - export RADV_FORCE_FAMILY="bonaire"
953 - ./install/fossilize-runner.sh
954 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
955 # Polaris10 (GFX8)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100956 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100957 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200958 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200959 # Vega10 (GFX9)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100960 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100961 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200962 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200963 # Navi10 (GFX10)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100964 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100965 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200966 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100967
Andres Gomez0ac731b12020-02-20 18:26:30 +0200968# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200969.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200970 cache:
971 key: ${CI_JOB_NAME}
972 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +0100973 - traces-db/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200974
975.traces-test-gl:
976 extends:
977 - .test-gl
978 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200979 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100980 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +0200981
982.traces-test-vk:
983 extends:
984 - .test-vk
985 - .traces-test
986 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100987 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200988
989llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100990 extends:
991 - .traces-test-gl
992 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200993 variables:
994 LIBGL_ALWAYS_SOFTWARE: "true"
995 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +0200996 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +0200997
998radv-polaris10-traces:
999 extends:
1000 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -07001001 - .test-radv
1002 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +02001003 variables:
1004 DEVICE_NAME: "vk-amd-polaris10"
1005 tags:
1006 - polaris10
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +02001007
1008virgl-traces:
1009 extends:
1010 - .traces-test-gl
1011 - .virgl-rules
1012 variables:
1013 LIBGL_ALWAYS_SOFTWARE: "true"
1014 GALLIUM_DRIVER: "virpipe"
1015 DEVICE_NAME: "gl-virgl"
1016 MESA_GLES_VERSION_OVERRIDE: "3.1"
1017 MESA_GLSL_VERSION_OVERRIDE: "310"