blob: 33649095cba03b852837f5f3de6ab8a3c638b388 [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
565 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100566 script:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100567 # For unknown reasons "too many" installed i386 libraries cause qemu to
568 # crash while executing llvm-config for s390x.
Michel Dänzerda3aee92020-04-27 12:42:58 +0200569 - apt-get purge -y wine32
Andres Gomezcb055c62020-04-22 16:51:48 +0300570 - apt-get autoremove -y --purge
Michel Dänzer65610ec2020-01-30 18:21:15 +0100571 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
572 - .gitlab-ci/meson-build.sh
573
574meson-ppc64el:
575 extends:
576 - meson-s390x
577 variables:
578 CROSS: ppc64el
Michel Dänzer8be81f82020-01-31 16:07:10 +0100579 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100580 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100581
Dylan Baker449f8312019-10-11 09:04:14 -0700582meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700583 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100584 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700585 variables:
586 UNWIND: "false"
587 DRI_DRIVERS: ""
588 GALLIUM_DRIVERS: "swrast"
589 EXTRA_OPTION: >
590 -Dllvm=false
591 -Dosmesa=gallium
592 --cross-file=.gitlab-ci/x86_64-w64-mingw32
593
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100594.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200595 extends:
596 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700597 variables:
598 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200599 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700600 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
601 - rm -rf install
602 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100603 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700604 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800605 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100606 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700607 paths:
608 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200609 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100610 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100611
612.test-gl:
613 extends:
614 - .test
615 variables:
616 TAG: *x86_test-gl
617 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200618 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100619 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100620 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700621
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100622.test-vk:
623 extends:
624 - .test
625 variables:
626 TAG: *x86_test-vk
627 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
628 needs:
629 - meson-testing
630 - x86_test-vk
631
Michel Dänzer576f7b62019-10-22 17:16:52 +0200632.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100633 extends:
634 - .test-gl
635 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100636 artifacts:
637 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100638 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100639 paths:
640 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200641 variables:
642 LIBGL_ALWAYS_SOFTWARE: 1
643 PIGLIT_NO_WINDOW: 1
644 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100645 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200646
647piglit-quick_gl:
648 extends: .piglit-test
649 variables:
650 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000651 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200652 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100653 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200654 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800655 -x egl_ext_device_
656 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800657 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200658 -x glx-multithread-clearbuffer
659 -x glx-multithread-shader-compile
660 -x max-texture-size
661 -x maxsize
662 PIGLIT_PROFILES: quick_gl
663
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100664piglit-glslparser:
665 extends: .piglit-test
666 variables:
667 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000668 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100669 PIGLIT_PROFILES: glslparser
670
671piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200672 extends: .piglit-test
673 variables:
674 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000675 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100676 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200677
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100678.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200679 variables:
680 DEQP_SKIPS: deqp-default-skips.txt
681 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100682 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200683
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100684.deqp-test-gl:
685 extends:
686 - .test-gl
687 - .deqp-test
688
689.deqp-test-vk:
690 extends:
691 - .test-vk
692 - .deqp-test
693 variables:
694 DEQP_VER: vk
695
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100696.fossilize-test:
697 extends: .test-vk
698 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100699 - ./install/fossilize-runner.sh
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100700
Michel Dänzer71436f92020-03-03 18:17:12 +0100701llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700702 variables:
703 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800704 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000705 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800706 # Don't use threads inside llvmpipe, we've already got all 4 cores
707 # busy with DEQP_PARALLEL.
708 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700709 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
710 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt8b221e02020-04-17 12:39:32 -0700711 DEQP_EXPECTED_RENDERER: llvmpipe
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100712 extends:
713 - .deqp-test-gl
714 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700715
Michel Dänzer71436f92020-03-03 18:17:12 +0100716softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100717 extends:
718 - llvmpipe-gles2
719 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700720 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700721 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800722 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700723 GALLIUM_DRIVER: "softpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700724 DEQP_EXPECTED_RENDERER: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700725
Michel Dänzer71436f92020-03-03 18:17:12 +0100726softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800727 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700728 variables:
729 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100730 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800731
Michel Dänzer71436f92020-03-03 18:17:12 +0100732softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800733 parallel: 4
734 variables:
735 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100736 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700737
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200738virgl-gles2:
739 variables:
740 DEQP_VER: gles2
741 DEQP_PARALLEL: 4
742 NIR_VALIDATE: 0
743 DEQP_NO_SAVE_RESULTS: 1
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200744 # Don't use threads inside llvmpipe, we've already got all 4 cores
745 # busy with DEQP_PARALLEL.
746 LP_NUM_THREADS: 0
747 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
748 LIBGL_ALWAYS_SOFTWARE: "true"
749 GALLIUM_DRIVER: "virpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700750 DEQP_EXPECTED_RENDERER: virgl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200751 extends:
752 - .deqp-test-gl
753 - .virgl-rules
754
755virgl-gles3:
756 variables:
757 DEQP_VER: gles3
758 CI_NODE_INDEX: 1
759 CI_NODE_TOTAL: 3
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700760 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200761 extends: virgl-gles2
762
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200763virgl-gles31:
764 variables:
765 DEQP_VER: gles31
766 CI_NODE_INDEX: 1
767 CI_NODE_TOTAL: 10
768 DEQP_OPTIONS: "--deqp-log-images=disable"
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700769 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200770 MESA_GLES_VERSION_OVERRIDE: "3.1"
771 MESA_GLSL_VERSION_OVERRIDE: "310"
772 extends: virgl-gles2
773
Eric Anholt8edaa842020-03-19 11:45:01 -0700774# Rules for tests that should not be present in MRs or the main
775# project's pipeline (don't block marge or report red on
776# mesa/mesamaster) but should be present on pipelines in personal
777# branches (so you can opt in to running the flaky test when you want
778# to).
779.test-manual:
780 rules:
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +0200781 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
782 changes:
783 *all_paths
784 when: manual
785 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -0700786
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000787arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100788 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100789 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100790 - .use-arm_test
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100791 - .freedreno-rules
Eric Anholt6f0dc082019-06-28 16:35:32 -0700792 variables:
793 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700794 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
795 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
796 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800797 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800798 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt8b221e02020-04-17 12:39:32 -0700799 DEQP_EXPECTED_RENDERER: FD630
Eric Anholt6f0dc082019-06-28 16:35:32 -0700800 tags:
801 - mesa-cheza
802 dependencies:
803 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700804
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000805arm64_a630_gles31:
806 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700807 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200808 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700809
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000810arm64_a630_gles3:
811 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700812 variables:
813 DEQP_VER: gles3
814
Eric Anholt5082ac02020-04-17 12:02:37 -0700815arm64_a630_gles31_options:
816 extends: arm64_a630_gles2
817 variables:
818 DEQP_VER: gles31
819 CI_NODE_INDEX: 1
820 CI_NODE_TOTAL: 5
821 script:
822 # We almost always manage to lower UBOs back to constant uploads in
823 # the test suite, so get a little testing for it here.
Eric Anholt72320892020-05-12 16:36:08 -0700824 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.\*ubo" ./install/deqp-runner.sh
Eric Anholt5082ac02020-04-17 12:02:37 -0700825 # The driver does some guessing as to whether to render using gmem
826 # or bypass, and some GLES3.1 features interact with either one.
827 # Do a little testing with gmem and bypass forced.
828 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
829 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
830
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800831.baremetal-test:
832 extends:
833 - .ci-run-policy
834 stage: test
835
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800836arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800837 extends:
838 - .baremetal-test
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700839 - .use-x86_cross_arm_test
Eric Anholtf778c482020-03-18 09:51:03 -0700840 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800841 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -0800842 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800843 BM_DTB: /lava-files/apq8016-sbc.dtb
844 BM_ROOTFS: /lava-files/rootfs-arm64
845 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholt3b5e71c2020-05-01 09:57:00 -0700846 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800847 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800848 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
849 DEQP_VER: gles2
850 DEQP_PARALLEL: 4
Eric Anholt8b221e02020-04-17 12:39:32 -0700851 DEQP_EXPECTED_RENDERER: FD307
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800852 script:
853 - .gitlab-ci/bare-metal/fastboot.sh
854 needs:
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700855 - x86_cross_arm_test
856 - arm_build
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800857 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800858 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800859 - google-freedreno-db410c
860
861# Disabled due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -0700862arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800863 extends:
864 - arm64_a306_gles2
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800865 variables:
866 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700867 DEQP_PARALLEL: 1
868 CI_NODE_INDEX: 1
869 CI_NODE_TOTAL: 50
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800870
Eric Anholt4bc15e72020-03-03 14:38:09 -0800871arm64_a530_gles2:
872 extends:
873 - arm64_a306_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800874 variables:
875 BM_KERNEL: /lava-files/db820c-kernel
876 BM_DTB: /lava-files/db820c.dtb
877 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
878 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
879 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
Eric Anholt8b221e02020-04-17 12:39:32 -0700880 DEQP_EXPECTED_RENDERER: FD530
Eric Anholt4bc15e72020-03-03 14:38:09 -0800881 tags:
882 - google-freedreno-db820c
883
884arm64_a530_gles3:
885 extends:
886 - arm64_a530_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800887 variables:
888 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700889 DEQP_PARALLEL: 1
890 CI_NODE_INDEX: 1
891 CI_NODE_TOTAL: 100
Eric Anholt4bc15e72020-03-03 14:38:09 -0800892
Eric Anholt6c011522020-04-22 12:08:06 -0700893arm64_a530_gles31:
894 extends:
895 - arm64_a530_gles3
896 variables:
897 DEQP_VER: gles31
898
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100899# RADV CI
900.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +0100901 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +0100902 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100903 variables:
904 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100905 RADV_DEBUG: checkir
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200906 ACO_DEBUG: validateir,validatera
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100907
Eric Anholt8edaa842020-03-19 11:45:01 -0700908# Can only be triggered manually on personal branches because RADV is the only
909# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100910radv_polaris10_vkcts:
911 extends:
912 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700913 - .test-radv
914 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100915 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100916 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
917 tags:
918 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200919
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100920radv-fossils:
921 extends:
922 - .fossilize-test
923 - .test-radv
924 script:
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200925 # Pitcairn (GFX6)
926 - export RADV_FORCE_FAMILY="pitcairn"
927 - ./install/fossilize-runner.sh
928 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
929 # Bonaire (GFX7)
930 - export RADV_FORCE_FAMILY="bonaire"
931 - ./install/fossilize-runner.sh
932 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
933 # Polaris10 (GFX8)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100934 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100935 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200936 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200937 # Vega10 (GFX9)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100938 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100939 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200940 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200941 # Navi10 (GFX10)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100942 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100943 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200944 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100945
Andres Gomez0ac731b12020-02-20 18:26:30 +0200946# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200947.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200948 cache:
949 key: ${CI_JOB_NAME}
950 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +0100951 - traces-db/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200952
953.traces-test-gl:
954 extends:
955 - .test-gl
956 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200957 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100958 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +0200959
960.traces-test-vk:
961 extends:
962 - .test-vk
963 - .traces-test
964 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100965 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200966
967llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100968 extends:
969 - .traces-test-gl
970 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200971 variables:
972 LIBGL_ALWAYS_SOFTWARE: "true"
973 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +0200974 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +0200975
976radv-polaris10-traces:
977 extends:
978 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700979 - .test-radv
980 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +0200981 variables:
982 DEVICE_NAME: "vk-amd-polaris10"
983 tags:
984 - polaris10
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +0200985
986virgl-traces:
987 extends:
988 - .traces-test-gl
989 - .virgl-rules
990 variables:
991 LIBGL_ALWAYS_SOFTWARE: "true"
992 GALLIUM_DRIVER: "virpipe"
993 DEVICE_NAME: "gl-virgl"
994 MESA_GLES_VERSION_OVERRIDE: "3.1"
995 MESA_GLSL_VERSION_OVERRIDE: "310"