blob: b28cdb8fc6104b77bfa1dd6e57c80b5ef4e84bd2 [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änzerfcd33772020-03-23 18:16:07 +01006 ref: 4b2997287317808830e9cb4eb0f99b691787da88
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
33 - bin/**/*
34 # GitLab CI
35 - .gitlab-ci.yml
36 - .gitlab-ci/**/*
37 # Meson
38 - meson*
39 - build-support/**/*
40 - subprojects/**/*
41 # SCons
42 - SConstruct
43 - scons/**/*
44 - common.py
45 # Source code
46 - include/**/*
47 - src/**/*
48 when: on_success
Michel Dänzer42fe6002020-04-03 12:50:11 +020049 # Otherwise, build/test jobs won't run
Michel Dänzer8775b742020-01-13 09:45:57 +010050 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010051 retry:
52 max: 2
53 when:
54 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000055 # Cancel CI run if a newer commit is pushed to the same branch
56 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000057
Michel Dänzer8775b742020-01-13 09:45:57 +010058success:
59 stage: success
60 image: debian:stable-slim
61 only:
62 - merge_requests
63 except:
64 changes:
Michel Dänzerc12576e2020-04-03 11:17:48 +020065 *all_paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010066 variables:
67 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010068 script:
69 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
70
71
Michel Dänzere426f402019-09-06 17:35:52 +020072.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070073 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +010074 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -070075 when: always
76 untracked: false
77 paths:
78 # Watch out! Artifacts are relative to the build dir.
79 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
80 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000081
Tomeu Vizoso22d97642019-12-17 11:50:14 +010082# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010083#
Eric Anholtaf7dca32020-03-06 13:23:20 -080084# 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 +010085# image doesn't exist yet, the container stage job generates it.
86#
87# In order to generate a new image, one should generally change the tag.
88# While removing the image from the registry would also work, that's not
89# recommended except for ephemeral images during development: Replacing
90# an image after a significant amount of time might pull in newer
91# versions of gcc/clang or other packages, which might break the build
92# with older commits using the same tag.
93#
94# After merging a change resulting in generating a new image to the
95# main repository, it's recommended to remove the image from the source
96# repository's container registry, so that the image from the main
97# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +020098
Eric Engestrom81b98e92019-10-14 23:04:14 +010099.container:
100 stage: container
101 extends:
102 - .ci-run-policy
Michel Dänzer42fe6002020-04-03 12:50:11 +0200103 rules:
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200104 # Run pipeline by default if it was triggered by Marge Bot, is for a
105 # merge request, and any files affecting it were changed
106 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
Michel Dänzer42fe6002020-04-03 12:50:11 +0200107 changes:
108 *all_paths
109 when: on_success
110 # Run pipeline by default in the main project if any files affecting it were
111 # changed
112 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
113 changes:
114 *all_paths
115 when: on_success
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200116 # Allow triggering jobs manually for MRs or branches of forked projects if
117 # any files affecting the pipeline were changed
118 - changes:
Michel Dänzer42fe6002020-04-03 12:50:11 +0200119 *all_paths
120 when: manual
121 # Otherwise, container jobs won't run
122 - when: never
Eric Engestrom81b98e92019-10-14 23:04:14 +0100123 variables:
Eric Anholtaf7dca32020-03-06 13:23:20 -0800124 FDO_DISTRIBUTION_VERSION: buster-slim
Michel Dänzerfcd33772020-03-23 18:16:07 +0100125 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800126 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100127 # no need to pull the whole repo to build the container image
128 GIT_STRATEGY: none
129
Michel Dänzerc6c76522019-11-11 18:13:28 +0100130# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100131x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200132 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100133 - .fdo.container-build@debian
Eric Engestrom81b98e92019-10-14 23:04:14 +0100134 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100135 variables:
Andres Gomezcb055c62020-04-22 16:51:48 +0300136 FDO_DISTRIBUTION_TAG: &x86_build "2020-04-22-winehq"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000137
Michel Dänzer3a48f452019-11-13 17:43:41 +0100138.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100139 variables:
140 TAG: *x86_build
141 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200142 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100143 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200144
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100145# Debian 10 based x86 test image for GL
146x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100147 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100148 variables:
Tomeu Vizoso34ed5ff2020-04-21 14:49:19 +0200149 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-04-21"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100150
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100151# Debian 10 based x86 test image for VK
152x86_test-vk:
153 extends: x86_build
154 variables:
Alexandros Frantzis4c6ce822020-04-09 18:40:38 +0300155 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-04-09"
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100156
Michel Dänzerc6c76522019-11-11 18:13:28 +0100157# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100158x86_build_old:
159 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200160 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800161 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800162 FDO_DISTRIBUTION_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200163
Michel Dänzer3a48f452019-11-13 17:43:41 +0100164.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100165 variables:
166 TAG: *x86_build_old
167 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200168 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100169 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200170
Michel Dänzerc6c76522019-11-11 18:13:28 +0100171# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100172arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200173 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100174 - .fdo.container-build@debian@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100175 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700176 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800177 FDO_DISTRIBUTION_TAG: &arm_build "2020-04-01-jflags"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000178
Michel Dänzerc6c76522019-11-11 18:13:28 +0100179.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100180 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100181 TAG: *arm_build
182 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
183 needs:
184 - arm_build
185
186# Debian 10 based ARM test image
187arm_test:
188 extends: arm_build
189 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800190 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100191
192.use-arm_test:
193 variables:
194 TAG: *arm_test
195 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
196 needs:
197 - meson-arm64
198 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100199
Daniel Stone07885cb2020-03-24 11:11:36 +0000200# Native Windows docker builds
201#
202# Unlike the above Linux-based builds - including MinGW/SCons builds which
203# cross-compile for Windows - which use the freedesktop ci-templates, we
204# cannot use the same scheme here. As Windows lacks support for
205# Docker-in-Docker, and Podman does not run natively on Windows, we have
206# to open-code much of the same ourselves.
207#
208# This is achieved by first running in a native Windows shell instance
209# (host PowerShell) in the container stage to build and push the image,
210# then in the build stage by executing inside Docker.
211
212.windows-docker-vs2019:
213 variables:
214 WINDOWS_TAG: "2020-03-24"
215 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
216 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
217
Daniel Stone79113462020-04-16 14:56:18 +0100218windows_build_vs2019:
Daniel Stone07885cb2020-03-24 11:11:36 +0000219 extends:
220 - .container
221 - .windows-docker-vs2019
222 stage: container
223 variables:
224 GIT_STRATEGY: fetch # we do actually need the full repository though
225 tags:
226 - windows
227 - shell
228 - "1809"
Daniel Stone2db1d732020-03-30 10:16:18 +0100229 - mesa
Daniel Stone07885cb2020-03-24 11:11:36 +0000230 script:
231 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
232
233.use-windows_build_vs2019:
234 extends: .windows-docker-vs2019
235 image: "$WINDOWS_IMAGE"
236 needs:
Daniel Stone79113462020-04-16 14:56:18 +0100237 - windows_build_vs2019
Eric Engestrom81b98e92019-10-14 23:04:14 +0100238
Eric Engestrom46d23c02019-01-20 11:26:53 +0000239# BUILD
240
Dylan Baker06e46472019-10-23 14:21:31 -0700241# Shared between windows and Linux
242.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100243 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000244 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100245 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700246 when: always
247 paths:
248 - _build/meson-logs/*.txt
249 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200250 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700251 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700252
253# Just Linux
254.build-linux:
255 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200256 variables:
257 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100258 CCACHE_COMPRESS: "true"
259 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000260 # Use ccache transparently, and print stats before/after
261 before_script:
262 - export PATH="/usr/lib/ccache:$PATH"
263 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100264 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000265 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000266 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000267
Dylan Baker19851c92019-10-23 14:36:19 -0700268.build-windows:
269 extends: .build-common
270 tags:
Daniel Stone07885cb2020-03-24 11:11:36 +0000271 - windows
272 - docker
273 - "1809"
Daniel Stone9197fd52020-03-30 15:58:51 +0100274 - mesa
Dylan Baker19851c92019-10-23 14:36:19 -0700275 cache:
276 key: ${CI_JOB_NAME}
277 paths:
278 - subprojects/packagecache
279
Eric Engestrom46d23c02019-01-20 11:26:53 +0000280.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100281 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700282 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100283 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100284 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100285 variables:
286 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000287 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200288 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000289
Eric Engestrom06b245b2019-01-23 15:46:10 +0000290.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100291 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700292 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100293 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100294 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000295 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800296 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000297 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200298 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000299
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100300meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200301 extends:
302 - .meson-build
303 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200304 variables:
305 UNWIND: "true"
306 DRI_LOADERS: >
307 -D glx=dri
308 -D gbm=true
309 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100310 -D platforms=x11,drm,surfaceless
311 GALLIUM_ST: >
312 -D dri3=true
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200313 GALLIUM_DRIVERS: "swrast,virgl"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100314 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100315 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800316 EXTRA_OPTION: >
317 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100318 script:
319 - .gitlab-ci/meson-build.sh
320 - .gitlab-ci/prepare-artifacts.sh
321
Michel Dänzerc56f0912020-03-12 12:29:40 +0100322meson-gallium:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100323 extends: .meson-build
324 variables:
325 UNWIND: "true"
326 DRI_LOADERS: >
327 -D glx=dri
328 -D gbm=true
329 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200330 -D platforms=x11,wayland,drm,surfaceless
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200331 GALLIUM_ST: >
332 -D dri3=true
333 -D gallium-extra-hud=true
334 -D gallium-vdpau=true
335 -D gallium-xvmc=true
336 -D gallium-omx=bellagio
337 -D gallium-va=true
338 -D gallium-xa=true
339 -D gallium-nine=true
340 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100341 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 +0200342 EXTRA_OPTION: >
343 -D osmesa=gallium
344 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200345 script:
346 - .gitlab-ci/meson-build.sh
347 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200348
Michel Dänzerc56f0912020-03-12 12:29:40 +0100349meson-classic:
350 extends: .meson-build
351 variables:
352 UNWIND: "true"
353 DRI_LOADERS: >
354 -D glx=dri
355 -D gbm=true
356 -D egl=true
357 -D platforms=x11,wayland,drm,surfaceless
358 DRI_DRIVERS: "auto"
359 EXTRA_OPTION: >
360 -D osmesa=classic
361 -D tools=all
362
Michel Dänzere5364462019-09-13 11:59:43 +0200363.meson-cross:
364 extends:
365 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100366 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200367 variables:
368 UNWIND: "false"
369 DRI_LOADERS: >
370 -D glx=disabled
371 -D gbm=false
372 -D egl=true
373 -D platforms=surfaceless
374 -D osmesa=none
375 GALLIUM_ST: >
376 -D dri3=false
377 -D gallium-vdpau=false
378 -D gallium-xvmc=false
379 -D gallium-omx=disabled
380 -D gallium-va=false
381 -D gallium-xa=false
382 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100383 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200384
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200385.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100386 extends:
387 - .meson-cross
388 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200389 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200390 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200391 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100392 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200393 tags:
394 - aarch64
395
396meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100397 extends:
398 - .meson-arm
399 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200400 variables:
401 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200402 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800403 EXTRA_OPTION: >
404 -D llvm=false
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100405 script:
406 - .gitlab-ci/meson-build.sh
407 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200408
409meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200410 extends:
411 - .meson-arm
412 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200413 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100414 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800415 EXTRA_OPTION: >
416 -D llvm=false
Michel Dänzer59fcb012019-10-23 18:42:53 +0200417 script:
418 - .gitlab-ci/meson-build.sh
419 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200420
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100421meson-arm64-build-test:
422 extends:
423 - .meson-arm
424 - .ci-deqp-artifacts
425 variables:
426 VULKAN_DRIVERS: "amd"
427 script:
428 - .gitlab-ci/meson-build.sh
429
Michel Dänzera2cce702019-03-20 15:58:31 +0100430meson-clang:
431 extends: .meson-build
432 variables:
433 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100434 DRI_LOADERS: >
435 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100436 DRI_DRIVERS: "auto"
437 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100438 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100439 CC: "ccache clang-9"
440 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100441
Daniel Stone79113462020-04-16 14:56:18 +0100442meson-windows-vs2019:
Dylan Baker19851c92019-10-23 14:36:19 -0700443 extends:
444 - .build-windows
Daniel Stone07885cb2020-03-24 11:11:36 +0000445 - .use-windows_build_vs2019
Michel Dänzercc9493f2020-02-27 18:27:56 +0100446 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700447 script:
Daniel Stone07885cb2020-03-24 11:11:36 +0000448 - . .\.gitlab-ci\windows\mesa_build.ps1
Dylan Baker19851c92019-10-23 14:36:19 -0700449
Michel Dänzer82b30092019-05-03 18:19:25 +0200450scons-win64:
451 extends: .scons-build
452 variables:
Jose Fonseca27d58a12020-03-28 10:36:28 +0000453 SCONS_TARGET: platform=windows machine=x86_64 debug=1
Michel Dänzer82b30092019-05-03 18:19:25 +0200454 SCONS_CHECK_COMMAND: "true"
Jose Fonseca27d58a12020-03-28 10:36:28 +0000455 allow_failure: true
Eric Engestrom89a74672019-01-21 09:42:37 +0000456
Michel Dänzer68977152019-05-03 10:58:48 +0200457meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000458 extends: .meson-build
459 variables:
460 UNWIND: "true"
461 DRI_LOADERS: >
462 -D glx=disabled
463 -D egl=false
464 -D gbm=false
465 GALLIUM_ST: >
466 -D dri3=false
467 -D gallium-vdpau=false
468 -D gallium-xvmc=false
469 -D gallium-omx=disabled
470 -D gallium-va=false
471 -D gallium-xa=false
472 -D gallium-nine=false
473 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200474 script:
475 - export GALLIUM_DRIVERS="r600,radeonsi"
476 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200477 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200478 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200479 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
480 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
481
482meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200483 extends:
484 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100485 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200486 variables:
487 UNWIND: "false"
488 DRI_LOADERS: >
489 -D glx=disabled
490 -D egl=false
491 -D gbm=false
492 -D platforms=drm,surfaceless
493 GALLIUM_DRIVERS: "i915,r600"
494 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200495 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
496 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
497 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000498
Michel Dänzer82b30092019-05-03 18:19:25 +0200499meson-vulkan:
500 extends: .meson-build
501 variables:
502 UNWIND: "false"
503 DRI_LOADERS: >
504 -D glx=disabled
505 -D gbm=false
506 -D egl=false
507 -D platforms=x11,wayland,drm
508 -D osmesa=none
509 GALLIUM_ST: >
510 -D dri3=true
511 -D gallium-vdpau=false
512 -D gallium-xvmc=false
513 -D gallium-omx=disabled
514 -D gallium-va=false
515 -D gallium-xa=false
516 -D gallium-nine=false
517 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200518 -D b_sanitize=undefined
519 -D c_args=-fno-sanitize-recover=all
520 -D cpp_args=-fno-sanitize-recover=all
521 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200522 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200523 EXTRA_OPTION: >
524 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800525 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200526
Eric Anholt11aa32a2019-07-11 12:58:28 -0700527meson-i386:
528 extends: .meson-cross
529 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100530 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100531 VULKAN_DRIVERS: intel,amd
Michel Dänzera0591862020-03-12 12:31:05 +0100532 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700533 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700534 -D vulkan-overlay-layer=true
Eric Anholtf6e59912019-12-16 21:23:02 -0800535 -D werror=true
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100536 script:
537 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
538 - .gitlab-ci/meson-build.sh
Eric Anholt11aa32a2019-07-11 12:58:28 -0700539
Michel Dänzer65610ec2020-01-30 18:21:15 +0100540meson-s390x:
541 extends:
542 - .meson-cross
Michel Dänzer130c0ba2020-03-18 18:41:43 +0100543 tags:
544 - kvm
Michel Dänzer65610ec2020-01-30 18:21:15 +0100545 variables:
546 CROSS: s390x
547 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100548 script:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100549 # For unknown reasons "too many" installed i386 libraries cause qemu to
550 # crash while executing llvm-config for s390x.
Andres Gomezcb055c62020-04-22 16:51:48 +0300551 - apt-get purge -y winehq-stable
552 - apt-get autoremove -y --purge
Michel Dänzer65610ec2020-01-30 18:21:15 +0100553 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
554 - .gitlab-ci/meson-build.sh
555
556meson-ppc64el:
557 extends:
558 - meson-s390x
559 variables:
560 CROSS: ppc64el
Michel Dänzer8be81f82020-01-31 16:07:10 +0100561 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100562 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100563
Dylan Baker449f8312019-10-11 09:04:14 -0700564meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700565 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100566 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700567 variables:
568 UNWIND: "false"
569 DRI_DRIVERS: ""
570 GALLIUM_DRIVERS: "swrast"
571 EXTRA_OPTION: >
572 -Dllvm=false
573 -Dosmesa=gallium
574 --cross-file=.gitlab-ci/x86_64-w64-mingw32
575
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100576.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200577 extends:
578 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700579 variables:
580 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200581 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700582 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
583 - rm -rf install
584 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100585 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700586 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800587 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100588 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700589 paths:
590 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200591 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100592 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100593
594.test-gl:
595 extends:
596 - .test
597 variables:
598 TAG: *x86_test-gl
599 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200600 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100601 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100602 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700603
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100604.test-vk:
605 extends:
606 - .test
607 variables:
608 TAG: *x86_test-vk
609 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
610 needs:
611 - meson-testing
612 - x86_test-vk
613
Michel Dänzer576f7b62019-10-22 17:16:52 +0200614.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100615 extends:
616 - .test-gl
617 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100618 artifacts:
619 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100620 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100621 paths:
622 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200623 variables:
624 LIBGL_ALWAYS_SOFTWARE: 1
625 PIGLIT_NO_WINDOW: 1
626 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100627 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200628
629piglit-quick_gl:
630 extends: .piglit-test
631 variables:
632 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000633 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200634 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100635 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200636 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800637 -x egl_ext_device_
638 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800639 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200640 -x glx-multithread-clearbuffer
641 -x glx-multithread-shader-compile
642 -x max-texture-size
643 -x maxsize
644 PIGLIT_PROFILES: quick_gl
645
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100646piglit-glslparser:
647 extends: .piglit-test
648 variables:
649 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000650 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100651 PIGLIT_PROFILES: glslparser
652
653piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200654 extends: .piglit-test
655 variables:
656 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000657 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100658 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200659
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100660.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200661 variables:
662 DEQP_SKIPS: deqp-default-skips.txt
663 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100664 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200665
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100666.deqp-test-gl:
667 extends:
668 - .test-gl
669 - .deqp-test
670
671.deqp-test-vk:
672 extends:
673 - .test-vk
674 - .deqp-test
675 variables:
676 DEQP_VER: vk
677
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100678.fossilize-test:
679 extends: .test-vk
680 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100681 - ./install/fossilize-runner.sh
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100682
Michel Dänzer71436f92020-03-03 18:17:12 +0100683llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700684 variables:
685 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800686 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000687 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800688 # Don't use threads inside llvmpipe, we've already got all 4 cores
689 # busy with DEQP_PARALLEL.
690 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700691 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
692 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt8b221e02020-04-17 12:39:32 -0700693 DEQP_EXPECTED_RENDERER: llvmpipe
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100694 extends:
695 - .deqp-test-gl
696 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700697
Michel Dänzer71436f92020-03-03 18:17:12 +0100698softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100699 extends:
700 - llvmpipe-gles2
701 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700702 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700703 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800704 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700705 GALLIUM_DRIVER: "softpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700706 DEQP_EXPECTED_RENDERER: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700707
Michel Dänzer71436f92020-03-03 18:17:12 +0100708softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800709 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700710 variables:
711 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100712 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800713
Michel Dänzer71436f92020-03-03 18:17:12 +0100714softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800715 parallel: 4
716 variables:
717 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100718 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700719
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200720virgl-gles2:
721 variables:
722 DEQP_VER: gles2
723 DEQP_PARALLEL: 4
724 NIR_VALIDATE: 0
725 DEQP_NO_SAVE_RESULTS: 1
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200726 # Don't use threads inside llvmpipe, we've already got all 4 cores
727 # busy with DEQP_PARALLEL.
728 LP_NUM_THREADS: 0
729 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
730 LIBGL_ALWAYS_SOFTWARE: "true"
731 GALLIUM_DRIVER: "virpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700732 DEQP_EXPECTED_RENDERER: virgl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200733 extends:
734 - .deqp-test-gl
735 - .virgl-rules
736
737virgl-gles3:
738 variables:
739 DEQP_VER: gles3
740 CI_NODE_INDEX: 1
741 CI_NODE_TOTAL: 3
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700742 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200743 extends: virgl-gles2
744
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200745virgl-gles31:
746 variables:
747 DEQP_VER: gles31
748 CI_NODE_INDEX: 1
749 CI_NODE_TOTAL: 10
750 DEQP_OPTIONS: "--deqp-log-images=disable"
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700751 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200752 MESA_GLES_VERSION_OVERRIDE: "3.1"
753 MESA_GLSL_VERSION_OVERRIDE: "310"
754 extends: virgl-gles2
755
Eric Anholt8edaa842020-03-19 11:45:01 -0700756# Rules for tests that should not be present in MRs or the main
757# project's pipeline (don't block marge or report red on
758# mesa/mesamaster) but should be present on pipelines in personal
759# branches (so you can opt in to running the flaky test when you want
760# to).
761.test-manual:
762 rules:
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +0200763 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
764 changes:
765 *all_paths
766 when: manual
767 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -0700768
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000769arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100770 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100771 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100772 - .use-arm_test
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100773 - .freedreno-rules
Eric Anholt6f0dc082019-06-28 16:35:32 -0700774 variables:
775 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700776 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
777 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
778 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800779 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800780 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt8b221e02020-04-17 12:39:32 -0700781 DEQP_EXPECTED_RENDERER: FD630
Eric Anholt6f0dc082019-06-28 16:35:32 -0700782 tags:
783 - mesa-cheza
784 dependencies:
785 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700786
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000787arm64_a630_gles31:
788 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700789 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200790 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700791
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000792arm64_a630_gles3:
793 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700794 variables:
795 DEQP_VER: gles3
796
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800797.baremetal-test:
798 extends:
799 - .ci-run-policy
800 stage: test
801
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800802arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800803 extends:
804 - .baremetal-test
805 - .use-arm_build
Eric Anholtf778c482020-03-18 09:51:03 -0700806 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800807 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -0800808 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800809 BM_DTB: /lava-files/apq8016-sbc.dtb
810 BM_ROOTFS: /lava-files/rootfs-arm64
811 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800812 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800813 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
814 DEQP_VER: gles2
815 DEQP_PARALLEL: 4
Eric Anholt8b221e02020-04-17 12:39:32 -0700816 DEQP_EXPECTED_RENDERER: FD307
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800817 script:
818 - .gitlab-ci/bare-metal/fastboot.sh
819 needs:
820 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800821 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800822 - google-freedreno-db410c
823
824# Disabled due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -0700825arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800826 extends:
827 - arm64_a306_gles2
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800828 variables:
829 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700830 DEQP_PARALLEL: 1
831 CI_NODE_INDEX: 1
832 CI_NODE_TOTAL: 50
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800833
Eric Anholt4bc15e72020-03-03 14:38:09 -0800834arm64_a530_gles2:
835 extends:
836 - arm64_a306_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800837 variables:
838 BM_KERNEL: /lava-files/db820c-kernel
839 BM_DTB: /lava-files/db820c.dtb
840 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
841 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
842 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
Eric Anholt8b221e02020-04-17 12:39:32 -0700843 DEQP_EXPECTED_RENDERER: FD530
Eric Anholt4bc15e72020-03-03 14:38:09 -0800844 tags:
845 - google-freedreno-db820c
846
847arm64_a530_gles3:
848 extends:
849 - arm64_a530_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800850 variables:
851 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700852 DEQP_PARALLEL: 1
853 CI_NODE_INDEX: 1
854 CI_NODE_TOTAL: 100
Eric Anholt4bc15e72020-03-03 14:38:09 -0800855
Eric Anholt6c011522020-04-22 12:08:06 -0700856arm64_a530_gles31:
857 extends:
858 - arm64_a530_gles3
859 variables:
860 DEQP_VER: gles31
861
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100862# RADV CI
863.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +0100864 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +0100865 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100866 variables:
867 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100868 RADV_DEBUG: checkir
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100869
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100870.test-radv-fossilize:
871 extends:
872 - .fossilize-test
873 - .test-radv
Samuel Pitoiset1517e582020-03-06 08:29:45 +0100874 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100875 - ./install/fossilize-runner.sh
876 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100877
Eric Anholt8edaa842020-03-19 11:45:01 -0700878# Can only be triggered manually on personal branches because RADV is the only
879# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100880radv_polaris10_vkcts:
881 extends:
882 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700883 - .test-radv
884 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100885 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100886 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
887 tags:
888 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200889
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100890radv-fossils:
891 extends:
892 - .fossilize-test
893 - .test-radv
894 script:
895 # Polaris10
896 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100897 - ./install/fossilize-runner.sh
898 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100899 # Vega10
900 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100901 - ./install/fossilize-runner.sh
902 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100903 # Navi10
904 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100905 - ./install/fossilize-runner.sh
906 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100907
Andres Gomez0ac731b12020-02-20 18:26:30 +0200908# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200909.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200910 cache:
911 key: ${CI_JOB_NAME}
912 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +0100913 - traces-db/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200914
915.traces-test-gl:
916 extends:
917 - .test-gl
918 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200919 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100920 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +0200921
922.traces-test-vk:
923 extends:
924 - .test-vk
925 - .traces-test
926 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100927 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200928
929llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100930 extends:
931 - .traces-test-gl
932 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200933 variables:
934 LIBGL_ALWAYS_SOFTWARE: "true"
935 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +0200936 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +0200937
938radv-polaris10-traces:
939 extends:
940 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700941 - .test-radv
942 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +0200943 variables:
944 DEVICE_NAME: "vk-amd-polaris10"
945 tags:
946 - polaris10
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +0200947
948virgl-traces:
949 extends:
950 - .traces-test-gl
951 - .virgl-rules
952 variables:
953 LIBGL_ALWAYS_SOFTWARE: "true"
954 GALLIUM_DRIVER: "virpipe"
955 DEVICE_NAME: "gl-virgl"
956 MESA_GLES_VERSION_OVERRIDE: "3.1"
957 MESA_GLSL_VERSION_OVERRIDE: "310"