blob: 6b7b6e4b359d67fabcf6451d37736e4631162751 [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 Anholt3b5e71c2020-05-01 09:57:00 -0700177 FDO_DISTRIBUTION_TAG: &arm_build "2020-05-01-netcat"
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:
Daniel Stone0f46a312020-05-05 15:49:22 +0100214 WINDOWS_TAG: "2020-05-05-llvm"
Daniel Stone07885cb2020-03-24 11:11:36 +0000215 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
Daniel Stone0f46a312020-05-05 15:49:22 +0100225 timeout: 4h # LLVM takes ages
Daniel Stone07885cb2020-03-24 11:11:36 +0000226 tags:
227 - windows
228 - shell
229 - "1809"
Daniel Stone2db1d732020-03-30 10:16:18 +0100230 - mesa
Daniel Stone07885cb2020-03-24 11:11:36 +0000231 script:
232 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
233
234.use-windows_build_vs2019:
235 extends: .windows-docker-vs2019
236 image: "$WINDOWS_IMAGE"
237 needs:
Daniel Stone79113462020-04-16 14:56:18 +0100238 - windows_build_vs2019
Eric Engestrom81b98e92019-10-14 23:04:14 +0100239
Eric Engestrom46d23c02019-01-20 11:26:53 +0000240# BUILD
241
Dylan Baker06e46472019-10-23 14:21:31 -0700242# Shared between windows and Linux
243.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100244 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000245 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100246 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700247 when: always
248 paths:
249 - _build/meson-logs/*.txt
250 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200251 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700252 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700253
254# Just Linux
255.build-linux:
256 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200257 variables:
258 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100259 CCACHE_COMPRESS: "true"
260 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000261 # Use ccache transparently, and print stats before/after
262 before_script:
263 - export PATH="/usr/lib/ccache:$PATH"
264 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100265 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000266 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000267 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000268
Dylan Baker19851c92019-10-23 14:36:19 -0700269.build-windows:
270 extends: .build-common
271 tags:
Daniel Stone07885cb2020-03-24 11:11:36 +0000272 - windows
273 - docker
274 - "1809"
Daniel Stone9197fd52020-03-30 15:58:51 +0100275 - mesa
Dylan Baker19851c92019-10-23 14:36:19 -0700276 cache:
277 key: ${CI_JOB_NAME}
278 paths:
279 - subprojects/packagecache
280
Eric Engestrom46d23c02019-01-20 11:26:53 +0000281.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100282 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700283 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100284 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100285 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100286 variables:
287 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000288 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200289 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000290
Eric Engestrom06b245b2019-01-23 15:46:10 +0000291.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100292 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700293 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100294 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100295 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000296 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800297 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000298 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200299 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000300
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100301meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200302 extends:
303 - .meson-build
304 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200305 variables:
306 UNWIND: "true"
307 DRI_LOADERS: >
308 -D glx=dri
309 -D gbm=true
310 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100311 -D platforms=x11,drm,surfaceless
312 GALLIUM_ST: >
313 -D dri3=true
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200314 GALLIUM_DRIVERS: "swrast,virgl"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100315 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100316 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800317 EXTRA_OPTION: >
318 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100319 script:
320 - .gitlab-ci/meson-build.sh
321 - .gitlab-ci/prepare-artifacts.sh
322
Michel Dänzerc56f0912020-03-12 12:29:40 +0100323meson-gallium:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100324 extends: .meson-build
325 variables:
326 UNWIND: "true"
327 DRI_LOADERS: >
328 -D glx=dri
329 -D gbm=true
330 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200331 -D platforms=x11,wayland,drm,surfaceless
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200332 GALLIUM_ST: >
333 -D dri3=true
334 -D gallium-extra-hud=true
335 -D gallium-vdpau=true
336 -D gallium-xvmc=true
337 -D gallium-omx=bellagio
338 -D gallium-va=true
339 -D gallium-xa=true
340 -D gallium-nine=true
341 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100342 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 +0200343 EXTRA_OPTION: >
344 -D osmesa=gallium
345 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200346 script:
347 - .gitlab-ci/meson-build.sh
348 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200349
Michel Dänzerc56f0912020-03-12 12:29:40 +0100350meson-classic:
351 extends: .meson-build
352 variables:
353 UNWIND: "true"
354 DRI_LOADERS: >
355 -D glx=dri
356 -D gbm=true
357 -D egl=true
358 -D platforms=x11,wayland,drm,surfaceless
359 DRI_DRIVERS: "auto"
360 EXTRA_OPTION: >
361 -D osmesa=classic
362 -D tools=all
363
Michel Dänzere5364462019-09-13 11:59:43 +0200364.meson-cross:
365 extends:
366 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100367 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200368 variables:
369 UNWIND: "false"
370 DRI_LOADERS: >
371 -D glx=disabled
372 -D gbm=false
373 -D egl=true
374 -D platforms=surfaceless
375 -D osmesa=none
376 GALLIUM_ST: >
377 -D dri3=false
378 -D gallium-vdpau=false
379 -D gallium-xvmc=false
380 -D gallium-omx=disabled
381 -D gallium-va=false
382 -D gallium-xa=false
383 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100384 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200385
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200386.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100387 extends:
388 - .meson-cross
389 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200390 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200391 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200392 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100393 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200394 tags:
395 - aarch64
396
397meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100398 extends:
399 - .meson-arm
400 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200401 variables:
402 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200403 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800404 EXTRA_OPTION: >
405 -D llvm=false
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100406 script:
407 - .gitlab-ci/meson-build.sh
408 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200409
410meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200411 extends:
412 - .meson-arm
413 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200414 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100415 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800416 EXTRA_OPTION: >
417 -D llvm=false
Michel Dänzer59fcb012019-10-23 18:42:53 +0200418 script:
419 - .gitlab-ci/meson-build.sh
420 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200421
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100422meson-arm64-build-test:
423 extends:
424 - .meson-arm
425 - .ci-deqp-artifacts
426 variables:
427 VULKAN_DRIVERS: "amd"
428 script:
429 - .gitlab-ci/meson-build.sh
430
Michel Dänzera2cce702019-03-20 15:58:31 +0100431meson-clang:
432 extends: .meson-build
433 variables:
434 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100435 DRI_LOADERS: >
436 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100437 DRI_DRIVERS: "auto"
438 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100439 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100440 CC: "ccache clang-9"
441 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100442
Daniel Stone79113462020-04-16 14:56:18 +0100443meson-windows-vs2019:
Dylan Baker19851c92019-10-23 14:36:19 -0700444 extends:
445 - .build-windows
Daniel Stone07885cb2020-03-24 11:11:36 +0000446 - .use-windows_build_vs2019
Michel Dänzercc9493f2020-02-27 18:27:56 +0100447 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700448 script:
Daniel Stone07885cb2020-03-24 11:11:36 +0000449 - . .\.gitlab-ci\windows\mesa_build.ps1
Dylan Baker19851c92019-10-23 14:36:19 -0700450
Michel Dänzer82b30092019-05-03 18:19:25 +0200451scons-win64:
452 extends: .scons-build
453 variables:
Jose Fonseca27d58a12020-03-28 10:36:28 +0000454 SCONS_TARGET: platform=windows machine=x86_64 debug=1
Michel Dänzer82b30092019-05-03 18:19:25 +0200455 SCONS_CHECK_COMMAND: "true"
Jose Fonseca27d58a12020-03-28 10:36:28 +0000456 allow_failure: true
Eric Engestrom89a74672019-01-21 09:42:37 +0000457
Michel Dänzer68977152019-05-03 10:58:48 +0200458meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000459 extends: .meson-build
460 variables:
461 UNWIND: "true"
462 DRI_LOADERS: >
463 -D glx=disabled
464 -D egl=false
465 -D gbm=false
466 GALLIUM_ST: >
467 -D dri3=false
468 -D gallium-vdpau=false
469 -D gallium-xvmc=false
470 -D gallium-omx=disabled
471 -D gallium-va=false
472 -D gallium-xa=false
473 -D gallium-nine=false
474 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200475 script:
476 - export GALLIUM_DRIVERS="r600,radeonsi"
477 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200478 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200479 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200480 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
481 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
482
483meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200484 extends:
485 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100486 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200487 variables:
488 UNWIND: "false"
489 DRI_LOADERS: >
490 -D glx=disabled
491 -D egl=false
492 -D gbm=false
493 -D platforms=drm,surfaceless
494 GALLIUM_DRIVERS: "i915,r600"
495 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200496 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
497 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
498 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000499
Michel Dänzer82b30092019-05-03 18:19:25 +0200500meson-vulkan:
501 extends: .meson-build
502 variables:
503 UNWIND: "false"
504 DRI_LOADERS: >
505 -D glx=disabled
506 -D gbm=false
507 -D egl=false
508 -D platforms=x11,wayland,drm
509 -D osmesa=none
510 GALLIUM_ST: >
511 -D dri3=true
512 -D gallium-vdpau=false
513 -D gallium-xvmc=false
514 -D gallium-omx=disabled
515 -D gallium-va=false
516 -D gallium-xa=false
517 -D gallium-nine=false
518 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200519 -D b_sanitize=undefined
520 -D c_args=-fno-sanitize-recover=all
521 -D cpp_args=-fno-sanitize-recover=all
522 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200523 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200524 EXTRA_OPTION: >
525 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800526 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200527
Eric Anholt11aa32a2019-07-11 12:58:28 -0700528meson-i386:
529 extends: .meson-cross
530 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100531 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100532 VULKAN_DRIVERS: intel,amd
Michel Dänzera0591862020-03-12 12:31:05 +0100533 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700534 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700535 -D vulkan-overlay-layer=true
Eric Anholtf6e59912019-12-16 21:23:02 -0800536 -D werror=true
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100537 script:
538 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
539 - .gitlab-ci/meson-build.sh
Eric Anholt11aa32a2019-07-11 12:58:28 -0700540
Michel Dänzer65610ec2020-01-30 18:21:15 +0100541meson-s390x:
542 extends:
543 - .meson-cross
Michel Dänzer130c0ba2020-03-18 18:41:43 +0100544 tags:
545 - kvm
Michel Dänzer65610ec2020-01-30 18:21:15 +0100546 variables:
547 CROSS: s390x
548 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100549 script:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100550 # For unknown reasons "too many" installed i386 libraries cause qemu to
551 # crash while executing llvm-config for s390x.
Andres Gomezcb055c62020-04-22 16:51:48 +0300552 - apt-get purge -y winehq-stable
553 - apt-get autoremove -y --purge
Michel Dänzer65610ec2020-01-30 18:21:15 +0100554 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
555 - .gitlab-ci/meson-build.sh
556
557meson-ppc64el:
558 extends:
559 - meson-s390x
560 variables:
561 CROSS: ppc64el
Michel Dänzer8be81f82020-01-31 16:07:10 +0100562 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100563 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100564
Dylan Baker449f8312019-10-11 09:04:14 -0700565meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700566 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100567 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700568 variables:
569 UNWIND: "false"
570 DRI_DRIVERS: ""
571 GALLIUM_DRIVERS: "swrast"
572 EXTRA_OPTION: >
573 -Dllvm=false
574 -Dosmesa=gallium
575 --cross-file=.gitlab-ci/x86_64-w64-mingw32
576
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100577.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200578 extends:
579 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700580 variables:
581 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200582 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700583 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
584 - rm -rf install
585 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100586 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700587 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800588 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100589 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700590 paths:
591 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200592 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100593 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100594
595.test-gl:
596 extends:
597 - .test
598 variables:
599 TAG: *x86_test-gl
600 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200601 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100602 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100603 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700604
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100605.test-vk:
606 extends:
607 - .test
608 variables:
609 TAG: *x86_test-vk
610 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
611 needs:
612 - meson-testing
613 - x86_test-vk
614
Michel Dänzer576f7b62019-10-22 17:16:52 +0200615.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100616 extends:
617 - .test-gl
618 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100619 artifacts:
620 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100621 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100622 paths:
623 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200624 variables:
625 LIBGL_ALWAYS_SOFTWARE: 1
626 PIGLIT_NO_WINDOW: 1
627 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100628 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200629
630piglit-quick_gl:
631 extends: .piglit-test
632 variables:
633 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000634 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200635 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100636 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200637 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800638 -x egl_ext_device_
639 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800640 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200641 -x glx-multithread-clearbuffer
642 -x glx-multithread-shader-compile
643 -x max-texture-size
644 -x maxsize
645 PIGLIT_PROFILES: quick_gl
646
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100647piglit-glslparser:
648 extends: .piglit-test
649 variables:
650 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000651 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100652 PIGLIT_PROFILES: glslparser
653
654piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200655 extends: .piglit-test
656 variables:
657 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000658 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100659 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200660
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100661.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200662 variables:
663 DEQP_SKIPS: deqp-default-skips.txt
664 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100665 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200666
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100667.deqp-test-gl:
668 extends:
669 - .test-gl
670 - .deqp-test
671
672.deqp-test-vk:
673 extends:
674 - .test-vk
675 - .deqp-test
676 variables:
677 DEQP_VER: vk
678
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100679.fossilize-test:
680 extends: .test-vk
681 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100682 - ./install/fossilize-runner.sh
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100683
Michel Dänzer71436f92020-03-03 18:17:12 +0100684llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700685 variables:
686 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800687 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000688 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800689 # Don't use threads inside llvmpipe, we've already got all 4 cores
690 # busy with DEQP_PARALLEL.
691 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700692 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
693 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt8b221e02020-04-17 12:39:32 -0700694 DEQP_EXPECTED_RENDERER: llvmpipe
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100695 extends:
696 - .deqp-test-gl
697 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700698
Michel Dänzer71436f92020-03-03 18:17:12 +0100699softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100700 extends:
701 - llvmpipe-gles2
702 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700703 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700704 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800705 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700706 GALLIUM_DRIVER: "softpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700707 DEQP_EXPECTED_RENDERER: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700708
Michel Dänzer71436f92020-03-03 18:17:12 +0100709softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800710 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700711 variables:
712 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100713 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800714
Michel Dänzer71436f92020-03-03 18:17:12 +0100715softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800716 parallel: 4
717 variables:
718 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100719 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700720
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200721virgl-gles2:
722 variables:
723 DEQP_VER: gles2
724 DEQP_PARALLEL: 4
725 NIR_VALIDATE: 0
726 DEQP_NO_SAVE_RESULTS: 1
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200727 # Don't use threads inside llvmpipe, we've already got all 4 cores
728 # busy with DEQP_PARALLEL.
729 LP_NUM_THREADS: 0
730 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
731 LIBGL_ALWAYS_SOFTWARE: "true"
732 GALLIUM_DRIVER: "virpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700733 DEQP_EXPECTED_RENDERER: virgl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200734 extends:
735 - .deqp-test-gl
736 - .virgl-rules
737
738virgl-gles3:
739 variables:
740 DEQP_VER: gles3
741 CI_NODE_INDEX: 1
742 CI_NODE_TOTAL: 3
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700743 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200744 extends: virgl-gles2
745
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200746virgl-gles31:
747 variables:
748 DEQP_VER: gles31
749 CI_NODE_INDEX: 1
750 CI_NODE_TOTAL: 10
751 DEQP_OPTIONS: "--deqp-log-images=disable"
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700752 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200753 MESA_GLES_VERSION_OVERRIDE: "3.1"
754 MESA_GLSL_VERSION_OVERRIDE: "310"
755 extends: virgl-gles2
756
Eric Anholt8edaa842020-03-19 11:45:01 -0700757# Rules for tests that should not be present in MRs or the main
758# project's pipeline (don't block marge or report red on
759# mesa/mesamaster) but should be present on pipelines in personal
760# branches (so you can opt in to running the flaky test when you want
761# to).
762.test-manual:
763 rules:
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +0200764 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
765 changes:
766 *all_paths
767 when: manual
768 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -0700769
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000770arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100771 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100772 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100773 - .use-arm_test
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100774 - .freedreno-rules
Eric Anholt6f0dc082019-06-28 16:35:32 -0700775 variables:
776 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700777 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
778 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
779 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800780 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800781 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt8b221e02020-04-17 12:39:32 -0700782 DEQP_EXPECTED_RENDERER: FD630
Eric Anholt6f0dc082019-06-28 16:35:32 -0700783 tags:
784 - mesa-cheza
785 dependencies:
786 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700787
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000788arm64_a630_gles31:
789 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700790 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200791 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700792
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000793arm64_a630_gles3:
794 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700795 variables:
796 DEQP_VER: gles3
797
Eric Anholt5082ac02020-04-17 12:02:37 -0700798arm64_a630_gles31_options:
799 extends: arm64_a630_gles2
800 variables:
801 DEQP_VER: gles31
802 CI_NODE_INDEX: 1
803 CI_NODE_TOTAL: 5
804 script:
805 # We almost always manage to lower UBOs back to constant uploads in
806 # the test suite, so get a little testing for it here.
Eric Anholt72320892020-05-12 16:36:08 -0700807 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.\*ubo" ./install/deqp-runner.sh
Eric Anholt5082ac02020-04-17 12:02:37 -0700808 # The driver does some guessing as to whether to render using gmem
809 # or bypass, and some GLES3.1 features interact with either one.
810 # Do a little testing with gmem and bypass forced.
811 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
812 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
813
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800814.baremetal-test:
815 extends:
816 - .ci-run-policy
817 stage: test
818
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800819arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800820 extends:
821 - .baremetal-test
822 - .use-arm_build
Eric Anholtf778c482020-03-18 09:51:03 -0700823 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800824 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -0800825 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800826 BM_DTB: /lava-files/apq8016-sbc.dtb
827 BM_ROOTFS: /lava-files/rootfs-arm64
828 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholt3b5e71c2020-05-01 09:57:00 -0700829 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800830 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800831 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
832 DEQP_VER: gles2
833 DEQP_PARALLEL: 4
Eric Anholt8b221e02020-04-17 12:39:32 -0700834 DEQP_EXPECTED_RENDERER: FD307
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800835 script:
836 - .gitlab-ci/bare-metal/fastboot.sh
837 needs:
838 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800839 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800840 - google-freedreno-db410c
841
842# Disabled due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -0700843arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800844 extends:
845 - arm64_a306_gles2
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800846 variables:
847 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700848 DEQP_PARALLEL: 1
849 CI_NODE_INDEX: 1
850 CI_NODE_TOTAL: 50
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800851
Eric Anholt4bc15e72020-03-03 14:38:09 -0800852arm64_a530_gles2:
853 extends:
854 - arm64_a306_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800855 variables:
856 BM_KERNEL: /lava-files/db820c-kernel
857 BM_DTB: /lava-files/db820c.dtb
858 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
859 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
860 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
Eric Anholt8b221e02020-04-17 12:39:32 -0700861 DEQP_EXPECTED_RENDERER: FD530
Eric Anholt4bc15e72020-03-03 14:38:09 -0800862 tags:
863 - google-freedreno-db820c
864
865arm64_a530_gles3:
866 extends:
867 - arm64_a530_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800868 variables:
869 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700870 DEQP_PARALLEL: 1
871 CI_NODE_INDEX: 1
872 CI_NODE_TOTAL: 100
Eric Anholt4bc15e72020-03-03 14:38:09 -0800873
Eric Anholt6c011522020-04-22 12:08:06 -0700874arm64_a530_gles31:
875 extends:
876 - arm64_a530_gles3
877 variables:
878 DEQP_VER: gles31
879
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100880# RADV CI
881.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +0100882 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +0100883 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100884 variables:
885 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100886 RADV_DEBUG: checkir
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200887 ACO_DEBUG: validateir,validatera
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100888
Eric Anholt8edaa842020-03-19 11:45:01 -0700889# Can only be triggered manually on personal branches because RADV is the only
890# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100891radv_polaris10_vkcts:
892 extends:
893 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700894 - .test-radv
895 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100896 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100897 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
898 tags:
899 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200900
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100901radv-fossils:
902 extends:
903 - .fossilize-test
904 - .test-radv
905 script:
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200906 # Pitcairn (GFX6)
907 - export RADV_FORCE_FAMILY="pitcairn"
908 - ./install/fossilize-runner.sh
909 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
910 # Bonaire (GFX7)
911 - export RADV_FORCE_FAMILY="bonaire"
912 - ./install/fossilize-runner.sh
913 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
914 # Polaris10 (GFX8)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100915 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100916 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200917 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200918 # Vega10 (GFX9)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100919 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100920 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200921 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200922 # Navi10 (GFX10)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100923 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100924 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200925 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100926
Andres Gomez0ac731b12020-02-20 18:26:30 +0200927# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200928.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200929 cache:
930 key: ${CI_JOB_NAME}
931 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +0100932 - traces-db/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200933
934.traces-test-gl:
935 extends:
936 - .test-gl
937 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200938 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100939 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +0200940
941.traces-test-vk:
942 extends:
943 - .test-vk
944 - .traces-test
945 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100946 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200947
948llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100949 extends:
950 - .traces-test-gl
951 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200952 variables:
953 LIBGL_ALWAYS_SOFTWARE: "true"
954 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +0200955 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +0200956
957radv-polaris10-traces:
958 extends:
959 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700960 - .test-radv
961 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +0200962 variables:
963 DEVICE_NAME: "vk-amd-polaris10"
964 tags:
965 - polaris10
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +0200966
967virgl-traces:
968 extends:
969 - .traces-test-gl
970 - .virgl-rules
971 variables:
972 LIBGL_ALWAYS_SOFTWARE: "true"
973 GALLIUM_DRIVER: "virpipe"
974 DEVICE_NAME: "gl-virgl"
975 MESA_GLES_VERSION_OVERRIDE: "3.1"
976 MESA_GLSL_VERSION_OVERRIDE: "310"