blob: c2b73bca92709c9e7a613069032c36984134adf1 [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
Michel Dänzer8775b742020-01-13 09:45:57 +010022 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000023
24
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000025# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020026.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020027 rules:
Michel Dänzer42fe6002020-04-03 12:50:11 +020028 # If any files affecting the pipeline are changed, build/test jobs run
29 # automatically once all dependency jobs have passed
30 - changes: &all_paths
Michel Dänzer8775b742020-01-13 09:45:57 +010031 - VERSION
32 - bin/**/*
33 # GitLab CI
34 - .gitlab-ci.yml
35 - .gitlab-ci/**/*
36 # Meson
37 - meson*
38 - build-support/**/*
39 - subprojects/**/*
40 # SCons
41 - SConstruct
42 - scons/**/*
43 - common.py
44 # Source code
45 - include/**/*
46 - src/**/*
47 when: on_success
Michel Dänzer42fe6002020-04-03 12:50:11 +020048 # Otherwise, build/test jobs won't run
Michel Dänzer8775b742020-01-13 09:45:57 +010049 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010050 retry:
51 max: 2
52 when:
53 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000054 # Cancel CI run if a newer commit is pushed to the same branch
55 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000056
Michel Dänzer8775b742020-01-13 09:45:57 +010057success:
58 stage: success
59 image: debian:stable-slim
60 only:
61 - merge_requests
62 except:
63 changes:
Michel Dänzerc12576e2020-04-03 11:17:48 +020064 *all_paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010065 variables:
66 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010067 script:
68 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
69
70
Michel Dänzere426f402019-09-06 17:35:52 +020071.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070072 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +010073 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -070074 when: always
75 untracked: false
76 paths:
77 # Watch out! Artifacts are relative to the build dir.
78 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
79 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000080
Tomeu Vizoso22d97642019-12-17 11:50:14 +010081# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010082#
Eric Anholtaf7dca32020-03-06 13:23:20 -080083# 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 +010084# image doesn't exist yet, the container stage job generates it.
85#
86# In order to generate a new image, one should generally change the tag.
87# While removing the image from the registry would also work, that's not
88# recommended except for ephemeral images during development: Replacing
89# an image after a significant amount of time might pull in newer
90# versions of gcc/clang or other packages, which might break the build
91# with older commits using the same tag.
92#
93# After merging a change resulting in generating a new image to the
94# main repository, it's recommended to remove the image from the source
95# repository's container registry, so that the image from the main
96# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +020097
Eric Engestrom81b98e92019-10-14 23:04:14 +010098.container:
99 stage: container
100 extends:
101 - .ci-run-policy
Michel Dänzer42fe6002020-04-03 12:50:11 +0200102 rules:
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200103 # Run pipeline by default if it was triggered by Marge Bot, is for a
104 # merge request, and any files affecting it were changed
105 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
Michel Dänzer42fe6002020-04-03 12:50:11 +0200106 changes:
107 *all_paths
108 when: on_success
109 # Run pipeline by default in the main project if any files affecting it were
110 # changed
111 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
112 changes:
113 *all_paths
114 when: on_success
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200115 # Allow triggering jobs manually for MRs or branches of forked projects if
116 # any files affecting the pipeline were changed
117 - changes:
Michel Dänzer42fe6002020-04-03 12:50:11 +0200118 *all_paths
119 when: manual
120 # Otherwise, container jobs won't run
121 - when: never
Eric Engestrom81b98e92019-10-14 23:04:14 +0100122 variables:
Eric Anholtaf7dca32020-03-06 13:23:20 -0800123 FDO_DISTRIBUTION_VERSION: buster-slim
Michel Dänzerfcd33772020-03-23 18:16:07 +0100124 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800125 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100126 # no need to pull the whole repo to build the container image
127 GIT_STRATEGY: none
128
Michel Dänzerc6c76522019-11-11 18:13:28 +0100129# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100130x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200131 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100132 - .fdo.container-build@debian
Eric Engestrom81b98e92019-10-14 23:04:14 +0100133 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100134 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800135 FDO_DISTRIBUTION_TAG: &x86_build "2020-03-18-jflags"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000136
Michel Dänzer3a48f452019-11-13 17:43:41 +0100137.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100138 variables:
139 TAG: *x86_build
140 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200141 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100142 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200143
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100144# Debian 10 based x86 test image for GL
145x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100146 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100147 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800148 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-03-18-jflags"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100149
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100150# Debian 10 based x86 test image for VK
151x86_test-vk:
152 extends: x86_build
153 variables:
Alexandros Frantzis4c6ce822020-04-09 18:40:38 +0300154 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-04-09"
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100155
Michel Dänzerc6c76522019-11-11 18:13:28 +0100156# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100157x86_build_old:
158 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200159 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800160 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800161 FDO_DISTRIBUTION_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200162
Michel Dänzer3a48f452019-11-13 17:43:41 +0100163.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100164 variables:
165 TAG: *x86_build_old
166 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200167 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100168 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200169
Michel Dänzerc6c76522019-11-11 18:13:28 +0100170# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100171arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200172 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100173 - .fdo.container-build@debian@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100174 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700175 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800176 FDO_DISTRIBUTION_TAG: &arm_build "2020-04-01-jflags"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000177
Michel Dänzerc6c76522019-11-11 18:13:28 +0100178.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100179 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100180 TAG: *arm_build
181 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
182 needs:
183 - arm_build
184
185# Debian 10 based ARM test image
186arm_test:
187 extends: arm_build
188 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800189 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100190
191.use-arm_test:
192 variables:
193 TAG: *arm_test
194 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
195 needs:
196 - meson-arm64
197 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100198
Daniel Stone07885cb2020-03-24 11:11:36 +0000199# Native Windows docker builds
200#
201# Unlike the above Linux-based builds - including MinGW/SCons builds which
202# cross-compile for Windows - which use the freedesktop ci-templates, we
203# cannot use the same scheme here. As Windows lacks support for
204# Docker-in-Docker, and Podman does not run natively on Windows, we have
205# to open-code much of the same ourselves.
206#
207# This is achieved by first running in a native Windows shell instance
208# (host PowerShell) in the container stage to build and push the image,
209# then in the build stage by executing inside Docker.
210
211.windows-docker-vs2019:
212 variables:
213 WINDOWS_TAG: "2020-03-24"
214 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
215 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
216
Daniel Stone79113462020-04-16 14:56:18 +0100217windows_build_vs2019:
Daniel Stone07885cb2020-03-24 11:11:36 +0000218 extends:
219 - .container
220 - .windows-docker-vs2019
221 stage: container
222 variables:
223 GIT_STRATEGY: fetch # we do actually need the full repository though
224 tags:
225 - windows
226 - shell
227 - "1809"
Daniel Stone2db1d732020-03-30 10:16:18 +0100228 - mesa
Daniel Stone07885cb2020-03-24 11:11:36 +0000229 script:
230 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
231
232.use-windows_build_vs2019:
233 extends: .windows-docker-vs2019
234 image: "$WINDOWS_IMAGE"
235 needs:
Daniel Stone79113462020-04-16 14:56:18 +0100236 - windows_build_vs2019
Eric Engestrom81b98e92019-10-14 23:04:14 +0100237
Eric Engestrom46d23c02019-01-20 11:26:53 +0000238# BUILD
239
Dylan Baker06e46472019-10-23 14:21:31 -0700240# Shared between windows and Linux
241.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100242 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000243 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100244 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700245 when: always
246 paths:
247 - _build/meson-logs/*.txt
248 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200249 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700250 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700251
252# Just Linux
253.build-linux:
254 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200255 variables:
256 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100257 CCACHE_COMPRESS: "true"
258 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000259 # Use ccache transparently, and print stats before/after
260 before_script:
261 - export PATH="/usr/lib/ccache:$PATH"
262 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100263 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000264 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000265 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000266
Dylan Baker19851c92019-10-23 14:36:19 -0700267.build-windows:
268 extends: .build-common
269 tags:
Daniel Stone07885cb2020-03-24 11:11:36 +0000270 - windows
271 - docker
272 - "1809"
Daniel Stone9197fd52020-03-30 15:58:51 +0100273 - mesa
Dylan Baker19851c92019-10-23 14:36:19 -0700274 cache:
275 key: ${CI_JOB_NAME}
276 paths:
277 - subprojects/packagecache
278
Eric Engestrom46d23c02019-01-20 11:26:53 +0000279.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100280 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700281 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100282 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100283 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100284 variables:
285 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000286 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200287 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000288
Eric Engestrom06b245b2019-01-23 15:46:10 +0000289.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100290 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700291 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100292 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100293 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000294 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800295 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000296 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200297 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000298
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100299meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200300 extends:
301 - .meson-build
302 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200303 variables:
304 UNWIND: "true"
305 DRI_LOADERS: >
306 -D glx=dri
307 -D gbm=true
308 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100309 -D platforms=x11,drm,surfaceless
310 GALLIUM_ST: >
311 -D dri3=true
312 GALLIUM_DRIVERS: "swrast"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100313 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100314 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800315 EXTRA_OPTION: >
316 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100317 script:
318 - .gitlab-ci/meson-build.sh
319 - .gitlab-ci/prepare-artifacts.sh
320
Michel Dänzerc56f0912020-03-12 12:29:40 +0100321meson-gallium:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100322 extends: .meson-build
323 variables:
324 UNWIND: "true"
325 DRI_LOADERS: >
326 -D glx=dri
327 -D gbm=true
328 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200329 -D platforms=x11,wayland,drm,surfaceless
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200330 GALLIUM_ST: >
331 -D dri3=true
332 -D gallium-extra-hud=true
333 -D gallium-vdpau=true
334 -D gallium-xvmc=true
335 -D gallium-omx=bellagio
336 -D gallium-va=true
337 -D gallium-xa=true
338 -D gallium-nine=true
339 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100340 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 +0200341 EXTRA_OPTION: >
342 -D osmesa=gallium
343 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200344 script:
345 - .gitlab-ci/meson-build.sh
346 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200347
Michel Dänzerc56f0912020-03-12 12:29:40 +0100348meson-classic:
349 extends: .meson-build
350 variables:
351 UNWIND: "true"
352 DRI_LOADERS: >
353 -D glx=dri
354 -D gbm=true
355 -D egl=true
356 -D platforms=x11,wayland,drm,surfaceless
357 DRI_DRIVERS: "auto"
358 EXTRA_OPTION: >
359 -D osmesa=classic
360 -D tools=all
361
Michel Dänzere5364462019-09-13 11:59:43 +0200362.meson-cross:
363 extends:
364 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100365 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200366 variables:
367 UNWIND: "false"
368 DRI_LOADERS: >
369 -D glx=disabled
370 -D gbm=false
371 -D egl=true
372 -D platforms=surfaceless
373 -D osmesa=none
374 GALLIUM_ST: >
375 -D dri3=false
376 -D gallium-vdpau=false
377 -D gallium-xvmc=false
378 -D gallium-omx=disabled
379 -D gallium-va=false
380 -D gallium-xa=false
381 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100382 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200383
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200384.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100385 extends:
386 - .meson-cross
387 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200388 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200389 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200390 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100391 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200392 tags:
393 - aarch64
394
395meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100396 extends:
397 - .meson-arm
398 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200399 variables:
400 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200401 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800402 EXTRA_OPTION: >
403 -D llvm=false
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100404 script:
405 - .gitlab-ci/meson-build.sh
406 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200407
408meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200409 extends:
410 - .meson-arm
411 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200412 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100413 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800414 EXTRA_OPTION: >
415 -D llvm=false
Michel Dänzer59fcb012019-10-23 18:42:53 +0200416 script:
417 - .gitlab-ci/meson-build.sh
418 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200419
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100420meson-arm64-build-test:
421 extends:
422 - .meson-arm
423 - .ci-deqp-artifacts
424 variables:
425 VULKAN_DRIVERS: "amd"
426 script:
427 - .gitlab-ci/meson-build.sh
428
Michel Dänzera2cce702019-03-20 15:58:31 +0100429meson-clang:
430 extends: .meson-build
431 variables:
432 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100433 DRI_LOADERS: >
434 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100435 DRI_DRIVERS: "auto"
436 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100437 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100438 CC: "ccache clang-9"
439 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100440
Daniel Stone79113462020-04-16 14:56:18 +0100441meson-windows-vs2019:
Dylan Baker19851c92019-10-23 14:36:19 -0700442 extends:
443 - .build-windows
Daniel Stone07885cb2020-03-24 11:11:36 +0000444 - .use-windows_build_vs2019
Michel Dänzercc9493f2020-02-27 18:27:56 +0100445 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700446 script:
Daniel Stone07885cb2020-03-24 11:11:36 +0000447 - . .\.gitlab-ci\windows\mesa_build.ps1
Dylan Baker19851c92019-10-23 14:36:19 -0700448
Michel Dänzer82b30092019-05-03 18:19:25 +0200449scons-win64:
450 extends: .scons-build
451 variables:
Jose Fonseca27d58a12020-03-28 10:36:28 +0000452 SCONS_TARGET: platform=windows machine=x86_64 debug=1
Michel Dänzer82b30092019-05-03 18:19:25 +0200453 SCONS_CHECK_COMMAND: "true"
Jose Fonseca27d58a12020-03-28 10:36:28 +0000454 allow_failure: true
Eric Engestrom89a74672019-01-21 09:42:37 +0000455
Michel Dänzer68977152019-05-03 10:58:48 +0200456meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000457 extends: .meson-build
458 variables:
459 UNWIND: "true"
460 DRI_LOADERS: >
461 -D glx=disabled
462 -D egl=false
463 -D gbm=false
464 GALLIUM_ST: >
465 -D dri3=false
466 -D gallium-vdpau=false
467 -D gallium-xvmc=false
468 -D gallium-omx=disabled
469 -D gallium-va=false
470 -D gallium-xa=false
471 -D gallium-nine=false
472 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200473 script:
474 - export GALLIUM_DRIVERS="r600,radeonsi"
475 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200476 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200477 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200478 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
479 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
480
481meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200482 extends:
483 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100484 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200485 variables:
486 UNWIND: "false"
487 DRI_LOADERS: >
488 -D glx=disabled
489 -D egl=false
490 -D gbm=false
491 -D platforms=drm,surfaceless
492 GALLIUM_DRIVERS: "i915,r600"
493 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200494 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
495 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
496 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000497
Michel Dänzer82b30092019-05-03 18:19:25 +0200498meson-vulkan:
499 extends: .meson-build
500 variables:
501 UNWIND: "false"
502 DRI_LOADERS: >
503 -D glx=disabled
504 -D gbm=false
505 -D egl=false
506 -D platforms=x11,wayland,drm
507 -D osmesa=none
508 GALLIUM_ST: >
509 -D dri3=true
510 -D gallium-vdpau=false
511 -D gallium-xvmc=false
512 -D gallium-omx=disabled
513 -D gallium-va=false
514 -D gallium-xa=false
515 -D gallium-nine=false
516 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200517 -D b_sanitize=undefined
518 -D c_args=-fno-sanitize-recover=all
519 -D cpp_args=-fno-sanitize-recover=all
520 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200521 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200522 EXTRA_OPTION: >
523 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800524 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200525
Eric Anholt11aa32a2019-07-11 12:58:28 -0700526meson-i386:
527 extends: .meson-cross
528 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100529 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100530 VULKAN_DRIVERS: intel,amd
Michel Dänzera0591862020-03-12 12:31:05 +0100531 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700532 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700533 -D vulkan-overlay-layer=true
Eric Anholtf6e59912019-12-16 21:23:02 -0800534 -D werror=true
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100535 script:
536 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
537 - .gitlab-ci/meson-build.sh
Eric Anholt11aa32a2019-07-11 12:58:28 -0700538
Michel Dänzer65610ec2020-01-30 18:21:15 +0100539meson-s390x:
540 extends:
541 - .meson-cross
Michel Dänzer130c0ba2020-03-18 18:41:43 +0100542 tags:
543 - kvm
Michel Dänzer65610ec2020-01-30 18:21:15 +0100544 variables:
545 CROSS: s390x
546 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100547 script:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100548 # For unknown reasons "too many" installed i386 libraries cause qemu to
549 # crash while executing llvm-config for s390x.
550 - apt-get remove -y libglib2.0-0:i386
Michel Dänzer65610ec2020-01-30 18:21:15 +0100551 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
552 - .gitlab-ci/meson-build.sh
553
554meson-ppc64el:
555 extends:
556 - meson-s390x
557 variables:
558 CROSS: ppc64el
Michel Dänzer8be81f82020-01-31 16:07:10 +0100559 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100560 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100561
Dylan Baker449f8312019-10-11 09:04:14 -0700562meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700563 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100564 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700565 variables:
566 UNWIND: "false"
567 DRI_DRIVERS: ""
568 GALLIUM_DRIVERS: "swrast"
569 EXTRA_OPTION: >
570 -Dllvm=false
571 -Dosmesa=gallium
572 --cross-file=.gitlab-ci/x86_64-w64-mingw32
573
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100574.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200575 extends:
576 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700577 variables:
578 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200579 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700580 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
581 - rm -rf install
582 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100583 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700584 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800585 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100586 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700587 paths:
588 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200589 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100590 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100591
592.test-gl:
593 extends:
594 - .test
595 variables:
596 TAG: *x86_test-gl
597 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200598 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100599 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100600 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700601
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100602.test-vk:
603 extends:
604 - .test
605 variables:
606 TAG: *x86_test-vk
607 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
608 needs:
609 - meson-testing
610 - x86_test-vk
611
Michel Dänzer576f7b62019-10-22 17:16:52 +0200612.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100613 extends:
614 - .test-gl
615 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100616 artifacts:
617 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100618 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100619 paths:
620 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200621 variables:
622 LIBGL_ALWAYS_SOFTWARE: 1
623 PIGLIT_NO_WINDOW: 1
624 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100625 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200626
627piglit-quick_gl:
628 extends: .piglit-test
629 variables:
630 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000631 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200632 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100633 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200634 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800635 -x egl_ext_device_
636 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800637 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200638 -x glx-multithread-clearbuffer
639 -x glx-multithread-shader-compile
640 -x max-texture-size
641 -x maxsize
642 PIGLIT_PROFILES: quick_gl
643
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100644piglit-glslparser:
645 extends: .piglit-test
646 variables:
647 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000648 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100649 PIGLIT_PROFILES: glslparser
650
651piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200652 extends: .piglit-test
653 variables:
654 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000655 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100656 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200657
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100658.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200659 variables:
660 DEQP_SKIPS: deqp-default-skips.txt
661 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100662 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200663
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100664.deqp-test-gl:
665 extends:
666 - .test-gl
667 - .deqp-test
668
669.deqp-test-vk:
670 extends:
671 - .test-vk
672 - .deqp-test
673 variables:
674 DEQP_VER: vk
675
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100676.fossilize-test:
677 extends: .test-vk
678 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100679 - ./install/fossilize-runner.sh
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100680
Michel Dänzer71436f92020-03-03 18:17:12 +0100681llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700682 variables:
683 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800684 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000685 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800686 # Don't use threads inside llvmpipe, we've already got all 4 cores
687 # busy with DEQP_PARALLEL.
688 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700689 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
690 LIBGL_ALWAYS_SOFTWARE: "true"
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100691 extends:
692 - .deqp-test-gl
693 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700694
Michel Dänzer71436f92020-03-03 18:17:12 +0100695softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100696 extends:
697 - llvmpipe-gles2
698 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700699 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700700 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800701 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700702 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700703
Michel Dänzer71436f92020-03-03 18:17:12 +0100704softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800705 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700706 variables:
707 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100708 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800709
Michel Dänzer71436f92020-03-03 18:17:12 +0100710softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800711 parallel: 4
712 variables:
713 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100714 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700715
Eric Anholt8edaa842020-03-19 11:45:01 -0700716# Rules for tests that should not be present in MRs or the main
717# project's pipeline (don't block marge or report red on
718# mesa/mesamaster) but should be present on pipelines in personal
719# branches (so you can opt in to running the flaky test when you want
720# to).
721.test-manual:
722 rules:
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +0200723 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
724 changes:
725 *all_paths
726 when: manual
727 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -0700728
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000729arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100730 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100731 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100732 - .use-arm_test
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100733 - .freedreno-rules
Eric Anholt6f0dc082019-06-28 16:35:32 -0700734 variables:
735 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700736 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
737 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
738 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800739 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800740 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700741 tags:
742 - mesa-cheza
743 dependencies:
744 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700745
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000746arm64_a630_gles31:
747 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700748 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200749 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700750
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000751arm64_a630_gles3:
752 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700753 variables:
754 DEQP_VER: gles3
755
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800756.baremetal-test:
757 extends:
758 - .ci-run-policy
759 stage: test
760
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800761arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800762 extends:
763 - .baremetal-test
764 - .use-arm_build
Eric Anholtf778c482020-03-18 09:51:03 -0700765 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800766 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -0800767 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800768 BM_DTB: /lava-files/apq8016-sbc.dtb
769 BM_ROOTFS: /lava-files/rootfs-arm64
770 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800771 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800772 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
773 DEQP_VER: gles2
774 DEQP_PARALLEL: 4
775 script:
776 - .gitlab-ci/bare-metal/fastboot.sh
777 needs:
778 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800779 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800780 - google-freedreno-db410c
781
782# Disabled due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -0700783arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800784 extends:
785 - arm64_a306_gles2
Eric Anholt8edaa842020-03-19 11:45:01 -0700786 - .test-manual
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800787 parallel: 8
788 variables:
789 DEQP_VER: gles3
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800790
Eric Anholt4bc15e72020-03-03 14:38:09 -0800791arm64_a530_gles2:
792 extends:
793 - arm64_a306_gles2
794 stage: freedreno
795 variables:
796 BM_KERNEL: /lava-files/db820c-kernel
797 BM_DTB: /lava-files/db820c.dtb
798 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
799 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
800 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
801 tags:
802 - google-freedreno-db820c
803
804arm64_a530_gles3:
805 extends:
806 - arm64_a530_gles2
Eric Anholt8edaa842020-03-19 11:45:01 -0700807 - .test-manual
Eric Anholt4bc15e72020-03-03 14:38:09 -0800808 parallel: 6
809 variables:
810 DEQP_VER: gles3
811
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100812# RADV CI
813.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +0100814 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +0100815 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100816 variables:
817 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100818 RADV_DEBUG: checkir
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100819
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100820.test-radv-fossilize:
821 extends:
822 - .fossilize-test
823 - .test-radv
Samuel Pitoiset1517e582020-03-06 08:29:45 +0100824 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100825 - ./install/fossilize-runner.sh
826 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100827
Eric Anholt8edaa842020-03-19 11:45:01 -0700828# Can only be triggered manually on personal branches because RADV is the only
829# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100830radv_polaris10_vkcts:
831 extends:
832 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700833 - .test-radv
834 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100835 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100836 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
837 tags:
838 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200839
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100840radv-fossils:
841 extends:
842 - .fossilize-test
843 - .test-radv
844 script:
845 # Polaris10
846 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100847 - ./install/fossilize-runner.sh
848 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100849 # Vega10
850 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100851 - ./install/fossilize-runner.sh
852 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100853 # Navi10
854 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100855 - ./install/fossilize-runner.sh
856 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100857
Andres Gomez0ac731b12020-02-20 18:26:30 +0200858# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200859.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200860 cache:
861 key: ${CI_JOB_NAME}
862 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +0100863 - traces-db/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200864
865.traces-test-gl:
866 extends:
867 - .test-gl
868 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200869 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100870 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +0200871
872.traces-test-vk:
873 extends:
874 - .test-vk
875 - .traces-test
876 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100877 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200878
879llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100880 extends:
881 - .traces-test-gl
882 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200883 variables:
884 LIBGL_ALWAYS_SOFTWARE: "true"
885 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +0200886 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +0200887
888radv-polaris10-traces:
889 extends:
890 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700891 - .test-radv
892 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +0200893 variables:
894 DEVICE_NAME: "vk-amd-polaris10"
895 tags:
896 - polaris10