blob: 710934a0a7aa34d23d405c52ed0cf699ac354b41 [file] [log] [blame]
Eric Engestrom329f5cd2019-01-20 11:21:45 +00001variables:
Eric Anholtaf7dca32020-03-06 13:23:20 -08002 FDO_UPSTREAM_REPO: mesa/mesa
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +02003
4include:
Eric Anholtaf7dca32020-03-06 13:23:20 -08005 - project: 'freedesktop/ci-templates'
Michel Dänzer1c79ac12020-04-29 18:47:08 +02006 ref: 59de540b620c45739871d1a073d76d5521989d11
Michel Dänzerd00b1c42019-04-02 16:56:54 +02007 file: '/templates/debian.yml'
Dylan Baker19851c92019-10-23 14:36:19 -07008 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +01009 - local: '.gitlab-ci/test-source-dep.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020010
Eric Engestrom329f5cd2019-01-20 11:21:45 +000011stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010012 - container
Michel Dänzercc9493f2020-02-27 18:27:56 +010013 - meson-x86_64
14 - scons
15 - meson-misc
16 - llvmpipe
17 - softpipe
18 - freedreno
19 - panfrost
Samuel Pitoiset48e92032020-03-06 08:39:25 +010020 - radv
21 - lima
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +020022 - virgl
Michel Dänzer8775b742020-01-13 09:45:57 +010023 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000024
25
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000026# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020027.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020028 rules:
Michel Dänzer42fe6002020-04-03 12:50:11 +020029 # If any files affecting the pipeline are changed, build/test jobs run
30 # automatically once all dependency jobs have passed
31 - changes: &all_paths
Michel Dänzer8775b742020-01-13 09:45:57 +010032 - VERSION
Eric Engestrom576bff52020-05-14 22:51:38 +020033 - bin/git_sha1_gen.py
34 - bin/install_megadrivers.py
35 - bin/meson_get_version.py
36 - bin/symbols-check.py
Michel Dänzer8775b742020-01-13 09:45:57 +010037 # GitLab CI
38 - .gitlab-ci.yml
39 - .gitlab-ci/**/*
40 # Meson
41 - meson*
42 - build-support/**/*
43 - subprojects/**/*
44 # SCons
45 - SConstruct
46 - scons/**/*
47 - common.py
48 # Source code
49 - include/**/*
50 - src/**/*
51 when: on_success
Michel Dänzer42fe6002020-04-03 12:50:11 +020052 # Otherwise, build/test jobs won't run
Michel Dänzer8775b742020-01-13 09:45:57 +010053 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010054 retry:
55 max: 2
56 when:
57 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000058 # Cancel CI run if a newer commit is pushed to the same branch
59 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000060
Michel Dänzer8775b742020-01-13 09:45:57 +010061success:
62 stage: success
63 image: debian:stable-slim
64 only:
65 - merge_requests
66 except:
67 changes:
Michel Dänzerc12576e2020-04-03 11:17:48 +020068 *all_paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010069 variables:
70 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010071 script:
72 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
73
74
Michel Dänzere426f402019-09-06 17:35:52 +020075.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070076 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +010077 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -070078 when: always
79 untracked: false
80 paths:
81 # Watch out! Artifacts are relative to the build dir.
82 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
83 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000084
Tomeu Vizoso22d97642019-12-17 11:50:14 +010085# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010086#
Eric Anholtaf7dca32020-03-06 13:23:20 -080087# FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
Michel Dänzerc6c76522019-11-11 18:13:28 +010088# image doesn't exist yet, the container stage job generates it.
89#
90# In order to generate a new image, one should generally change the tag.
91# While removing the image from the registry would also work, that's not
92# recommended except for ephemeral images during development: Replacing
93# an image after a significant amount of time might pull in newer
94# versions of gcc/clang or other packages, which might break the build
95# with older commits using the same tag.
96#
97# After merging a change resulting in generating a new image to the
98# main repository, it's recommended to remove the image from the source
99# repository's container registry, so that the image from the main
100# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +0200101
Eric Engestrom81b98e92019-10-14 23:04:14 +0100102.container:
103 stage: container
104 extends:
105 - .ci-run-policy
Michel Dänzer42fe6002020-04-03 12:50:11 +0200106 rules:
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200107 # Run pipeline by default if it was triggered by Marge Bot, is for a
108 # merge request, and any files affecting it were changed
109 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
Michel Dänzer42fe6002020-04-03 12:50:11 +0200110 changes:
111 *all_paths
112 when: on_success
113 # Run pipeline by default in the main project if any files affecting it were
114 # changed
115 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
116 changes:
117 *all_paths
118 when: on_success
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200119 # Allow triggering jobs manually for MRs or branches of forked projects if
120 # any files affecting the pipeline were changed
121 - changes:
Michel Dänzer42fe6002020-04-03 12:50:11 +0200122 *all_paths
123 when: manual
124 # Otherwise, container jobs won't run
125 - when: never
Eric Engestrom81b98e92019-10-14 23:04:14 +0100126 variables:
Eric Anholtaf7dca32020-03-06 13:23:20 -0800127 FDO_DISTRIBUTION_VERSION: buster-slim
Michel Dänzerfcd33772020-03-23 18:16:07 +0100128 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800129 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100130 # no need to pull the whole repo to build the container image
131 GIT_STRATEGY: none
132
Michel Dänzerc6c76522019-11-11 18:13:28 +0100133# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100134x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200135 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100136 - .fdo.container-build@debian
Eric Engestrom81b98e92019-10-14 23:04:14 +0100137 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100138 variables:
Michel Dänzerfd9b4452020-05-08 11:30:09 +0200139 FDO_DISTRIBUTION_TAG: &x86_build "2020-05-08"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000140
Michel Dänzer3a48f452019-11-13 17:43:41 +0100141.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100142 variables:
143 TAG: *x86_build
144 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200145 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100146 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200147
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100148# Debian 10 based x86 test image for GL
149x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100150 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100151 variables:
Michel Dänzerda3aee92020-04-27 12:42:58 +0200152 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-05-08"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100153
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100154# Debian 10 based x86 test image for VK
155x86_test-vk:
156 extends: x86_build
157 variables:
Michel Dänzerda3aee92020-04-27 12:42:58 +0200158 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-05-08"
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100159
Michel Dänzerc6c76522019-11-11 18:13:28 +0100160# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100161x86_build_old:
162 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200163 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800164 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-03-18-jflags"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800165 FDO_DISTRIBUTION_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200166
Michel Dänzer3a48f452019-11-13 17:43:41 +0100167.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100168 variables:
169 TAG: *x86_build_old
170 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200171 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100172 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200173
Michel Dänzerc6c76522019-11-11 18:13:28 +0100174# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100175arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200176 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100177 - .fdo.container-build@debian@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100178 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700179 variables:
Eric Anholt3b5e71c2020-05-01 09:57:00 -0700180 FDO_DISTRIBUTION_TAG: &arm_build "2020-05-01-netcat"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000181
Michel Dänzerc6c76522019-11-11 18:13:28 +0100182.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100183 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100184 TAG: *arm_build
185 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
186 needs:
187 - arm_build
188
189# Debian 10 based ARM test image
190arm_test:
191 extends: arm_build
192 variables:
Eric Anholtc1e7e832020-02-11 15:44:56 -0800193 FDO_DISTRIBUTION_TAG: &arm_test "2020-03-18-jflags"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100194
195.use-arm_test:
196 variables:
197 TAG: *arm_test
198 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
199 needs:
200 - meson-arm64
201 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100202
Daniel Stone07885cb2020-03-24 11:11:36 +0000203# Native Windows docker builds
204#
205# Unlike the above Linux-based builds - including MinGW/SCons builds which
206# cross-compile for Windows - which use the freedesktop ci-templates, we
207# cannot use the same scheme here. As Windows lacks support for
208# Docker-in-Docker, and Podman does not run natively on Windows, we have
209# to open-code much of the same ourselves.
210#
211# This is achieved by first running in a native Windows shell instance
212# (host PowerShell) in the container stage to build and push the image,
213# then in the build stage by executing inside Docker.
214
215.windows-docker-vs2019:
216 variables:
Daniel Stone0f46a312020-05-05 15:49:22 +0100217 WINDOWS_TAG: "2020-05-05-llvm"
Daniel Stone07885cb2020-03-24 11:11:36 +0000218 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
219 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
220
Daniel Stone79113462020-04-16 14:56:18 +0100221windows_build_vs2019:
Daniel Stone07885cb2020-03-24 11:11:36 +0000222 extends:
223 - .container
224 - .windows-docker-vs2019
225 stage: container
226 variables:
227 GIT_STRATEGY: fetch # we do actually need the full repository though
Daniel Stone0f46a312020-05-05 15:49:22 +0100228 timeout: 4h # LLVM takes ages
Daniel Stone07885cb2020-03-24 11:11:36 +0000229 tags:
230 - windows
231 - shell
232 - "1809"
Daniel Stone2db1d732020-03-30 10:16:18 +0100233 - mesa
Daniel Stone07885cb2020-03-24 11:11:36 +0000234 script:
235 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
236
237.use-windows_build_vs2019:
238 extends: .windows-docker-vs2019
239 image: "$WINDOWS_IMAGE"
240 needs:
Daniel Stone79113462020-04-16 14:56:18 +0100241 - windows_build_vs2019
Eric Engestrom81b98e92019-10-14 23:04:14 +0100242
Eric Engestrom46d23c02019-01-20 11:26:53 +0000243# BUILD
244
Dylan Baker06e46472019-10-23 14:21:31 -0700245# Shared between windows and Linux
246.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100247 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000248 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100249 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700250 when: always
251 paths:
252 - _build/meson-logs/*.txt
253 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200254 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700255 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700256
257# Just Linux
258.build-linux:
259 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200260 variables:
261 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100262 CCACHE_COMPRESS: "true"
263 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000264 # Use ccache transparently, and print stats before/after
265 before_script:
266 - export PATH="/usr/lib/ccache:$PATH"
267 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100268 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000269 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000270 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000271
Dylan Baker19851c92019-10-23 14:36:19 -0700272.build-windows:
273 extends: .build-common
274 tags:
Daniel Stone07885cb2020-03-24 11:11:36 +0000275 - windows
276 - docker
277 - "1809"
Daniel Stone9197fd52020-03-30 15:58:51 +0100278 - mesa
Dylan Baker19851c92019-10-23 14:36:19 -0700279 cache:
280 key: ${CI_JOB_NAME}
281 paths:
282 - subprojects/packagecache
283
Eric Engestrom46d23c02019-01-20 11:26:53 +0000284.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100285 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700286 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100287 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100288 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100289 variables:
290 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000291 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200292 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000293
Eric Engestrom06b245b2019-01-23 15:46:10 +0000294.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100295 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700296 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100297 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100298 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000299 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800300 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000301 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200302 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000303
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100304meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200305 extends:
306 - .meson-build
307 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200308 variables:
309 UNWIND: "true"
310 DRI_LOADERS: >
311 -D glx=dri
312 -D gbm=true
313 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100314 -D platforms=x11,drm,surfaceless
315 GALLIUM_ST: >
316 -D dri3=true
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200317 GALLIUM_DRIVERS: "swrast,virgl"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100318 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100319 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800320 EXTRA_OPTION: >
321 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100322 script:
323 - .gitlab-ci/meson-build.sh
324 - .gitlab-ci/prepare-artifacts.sh
325
Michel Dänzerc56f0912020-03-12 12:29:40 +0100326meson-gallium:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100327 extends: .meson-build
328 variables:
329 UNWIND: "true"
330 DRI_LOADERS: >
331 -D glx=dri
332 -D gbm=true
333 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200334 -D platforms=x11,wayland,drm,surfaceless
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200335 GALLIUM_ST: >
336 -D dri3=true
337 -D gallium-extra-hud=true
338 -D gallium-vdpau=true
339 -D gallium-xvmc=true
340 -D gallium-omx=bellagio
341 -D gallium-va=true
342 -D gallium-xa=true
343 -D gallium-nine=true
344 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100345 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 +0200346 EXTRA_OPTION: >
347 -D osmesa=gallium
348 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200349 script:
350 - .gitlab-ci/meson-build.sh
351 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200352
Michel Dänzerc56f0912020-03-12 12:29:40 +0100353meson-classic:
354 extends: .meson-build
355 variables:
356 UNWIND: "true"
357 DRI_LOADERS: >
358 -D glx=dri
359 -D gbm=true
360 -D egl=true
361 -D platforms=x11,wayland,drm,surfaceless
362 DRI_DRIVERS: "auto"
363 EXTRA_OPTION: >
364 -D osmesa=classic
365 -D tools=all
366
Michel Dänzere5364462019-09-13 11:59:43 +0200367.meson-cross:
368 extends:
369 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100370 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200371 variables:
372 UNWIND: "false"
373 DRI_LOADERS: >
374 -D glx=disabled
375 -D gbm=false
376 -D egl=true
377 -D platforms=surfaceless
378 -D osmesa=none
379 GALLIUM_ST: >
380 -D dri3=false
381 -D gallium-vdpau=false
382 -D gallium-xvmc=false
383 -D gallium-omx=disabled
384 -D gallium-va=false
385 -D gallium-xa=false
386 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100387 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200388
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200389.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100390 extends:
391 - .meson-cross
392 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200393 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200394 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200395 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100396 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200397 tags:
398 - aarch64
399
400meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100401 extends:
402 - .meson-arm
403 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200404 variables:
405 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200406 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800407 EXTRA_OPTION: >
408 -D llvm=false
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100409 script:
410 - .gitlab-ci/meson-build.sh
411 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200412
413meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200414 extends:
415 - .meson-arm
416 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200417 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100418 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800419 EXTRA_OPTION: >
420 -D llvm=false
Michel Dänzer59fcb012019-10-23 18:42:53 +0200421 script:
422 - .gitlab-ci/meson-build.sh
423 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200424
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100425meson-arm64-build-test:
426 extends:
427 - .meson-arm
428 - .ci-deqp-artifacts
429 variables:
430 VULKAN_DRIVERS: "amd"
431 script:
432 - .gitlab-ci/meson-build.sh
433
Michel Dänzera2cce702019-03-20 15:58:31 +0100434meson-clang:
435 extends: .meson-build
436 variables:
437 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100438 DRI_LOADERS: >
439 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100440 DRI_DRIVERS: "auto"
441 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100442 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100443 CC: "ccache clang-9"
444 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100445
Daniel Stone79113462020-04-16 14:56:18 +0100446meson-windows-vs2019:
Dylan Baker19851c92019-10-23 14:36:19 -0700447 extends:
448 - .build-windows
Daniel Stone07885cb2020-03-24 11:11:36 +0000449 - .use-windows_build_vs2019
Michel Dänzercc9493f2020-02-27 18:27:56 +0100450 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700451 script:
Daniel Stone07885cb2020-03-24 11:11:36 +0000452 - . .\.gitlab-ci\windows\mesa_build.ps1
Dylan Baker19851c92019-10-23 14:36:19 -0700453
Michel Dänzer82b30092019-05-03 18:19:25 +0200454scons-win64:
455 extends: .scons-build
456 variables:
Jose Fonseca27d58a12020-03-28 10:36:28 +0000457 SCONS_TARGET: platform=windows machine=x86_64 debug=1
Michel Dänzer82b30092019-05-03 18:19:25 +0200458 SCONS_CHECK_COMMAND: "true"
Jose Fonseca27d58a12020-03-28 10:36:28 +0000459 allow_failure: true
Eric Engestrom89a74672019-01-21 09:42:37 +0000460
Michel Dänzer68977152019-05-03 10:58:48 +0200461meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000462 extends: .meson-build
463 variables:
464 UNWIND: "true"
465 DRI_LOADERS: >
466 -D glx=disabled
467 -D egl=false
468 -D gbm=false
469 GALLIUM_ST: >
470 -D dri3=false
471 -D gallium-vdpau=false
472 -D gallium-xvmc=false
473 -D gallium-omx=disabled
474 -D gallium-va=false
475 -D gallium-xa=false
476 -D gallium-nine=false
477 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200478 script:
479 - export GALLIUM_DRIVERS="r600,radeonsi"
480 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200481 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200482 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200483 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
484 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
485
486meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200487 extends:
488 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100489 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200490 variables:
491 UNWIND: "false"
492 DRI_LOADERS: >
493 -D glx=disabled
494 -D egl=false
495 -D gbm=false
496 -D platforms=drm,surfaceless
497 GALLIUM_DRIVERS: "i915,r600"
498 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200499 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
500 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
501 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000502
Michel Dänzer82b30092019-05-03 18:19:25 +0200503meson-vulkan:
504 extends: .meson-build
505 variables:
506 UNWIND: "false"
507 DRI_LOADERS: >
508 -D glx=disabled
509 -D gbm=false
510 -D egl=false
511 -D platforms=x11,wayland,drm
512 -D osmesa=none
513 GALLIUM_ST: >
514 -D dri3=true
515 -D gallium-vdpau=false
516 -D gallium-xvmc=false
517 -D gallium-omx=disabled
518 -D gallium-va=false
519 -D gallium-xa=false
520 -D gallium-nine=false
521 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200522 -D b_sanitize=undefined
523 -D c_args=-fno-sanitize-recover=all
524 -D cpp_args=-fno-sanitize-recover=all
525 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200526 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200527 EXTRA_OPTION: >
528 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800529 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200530
Eric Anholt11aa32a2019-07-11 12:58:28 -0700531meson-i386:
532 extends: .meson-cross
533 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100534 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100535 VULKAN_DRIVERS: intel,amd
Michel Dänzera0591862020-03-12 12:31:05 +0100536 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700537 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700538 -D vulkan-overlay-layer=true
Eric Anholtf6e59912019-12-16 21:23:02 -0800539 -D werror=true
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100540 script:
541 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
542 - .gitlab-ci/meson-build.sh
Eric Anholt11aa32a2019-07-11 12:58:28 -0700543
Michel Dänzer65610ec2020-01-30 18:21:15 +0100544meson-s390x:
545 extends:
546 - .meson-cross
Michel Dänzer130c0ba2020-03-18 18:41:43 +0100547 tags:
548 - kvm
Michel Dänzer65610ec2020-01-30 18:21:15 +0100549 variables:
550 CROSS: s390x
551 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100552 script:
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100553 # For unknown reasons "too many" installed i386 libraries cause qemu to
554 # crash while executing llvm-config for s390x.
Michel Dänzerda3aee92020-04-27 12:42:58 +0200555 - apt-get purge -y wine32
Andres Gomezcb055c62020-04-22 16:51:48 +0300556 - apt-get autoremove -y --purge
Michel Dänzer65610ec2020-01-30 18:21:15 +0100557 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
558 - .gitlab-ci/meson-build.sh
559
560meson-ppc64el:
561 extends:
562 - meson-s390x
563 variables:
564 CROSS: ppc64el
Michel Dänzer8be81f82020-01-31 16:07:10 +0100565 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100566 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100567
Dylan Baker449f8312019-10-11 09:04:14 -0700568meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700569 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100570 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700571 variables:
572 UNWIND: "false"
573 DRI_DRIVERS: ""
574 GALLIUM_DRIVERS: "swrast"
575 EXTRA_OPTION: >
576 -Dllvm=false
577 -Dosmesa=gallium
578 --cross-file=.gitlab-ci/x86_64-w64-mingw32
579
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100580.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200581 extends:
582 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700583 variables:
584 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200585 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700586 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
587 - rm -rf install
588 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100589 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700590 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800591 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100592 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700593 paths:
594 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200595 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100596 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100597
598.test-gl:
599 extends:
600 - .test
601 variables:
602 TAG: *x86_test-gl
603 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200604 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100605 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100606 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700607
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100608.test-vk:
609 extends:
610 - .test
611 variables:
612 TAG: *x86_test-vk
613 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
614 needs:
615 - meson-testing
616 - x86_test-vk
617
Michel Dänzer576f7b62019-10-22 17:16:52 +0200618.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100619 extends:
620 - .test-gl
621 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100622 artifacts:
623 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100624 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100625 paths:
626 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200627 variables:
628 LIBGL_ALWAYS_SOFTWARE: 1
629 PIGLIT_NO_WINDOW: 1
630 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100631 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200632
633piglit-quick_gl:
634 extends: .piglit-test
635 variables:
636 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000637 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200638 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100639 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200640 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800641 -x egl_ext_device_
642 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800643 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200644 -x glx-multithread-clearbuffer
645 -x glx-multithread-shader-compile
646 -x max-texture-size
647 -x maxsize
648 PIGLIT_PROFILES: quick_gl
649
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100650piglit-glslparser:
651 extends: .piglit-test
652 variables:
653 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000654 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100655 PIGLIT_PROFILES: glslparser
656
657piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200658 extends: .piglit-test
659 variables:
660 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000661 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100662 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200663
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100664.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200665 variables:
666 DEQP_SKIPS: deqp-default-skips.txt
667 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100668 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200669
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100670.deqp-test-gl:
671 extends:
672 - .test-gl
673 - .deqp-test
674
675.deqp-test-vk:
676 extends:
677 - .test-vk
678 - .deqp-test
679 variables:
680 DEQP_VER: vk
681
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100682.fossilize-test:
683 extends: .test-vk
684 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100685 - ./install/fossilize-runner.sh
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100686
Michel Dänzer71436f92020-03-03 18:17:12 +0100687llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700688 variables:
689 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800690 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000691 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800692 # Don't use threads inside llvmpipe, we've already got all 4 cores
693 # busy with DEQP_PARALLEL.
694 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700695 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
696 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt8b221e02020-04-17 12:39:32 -0700697 DEQP_EXPECTED_RENDERER: llvmpipe
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100698 extends:
699 - .deqp-test-gl
700 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700701
Michel Dänzer71436f92020-03-03 18:17:12 +0100702softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100703 extends:
704 - llvmpipe-gles2
705 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700706 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700707 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800708 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700709 GALLIUM_DRIVER: "softpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700710 DEQP_EXPECTED_RENDERER: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700711
Michel Dänzer71436f92020-03-03 18:17:12 +0100712softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800713 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700714 variables:
715 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100716 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800717
Michel Dänzer71436f92020-03-03 18:17:12 +0100718softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800719 parallel: 4
720 variables:
721 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100722 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700723
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200724virgl-gles2:
725 variables:
726 DEQP_VER: gles2
727 DEQP_PARALLEL: 4
728 NIR_VALIDATE: 0
729 DEQP_NO_SAVE_RESULTS: 1
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200730 # Don't use threads inside llvmpipe, we've already got all 4 cores
731 # busy with DEQP_PARALLEL.
732 LP_NUM_THREADS: 0
733 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
734 LIBGL_ALWAYS_SOFTWARE: "true"
735 GALLIUM_DRIVER: "virpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700736 DEQP_EXPECTED_RENDERER: virgl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200737 extends:
738 - .deqp-test-gl
739 - .virgl-rules
740
741virgl-gles3:
742 variables:
743 DEQP_VER: gles3
744 CI_NODE_INDEX: 1
745 CI_NODE_TOTAL: 3
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700746 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +0200747 extends: virgl-gles2
748
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200749virgl-gles31:
750 variables:
751 DEQP_VER: gles31
752 CI_NODE_INDEX: 1
753 CI_NODE_TOTAL: 10
754 DEQP_OPTIONS: "--deqp-log-images=disable"
Eric Anholta9e6a3e2020-04-17 12:28:58 -0700755 DEQP_RUNNER_OPTIONS: "--timeout 120"
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +0200756 MESA_GLES_VERSION_OVERRIDE: "3.1"
757 MESA_GLSL_VERSION_OVERRIDE: "310"
758 extends: virgl-gles2
759
Eric Anholt8edaa842020-03-19 11:45:01 -0700760# Rules for tests that should not be present in MRs or the main
761# project's pipeline (don't block marge or report red on
762# mesa/mesamaster) but should be present on pipelines in personal
763# branches (so you can opt in to running the flaky test when you want
764# to).
765.test-manual:
766 rules:
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +0200767 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
768 changes:
769 *all_paths
770 when: manual
771 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -0700772
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000773arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100774 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100775 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100776 - .use-arm_test
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100777 - .freedreno-rules
Eric Anholt6f0dc082019-06-28 16:35:32 -0700778 variables:
779 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700780 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
781 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
782 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800783 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800784 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt8b221e02020-04-17 12:39:32 -0700785 DEQP_EXPECTED_RENDERER: FD630
Eric Anholt6f0dc082019-06-28 16:35:32 -0700786 tags:
787 - mesa-cheza
788 dependencies:
789 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700790
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000791arm64_a630_gles31:
792 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700793 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200794 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700795
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000796arm64_a630_gles3:
797 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700798 variables:
799 DEQP_VER: gles3
800
Eric Anholt5082ac02020-04-17 12:02:37 -0700801arm64_a630_gles31_options:
802 extends: arm64_a630_gles2
803 variables:
804 DEQP_VER: gles31
805 CI_NODE_INDEX: 1
806 CI_NODE_TOTAL: 5
807 script:
808 # We almost always manage to lower UBOs back to constant uploads in
809 # the test suite, so get a little testing for it here.
Eric Anholt72320892020-05-12 16:36:08 -0700810 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.\*ubo" ./install/deqp-runner.sh
Eric Anholt5082ac02020-04-17 12:02:37 -0700811 # The driver does some guessing as to whether to render using gmem
812 # or bypass, and some GLES3.1 features interact with either one.
813 # Do a little testing with gmem and bypass forced.
814 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
815 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
816
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800817.baremetal-test:
818 extends:
819 - .ci-run-policy
820 stage: test
821
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800822arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800823 extends:
824 - .baremetal-test
825 - .use-arm_build
Eric Anholtf778c482020-03-18 09:51:03 -0700826 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800827 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -0800828 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800829 BM_DTB: /lava-files/apq8016-sbc.dtb
830 BM_ROOTFS: /lava-files/rootfs-arm64
831 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholt3b5e71c2020-05-01 09:57:00 -0700832 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800833 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800834 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
835 DEQP_VER: gles2
836 DEQP_PARALLEL: 4
Eric Anholt8b221e02020-04-17 12:39:32 -0700837 DEQP_EXPECTED_RENDERER: FD307
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800838 script:
839 - .gitlab-ci/bare-metal/fastboot.sh
840 needs:
841 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800842 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800843 - google-freedreno-db410c
844
845# Disabled due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -0700846arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800847 extends:
848 - arm64_a306_gles2
Eric Anholtcf5ba9d2020-03-03 14:38:09 -0800849 variables:
850 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700851 DEQP_PARALLEL: 1
852 CI_NODE_INDEX: 1
853 CI_NODE_TOTAL: 50
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800854
Eric Anholt4bc15e72020-03-03 14:38:09 -0800855arm64_a530_gles2:
856 extends:
857 - arm64_a306_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800858 variables:
859 BM_KERNEL: /lava-files/db820c-kernel
860 BM_DTB: /lava-files/db820c.dtb
861 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
862 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
863 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
Eric Anholt8b221e02020-04-17 12:39:32 -0700864 DEQP_EXPECTED_RENDERER: FD530
Eric Anholt4bc15e72020-03-03 14:38:09 -0800865 tags:
866 - google-freedreno-db820c
867
868arm64_a530_gles3:
869 extends:
870 - arm64_a530_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -0800871 variables:
872 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -0700873 DEQP_PARALLEL: 1
874 CI_NODE_INDEX: 1
875 CI_NODE_TOTAL: 100
Eric Anholt4bc15e72020-03-03 14:38:09 -0800876
Eric Anholt6c011522020-04-22 12:08:06 -0700877arm64_a530_gles31:
878 extends:
879 - arm64_a530_gles3
880 variables:
881 DEQP_VER: gles31
882
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100883# RADV CI
884.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +0100885 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +0100886 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100887 variables:
888 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100889 RADV_DEBUG: checkir
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200890 ACO_DEBUG: validateir,validatera
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100891
Eric Anholt8edaa842020-03-19 11:45:01 -0700892# Can only be triggered manually on personal branches because RADV is the only
893# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100894radv_polaris10_vkcts:
895 extends:
896 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700897 - .test-radv
898 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100899 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100900 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
901 tags:
902 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200903
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100904radv-fossils:
905 extends:
906 - .fossilize-test
907 - .test-radv
908 script:
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200909 # Pitcairn (GFX6)
910 - export RADV_FORCE_FAMILY="pitcairn"
911 - ./install/fossilize-runner.sh
912 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
913 # Bonaire (GFX7)
914 - export RADV_FORCE_FAMILY="bonaire"
915 - ./install/fossilize-runner.sh
916 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
917 # Polaris10 (GFX8)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100918 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100919 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200920 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200921 # Vega10 (GFX9)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100922 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100923 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200924 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +0200925 # Navi10 (GFX10)
Samuel Pitoisete22d5622020-03-06 08:36:14 +0100926 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100927 - ./install/fossilize-runner.sh
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +0200928 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +0100929
Andres Gomez0ac731b12020-02-20 18:26:30 +0200930# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200931.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200932 cache:
933 key: ${CI_JOB_NAME}
934 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +0100935 - traces-db/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200936
937.traces-test-gl:
938 extends:
939 - .test-gl
940 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200941 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100942 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +0200943
944.traces-test-vk:
945 extends:
946 - .test-vk
947 - .traces-test
948 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100949 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200950
951llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100952 extends:
953 - .traces-test-gl
954 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200955 variables:
956 LIBGL_ALWAYS_SOFTWARE: "true"
957 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +0200958 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +0200959
960radv-polaris10-traces:
961 extends:
962 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -0700963 - .test-radv
964 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +0200965 variables:
966 DEVICE_NAME: "vk-amd-polaris10"
967 tags:
968 - polaris10
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +0200969
970virgl-traces:
971 extends:
972 - .traces-test-gl
973 - .virgl-rules
974 variables:
975 LIBGL_ALWAYS_SOFTWARE: "true"
976 GALLIUM_DRIVER: "virpipe"
977 DEVICE_NAME: "gl-virgl"
978 MESA_GLES_VERSION_OVERRIDE: "3.1"
979 MESA_GLSL_VERSION_OVERRIDE: "310"