blob: 1508a33c6026db65dcbcb40a713c7a7c2b8fb918 [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 Tissoires0b6e03b2020-06-11 17:16:28 +02003 CI_PRE_CLONE_SCRIPT: |-
4 set -o xtrace
5 /usr/bin/wget -q -O- ${CI_PROJECT_URL}/-/raw/${CI_COMMIT_SHA}/.gitlab-ci/download-git-cache.sh | sh -
6 set +o xtrace
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +02007
8include:
Eric Anholtaf7dca32020-03-06 13:23:20 -08009 - project: 'freedesktop/ci-templates'
Benjamin Tissoires0b6e03b2020-06-11 17:16:28 +020010 ref: &ci-templates-sha 52dd4a94044449c8481d18dcdc221a3c636366d2
Michel Dänzerd00b1c42019-04-02 16:56:54 +020011 file: '/templates/debian.yml'
Benjamin Tissoires0b6e03b2020-06-11 17:16:28 +020012 - project: 'freedesktop/ci-templates'
13 ref: *ci-templates-sha
14 file: '/templates/alpine.yml'
Dylan Baker19851c92019-10-23 14:36:19 -070015 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +010016 - local: '.gitlab-ci/test-source-dep.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020017
Eric Engestrom329f5cd2019-01-20 11:21:45 +000018stages:
Erik Faye-Lund196ac4c2020-06-22 11:10:40 +020019 - container+docs
Michel Dänzerc2366f02020-05-16 17:17:23 +020020 - container-2
Benjamin Tissoires0b6e03b2020-06-11 17:16:28 +020021 - git-archive
Michel Dänzer3cdc0d52020-07-01 17:37:49 +020022 - deploy
Michel Dänzercc9493f2020-02-27 18:27:56 +010023 - meson-x86_64
24 - scons
25 - meson-misc
26 - llvmpipe
27 - softpipe
28 - freedreno
29 - panfrost
Samuel Pitoiset48e92032020-03-06 08:39:25 +010030 - radv
31 - lima
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +020032 - virgl
Tomeu Vizoso6c8b9212020-07-03 10:04:20 +020033 - radeonsi
Michel Dänzer8775b742020-01-13 09:45:57 +010034 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000035
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +020036# Generic rule to not run the job during scheduled pipelines
37# ----------------------------------------------------------
38.scheduled_pipelines-rules:
39 rules: &ignore_scheduled_pipelines
Michel Dänzerc3ae82b2020-09-08 17:44:40 +020040 if: &is-scheduled-pipeline '$CI_PIPELINE_SOURCE == "schedule"'
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +020041 when: never
42
Michel Dänzerac56d662020-09-08 12:20:39 +020043# YAML anchors for rule conditions
44# --------------------------------
45.rules-anchors:
46 rules:
47 # Pipeline runs for the master branch of the main project
48 - if: &is-main-master '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_REF_NAME == "master"'
49 when: always
50
51
Erik Faye-Lund87747072020-06-22 11:10:29 +020052.docs-base:
Michel Dänzer8e2cb8e2020-06-22 11:21:06 +020053 extends: .ci-run-policy
Erik Faye-Lund064fe5f2019-05-27 17:12:10 +020054 image: alpine
Erik Faye-Lund064fe5f2019-05-27 17:12:10 +020055 script:
Erik Faye-Lundcb119002020-07-02 13:09:36 +020056 - apk --no-cache add py3-pip graphviz
Erik Faye-Lund064fe5f2019-05-27 17:12:10 +020057 - pip3 install sphinx sphinx_rtd_theme
58 - sphinx-build -b html docs public
Erik Faye-Lund87747072020-06-22 11:10:29 +020059
60pages:
61 extends: .docs-base
Erik Faye-Lund196ac4c2020-06-22 11:10:40 +020062 stage: deploy
Erik Faye-Lund064fe5f2019-05-27 17:12:10 +020063 artifacts:
64 paths:
65 - public
Michel Dänzer8e2cb8e2020-06-22 11:21:06 +020066 rules:
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +020067 - *ignore_scheduled_pipelines
Michel Dänzerac56d662020-09-08 12:20:39 +020068 - if: *is-main-master
Michel Dänzer8e2cb8e2020-06-22 11:21:06 +020069 changes: &docs-or-ci
70 - docs/**/*
71 - .gitlab-ci.yml
Michel Dänzerfc41ec12020-07-01 17:41:06 +020072 when: always
Michel Dänzer8e2cb8e2020-06-22 11:21:06 +020073 # Other cases default to never
Eric Engestrom329f5cd2019-01-20 11:21:45 +000074
Erik Faye-Lund87747072020-06-22 11:10:29 +020075test-docs:
76 extends: .docs-base
Michel Dänzerd9693c62020-07-21 16:13:37 +020077 # Cancel job if a newer commit is pushed to the same branch
78 interruptible: true
Erik Faye-Lund196ac4c2020-06-22 11:10:40 +020079 stage: container+docs
Michel Dänzer1c612e82020-06-22 11:13:05 +020080 rules:
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +020081 - *ignore_scheduled_pipelines
Michel Dänzer3f865642020-07-15 10:59:54 +020082 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
Michel Dänzer8e2cb8e2020-06-22 11:21:06 +020083 changes: *docs-or-ci
Michel Dänzer1c612e82020-06-22 11:13:05 +020084 when: on_success
Michel Dänzerf13f32f2020-08-31 18:46:37 +020085 - if: '$GITLAB_USER_LOGIN != "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME && $CI_PROJECT_PATH == "mesa/mesa"'
86 changes: *docs-or-ci
87 when: on_success
Michel Dänzer615f1c82020-09-01 11:44:54 +020088 - if: '$CI_PROJECT_PATH != "mesa/mesa" || $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
89 changes: *docs-or-ci
Michel Dänzer1c612e82020-06-22 11:13:05 +020090 when: manual
91 # Other cases default to never
Erik Faye-Lund87747072020-06-22 11:10:29 +020092
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000093# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020094.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020095 rules:
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +020096 - *ignore_scheduled_pipelines
Michel Dänzer42fe6002020-04-03 12:50:11 +020097 # If any files affecting the pipeline are changed, build/test jobs run
98 # automatically once all dependency jobs have passed
99 - changes: &all_paths
Michel Dänzer8775b742020-01-13 09:45:57 +0100100 - VERSION
Eric Engestrom576bff52020-05-14 22:51:38 +0200101 - bin/git_sha1_gen.py
102 - bin/install_megadrivers.py
103 - bin/meson_get_version.py
104 - bin/symbols-check.py
Michel Dänzer8775b742020-01-13 09:45:57 +0100105 # GitLab CI
106 - .gitlab-ci.yml
107 - .gitlab-ci/**/*
108 # Meson
109 - meson*
110 - build-support/**/*
111 - subprojects/**/*
112 # SCons
113 - SConstruct
114 - scons/**/*
115 - common.py
116 # Source code
117 - include/**/*
118 - src/**/*
119 when: on_success
Michel Dänzer42fe6002020-04-03 12:50:11 +0200120 # Otherwise, build/test jobs won't run
Michel Dänzer8775b742020-01-13 09:45:57 +0100121 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +0100122 retry:
123 max: 2
124 when:
125 - runner_system_failure
Eric Engestrom7f5d9c22019-02-22 15:52:08 +0000126
Michel Dänzer8775b742020-01-13 09:45:57 +0100127success:
128 stage: success
129 image: debian:stable-slim
Michel Dänzer6cba4682020-06-22 11:16:17 +0200130 rules:
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +0200131 - *ignore_scheduled_pipelines
Michel Dänzer0308e632020-08-31 18:49:42 +0200132 - if: '$CI_PROJECT_NAMESPACE == "mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
Michel Dänzer6cba4682020-06-22 11:16:17 +0200133 when: never
134 - if: '$GITLAB_USER_LOGIN == "marge-bot"'
135 changes: *docs-or-ci
136 when: never
137 - changes: *all_paths
138 when: never
Michel Dänzera6c4db92020-08-28 17:08:57 +0200139 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
140 when: on_success
Michel Dänzer2dd0cc62020-01-20 18:34:34 +0100141 variables:
142 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +0100143 script:
144 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
145
146
Michel Dänzere426f402019-09-06 17:35:52 +0200147.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -0700148 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100149 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700150 when: always
151 untracked: false
152 paths:
153 # Watch out! Artifacts are relative to the build dir.
154 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
155 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +0000156
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100157# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +0100158#
Eric Anholtaf7dca32020-03-06 13:23:20 -0800159# 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 +0100160# image doesn't exist yet, the container stage job generates it.
161#
162# In order to generate a new image, one should generally change the tag.
163# While removing the image from the registry would also work, that's not
164# recommended except for ephemeral images during development: Replacing
165# an image after a significant amount of time might pull in newer
166# versions of gcc/clang or other packages, which might break the build
167# with older commits using the same tag.
168#
169# After merging a change resulting in generating a new image to the
170# main repository, it's recommended to remove the image from the source
171# repository's container registry, so that the image from the main
172# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +0200173
Eric Engestrom81b98e92019-10-14 23:04:14 +0100174.container:
Erik Faye-Lund196ac4c2020-06-22 11:10:40 +0200175 stage: container+docs
Eric Engestrom81b98e92019-10-14 23:04:14 +0100176 extends:
177 - .ci-run-policy
Michel Dänzer42fe6002020-04-03 12:50:11 +0200178 rules:
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +0200179 - *ignore_scheduled_pipelines
Michel Dänzer549b4a32020-06-29 11:33:13 +0200180 # Run pipeline by default in the main project if any CI pipeline
181 # configuration files were changed, to ensure docker images are up to date
Michel Dänzer45793c02020-08-27 09:36:22 +0200182 - if: '$CI_PROJECT_PATH == "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
Michel Dänzer42fe6002020-04-03 12:50:11 +0200183 changes:
Michel Dänzer549b4a32020-06-29 11:33:13 +0200184 - .gitlab-ci.yml
185 - .gitlab-ci/**/*
186 when: on_success
187 # Run pipeline by default if it was triggered by Marge Bot, is for a
188 # merge request, and any files affecting the pipeline were changed
Michel Dänzercbdb87c2020-07-14 11:12:19 +0200189 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
Michel Dänzer549b4a32020-06-29 11:33:13 +0200190 changes:
Michel Dänzer42fe6002020-04-03 12:50:11 +0200191 *all_paths
192 when: on_success
Michel Dänzer549b4a32020-06-29 11:33:13 +0200193 # Run pipeline by default in the main project if it was not triggered by
194 # Marge Bot, and any files affecting the pipeline were changed
Michel Dänzer45793c02020-08-27 09:36:22 +0200195 - if: '$GITLAB_USER_LOGIN != "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME && $CI_PROJECT_PATH == "mesa/mesa"'
Michel Dänzer549b4a32020-06-29 11:33:13 +0200196 changes:
197 *all_paths
198 when: on_success
199 # Allow triggering jobs manually in other cases if any files affecting the
200 # pipeline were changed
Michel Dänzer4176dfa2020-04-03 11:46:12 +0200201 - changes:
Michel Dänzer42fe6002020-04-03 12:50:11 +0200202 *all_paths
203 when: manual
204 # Otherwise, container jobs won't run
205 - when: never
Eric Engestrom81b98e92019-10-14 23:04:14 +0100206 variables:
Eric Anholtaf7dca32020-03-06 13:23:20 -0800207 FDO_DISTRIBUTION_VERSION: buster-slim
Michel Dänzerfcd33772020-03-23 18:16:07 +0100208 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
Eric Anholtfd24a952020-06-26 10:59:41 -0700209 FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100210 # no need to pull the whole repo to build the container image
211 GIT_STRATEGY: none
212
Michel Dänzera85da8e2020-05-30 15:53:41 +0200213# Debian 10 based x86 build image base
214x86_build-base:
Michel Dänzere426f402019-09-06 17:35:52 +0200215 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100216 - .fdo.container-build@debian
Eric Engestrom81b98e92019-10-14 23:04:14 +0100217 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100218 variables:
Eric Anholtd3b652f2020-08-13 14:21:50 -0700219 FDO_DISTRIBUTION_TAG: &x86_build-base "2020-08-13-gold"
Michel Dänzera85da8e2020-05-30 15:53:41 +0200220
221.use-x86_build-base:
222 extends:
223 - x86_build-base
224 - .ci-run-policy
225 stage: container-2
226 variables:
227 BASE_TAG: *x86_build-base
228 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_build-base:$BASE_TAG"
229 needs:
230 - x86_build-base
231
232# Debian 10 based x86 main build image
233x86_build:
234 extends:
235 - .use-x86_build-base
236 variables:
Christian Gmeiner2f62a442020-09-09 22:21:14 +0200237 FDO_DISTRIBUTION_TAG: &x86_build "2020-09-10-libdrm"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000238
Michel Dänzer3a48f452019-11-13 17:43:41 +0100239.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100240 variables:
241 TAG: *x86_build
242 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200243 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100244 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200245
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200246# Debian 10 based i386 cross-build image
247i386_build:
248 extends:
249 - .use-x86_build-base
250 variables:
Christian Gmeiner2f62a442020-09-09 22:21:14 +0200251 FDO_DISTRIBUTION_TAG: &i386_build "2020-09-10-libdrm"
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200252
253.use-i386_build:
254 variables:
255 TAG: *i386_build
256 image: "$CI_REGISTRY_IMAGE/debian/i386_build:$TAG"
257 needs:
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200258 - i386_build
259
260# Debian 10 based ppc64el cross-build image
261ppc64el_build:
262 extends:
263 - .use-x86_build-base
264 variables:
Christian Gmeiner2f62a442020-09-09 22:21:14 +0200265 FDO_DISTRIBUTION_TAG: &ppc64el_build "2020-09-10-libdrm"
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200266
267.use-ppc64el_build:
268 variables:
269 TAG: *ppc64el_build
270 image: "$CI_REGISTRY_IMAGE/debian/ppc64el_build:$TAG"
271 needs:
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200272 - ppc64el_build
273
274# Debian 10 based s390x cross-build image
275s390x_build:
276 extends:
277 - .use-x86_build-base
278 variables:
Christian Gmeiner2f62a442020-09-09 22:21:14 +0200279 FDO_DISTRIBUTION_TAG: &s390x_build "2020-09-10-libdrm"
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200280
281.use-s390x_build:
282 variables:
283 TAG: *s390x_build
284 image: "$CI_REGISTRY_IMAGE/debian/s390x_build:$TAG"
285 needs:
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200286 - s390x_build
287
Michel Dänzerc2366f02020-05-16 17:17:23 +0200288# Debian 10 based x86 test image base
289x86_test-base:
Michel Dänzera85da8e2020-05-30 15:53:41 +0200290 extends: x86_build-base
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100291 variables:
Eric Anholtd3b652f2020-08-13 14:21:50 -0700292 FDO_DISTRIBUTION_TAG: &x86_test-base "2020-08-13-gold"
Michel Dänzerc2366f02020-05-16 17:17:23 +0200293
294.use-x86_test-base:
295 extends:
Michel Dänzera85da8e2020-05-30 15:53:41 +0200296 - x86_build-base
Michel Dänzerc2366f02020-05-16 17:17:23 +0200297 - .ci-run-policy
298 stage: container-2
299 variables:
300 BASE_TAG: *x86_test-base
301 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_test-base:$BASE_TAG"
302 needs:
303 - x86_test-base
304
305# Debian 10 based x86 test image for GL
306x86_test-gl:
307 extends: .use-x86_test-base
308 variables:
Christian Gmeiner2f62a442020-09-09 22:21:14 +0200309 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-09-10-libdrm"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100310
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100311# Debian 10 based x86 test image for VK
312x86_test-vk:
Michel Dänzerc2366f02020-05-16 17:17:23 +0200313 extends: .use-x86_test-base
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100314 variables:
Eric Anholteb02b312020-08-26 16:57:44 -0700315 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-08-31-deqp-version"
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100316
Michel Dänzerc6c76522019-11-11 18:13:28 +0100317# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100318x86_build_old:
Michel Dänzera85da8e2020-05-30 15:53:41 +0200319 extends: x86_build-base
Michel Dänzer8a199922019-09-06 17:04:47 +0200320 variables:
Eric Anholtd3b652f2020-08-13 14:21:50 -0700321 FDO_DISTRIBUTION_TAG: &x86_build_old "2020-08-13-gold"
Eric Anholtaf7dca32020-03-06 13:23:20 -0800322 FDO_DISTRIBUTION_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200323
Michel Dänzer3a48f452019-11-13 17:43:41 +0100324.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100325 variables:
326 TAG: *x86_build_old
327 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200328 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100329 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200330
Michel Dänzerc6c76522019-11-11 18:13:28 +0100331# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100332arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200333 extends:
Michel Dänzerfcd33772020-03-23 18:16:07 +0100334 - .fdo.container-build@debian@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100335 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700336 variables:
Christian Gmeiner2f62a442020-09-09 22:21:14 +0200337 FDO_DISTRIBUTION_TAG: &arm_build "2020-09-10-libdrm"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000338
Michel Dänzerc6c76522019-11-11 18:13:28 +0100339.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100340 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100341 TAG: *arm_build
342 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
343 needs:
344 - arm_build
345
Christian Gmeiner408b36a2020-06-07 22:03:34 +0200346# Debian 10 based x86 baremetal image base
347arm_test-base:
348 extends:
349 - .fdo.container-build@debian
350 - .container
351 variables:
Christian Gmeiner2f62a442020-09-09 22:21:14 +0200352 FDO_DISTRIBUTION_TAG: &arm_test-base "2020-09-10-libdrm"
Christian Gmeiner408b36a2020-06-07 22:03:34 +0200353
354.use-arm_test-base:
355 extends:
356 - arm_test-base
357 - .ci-run-policy
358 stage: container-2
359 variables:
360 BASE_TAG: *arm_test-base
361 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/arm_test-base:$BASE_TAG"
362 needs:
363 - arm_test-base
364
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200365# x86 image with ARM64 rootfs for baremetal testing.
366arm64_test:
Christian Gmeiner408b36a2020-06-07 22:03:34 +0200367 extends:
368 - .use-arm_test-base
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700369 variables:
Eric Anholtb4317fc2020-09-02 10:49:44 -0700370 FDO_DISTRIBUTION_TAG: &arm64_test "2020-09-04-pagetables"
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700371
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200372.use-arm64_test:
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700373 variables:
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200374 TAG: *arm64_test
375 image: "$CI_REGISTRY_IMAGE/debian/arm64_test:$TAG"
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700376 needs:
Christian Gmeiner839bc2d2020-06-07 23:19:50 +0200377 - arm64_test
Eric Anholt68b3b5b2020-05-13 11:08:08 -0700378
Daniel Stone07885cb2020-03-24 11:11:36 +0000379# Native Windows docker builds
Dylan Baker138c0032020-05-19 14:01:47 -0700380#
Daniel Stone07885cb2020-03-24 11:11:36 +0000381# Unlike the above Linux-based builds - including MinGW/SCons builds which
382# cross-compile for Windows - which use the freedesktop ci-templates, we
383# cannot use the same scheme here. As Windows lacks support for
384# Docker-in-Docker, and Podman does not run natively on Windows, we have
385# to open-code much of the same ourselves.
386#
387# This is achieved by first running in a native Windows shell instance
388# (host PowerShell) in the container stage to build and push the image,
389# then in the build stage by executing inside Docker.
390
391.windows-docker-vs2019:
392 variables:
Daniel Stone0f46a312020-05-05 15:49:22 +0100393 WINDOWS_TAG: "2020-05-05-llvm"
Daniel Stone07885cb2020-03-24 11:11:36 +0000394 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
395 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
396
Daniel Stoneb8f2d712020-08-28 19:08:39 +0100397.windows_build_vs2019:
Daniel Stone07885cb2020-03-24 11:11:36 +0000398 extends:
399 - .container
400 - .windows-docker-vs2019
Erik Faye-Lund196ac4c2020-06-22 11:10:40 +0200401 stage: container+docs
Daniel Stone07885cb2020-03-24 11:11:36 +0000402 variables:
403 GIT_STRATEGY: fetch # we do actually need the full repository though
Daniel Stone0f46a312020-05-05 15:49:22 +0100404 timeout: 4h # LLVM takes ages
Daniel Stone07885cb2020-03-24 11:11:36 +0000405 tags:
406 - windows
407 - shell
408 - "1809"
Daniel Stone2db1d732020-03-30 10:16:18 +0100409 - mesa
Daniel Stone07885cb2020-03-24 11:11:36 +0000410 script:
411 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
Dylan Baker138c0032020-05-19 14:01:47 -0700412
Daniel Stone07885cb2020-03-24 11:11:36 +0000413.use-windows_build_vs2019:
414 extends: .windows-docker-vs2019
415 image: "$WINDOWS_IMAGE"
416 needs:
Daniel Stone79113462020-04-16 14:56:18 +0100417 - windows_build_vs2019
Eric Engestrom81b98e92019-10-14 23:04:14 +0100418
Benjamin Tissoires0b6e03b2020-06-11 17:16:28 +0200419git_archive:
420 extends: .fdo.container-build@alpine
421 stage: container+docs
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +0200422 rules:
Michel Dänzerc3ae82b2020-09-08 17:44:40 +0200423 - if: *is-scheduled-pipeline
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +0200424 when: always
Benjamin Tissoires0b6e03b2020-06-11 17:16:28 +0200425 variables:
426 FDO_REPO_SUFFIX: &git-archive-suffix "alpine/git_archive"
Benjamin Tissoires1639d3c2020-07-07 14:44:33 +0200427 FDO_DISTRIBUTION_EXEC: 'pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@6f5af7e5574509726c79109e3c147cee95e81366'
Benjamin Tissoires0b6e03b2020-06-11 17:16:28 +0200428 # no need to pull the whole repo to build the container image
429 GIT_STRATEGY: none
Benjamin Tissoires1639d3c2020-07-07 14:44:33 +0200430 FDO_DISTRIBUTION_TAG: &git-archive-tag "2020-07-07"
Benjamin Tissoires0b6e03b2020-06-11 17:16:28 +0200431 FDO_DISTRIBUTION_PACKAGES: git py3-pip
432
433
434# Git archive
435
436make git archive:
437 stage: git-archive
438 extends: .fdo.suffixed-image@alpine
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +0200439 rules:
Michel Dänzerc3ae82b2020-09-08 17:44:40 +0200440 - if: *is-scheduled-pipeline
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +0200441 when: on_success
Benjamin Tissoires0b6e03b2020-06-11 17:16:28 +0200442 # ensure we are running on packet
443 tags:
444 - packet.net
445 variables:
446 FDO_DISTRIBUTION_TAG: *git-archive-tag
447 FDO_REPO_SUFFIX: *git-archive-suffix
448 needs:
449 - git_archive
450
451 script:
452 # compress the current folder
453 - tar -cvzf ../$CI_PROJECT_NAME.tar.gz .
454
455 # login with the JWT token
456 - ci-fairy minio login $CI_JOB_JWT
457 - ci-fairy minio cp ../$CI_PROJECT_NAME.tar.gz minio://minio-packet.freedesktop.org/git-cache/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_PROJECT_NAME.tar.gz
458
459
Eric Engestrom46d23c02019-01-20 11:26:53 +0000460# BUILD
461
Dylan Baker06e46472019-10-23 14:21:31 -0700462# Shared between windows and Linux
463.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100464 extends: .ci-run-policy
Michel Dänzerd9693c62020-07-21 16:13:37 +0200465 # Cancel job if a newer commit is pushed to the same branch
466 interruptible: true
Eric Engestrom46d23c02019-01-20 11:26:53 +0000467 artifacts:
Michel Dänzer0103f022020-03-06 12:35:17 +0100468 name: "mesa_${CI_JOB_NAME}"
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700469 when: always
470 paths:
471 - _build/meson-logs/*.txt
472 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200473 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700474 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700475
476# Just Linux
477.build-linux:
478 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200479 variables:
480 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100481 CCACHE_COMPRESS: "true"
482 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000483 # Use ccache transparently, and print stats before/after
484 before_script:
485 - export PATH="/usr/lib/ccache:$PATH"
486 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100487 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000488 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000489 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000490
Dylan Baker19851c92019-10-23 14:36:19 -0700491.build-windows:
492 extends: .build-common
493 tags:
Daniel Stone07885cb2020-03-24 11:11:36 +0000494 - windows
495 - docker
496 - "1809"
Daniel Stone9197fd52020-03-30 15:58:51 +0100497 - mesa
Dylan Baker19851c92019-10-23 14:36:19 -0700498 cache:
499 key: ${CI_JOB_NAME}
500 paths:
501 - subprojects/packagecache
502
Eric Engestrom46d23c02019-01-20 11:26:53 +0000503.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100504 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700505 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100506 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100507 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100508 variables:
509 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000510 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200511 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000512
Eric Engestrom06b245b2019-01-23 15:46:10 +0000513.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100514 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700515 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100516 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100517 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000518 script:
Eric Anholtfd24a952020-06-26 10:59:41 -0700519 - env SCONSFLAGS="-j${FDO_CI_CONCURRENT:-4}" .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000520
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100521meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200522 extends:
523 - .meson-build
524 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200525 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700526 UNWIND: "enabled"
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200527 DRI_LOADERS: >
528 -D glx=dri
Dylan Baker138c0032020-05-19 14:01:47 -0700529 -D gbm=enabled
530 -D egl=enabled
Eric Engestrome00adef2019-06-25 15:44:16 +0100531 -D platforms=x11
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100532 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700533 -D dri3=enabled
Tomeu Vizoso6c8b9212020-07-03 10:04:20 +0200534 GALLIUM_DRIVERS: "swrast,virgl,radeonsi"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100535 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100536 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800537 EXTRA_OPTION: >
538 -D werror=true
Tomeu Vizoso6c8b9212020-07-03 10:04:20 +0200539 UPLOAD_FOR_LAVA: 1
540 DEBIAN_ARCH: amd64
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100541 script:
542 - .gitlab-ci/meson-build.sh
543 - .gitlab-ci/prepare-artifacts.sh
544
Michel Dänzerc56f0912020-03-12 12:29:40 +0100545meson-gallium:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100546 extends: .meson-build
547 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700548 UNWIND: "enabled"
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100549 DRI_LOADERS: >
550 -D glx=dri
Dylan Baker138c0032020-05-19 14:01:47 -0700551 -D gbm=enabled
552 -D egl=enabled
Eric Engestrome00adef2019-06-25 15:44:16 +0100553 -D platforms=x11,wayland
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200554 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700555 -D dri3=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200556 -D gallium-extra-hud=true
Dylan Baker138c0032020-05-19 14:01:47 -0700557 -D gallium-vdpau=enabled
558 -D gallium-xvmc=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200559 -D gallium-omx=bellagio
Dylan Baker138c0032020-05-19 14:01:47 -0700560 -D gallium-va=enabled
561 -D gallium-xa=enabled
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200562 -D gallium-nine=true
563 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100564 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
Dave Airlieb38879f2020-06-19 16:40:27 +1000565 VULKAN_DRIVERS: swrast
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200566 EXTRA_OPTION: >
567 -D osmesa=gallium
568 -D tools=all
Timothy Arceri1af1eb92020-07-08 13:56:51 +1000569 -D werror=true
Michel Dänzer59fcb012019-10-23 18:42:53 +0200570 script:
571 - .gitlab-ci/meson-build.sh
572 - .gitlab-ci/run-shader-db.sh
Rob Clarkddcee242020-07-24 10:34:47 -0700573 - src/freedreno/.gitlab-ci/run-fdtools.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200574
Eric Anholt373e25e2020-08-24 10:15:35 -0700575# Test a release build with -Werror so new warnings don't sneak in.
576meson-release:
577 extends: .meson-build
578 variables:
579 UNWIND: "enabled"
580 DRI_LOADERS: >
581 -D glx=dri
582 -D gbm=enabled
583 -D egl=enabled
584 -D platforms=x11,wayland
585 GALLIUM_ST: >
586 -D dri3=enabled
587 -D gallium-extra-hud=true
588 -D gallium-vdpau=enabled
589 -D gallium-xvmc=disabled
590 -D gallium-omx=disabled
591 -D gallium-va=enabled
592 -D gallium-xa=enabled
593 -D gallium-nine=false
594 -D gallium-opencl=disabled
595 -D llvm=false
596 GALLIUM_DRIVERS: "nouveau,kmsro,r300,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
597 BUILDTYPE: "release"
598 EXTRA_OPTION: >
599 -D osmesa=none
600 -D tools=all
601 -D werror=true
602 script:
603 - .gitlab-ci/meson-build.sh
604
Michel Dänzerc56f0912020-03-12 12:29:40 +0100605meson-classic:
606 extends: .meson-build
607 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700608 UNWIND: "enabled"
Michel Dänzerc56f0912020-03-12 12:29:40 +0100609 DRI_LOADERS: >
610 -D glx=dri
Dylan Baker138c0032020-05-19 14:01:47 -0700611 -D gbm=enabled
612 -D egl=enabled
Michel Dänzerc56f0912020-03-12 12:29:40 +0100613 -D platforms=x11,wayland,drm,surfaceless
614 DRI_DRIVERS: "auto"
615 EXTRA_OPTION: >
616 -D osmesa=classic
617 -D tools=all
Timothy Arceria1b89db2020-07-03 13:10:09 +1000618 -D werror=true
Michel Dänzerc56f0912020-03-12 12:29:40 +0100619
Kristian H. Kristensen879444a2020-07-28 15:35:36 -0700620meson-android:
621 extends: .meson-build
622 variables:
623 UNWIND: "disabled"
624 DRI_LOADERS: >
625 -D glx=disabled
626 -D gbm=disabled
627 -D egl=enabled
628 -D platforms=android
629 GALLIUM_DRIVERS: freedreno
630 VULKAN_DRIVERS: freedreno,intel,amd
631 EXTRA_OPTION: >
632 -D android-stub=true
633 -D werror=true
634 GALLIUM_ST: >
635 -D dri3=disabled
636 -D gallium-vdpau=disabled
637 -D gallium-xvmc=disabled
638 -D gallium-omx=disabled
639 -D gallium-va=disabled
640 -D gallium-xa=disabled
641 -D gallium-nine=false
642 -D gallium-opencl=disabled
643
Michel Dänzere5364462019-09-13 11:59:43 +0200644.meson-cross:
645 extends:
646 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100647 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200648 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700649 UNWIND: "disabled"
Michel Dänzere5364462019-09-13 11:59:43 +0200650 DRI_LOADERS: >
651 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700652 -D gbm=disabled
653 -D egl=enabled
Eric Engestroma38e21d2019-06-25 13:47:04 +0100654 -D platforms=[]
Michel Dänzere5364462019-09-13 11:59:43 +0200655 -D osmesa=none
656 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700657 -D dri3=disabled
658 -D gallium-vdpau=disabled
659 -D gallium-xvmc=disabled
Michel Dänzere5364462019-09-13 11:59:43 +0200660 -D gallium-omx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700661 -D gallium-va=disabled
662 -D gallium-xa=disabled
Michel Dänzere5364462019-09-13 11:59:43 +0200663 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100664 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200665
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200666.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100667 extends:
668 - .meson-cross
669 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200670 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200671 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200672 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100673 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200674 tags:
675 - aarch64
676
677meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100678 extends:
679 - .meson-arm
680 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200681 variables:
682 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200683 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800684 EXTRA_OPTION: >
Dylan Baker138c0032020-05-19 14:01:47 -0700685 -D llvm=disabled
Tomeu Vizosodcd171f2020-04-01 13:07:46 +0200686 UPLOAD_FOR_LAVA: 1
687 DEBIAN_ARCH: armhf
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100688 script:
689 - .gitlab-ci/meson-build.sh
690 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200691
692meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200693 extends:
694 - .meson-arm
695 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200696 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100697 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800698 EXTRA_OPTION: >
Dylan Baker138c0032020-05-19 14:01:47 -0700699 -D llvm=disabled
Tomeu Vizosodcd171f2020-04-01 13:07:46 +0200700 UPLOAD_FOR_LAVA: 1
701 DEBIAN_ARCH: arm64
Michel Dänzer59fcb012019-10-23 18:42:53 +0200702 script:
703 - .gitlab-ci/meson-build.sh
704 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200705
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100706meson-arm64-build-test:
707 extends:
708 - .meson-arm
709 - .ci-deqp-artifacts
710 variables:
711 VULKAN_DRIVERS: "amd"
Tomeu Vizosoa9560932020-08-03 16:19:38 +0200712 EXTRA_OPTION: >
713 -Dtools=panfrost
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100714 script:
715 - .gitlab-ci/meson-build.sh
716
Michel Dänzera2cce702019-03-20 15:58:31 +0100717meson-clang:
718 extends: .meson-build
719 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700720 UNWIND: "enabled"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100721 DRI_LOADERS: >
722 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100723 DRI_DRIVERS: "auto"
724 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100725 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100726 CC: "ccache clang-9"
727 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100728
Daniel Stoneb8f2d712020-08-28 19:08:39 +0100729.meson-windows-vs2019:
Dylan Baker19851c92019-10-23 14:36:19 -0700730 extends:
731 - .build-windows
Daniel Stone07885cb2020-03-24 11:11:36 +0000732 - .use-windows_build_vs2019
Michel Dänzercc9493f2020-02-27 18:27:56 +0100733 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700734 script:
Daniel Stone07885cb2020-03-24 11:11:36 +0000735 - . .\.gitlab-ci\windows\mesa_build.ps1
Dylan Baker19851c92019-10-23 14:36:19 -0700736
Michel Dänzer82b30092019-05-03 18:19:25 +0200737scons-win64:
738 extends: .scons-build
739 variables:
Jose Fonseca27d58a12020-03-28 10:36:28 +0000740 SCONS_TARGET: platform=windows machine=x86_64 debug=1
Michel Dänzer82b30092019-05-03 18:19:25 +0200741 SCONS_CHECK_COMMAND: "true"
Jose Fonseca27d58a12020-03-28 10:36:28 +0000742 allow_failure: true
Eric Engestrom89a74672019-01-21 09:42:37 +0000743
Michel Dänzer68977152019-05-03 10:58:48 +0200744meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000745 extends: .meson-build
746 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700747 UNWIND: "enabled"
Eric Engestromb5a70af2019-01-28 18:05:22 +0000748 DRI_LOADERS: >
749 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700750 -D egl=disabled
751 -D gbm=disabled
Michel Dänzer262e3882020-05-30 23:55:28 +0200752 GALLIUM_DRIVERS: "r600,radeonsi"
Eric Engestromb5a70af2019-01-28 18:05:22 +0000753 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700754 -D dri3=disabled
755 -D gallium-vdpau=disabled
756 -D gallium-xvmc=disabled
Eric Engestromb5a70af2019-01-28 18:05:22 +0000757 -D gallium-omx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700758 -D gallium-va=disabled
759 -D gallium-xa=disabled
Eric Engestromb5a70af2019-01-28 18:05:22 +0000760 -D gallium-nine=false
761 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200762 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200763 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200764 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200765
766meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200767 extends:
768 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100769 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200770 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700771 UNWIND: "disabled"
Michel Dänzer8a199922019-09-06 17:04:47 +0200772 DRI_LOADERS: >
773 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700774 -D egl=disabled
775 -D gbm=disabled
Eric Engestrome00adef2019-06-25 15:44:16 +0100776 -D platforms=[]
Michel Dänzer8a199922019-09-06 17:04:47 +0200777 GALLIUM_DRIVERS: "i915,r600"
778 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200779 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
780 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
781 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Michel Dänzer262e3882020-05-30 23:55:28 +0200782 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
783 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000784
Michel Dänzer82b30092019-05-03 18:19:25 +0200785meson-vulkan:
786 extends: .meson-build
787 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700788 UNWIND: "disabled"
Michel Dänzer82b30092019-05-03 18:19:25 +0200789 DRI_LOADERS: >
790 -D glx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700791 -D gbm=disabled
792 -D egl=disabled
Eric Engestrome00adef2019-06-25 15:44:16 +0100793 -D platforms=x11,wayland
Michel Dänzer82b30092019-05-03 18:19:25 +0200794 -D osmesa=none
795 GALLIUM_ST: >
Dylan Baker138c0032020-05-19 14:01:47 -0700796 -D dri3=enabled
797 -D gallium-vdpau=disabled
798 -D gallium-xvmc=disabled
Michel Dänzer82b30092019-05-03 18:19:25 +0200799 -D gallium-omx=disabled
Dylan Baker138c0032020-05-19 14:01:47 -0700800 -D gallium-va=disabled
801 -D gallium-xa=disabled
Michel Dänzer82b30092019-05-03 18:19:25 +0200802 -D gallium-nine=false
803 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200804 -D b_sanitize=undefined
805 -D c_args=-fno-sanitize-recover=all
806 -D cpp_args=-fno-sanitize-recover=all
807 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200808 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200809 EXTRA_OPTION: >
810 -D vulkan-overlay-layer=true
Rhys Perry54394a42020-06-03 14:25:12 +0100811 -D build-aco-tests=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800812 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200813
Eric Anholt11aa32a2019-07-11 12:58:28 -0700814meson-i386:
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200815 extends:
816 - .meson-cross
817 - .use-i386_build
Eric Anholt11aa32a2019-07-11 12:58:28 -0700818 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100819 CROSS: i386
Samuel Pitoiset529c0ba2020-03-04 09:37:46 +0100820 VULKAN_DRIVERS: intel,amd
Michel Dänzera0591862020-03-12 12:31:05 +0100821 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700822 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700823 -D vulkan-overlay-layer=true
Eric Anholtf6e59912019-12-16 21:23:02 -0800824 -D werror=true
Eric Anholt11aa32a2019-07-11 12:58:28 -0700825
Michel Dänzer65610ec2020-01-30 18:21:15 +0100826meson-s390x:
827 extends:
828 - .meson-cross
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200829 - .use-s390x_build
Michel Dänzer130c0ba2020-03-18 18:41:43 +0100830 tags:
831 - kvm
Michel Dänzer65610ec2020-01-30 18:21:15 +0100832 variables:
833 CROSS: s390x
Michel Dänzer6c99de982020-05-23 16:07:53 +0200834 EXTRA_OPTION: >
835 -D werror=true
Michel Dänzer65610ec2020-01-30 18:21:15 +0100836 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100837
838meson-ppc64el:
839 extends:
840 - meson-s390x
Michel Dänzer3acd5a62020-06-01 19:08:30 +0200841 - .use-ppc64el_build
Michel Dänzer65610ec2020-01-30 18:21:15 +0100842 variables:
843 CROSS: ppc64el
Michel Dänzer6c99de982020-05-23 16:07:53 +0200844 EXTRA_OPTION: ""
Michel Dänzer8be81f82020-01-31 16:07:10 +0100845 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100846 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100847
Dylan Baker449f8312019-10-11 09:04:14 -0700848meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700849 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100850 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700851 variables:
Dylan Baker138c0032020-05-19 14:01:47 -0700852 UNWIND: "disabled"
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700853 DRI_DRIVERS: ""
854 GALLIUM_DRIVERS: "swrast"
855 EXTRA_OPTION: >
Dylan Baker138c0032020-05-19 14:01:47 -0700856 -Dllvm=disabled
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700857 -Dosmesa=gallium
858 --cross-file=.gitlab-ci/x86_64-w64-mingw32
859
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100860.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200861 extends:
862 - .ci-run-policy
Michel Dänzerd9693c62020-07-21 16:13:37 +0200863 # Cancel job if a newer commit is pushed to the same branch
864 interruptible: true
Eric Anholt46daaca2019-06-28 16:35:32 -0700865 variables:
866 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200867 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700868 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
869 - rm -rf install
870 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100871 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700872 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800873 when: always
Michel Dänzer0103f022020-03-06 12:35:17 +0100874 name: "mesa_${CI_JOB_NAME}"
Eric Anholt46daaca2019-06-28 16:35:32 -0700875 paths:
876 - results/
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100877
878.test-gl:
879 extends:
880 - .test
881 variables:
882 TAG: *x86_test-gl
883 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200884 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100885 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100886 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700887
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100888.test-vk:
889 extends:
890 - .test
891 variables:
892 TAG: *x86_test-vk
893 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
894 needs:
895 - meson-testing
896 - x86_test-vk
897
Michel Dänzer576f7b62019-10-22 17:16:52 +0200898.piglit-test:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100899 extends:
900 - .test-gl
901 - .llvmpipe-rules
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100902 artifacts:
903 when: on_failure
Michel Dänzer0103f022020-03-06 12:35:17 +0100904 name: "mesa_${CI_JOB_NAME}"
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100905 paths:
906 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200907 variables:
908 LIBGL_ALWAYS_SOFTWARE: 1
909 PIGLIT_NO_WINDOW: 1
910 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100911 - install/piglit/run.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200912
913piglit-quick_gl:
914 extends: .piglit-test
915 variables:
916 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000917 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200918 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100919 --process-isolation false
Eric Anholt3097efe2019-12-04 16:13:38 -0800920 -x egl_ext_device_
921 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800922 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200923 -x glx-multithread-clearbuffer
924 -x glx-multithread-shader-compile
925 -x max-texture-size
926 -x maxsize
927 PIGLIT_PROFILES: quick_gl
928
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100929piglit-glslparser:
930 extends: .piglit-test
931 variables:
932 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000933 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100934 PIGLIT_PROFILES: glslparser
935
936piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200937 extends: .piglit-test
938 variables:
939 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000940 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100941 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200942
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100943.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200944 variables:
945 DEQP_SKIPS: deqp-default-skips.txt
946 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100947 - ./install/deqp-runner.sh
Michel Dänzer576f7b62019-10-22 17:16:52 +0200948
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100949.deqp-test-gl:
950 extends:
951 - .test-gl
952 - .deqp-test
953
954.deqp-test-vk:
955 extends:
956 - .test-vk
957 - .deqp-test
958 variables:
959 DEQP_VER: vk
960
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100961.fossilize-test:
962 extends: .test-vk
963 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100964 - ./install/fossilize-runner.sh
Samuel Pitoiset276e6d72020-06-25 11:21:12 +0200965 artifacts:
966 when: on_failure
967 name: "mesa_${CI_JOB_NAME}"
968 paths:
969 - results/
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100970
Michel Dänzer71436f92020-03-03 18:17:12 +0100971llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700972 variables:
973 DEQP_VER: gles2
Dave Airliee6b2af52019-12-03 15:23:45 +1000974 NIR_VALIDATE: 0
Eric Anholtfd24a952020-06-26 10:59:41 -0700975 # Don't use threads inside llvmpipe, we've already got all cores
976 # busy at the deqp-runner level.
Eric Anholtf08c8102019-11-04 10:54:41 -0800977 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700978 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
979 LIBGL_ALWAYS_SOFTWARE: "true"
Eric Anholt8b221e02020-04-17 12:39:32 -0700980 DEQP_EXPECTED_RENDERER: llvmpipe
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100981 extends:
982 - .deqp-test-gl
983 - .llvmpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700984
Michel Dänzer71436f92020-03-03 18:17:12 +0100985softpipe-gles2:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +0100986 extends:
987 - llvmpipe-gles2
988 - .softpipe-rules
Eric Anholt553cd822019-08-09 10:32:40 -0700989 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700990 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800991 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700992 GALLIUM_DRIVER: "softpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -0700993 DEQP_EXPECTED_RENDERER: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700994
Michel Dänzer71436f92020-03-03 18:17:12 +0100995softpipe-gles3:
Eric Anholt553cd822019-08-09 10:32:40 -0700996 variables:
997 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100998 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800999
Michel Dänzer71436f92020-03-03 18:17:12 +01001000softpipe-gles31:
Michel Dänzer589d8662020-07-21 16:36:28 +02001001 parallel: 2
Eric Anholt52843ec2019-11-05 10:31:29 -08001002 variables:
1003 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +01001004 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -07001005
Eric Anholt86840612020-08-25 13:43:27 -07001006# Note that KHR-GL3* test sets include all tests from the previous
1007# version, so we only need to run one test list (unlike dEQP-GLES,
1008# where the test sets are separate).
1009softpipe-gl:
1010 variables:
1011 DEQP_VER: gl33
1012 extends:
1013 - softpipe-gles2
1014
Tomeu Vizoso2102d5e2020-05-12 10:18:48 +02001015virgl-gles2-on-gl:
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +02001016 variables:
1017 DEQP_VER: gles2
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +02001018 NIR_VALIDATE: 0
1019 DEQP_NO_SAVE_RESULTS: 1
Daniel Stonee513d8d2020-08-17 18:47:16 +01001020 DEQP_SKIPS: deqp-virgl-gl-skips.txt
Eric Anholtfd24a952020-06-26 10:59:41 -07001021 # Don't use threads inside llvmpipe, we've already got all cores
1022 # busy at the deqp-runner level.
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +02001023 LP_NUM_THREADS: 0
Tomeu Vizoso2102d5e2020-05-12 10:18:48 +02001024 DEQP_EXPECTED_FAILS: deqp-virgl-gl-fails.txt
1025 DEQP_OPTIONS: "--deqp-log-images=disable"
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +02001026 LIBGL_ALWAYS_SOFTWARE: "true"
1027 GALLIUM_DRIVER: "virpipe"
Eric Anholt8b221e02020-04-17 12:39:32 -07001028 DEQP_EXPECTED_RENDERER: virgl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +02001029 extends:
1030 - .deqp-test-gl
1031 - .virgl-rules
1032
Tomeu Vizoso2102d5e2020-05-12 10:18:48 +02001033virgl-gles3-on-gl:
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +02001034 variables:
1035 DEQP_VER: gles3
Tomeu Vizoso2102d5e2020-05-12 10:18:48 +02001036 DEQP_RUNNER_OPTIONS: "--timeout 180"
1037 extends: virgl-gles2-on-gl
Tomeu Vizosoad3ef6d2020-04-01 09:17:25 +02001038
Tomeu Vizoso2102d5e2020-05-12 10:18:48 +02001039virgl-gles31-on-gl:
Michel Dänzer589d8662020-07-21 16:36:28 +02001040 parallel: 2
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +02001041 variables:
1042 DEQP_VER: gles31
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +02001043 MESA_GLES_VERSION_OVERRIDE: "3.1"
1044 MESA_GLSL_VERSION_OVERRIDE: "310"
Dave Airliec8c74502020-06-04 12:10:40 +10001045 MESA_EXTENSION_OVERRIDE: "-GL_OES_tessellation_shader"
Tomeu Vizoso2102d5e2020-05-12 10:18:48 +02001046 extends: virgl-gles3-on-gl
Tomeu Vizoso5a5316e2020-04-21 14:51:59 +02001047
Tomeu Vizoso287bf5f2020-05-13 09:46:06 +02001048virgl-gl30-on-gl:
1049 variables:
1050 DEQP_VER: gl30
1051 extends: virgl-gles2-on-gl
1052
1053virgl-gl31-on-gl:
1054 variables:
1055 DEQP_VER: gl31
1056 extends: virgl-gles2-on-gl
1057
1058virgl-gl32-on-gl:
1059 variables:
1060 DEQP_VER: gl32
1061 extends: virgl-gles2-on-gl
1062
Eric Anholt8edaa842020-03-19 11:45:01 -07001063# Rules for tests that should not be present in MRs or the main
1064# project's pipeline (don't block marge or report red on
1065# mesa/mesamaster) but should be present on pipelines in personal
1066# branches (so you can opt in to running the flaky test when you want
1067# to).
1068.test-manual:
1069 rules:
Benjamin Tissoires1a3eb432020-07-07 15:02:35 +02001070 - *ignore_scheduled_pipelines
Michel Dänzer6a8e5dd2020-04-11 15:32:02 +02001071 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
1072 changes:
1073 *all_paths
1074 when: manual
1075 - when: never
Eric Anholt8edaa842020-03-19 11:45:01 -07001076
Tomeu Vizoso2102d5e2020-05-12 10:18:48 +02001077virgl-gles2-on-gles:
1078 variables:
1079 VIRGL_HOST_API: GLES
1080 DEQP_EXPECTED_FAILS: deqp-virgl-gles-fails.txt
1081 extends:
1082 - virgl-gles2-on-gl
1083 - .test-manual
1084
1085virgl-gles3-on-gles:
1086 variables:
1087 VIRGL_HOST_API: GLES
1088 DEQP_EXPECTED_FAILS: deqp-virgl-gles-fails.txt
1089 extends:
1090 - virgl-gles3-on-gl
1091 - .test-manual
1092
1093virgl-gles31-on-gles:
1094 variables:
1095 VIRGL_HOST_API: GLES
1096 DEQP_EXPECTED_FAILS: deqp-virgl-gles-fails.txt
1097 extends:
1098 - virgl-gles31-on-gl
1099 - .test-manual
1100
Fritz Koenig2a98cf32020-02-12 19:31:24 +00001101arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +01001102 extends:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001103 - arm64_a306_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -07001104 variables:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001105 BM_KERNEL: /lava-files/cheza-kernel
1106 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 root=/dev/nfs rw nfsrootdebug nfsroot=,tcp,nfsvers=4.2 init=/init"
Eric Anholt6f0dc082019-06-28 16:35:32 -07001107 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
Eric Anholtc19b7fc2020-08-19 10:43:54 -07001108 DEQP_FLAKES: deqp-freedreno-a630-flakes.txt
Eric Anholt72fe7b92020-06-08 15:36:16 -07001109 GIT_STRATEGY: none
Eric Anholt8b221e02020-04-17 12:39:32 -07001110 DEQP_EXPECTED_RENDERER: FD630
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001111 DEQP_NO_SAVE_RESULTS: ""
Eric Anholt6f0dc082019-06-28 16:35:32 -07001112 tags:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001113 - google-freedreno-cheza
1114 script:
Eric Anholt72fe7b92020-06-08 15:36:16 -07001115 - ./install/bare-metal/cros-servo.sh
Eric Anholt6f0dc082019-06-28 16:35:32 -07001116
Fritz Koenig2a98cf32020-02-12 19:31:24 +00001117arm64_a630_gles31:
1118 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -07001119 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +02001120 DEQP_VER: gles31
Eric Anholtd9f7fce2020-06-18 12:55:41 -07001121 # gles31 is about 12 minutes with validation enabled.
1122 NIR_VALIDATE: 0
Eric Anholt6f0dc082019-06-28 16:35:32 -07001123
Fritz Koenig2a98cf32020-02-12 19:31:24 +00001124arm64_a630_gles3:
1125 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -07001126 variables:
1127 DEQP_VER: gles3
Eric Anholtd9f7fce2020-06-18 12:55:41 -07001128 # gles3 is about 15 minutes with validation enabled.
1129 NIR_VALIDATE: 0
Eric Anholt6f0dc082019-06-28 16:35:32 -07001130
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001131# We almost always manage to lower UBOs back to constant uploads in
1132# the test suite, so get a little testing for it here.
Rob Clarke5169b12020-07-16 14:20:22 -07001133arm64_a630_noubo:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001134 extends: arm64_a630_gles31
Eric Anholt5082ac02020-04-17 12:02:37 -07001135 variables:
1136 DEQP_VER: gles31
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001137 IR3_SHADER_DEBUG: nouboopt
1138 DEQP_CASELIST_FILTER: "functional.*ubo"
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001139
1140# The driver does some guessing as to whether to render using gmem
1141# or bypass, and some GLES3.1 features interact with either one.
1142# Do a little testing with gmem and bypass forced.
Rob Clarke5169b12020-07-16 14:20:22 -07001143arm64_a630_bypass:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001144 extends: arm64_a630_gles31
1145 variables:
Eric Anholt5082ac02020-04-17 12:02:37 -07001146 CI_NODE_INDEX: 1
1147 CI_NODE_TOTAL: 5
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001148 FD_MESA_DEBUG: nogmem
1149 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
1150
Rob Clarke5169b12020-07-16 14:20:22 -07001151arm64_a630_traces:
Eric Anholtb88c46f2020-06-08 14:51:59 -07001152 extends:
1153 - arm64_a630_gles2
1154 variables:
1155 BARE_METAL_TEST_SCRIPT: "/install/tracie-runner-gl.sh"
1156 DEVICE_NAME: "freedreno-a630"
Tomeu Vizoso7d5f4d32020-08-05 10:17:26 +02001157 DRIVER_NAME: "freedreno"
Eric Anholtb88c46f2020-06-08 14:51:59 -07001158 TRACIE_NO_UNIT_TESTS: 1
Tomeu Vizosod4ca45e2020-07-31 08:13:15 +02001159 TRACIE_UPLOAD_TO_MINIO: 1
Eric Anholtb88c46f2020-06-08 14:51:59 -07001160 # This lets us run several more traces which don't use any features we're
1161 # missing.
1162 MESA_GLSL_VERSION_OVERRIDE: "460"
1163 MESA_GL_VERSION_OVERRIDE: "4.6"
Alexandros Frantzisf4210df2020-09-04 14:20:39 +03001164 artifacts:
1165 reports:
1166 junit: results/junit.xml
Eric Anholtb88c46f2020-06-08 14:51:59 -07001167
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001168# Along with checking gmem path, check that we don't get obvious nir
1169# validation failures (though it's too expensive to have it on for the
1170# full CTS)
Rob Clarke5169b12020-07-16 14:20:22 -07001171arm64_a630_gmem:
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001172 extends: arm64_a630_gles31
1173 variables:
1174 CI_NODE_INDEX: 1
1175 CI_NODE_TOTAL: 5
1176 FD_MESA_DEBUG: nobypass
1177 NIR_VALIDATE: 1
Eric Anholt5082ac02020-04-17 12:02:37 -07001178
Eric Anholt5c0d34c2020-08-27 09:28:53 -07001179arm64_a630_gl:
1180 extends: arm64_a630_gles2
1181 variables:
1182 DEQP_VER: gl30
1183
Jonathan Marekbe33d582020-07-14 10:58:56 -04001184arm64_a630_vk:
Eric Anholt9e11cce2020-05-25 12:57:25 -07001185 extends: arm64_a630_gles2
1186 variables:
1187 DEQP_VER: vk
1188 CI_NODE_INDEX: 1
1189 CI_NODE_TOTAL: 50
1190 VK_DRIVER: freedreno
1191 # Force binning in the main run, which makes sure we render at
1192 # least 2 bins. This is the path that impacts the most different
1193 # features. However, we end up with flaky results in
1194 # dEQP-VK.binding_model.*.geometry and dEQP-VK.glsl.*_vertex.
1195 TU_DEBUG: forcebin
1196
1197# Do a separate sysmem pass over the testcases that really affect sysmem
1198# rendering. This is currently very flaky, leave it as an option for devs
1199# to click play on in their branches.
Rob Clarke5169b12020-07-16 14:20:22 -07001200arm64_a630_vk_sysmem:
Eric Anholt9e11cce2020-05-25 12:57:25 -07001201 extends:
Jonathan Marekbe33d582020-07-14 10:58:56 -04001202 - arm64_a630_vk
Eric Anholt9e11cce2020-05-25 12:57:25 -07001203 variables:
1204 CI_NODE_INDEX: 1
1205 CI_NODE_TOTAL: 10
1206 DEQP_CASELIST_FILTER: "dEQP-VK.renderpass.*"
1207 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
1208 TU_DEBUG: sysmem
1209
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001210.baremetal-test:
1211 extends:
1212 - .ci-run-policy
Eric Anholt109816b2020-06-08 15:09:51 -07001213 - .test
Michel Dänzerd9693c62020-07-21 16:13:37 +02001214 # Cancel job if a newer commit is pushed to the same branch
1215 interruptible: true
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001216 stage: test
Eric Anholt6f4fc4f2020-05-15 11:22:37 -07001217 artifacts:
1218 when: always
1219 name: "mesa_${CI_JOB_NAME}"
1220 paths:
1221 - results/
1222 - serial*.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001223
Eric Anholtaea8c9c2020-03-03 11:44:45 -08001224arm64_a306_gles2:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001225 extends:
1226 - .baremetal-test
Christian Gmeiner839bc2d2020-06-07 23:19:50 +02001227 - .use-arm64_test
Eric Anholtf778c482020-03-18 09:51:03 -07001228 - .freedreno-rules
Eric Anholtaea8c9c2020-03-03 11:44:45 -08001229 variables:
Eric Anholt4bc15e72020-03-03 14:38:09 -08001230 BM_KERNEL: /lava-files/Image.gz
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001231 BM_DTB: /lava-files/apq8016-sbc.dtb
1232 BM_ROOTFS: /lava-files/rootfs-arm64
1233 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
Eric Anholt3b5e71c2020-05-01 09:57:00 -07001234 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt109816b2020-06-08 15:09:51 -07001235 BARE_METAL_TEST_SCRIPT: "/install/deqp-runner.sh"
Eric Anholtaea8c9c2020-03-03 11:44:45 -08001236 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
Eric Anholtc19b7fc2020-08-19 10:43:54 -07001237 DEQP_SKIPS: deqp-default-skips.txt
1238 DEQP_FLAKES: deqp-freedreno-a307-flakes.txt
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001239 DEQP_VER: gles2
1240 DEQP_PARALLEL: 4
Eric Anholt8b221e02020-04-17 12:39:32 -07001241 DEQP_EXPECTED_RENDERER: FD307
Eric Anholt46d9b502020-05-22 15:48:55 -07001242 # Since we can't get artifacts back yet, skip making them.
1243 DEQP_NO_SAVE_RESULTS: 1
Eric Anholtb4bccbd2020-05-15 11:20:44 -07001244 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001245 script:
Eric Anholt72fe7b92020-06-08 15:36:16 -07001246 - ./install/bare-metal/fastboot.sh
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001247 needs:
Christian Gmeiner839bc2d2020-06-07 23:19:50 +02001248 - arm64_test
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001249 - meson-arm64
Eric Anholtaea8c9c2020-03-03 11:44:45 -08001250 tags:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001251 - google-freedreno-db410c
1252
Eric Anholtb4bccbd2020-05-15 11:20:44 -07001253# Fractional run, single threaded, due to flaky results
Eric Anholt8edaa842020-03-19 11:45:01 -07001254arm64_a306_gles3:
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001255 extends:
1256 - arm64_a306_gles2
Eric Anholtcf5ba9d2020-03-03 14:38:09 -08001257 variables:
1258 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -07001259 DEQP_PARALLEL: 1
1260 CI_NODE_INDEX: 1
Eric Anholtb4bccbd2020-05-15 11:20:44 -07001261 CI_NODE_TOTAL: 25
1262 NIR_VALIDATE: 0
Eric Anholtaea8c9c2020-03-03 11:44:45 -08001263
Eric Anholtae442c32020-05-15 16:15:07 -07001264# Fractional runs with debug options. Note that since we're not
1265# hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
1266arm64_a306_gles3_options:
1267 extends: arm64_a306_gles2
1268 variables:
1269 DEQP_VER: gles3
1270 script:
1271 # Check that the non-constbuf UBO case works.
Eric Anholt72fe7b92020-06-08 15:36:16 -07001272 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" ./install/bare-metal/fastboot.sh
Eric Anholtae442c32020-05-15 16:15:07 -07001273
Eric Anholt4bc15e72020-03-03 14:38:09 -08001274arm64_a530_gles2:
1275 extends:
1276 - arm64_a306_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -08001277 variables:
1278 BM_KERNEL: /lava-files/db820c-kernel
1279 BM_DTB: /lava-files/db820c.dtb
Eric Anholt6033c102020-05-19 16:33:10 -07001280 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
1281 # current upstream kernel.
1282 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
Eric Anholt4bc15e72020-03-03 14:38:09 -08001283 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
Eric Anholtc19b7fc2020-08-19 10:43:54 -07001284 DEQP_FLAKES: deqp-freedreno-a530-flakes.txt
Eric Anholt8b221e02020-04-17 12:39:32 -07001285 DEQP_EXPECTED_RENDERER: FD530
Eric Anholtb4bccbd2020-05-15 11:20:44 -07001286 NIR_VALIDATE: 0
Eric Anholt4bc15e72020-03-03 14:38:09 -08001287 tags:
1288 - google-freedreno-db820c
1289
1290arm64_a530_gles3:
1291 extends:
1292 - arm64_a530_gles2
Eric Anholt4bc15e72020-03-03 14:38:09 -08001293 variables:
1294 DEQP_VER: gles3
Eric Anholtfa49a502020-04-22 11:30:38 -07001295 DEQP_PARALLEL: 1
1296 CI_NODE_INDEX: 1
Eric Anholt6bf40c22020-05-19 16:44:14 -07001297 CI_NODE_TOTAL: 40
Eric Anholt4bc15e72020-03-03 14:38:09 -08001298
Eric Anholt6c011522020-04-22 12:08:06 -07001299arm64_a530_gles31:
1300 extends:
1301 - arm64_a530_gles3
1302 variables:
1303 DEQP_VER: gles31
Eric Anholt6bf40c22020-05-19 16:44:14 -07001304 CI_NODE_INDEX: 1
1305 CI_NODE_TOTAL: 10
Eric Anholt6c011522020-04-22 12:08:06 -07001306
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001307# RADV CI
1308.test-radv:
Samuel Pitoiset8f554392020-03-09 17:53:51 +01001309 extends: .radv-rules
Samuel Pitoiset48e92032020-03-06 08:39:25 +01001310 stage: radv
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001311 variables:
1312 VK_DRIVER: radeon
Samuel Pitoiseta44cfac2020-05-04 11:44:45 +02001313 ACO_DEBUG: validateir,validatera
Samuel Pitoiset42a3d822020-02-05 17:04:20 +01001314
Eric Anholt8edaa842020-03-19 11:45:01 -07001315# Can only be triggered manually on personal branches because RADV is the only
1316# driver that does Vulkan testing at the moment.
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001317radv_polaris10_vkcts:
1318 extends:
1319 - .deqp-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -07001320 - .test-radv
1321 - .test-manual
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001322 variables:
Samuel Pitoisetc1a36272019-11-13 11:03:52 +01001323 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
1324 tags:
1325 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001326
Samuel Pitoisete22d5622020-03-06 08:36:14 +01001327radv-fossils:
1328 extends:
1329 - .fossilize-test
1330 - .test-radv
1331 script:
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +02001332 # Pitcairn (GFX6)
1333 - export RADV_FORCE_FAMILY="pitcairn"
1334 - ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +02001335 # Bonaire (GFX7)
1336 - export RADV_FORCE_FAMILY="bonaire"
1337 - ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +02001338 # Polaris10 (GFX8)
Samuel Pitoisete22d5622020-03-06 08:36:14 +01001339 - export RADV_FORCE_FAMILY="polaris10"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001340 - ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +02001341 # Vega10 (GFX9)
Samuel Pitoisete22d5622020-03-06 08:36:14 +01001342 - export RADV_FORCE_FAMILY="gfx900"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001343 - ./install/fossilize-runner.sh
Samuel Pitoisetf9dbca82020-05-04 11:48:46 +02001344 # Navi10 (GFX10)
Samuel Pitoisete22d5622020-03-06 08:36:14 +01001345 - export RADV_FORCE_FAMILY="gfx1010"
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001346 - ./install/fossilize-runner.sh
Samuel Pitoisetac6e2072020-08-10 13:29:14 +02001347 # Sienna Cichlid (GFX10)
1348 - export RADV_FORCE_FAMILY="gfx1030"
1349 - ./install/fossilize-runner.sh
Samuel Pitoiset42a3d822020-02-05 17:04:20 +01001350
Andres Gomez0ac731b12020-02-20 18:26:30 +02001351# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001352.traces-test:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001353 cache:
1354 key: ${CI_JOB_NAME}
1355 paths:
Rohan Garg90a39af2020-02-28 13:48:53 +01001356 - traces-db/
Tomeu Vizosodfe394b2020-07-21 10:48:43 +02001357 variables:
1358 TRACIE_UPLOAD_TO_MINIO: 1
Alexandros Frantzis7e82e252020-09-04 12:44:53 +03001359 artifacts:
1360 reports:
1361 junit: results/junit.xml
Andres Gomez0ac731b12020-02-20 18:26:30 +02001362
1363.traces-test-gl:
1364 extends:
1365 - .test-gl
1366 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001367 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001368 - ./install/tracie-runner-gl.sh
Andres Gomez0ac731b12020-02-20 18:26:30 +02001369
1370.traces-test-vk:
1371 extends:
1372 - .test-vk
1373 - .traces-test
1374 script:
Tomeu Vizoso92f3c512020-03-24 12:58:30 +01001375 - ./install/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001376
1377llvmpipe-traces:
Pierre-Eric Pelloux-Prayer2a9d6fd2019-10-30 20:39:08 +01001378 extends:
1379 - .traces-test-gl
1380 - .llvmpipe-rules
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +02001381 variables:
1382 LIBGL_ALWAYS_SOFTWARE: "true"
1383 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +02001384 DEVICE_NAME: "gl-vmware-llvmpipe"
Tomeu Vizoso7d5f4d32020-08-05 10:17:26 +02001385 DRIVER_NAME: "llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +02001386
1387radv-polaris10-traces:
1388 extends:
1389 - .traces-test-vk
Eric Anholt8edaa842020-03-19 11:45:01 -07001390 - .test-radv
1391 - .test-manual
Andres Gomez0ac731b12020-02-20 18:26:30 +02001392 variables:
1393 DEVICE_NAME: "vk-amd-polaris10"
Tomeu Vizoso7d5f4d32020-08-05 10:17:26 +02001394 DRIVER_NAME: "radv"
Andres Gomez0ac731b12020-02-20 18:26:30 +02001395 tags:
1396 - polaris10
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +02001397
Andres Gomezb6b100c2020-04-24 19:32:42 +03001398radv-raven-traces:
1399 extends:
1400 - .traces-test-vk
1401 - .test-radv
1402 - .test-manual
1403 variables:
1404 DEVICE_NAME: "vk-amd-raven"
Tomeu Vizoso7d5f4d32020-08-05 10:17:26 +02001405 DRIVER_NAME: "radv"
Andres Gomezb6b100c2020-04-24 19:32:42 +03001406 tags:
1407 - raven
1408
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +02001409virgl-traces:
1410 extends:
1411 - .traces-test-gl
1412 - .virgl-rules
1413 variables:
1414 LIBGL_ALWAYS_SOFTWARE: "true"
1415 GALLIUM_DRIVER: "virpipe"
1416 DEVICE_NAME: "gl-virgl"
Tomeu Vizoso7d5f4d32020-08-05 10:17:26 +02001417 DRIVER_NAME: "virgl"
Tomeu Vizoso8cba1a12020-04-21 15:44:03 +02001418 MESA_GLES_VERSION_OVERRIDE: "3.1"
1419 MESA_GLSL_VERSION_OVERRIDE: "310"