Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 1 | variables: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 2 | FDO_UPSTREAM_REPO: mesa/mesa |
Benjamin Tissoires | 7f8a9a1 | 2019-04-02 09:24:00 +0200 | [diff] [blame] | 3 | |
| 4 | include: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 5 | - project: 'freedesktop/ci-templates' |
| 6 | ref: a1699326519fd28526485ce93464e33423bac564 |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 7 | file: '/templates/debian.yml' |
Dylan Baker | 19851c9 | 2019-10-23 14:36:19 -0700 | [diff] [blame] | 8 | - local: '.gitlab-ci/lava-gitlab-ci.yml' |
Pierre-Eric Pelloux-Prayer | 2a9d6fd | 2019-10-30 20:39:08 +0100 | [diff] [blame] | 9 | - local: '.gitlab-ci/test-source-dep.yml' |
Tomeu Vizoso | 7b01f72 | 2019-09-18 16:03:36 +0200 | [diff] [blame] | 10 | |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 11 | stages: |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 12 | - container |
Michel Dänzer | cc9493f | 2020-02-27 18:27:56 +0100 | [diff] [blame] | 13 | - meson-x86_64 |
| 14 | - scons |
| 15 | - meson-misc |
| 16 | - llvmpipe |
| 17 | - softpipe |
| 18 | - freedreno |
| 19 | - panfrost |
| 20 | - misc-tests |
Michel Dänzer | 8775b74 | 2020-01-13 09:45:57 +0100 | [diff] [blame] | 21 | - success |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 22 | |
| 23 | |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 24 | # When to automatically run the CI |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 25 | .ci-run-policy: |
Michel Dänzer | 41797a1 | 2019-09-26 09:27:27 +0200 | [diff] [blame] | 26 | rules: |
Michel Dänzer | 8775b74 | 2020-01-13 09:45:57 +0100 | [diff] [blame] | 27 | # Run pipeline by default for merge requests changing files affecting it |
| 28 | - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME' |
| 29 | changes: &paths |
| 30 | - VERSION |
| 31 | - bin/**/* |
| 32 | # GitLab CI |
| 33 | - .gitlab-ci.yml |
| 34 | - .gitlab-ci/**/* |
| 35 | # Meson |
| 36 | - meson* |
| 37 | - build-support/**/* |
| 38 | - subprojects/**/* |
| 39 | # SCons |
| 40 | - SConstruct |
| 41 | - scons/**/* |
| 42 | - common.py |
| 43 | # Source code |
| 44 | - include/**/* |
| 45 | - src/**/* |
| 46 | when: on_success |
| 47 | # Run pipeline by default in the main project if files affecting it were |
| 48 | # changed |
| 49 | - if: '$CI_PROJECT_PATH == "mesa/mesa"' |
| 50 | changes: |
| 51 | *paths |
| 52 | when: on_success |
| 53 | # Allow triggering jobs manually on branches of forked projects |
Michel Dänzer | 5a6a88f | 2020-01-20 18:39:50 +0100 | [diff] [blame] | 54 | - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME' |
Michel Dänzer | 8775b74 | 2020-01-13 09:45:57 +0100 | [diff] [blame] | 55 | when: manual |
| 56 | # Otherwise, most jobs won't run |
| 57 | - when: never |
Michel Dänzer | 6140ed3 | 2019-03-26 18:39:41 +0100 | [diff] [blame] | 58 | retry: |
| 59 | max: 2 |
| 60 | when: |
| 61 | - runner_system_failure |
Eric Engestrom | ac78ca4 | 2019-11-12 23:42:21 +0000 | [diff] [blame] | 62 | # Cancel CI run if a newer commit is pushed to the same branch |
| 63 | interruptible: true |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 64 | |
Michel Dänzer | 8775b74 | 2020-01-13 09:45:57 +0100 | [diff] [blame] | 65 | success: |
| 66 | stage: success |
| 67 | image: debian:stable-slim |
| 68 | only: |
| 69 | - merge_requests |
| 70 | except: |
| 71 | changes: |
| 72 | *paths |
Michel Dänzer | 2dd0cc6 | 2020-01-20 18:34:34 +0100 | [diff] [blame] | 73 | variables: |
| 74 | GIT_STRATEGY: none |
Michel Dänzer | 8775b74 | 2020-01-13 09:45:57 +0100 | [diff] [blame] | 75 | script: |
| 76 | - echo "Dummy job to make sure every merge request pipeline runs at least one job" |
| 77 | |
| 78 | |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 79 | .ci-deqp-artifacts: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 80 | artifacts: |
Michel Dänzer | 0103f02 | 2020-03-06 12:35:17 +0100 | [diff] [blame] | 81 | name: "mesa_${CI_JOB_NAME}" |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 82 | when: always |
| 83 | untracked: false |
| 84 | paths: |
| 85 | # Watch out! Artifacts are relative to the build dir. |
| 86 | # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521 |
| 87 | - artifacts |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 88 | |
Tomeu Vizoso | 22d9764 | 2019-12-17 11:50:14 +0100 | [diff] [blame] | 89 | # Build the CI docker images. |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 90 | # |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 91 | # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 92 | # image doesn't exist yet, the container stage job generates it. |
| 93 | # |
| 94 | # In order to generate a new image, one should generally change the tag. |
| 95 | # While removing the image from the registry would also work, that's not |
| 96 | # recommended except for ephemeral images during development: Replacing |
| 97 | # an image after a significant amount of time might pull in newer |
| 98 | # versions of gcc/clang or other packages, which might break the build |
| 99 | # with older commits using the same tag. |
| 100 | # |
| 101 | # After merging a change resulting in generating a new image to the |
| 102 | # main repository, it's recommended to remove the image from the source |
| 103 | # repository's container registry, so that the image from the main |
| 104 | # repository's registry will be used there as well. |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 105 | |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 106 | .container: |
| 107 | stage: container |
| 108 | extends: |
| 109 | - .ci-run-policy |
| 110 | variables: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 111 | FDO_DISTRIBUTION_VERSION: buster-slim |
| 112 | FDO_REPO_SUFFIX: $CI_JOB_NAME |
| 113 | FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh' |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 114 | # no need to pull the whole repo to build the container image |
| 115 | GIT_STRATEGY: none |
| 116 | |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 117 | # Debian 10 based x86 build image |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 118 | x86_build: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 119 | extends: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 120 | - .fdo.container-ifnot-exists@debian |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 121 | - .container |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 122 | variables: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 123 | FDO_DISTRIBUTION_TAG: &x86_build "2020-03-13" |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 124 | |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 125 | .use-x86_build: |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 126 | variables: |
| 127 | TAG: *x86_build |
| 128 | image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG" |
Michel Dänzer | eb86cba | 2019-10-10 15:27:17 +0200 | [diff] [blame] | 129 | needs: |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 130 | - x86_build |
Michel Dänzer | eb86cba | 2019-10-10 15:27:17 +0200 | [diff] [blame] | 131 | |
Samuel Pitoiset | 520a77d | 2019-11-18 09:15:12 +0100 | [diff] [blame] | 132 | # Debian 10 based x86 test image for GL |
| 133 | x86_test-gl: |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 134 | extends: x86_build |
Michel Dänzer | aebf43d | 2019-11-05 18:52:24 +0100 | [diff] [blame] | 135 | variables: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 136 | FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-03-13" |
Michel Dänzer | aebf43d | 2019-11-05 18:52:24 +0100 | [diff] [blame] | 137 | |
Samuel Pitoiset | f2a594f | 2019-11-18 09:23:18 +0100 | [diff] [blame] | 138 | # Debian 10 based x86 test image for VK |
| 139 | x86_test-vk: |
| 140 | extends: x86_build |
| 141 | variables: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 142 | FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-03-16" |
Samuel Pitoiset | f2a594f | 2019-11-18 09:23:18 +0100 | [diff] [blame] | 143 | |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 144 | # Debian 9 based x86 build image (old LLVM) |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 145 | x86_build_old: |
| 146 | extends: x86_build |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 147 | variables: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 148 | FDO_DISTRIBUTION_TAG: &x86_build_old "2019-09-18" |
| 149 | FDO_DISTRIBUTION_VERSION: stretch-slim |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 150 | |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 151 | .use-x86_build_old: |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 152 | variables: |
| 153 | TAG: *x86_build_old |
| 154 | image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG" |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 155 | needs: |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 156 | - x86_build_old |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 157 | |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 158 | # Debian 10 based ARM build image |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 159 | arm_build: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 160 | extends: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 161 | - .fdo.container-ifnot-exists@debian@arm64v8 |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 162 | - .container |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 163 | variables: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 164 | FDO_DISTRIBUTION_TAG: &arm_build "2020-03-13" |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 165 | |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 166 | .use-arm_build: |
Michel Dänzer | b4d3ae2 | 2019-11-04 09:54:09 +0100 | [diff] [blame] | 167 | variables: |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 168 | TAG: *arm_build |
| 169 | image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG" |
| 170 | needs: |
| 171 | - arm_build |
| 172 | |
| 173 | # Debian 10 based ARM test image |
| 174 | arm_test: |
| 175 | extends: arm_build |
| 176 | variables: |
Eric Anholt | af7dca3 | 2020-03-06 13:23:20 -0800 | [diff] [blame^] | 177 | FDO_DISTRIBUTION_TAG: &arm_test "2020-01-30" |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 178 | |
| 179 | .use-arm_test: |
| 180 | variables: |
| 181 | TAG: *arm_test |
| 182 | image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG" |
| 183 | needs: |
| 184 | - meson-arm64 |
| 185 | - arm_test |
Michel Dänzer | b4d3ae2 | 2019-11-04 09:54:09 +0100 | [diff] [blame] | 186 | |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 187 | |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 188 | # BUILD |
| 189 | |
Dylan Baker | 06e4647 | 2019-10-23 14:21:31 -0700 | [diff] [blame] | 190 | # Shared between windows and Linux |
| 191 | .build-common: |
Eric Engestrom | aba78c2 | 2019-10-14 23:52:58 +0100 | [diff] [blame] | 192 | extends: .ci-run-policy |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 193 | artifacts: |
Michel Dänzer | 0103f02 | 2020-03-06 12:35:17 +0100 | [diff] [blame] | 194 | name: "mesa_${CI_JOB_NAME}" |
Eric Anholt | dd3d0b2 | 2019-07-24 09:27:48 -0700 | [diff] [blame] | 195 | when: always |
| 196 | paths: |
| 197 | - _build/meson-logs/*.txt |
| 198 | # scons: |
Michel Dänzer | 5229f27 | 2019-07-26 12:20:41 +0200 | [diff] [blame] | 199 | - build/*/config.log |
Eric Anholt | f60defa | 2019-04-10 15:59:12 -0700 | [diff] [blame] | 200 | - shader-db |
Dylan Baker | 06e4647 | 2019-10-23 14:21:31 -0700 | [diff] [blame] | 201 | |
| 202 | # Just Linux |
| 203 | .build-linux: |
| 204 | extends: .build-common |
Michel Dänzer | e9de19f | 2019-04-04 18:01:27 +0200 | [diff] [blame] | 205 | variables: |
| 206 | CCACHE_COMPILERCHECK: "content" |
Michel Dänzer | 32618ee | 2019-11-20 09:11:35 +0100 | [diff] [blame] | 207 | CCACHE_COMPRESS: "true" |
| 208 | CCACHE_DIR: /cache/mesa/ccache |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 209 | # Use ccache transparently, and print stats before/after |
| 210 | before_script: |
| 211 | - export PATH="/usr/lib/ccache:$PATH" |
| 212 | - export CCACHE_BASEDIR="$PWD" |
Michel Dänzer | 32618ee | 2019-11-20 09:11:35 +0100 | [diff] [blame] | 213 | - ccache --show-stats |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 214 | after_script: |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 215 | - ccache --show-stats |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 216 | |
Dylan Baker | 19851c9 | 2019-10-23 14:36:19 -0700 | [diff] [blame] | 217 | .build-windows: |
| 218 | extends: .build-common |
| 219 | tags: |
| 220 | - mesa-windows |
| 221 | cache: |
| 222 | key: ${CI_JOB_NAME} |
| 223 | paths: |
| 224 | - subprojects/packagecache |
| 225 | |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 226 | .meson-build: |
Eric Engestrom | aba78c2 | 2019-10-14 23:52:58 +0100 | [diff] [blame] | 227 | extends: |
Dylan Baker | 06e4647 | 2019-10-23 14:21:31 -0700 | [diff] [blame] | 228 | - .build-linux |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 229 | - .use-x86_build |
Michel Dänzer | cc9493f | 2020-02-27 18:27:56 +0100 | [diff] [blame] | 230 | stage: meson-x86_64 |
Michel Dänzer | 5f0ff00 | 2019-12-13 11:02:16 +0100 | [diff] [blame] | 231 | variables: |
| 232 | LLVM_VERSION: 9 |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 233 | script: |
Michel Dänzer | cc2b3a9 | 2019-05-03 10:49:43 +0200 | [diff] [blame] | 234 | - .gitlab-ci/meson-build.sh |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 235 | |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 236 | .scons-build: |
Eric Engestrom | aba78c2 | 2019-10-14 23:52:58 +0100 | [diff] [blame] | 237 | extends: |
Dylan Baker | 06e4647 | 2019-10-23 14:21:31 -0700 | [diff] [blame] | 238 | - .build-linux |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 239 | - .use-x86_build |
Michel Dänzer | cc9493f | 2020-02-27 18:27:56 +0100 | [diff] [blame] | 240 | stage: scons |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 241 | variables: |
Eric Anholt | cb655d2 | 2019-11-06 11:14:14 -0800 | [diff] [blame] | 242 | SCONSFLAGS: "-j4" |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 243 | script: |
Michel Dänzer | 0374aac | 2019-09-12 11:34:43 +0200 | [diff] [blame] | 244 | - .gitlab-ci/scons-build.sh |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 245 | |
Samuel Pitoiset | 66b5627 | 2019-11-19 12:23:41 +0100 | [diff] [blame] | 246 | meson-testing: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 247 | extends: |
| 248 | - .meson-build |
| 249 | - .ci-deqp-artifacts |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 250 | variables: |
| 251 | UNWIND: "true" |
| 252 | DRI_LOADERS: > |
| 253 | -D glx=dri |
| 254 | -D gbm=true |
| 255 | -D egl=true |
Samuel Pitoiset | 66b5627 | 2019-11-19 12:23:41 +0100 | [diff] [blame] | 256 | -D platforms=x11,drm,surfaceless |
| 257 | GALLIUM_ST: > |
| 258 | -D dri3=true |
| 259 | GALLIUM_DRIVERS: "swrast" |
Samuel Pitoiset | 40c6a56 | 2019-11-19 14:46:53 +0100 | [diff] [blame] | 260 | VULKAN_DRIVERS: amd |
Samuel Pitoiset | 66b5627 | 2019-11-19 12:23:41 +0100 | [diff] [blame] | 261 | BUILDTYPE: "debugoptimized" |
Eric Anholt | 3c7c021 | 2019-12-16 21:23:02 -0800 | [diff] [blame] | 262 | EXTRA_OPTION: > |
| 263 | -D werror=true |
Samuel Pitoiset | 66b5627 | 2019-11-19 12:23:41 +0100 | [diff] [blame] | 264 | script: |
| 265 | - .gitlab-ci/meson-build.sh |
| 266 | - .gitlab-ci/prepare-artifacts.sh |
| 267 | |
Michel Dänzer | c56f091 | 2020-03-12 12:29:40 +0100 | [diff] [blame] | 268 | meson-gallium: |
Samuel Pitoiset | 66b5627 | 2019-11-19 12:23:41 +0100 | [diff] [blame] | 269 | extends: .meson-build |
| 270 | variables: |
| 271 | UNWIND: "true" |
| 272 | DRI_LOADERS: > |
| 273 | -D glx=dri |
| 274 | -D gbm=true |
| 275 | -D egl=true |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 276 | -D platforms=x11,wayland,drm,surfaceless |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 277 | GALLIUM_ST: > |
| 278 | -D dri3=true |
| 279 | -D gallium-extra-hud=true |
| 280 | -D gallium-vdpau=true |
| 281 | -D gallium-xvmc=true |
| 282 | -D gallium-omx=bellagio |
| 283 | -D gallium-va=true |
| 284 | -D gallium-xa=true |
| 285 | -D gallium-nine=true |
| 286 | -D gallium-opencl=disabled |
Samuel Pitoiset | e6d26d7 | 2019-11-19 14:36:02 +0100 | [diff] [blame] | 287 | GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink" |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 288 | EXTRA_OPTION: > |
| 289 | -D osmesa=gallium |
| 290 | -D tools=all |
Michel Dänzer | 59fcb01 | 2019-10-23 18:42:53 +0200 | [diff] [blame] | 291 | script: |
| 292 | - .gitlab-ci/meson-build.sh |
| 293 | - .gitlab-ci/run-shader-db.sh |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 294 | |
Michel Dänzer | c56f091 | 2020-03-12 12:29:40 +0100 | [diff] [blame] | 295 | meson-classic: |
| 296 | extends: .meson-build |
| 297 | variables: |
| 298 | UNWIND: "true" |
| 299 | DRI_LOADERS: > |
| 300 | -D glx=dri |
| 301 | -D gbm=true |
| 302 | -D egl=true |
| 303 | -D platforms=x11,wayland,drm,surfaceless |
| 304 | DRI_DRIVERS: "auto" |
| 305 | EXTRA_OPTION: > |
| 306 | -D osmesa=classic |
| 307 | -D tools=all |
| 308 | |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 309 | .meson-cross: |
| 310 | extends: |
| 311 | - .meson-build |
Michel Dänzer | cc9493f | 2020-02-27 18:27:56 +0100 | [diff] [blame] | 312 | stage: meson-misc |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 313 | variables: |
| 314 | UNWIND: "false" |
| 315 | DRI_LOADERS: > |
| 316 | -D glx=disabled |
| 317 | -D gbm=false |
| 318 | -D egl=true |
| 319 | -D platforms=surfaceless |
| 320 | -D osmesa=none |
| 321 | GALLIUM_ST: > |
| 322 | -D dri3=false |
| 323 | -D gallium-vdpau=false |
| 324 | -D gallium-xvmc=false |
| 325 | -D gallium-omx=disabled |
| 326 | -D gallium-va=false |
| 327 | -D gallium-xa=false |
| 328 | -D gallium-nine=false |
Michel Dänzer | 65610ec | 2020-01-30 18:21:15 +0100 | [diff] [blame] | 329 | LLVM_VERSION: "8" |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 330 | |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 331 | .meson-arm: |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 332 | extends: |
| 333 | - .meson-cross |
| 334 | - .use-arm_build |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 335 | variables: |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 336 | VULKAN_DRIVERS: freedreno |
Michel Dänzer | 793f6b3 | 2019-10-08 19:48:41 +0200 | [diff] [blame] | 337 | GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4" |
Tomeu Vizoso | 22d9764 | 2019-12-17 11:50:14 +0100 | [diff] [blame] | 338 | BUILDTYPE: "debugoptimized" |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 339 | tags: |
| 340 | - aarch64 |
| 341 | |
| 342 | meson-armhf: |
Tomeu Vizoso | 22d9764 | 2019-12-17 11:50:14 +0100 | [diff] [blame] | 343 | extends: |
| 344 | - .meson-arm |
| 345 | - .ci-deqp-artifacts |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 346 | variables: |
| 347 | CROSS: armhf |
Michel Dänzer | 793f6b3 | 2019-10-08 19:48:41 +0200 | [diff] [blame] | 348 | LLVM_VERSION: "7" |
Eric Anholt | 2574158 | 2020-02-24 10:31:33 -0800 | [diff] [blame] | 349 | EXTRA_OPTION: > |
| 350 | -D llvm=false |
Tomeu Vizoso | 22d9764 | 2019-12-17 11:50:14 +0100 | [diff] [blame] | 351 | script: |
| 352 | - .gitlab-ci/meson-build.sh |
| 353 | - .gitlab-ci/prepare-artifacts.sh |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 354 | |
| 355 | meson-arm64: |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 356 | extends: |
| 357 | - .meson-arm |
| 358 | - .ci-deqp-artifacts |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 359 | variables: |
Rohan Garg | 9c0bbba | 2020-02-20 16:37:48 +0100 | [diff] [blame] | 360 | VULKAN_DRIVERS: "freedreno" |
Eric Anholt | 2574158 | 2020-02-24 10:31:33 -0800 | [diff] [blame] | 361 | EXTRA_OPTION: > |
| 362 | -D llvm=false |
Michel Dänzer | 59fcb01 | 2019-10-23 18:42:53 +0200 | [diff] [blame] | 363 | script: |
| 364 | - .gitlab-ci/meson-build.sh |
| 365 | - .gitlab-ci/prepare-artifacts.sh |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 366 | |
Rohan Garg | 9c0bbba | 2020-02-20 16:37:48 +0100 | [diff] [blame] | 367 | meson-arm64-build-test: |
| 368 | extends: |
| 369 | - .meson-arm |
| 370 | - .ci-deqp-artifacts |
| 371 | variables: |
| 372 | VULKAN_DRIVERS: "amd" |
| 373 | script: |
| 374 | - .gitlab-ci/meson-build.sh |
| 375 | |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 376 | meson-clang: |
| 377 | extends: .meson-build |
| 378 | variables: |
| 379 | UNWIND: "true" |
Samuel Pitoiset | 7362176 | 2019-11-19 14:37:32 +0100 | [diff] [blame] | 380 | DRI_LOADERS: > |
| 381 | -D glvnd=true |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 382 | DRI_DRIVERS: "auto" |
| 383 | GALLIUM_DRIVERS: "auto" |
Eric Engestrom | 47f419d | 2019-05-01 12:09:26 +0100 | [diff] [blame] | 384 | VULKAN_DRIVERS: intel,amd,freedreno |
Michel Dänzer | 5f0ff00 | 2019-12-13 11:02:16 +0100 | [diff] [blame] | 385 | CC: "ccache clang-9" |
| 386 | CXX: "ccache clang++-9" |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 387 | |
Michel Dänzer | aaf1b09 | 2019-10-30 09:38:20 +0100 | [diff] [blame] | 388 | .meson-windows: |
Dylan Baker | 19851c9 | 2019-10-23 14:36:19 -0700 | [diff] [blame] | 389 | extends: |
| 390 | - .build-windows |
Michel Dänzer | cc9493f | 2020-02-27 18:27:56 +0100 | [diff] [blame] | 391 | stage: meson-misc |
Dylan Baker | 19851c9 | 2019-10-23 14:36:19 -0700 | [diff] [blame] | 392 | before_script: |
| 393 | - $ENV:ARCH = "x86" |
| 394 | - $ENV:VERSION = "2019\Community" |
| 395 | script: |
| 396 | - cmd /C .gitlab-ci\meson-build.bat |
| 397 | |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 398 | scons-win64: |
| 399 | extends: .scons-build |
| 400 | variables: |
| 401 | SCONS_TARGET: platform=windows machine=x86_64 |
| 402 | SCONS_CHECK_COMMAND: "true" |
Eric Engestrom | 89a7467 | 2019-01-21 09:42:37 +0000 | [diff] [blame] | 403 | |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 404 | meson-clover: |
Eric Engestrom | b5a70af | 2019-01-28 18:05:22 +0000 | [diff] [blame] | 405 | extends: .meson-build |
| 406 | variables: |
| 407 | UNWIND: "true" |
| 408 | DRI_LOADERS: > |
| 409 | -D glx=disabled |
| 410 | -D egl=false |
| 411 | -D gbm=false |
| 412 | GALLIUM_ST: > |
| 413 | -D dri3=false |
| 414 | -D gallium-vdpau=false |
| 415 | -D gallium-xvmc=false |
| 416 | -D gallium-omx=disabled |
| 417 | -D gallium-va=false |
| 418 | -D gallium-xa=false |
| 419 | -D gallium-nine=false |
| 420 | -D gallium-opencl=icd |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 421 | script: |
| 422 | - export GALLIUM_DRIVERS="r600,radeonsi" |
| 423 | - .gitlab-ci/meson-build.sh |
Samuel Pitoiset | 7d1c091 | 2019-08-21 11:45:25 +0200 | [diff] [blame] | 424 | - LLVM_VERSION=8 .gitlab-ci/meson-build.sh |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 425 | - export GALLIUM_DRIVERS="i915,r600" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 426 | - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh |
| 427 | - LLVM_VERSION=7 .gitlab-ci/meson-build.sh |
| 428 | |
| 429 | meson-clover-old-llvm: |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 430 | extends: |
| 431 | - meson-clover |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 432 | - .use-x86_build_old |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 433 | variables: |
| 434 | UNWIND: "false" |
| 435 | DRI_LOADERS: > |
| 436 | -D glx=disabled |
| 437 | -D egl=false |
| 438 | -D gbm=false |
| 439 | -D platforms=drm,surfaceless |
| 440 | GALLIUM_DRIVERS: "i915,r600" |
| 441 | script: |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 442 | - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh |
| 443 | - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh |
| 444 | - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh |
Eric Engestrom | 8dab707 | 2019-01-28 18:09:24 +0000 | [diff] [blame] | 445 | |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 446 | meson-vulkan: |
| 447 | extends: .meson-build |
| 448 | variables: |
| 449 | UNWIND: "false" |
| 450 | DRI_LOADERS: > |
| 451 | -D glx=disabled |
| 452 | -D gbm=false |
| 453 | -D egl=false |
| 454 | -D platforms=x11,wayland,drm |
| 455 | -D osmesa=none |
| 456 | GALLIUM_ST: > |
| 457 | -D dri3=true |
| 458 | -D gallium-vdpau=false |
| 459 | -D gallium-xvmc=false |
| 460 | -D gallium-omx=disabled |
| 461 | -D gallium-va=false |
| 462 | -D gallium-xa=false |
| 463 | -D gallium-nine=false |
| 464 | -D gallium-opencl=disabled |
Michel Dänzer | 75cc8c0 | 2019-09-25 12:56:58 +0200 | [diff] [blame] | 465 | -D b_sanitize=undefined |
| 466 | -D c_args=-fno-sanitize-recover=all |
| 467 | -D cpp_args=-fno-sanitize-recover=all |
| 468 | UBSAN_OPTIONS: "print_stacktrace=1" |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 469 | VULKAN_DRIVERS: intel,amd,freedreno |
Eric Engestrom | 5f8d29a | 2019-05-08 18:17:23 +0200 | [diff] [blame] | 470 | EXTRA_OPTION: > |
| 471 | -D vulkan-overlay-layer=true |
Eric Anholt | 3c7c021 | 2019-12-16 21:23:02 -0800 | [diff] [blame] | 472 | -D werror=true |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 473 | |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 474 | meson-i386: |
| 475 | extends: .meson-cross |
| 476 | variables: |
Eric Engestrom | 1c82fa0 | 2019-08-09 23:46:50 +0100 | [diff] [blame] | 477 | CROSS: i386 |
Samuel Pitoiset | 529c0ba | 2020-03-04 09:37:46 +0100 | [diff] [blame] | 478 | VULKAN_DRIVERS: intel,amd |
Michel Dänzer | a059186 | 2020-03-12 12:31:05 +0100 | [diff] [blame] | 479 | GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl" |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 480 | EXTRA_OPTION: > |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 481 | -D vulkan-overlay-layer=true |
Eric Anholt | f6e5991 | 2019-12-16 21:23:02 -0800 | [diff] [blame] | 482 | -D werror=true |
Samuel Pitoiset | 529c0ba | 2020-03-04 09:37:46 +0100 | [diff] [blame] | 483 | script: |
| 484 | - dpkg -i /var/cache/apt/archives/$CROSS/*.deb |
| 485 | - .gitlab-ci/meson-build.sh |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 486 | |
Michel Dänzer | 65610ec | 2020-01-30 18:21:15 +0100 | [diff] [blame] | 487 | meson-s390x: |
| 488 | extends: |
| 489 | - .meson-cross |
| 490 | variables: |
| 491 | CROSS: s390x |
| 492 | GALLIUM_DRIVERS: "swrast" |
Michel Dänzer | 65610ec | 2020-01-30 18:21:15 +0100 | [diff] [blame] | 493 | script: |
Samuel Pitoiset | 529c0ba | 2020-03-04 09:37:46 +0100 | [diff] [blame] | 494 | # For unknown reasons "too many" installed i386 libraries cause qemu to |
| 495 | # crash while executing llvm-config for s390x. |
| 496 | - apt-get remove -y libglib2.0-0:i386 |
Michel Dänzer | 65610ec | 2020-01-30 18:21:15 +0100 | [diff] [blame] | 497 | - dpkg -i /var/cache/apt/archives/$CROSS/*.deb |
| 498 | - .gitlab-ci/meson-build.sh |
| 499 | |
| 500 | meson-ppc64el: |
| 501 | extends: |
| 502 | - meson-s390x |
| 503 | variables: |
| 504 | CROSS: ppc64el |
Michel Dänzer | 8be81f8 | 2020-01-31 16:07:10 +0100 | [diff] [blame] | 505 | GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl" |
Michel Dänzer | 8be81f8 | 2020-01-31 16:07:10 +0100 | [diff] [blame] | 506 | VULKAN_DRIVERS: "amd" |
Michel Dänzer | 65610ec | 2020-01-30 18:21:15 +0100 | [diff] [blame] | 507 | |
Dylan Baker | 449f831 | 2019-10-11 09:04:14 -0700 | [diff] [blame] | 508 | meson-mingw32-x86_64: |
Dylan Baker | d905d9b | 2019-09-19 10:21:51 -0700 | [diff] [blame] | 509 | extends: .meson-build |
Michel Dänzer | cc9493f | 2020-02-27 18:27:56 +0100 | [diff] [blame] | 510 | stage: meson-misc |
Dylan Baker | d905d9b | 2019-09-19 10:21:51 -0700 | [diff] [blame] | 511 | variables: |
| 512 | UNWIND: "false" |
| 513 | DRI_DRIVERS: "" |
| 514 | GALLIUM_DRIVERS: "swrast" |
| 515 | EXTRA_OPTION: > |
| 516 | -Dllvm=false |
| 517 | -Dosmesa=gallium |
| 518 | --cross-file=.gitlab-ci/x86_64-w64-mingw32 |
| 519 | |
Michel Dänzer | 88e5796 | 2019-09-12 11:45:13 +0200 | [diff] [blame] | 520 | scons: |
Eric Engestrom | d4c6d4d | 2019-01-28 16:30:36 +0000 | [diff] [blame] | 521 | extends: .scons-build |
| 522 | variables: |
Michel Dänzer | c3727ae | 2020-03-12 12:13:44 +0100 | [diff] [blame] | 523 | SCONS_TARGET: "llvm=1 swr=1" |
| 524 | SCONS_CHECK_COMMAND: "scons force_scons=1 ${SCONS_TARGET} check" |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 525 | script: |
Dylan Baker | 54053bc | 2019-10-21 09:29:23 -0700 | [diff] [blame] | 526 | - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh |
Michel Dänzer | 5f0ff00 | 2019-12-13 11:02:16 +0100 | [diff] [blame] | 527 | - LLVM_VERSION=9 .gitlab-ci/scons-build.sh |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 528 | |
| 529 | scons-old-llvm: |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 530 | extends: |
| 531 | - scons |
Michel Dänzer | 3a48f45 | 2019-11-13 17:43:41 +0100 | [diff] [blame] | 532 | - .use-x86_build_old |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 533 | script: |
| 534 | - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 535 | |
Samuel Pitoiset | 0b246d3 | 2019-11-18 09:30:27 +0100 | [diff] [blame] | 536 | .test: |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 537 | extends: |
| 538 | - .ci-run-policy |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 539 | variables: |
| 540 | GIT_STRATEGY: none # testing doesn't build anything from source |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 541 | before_script: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 542 | # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY |
| 543 | - rm -rf install |
| 544 | - tar -xf artifacts/install.tar |
Samuel Pitoiset | eab328f | 2019-11-14 14:00:46 +0100 | [diff] [blame] | 545 | - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \; |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 546 | artifacts: |
Rob Clark | fdaf777 | 2019-11-17 11:33:01 -0800 | [diff] [blame] | 547 | when: always |
Michel Dänzer | 0103f02 | 2020-03-06 12:35:17 +0100 | [diff] [blame] | 548 | name: "mesa_${CI_JOB_NAME}" |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 549 | paths: |
| 550 | - results/ |
Michel Dänzer | cccb68b | 2019-09-13 11:13:12 +0200 | [diff] [blame] | 551 | dependencies: |
Samuel Pitoiset | 66b5627 | 2019-11-19 12:23:41 +0100 | [diff] [blame] | 552 | - meson-testing |
Samuel Pitoiset | 0b246d3 | 2019-11-18 09:30:27 +0100 | [diff] [blame] | 553 | |
| 554 | .test-gl: |
| 555 | extends: |
| 556 | - .test |
| 557 | variables: |
| 558 | TAG: *x86_test-gl |
| 559 | image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG" |
Michel Dänzer | c5aa271 | 2019-10-22 11:19:17 +0200 | [diff] [blame] | 560 | needs: |
Samuel Pitoiset | 66b5627 | 2019-11-19 12:23:41 +0100 | [diff] [blame] | 561 | - meson-testing |
Samuel Pitoiset | 520a77d | 2019-11-18 09:15:12 +0100 | [diff] [blame] | 562 | - x86_test-gl |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 563 | |
Samuel Pitoiset | 0b246d3 | 2019-11-18 09:30:27 +0100 | [diff] [blame] | 564 | .test-vk: |
| 565 | extends: |
| 566 | - .test |
| 567 | variables: |
| 568 | TAG: *x86_test-vk |
| 569 | image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG" |
| 570 | needs: |
| 571 | - meson-testing |
| 572 | - x86_test-vk |
| 573 | |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 574 | .piglit-test: |
Pierre-Eric Pelloux-Prayer | 2a9d6fd | 2019-10-30 20:39:08 +0100 | [diff] [blame] | 575 | extends: |
| 576 | - .test-gl |
| 577 | - .llvmpipe-rules |
Michel Dänzer | a3b3d3b | 2019-11-25 18:42:10 +0100 | [diff] [blame] | 578 | artifacts: |
| 579 | when: on_failure |
Michel Dänzer | 0103f02 | 2020-03-06 12:35:17 +0100 | [diff] [blame] | 580 | name: "mesa_${CI_JOB_NAME}" |
Michel Dänzer | a3b3d3b | 2019-11-25 18:42:10 +0100 | [diff] [blame] | 581 | paths: |
| 582 | - summary/ |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 583 | variables: |
| 584 | LIBGL_ALWAYS_SOFTWARE: 1 |
| 585 | PIGLIT_NO_WINDOW: 1 |
| 586 | script: |
| 587 | - artifacts/piglit/run.sh |
| 588 | |
| 589 | piglit-quick_gl: |
| 590 | extends: .piglit-test |
| 591 | variables: |
| 592 | LP_NUM_THREADS: 0 |
Dave Airlie | e6b2af5 | 2019-12-03 15:23:45 +1000 | [diff] [blame] | 593 | NIR_VALIDATE: 0 |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 594 | PIGLIT_OPTIONS: > |
Michel Dänzer | 5585b8e | 2019-12-03 10:45:28 +0100 | [diff] [blame] | 595 | --process-isolation false |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 596 | -x arb_gpu_shader5 |
Eric Anholt | 3097efe | 2019-12-04 16:13:38 -0800 | [diff] [blame] | 597 | -x egl_ext_device_ |
| 598 | -x egl_ext_platform_device |
Matt Turner | 17c9ec9 | 2020-01-21 15:23:39 -0800 | [diff] [blame] | 599 | -x ext_timer_query@time-elapsed |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 600 | -x glx-multithread-clearbuffer |
| 601 | -x glx-multithread-shader-compile |
| 602 | -x max-texture-size |
| 603 | -x maxsize |
| 604 | PIGLIT_PROFILES: quick_gl |
| 605 | |
Michel Dänzer | 5585b8e | 2019-12-03 10:45:28 +0100 | [diff] [blame] | 606 | piglit-glslparser: |
| 607 | extends: .piglit-test |
| 608 | variables: |
| 609 | LP_NUM_THREADS: 0 |
Dave Airlie | e6b2af5 | 2019-12-03 15:23:45 +1000 | [diff] [blame] | 610 | NIR_VALIDATE: 0 |
Michel Dänzer | 5585b8e | 2019-12-03 10:45:28 +0100 | [diff] [blame] | 611 | PIGLIT_PROFILES: glslparser |
| 612 | |
| 613 | piglit-quick_shader: |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 614 | extends: .piglit-test |
| 615 | variables: |
| 616 | LP_NUM_THREADS: 1 |
Dave Airlie | e6b2af5 | 2019-12-03 15:23:45 +1000 | [diff] [blame] | 617 | NIR_VALIDATE: 0 |
Michel Dänzer | 5585b8e | 2019-12-03 10:45:28 +0100 | [diff] [blame] | 618 | PIGLIT_PROFILES: quick_shader |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 619 | |
Samuel Pitoiset | 16b999b | 2019-11-19 08:39:00 +0100 | [diff] [blame] | 620 | .deqp-test: |
Michel Dänzer | 576f7b6 | 2019-10-22 17:16:52 +0200 | [diff] [blame] | 621 | variables: |
| 622 | DEQP_SKIPS: deqp-default-skips.txt |
| 623 | script: |
| 624 | - ./artifacts/deqp-runner.sh |
| 625 | |
Samuel Pitoiset | 16b999b | 2019-11-19 08:39:00 +0100 | [diff] [blame] | 626 | .deqp-test-gl: |
| 627 | extends: |
| 628 | - .test-gl |
| 629 | - .deqp-test |
| 630 | |
| 631 | .deqp-test-vk: |
| 632 | extends: |
| 633 | - .test-vk |
| 634 | - .deqp-test |
| 635 | variables: |
| 636 | DEQP_VER: vk |
| 637 | |
Samuel Pitoiset | 1cdb6ed | 2020-02-26 09:33:14 +0100 | [diff] [blame] | 638 | .fossilize-test: |
| 639 | extends: .test-vk |
| 640 | script: |
| 641 | - ./artifacts/fossilize-runner.sh |
| 642 | |
Michel Dänzer | 71436f9 | 2020-03-03 18:17:12 +0100 | [diff] [blame] | 643 | llvmpipe-gles2: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 644 | variables: |
| 645 | DEQP_VER: gles2 |
Eric Anholt | f08c810 | 2019-11-04 10:54:41 -0800 | [diff] [blame] | 646 | DEQP_PARALLEL: 4 |
Dave Airlie | e6b2af5 | 2019-12-03 15:23:45 +1000 | [diff] [blame] | 647 | NIR_VALIDATE: 0 |
Eric Anholt | f08c810 | 2019-11-04 10:54:41 -0800 | [diff] [blame] | 648 | # Don't use threads inside llvmpipe, we've already got all 4 cores |
| 649 | # busy with DEQP_PARALLEL. |
| 650 | LP_NUM_THREADS: 0 |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 651 | DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt |
| 652 | LIBGL_ALWAYS_SOFTWARE: "true" |
Pierre-Eric Pelloux-Prayer | 2a9d6fd | 2019-10-30 20:39:08 +0100 | [diff] [blame] | 653 | extends: |
| 654 | - .deqp-test-gl |
| 655 | - .llvmpipe-rules |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 656 | |
Michel Dänzer | 71436f9 | 2020-03-03 18:17:12 +0100 | [diff] [blame] | 657 | softpipe-gles2: |
Pierre-Eric Pelloux-Prayer | 2a9d6fd | 2019-10-30 20:39:08 +0100 | [diff] [blame] | 658 | extends: |
| 659 | - llvmpipe-gles2 |
| 660 | - .softpipe-rules |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 661 | variables: |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 662 | DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt |
Eric Anholt | f08c810 | 2019-11-04 10:54:41 -0800 | [diff] [blame] | 663 | DEQP_SKIPS: deqp-softpipe-skips.txt |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 664 | GALLIUM_DRIVER: "softpipe" |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 665 | |
Michel Dänzer | 71436f9 | 2020-03-03 18:17:12 +0100 | [diff] [blame] | 666 | softpipe-gles3: |
Eric Anholt | 52843ec | 2019-11-05 10:31:29 -0800 | [diff] [blame] | 667 | parallel: 2 |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 668 | variables: |
| 669 | DEQP_VER: gles3 |
Michel Dänzer | 71436f9 | 2020-03-03 18:17:12 +0100 | [diff] [blame] | 670 | extends: softpipe-gles2 |
Eric Anholt | 52843ec | 2019-11-05 10:31:29 -0800 | [diff] [blame] | 671 | |
Michel Dänzer | 71436f9 | 2020-03-03 18:17:12 +0100 | [diff] [blame] | 672 | softpipe-gles31: |
Eric Anholt | 52843ec | 2019-11-05 10:31:29 -0800 | [diff] [blame] | 673 | parallel: 4 |
| 674 | variables: |
| 675 | DEQP_VER: gles31 |
Michel Dänzer | 71436f9 | 2020-03-03 18:17:12 +0100 | [diff] [blame] | 676 | extends: softpipe-gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 677 | |
Fritz Koenig | 2a98cf3 | 2020-02-12 19:31:24 +0000 | [diff] [blame] | 678 | arm64_a630_gles2: |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 679 | extends: |
Samuel Pitoiset | 520a77d | 2019-11-18 09:15:12 +0100 | [diff] [blame] | 680 | - .deqp-test-gl |
Michel Dänzer | c6c7652 | 2019-11-11 18:13:28 +0100 | [diff] [blame] | 681 | - .use-arm_test |
Pierre-Eric Pelloux-Prayer | 2a9d6fd | 2019-10-30 20:39:08 +0100 | [diff] [blame] | 682 | - .freedreno-rules |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 683 | variables: |
| 684 | DEQP_VER: gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 685 | DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt |
| 686 | DEQP_SKIPS: deqp-freedreno-a630-skips.txt |
| 687 | NIR_VALIDATE: 0 |
Eric Anholt | dd76a6f | 2019-11-21 05:12:58 -0800 | [diff] [blame] | 688 | DEQP_PARALLEL: 4 |
Rob Clark | fdaf777 | 2019-11-17 11:33:01 -0800 | [diff] [blame] | 689 | FLAKES_CHANNEL: "#freedreno-ci" |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 690 | tags: |
| 691 | - mesa-cheza |
| 692 | dependencies: |
| 693 | - meson-arm64 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 694 | |
Fritz Koenig | 2a98cf3 | 2020-02-12 19:31:24 +0000 | [diff] [blame] | 695 | arm64_a630_gles31: |
| 696 | extends: arm64_a630_gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 697 | variables: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 698 | DEQP_VER: gles31 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 699 | |
Fritz Koenig | 2a98cf3 | 2020-02-12 19:31:24 +0000 | [diff] [blame] | 700 | arm64_a630_gles3: |
| 701 | extends: arm64_a630_gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 702 | variables: |
| 703 | DEQP_VER: gles3 |
| 704 | |
Eric Anholt | cf5ba9d | 2020-03-03 14:38:09 -0800 | [diff] [blame] | 705 | .baremetal-test: |
| 706 | extends: |
| 707 | - .ci-run-policy |
| 708 | stage: test |
| 709 | |
Eric Anholt | aea8c9c | 2020-03-03 11:44:45 -0800 | [diff] [blame] | 710 | arm64_a306_gles2: |
Eric Anholt | cf5ba9d | 2020-03-03 14:38:09 -0800 | [diff] [blame] | 711 | extends: |
| 712 | - .baremetal-test |
| 713 | - .use-arm_build |
| 714 | stage: freedreno |
Eric Anholt | aea8c9c | 2020-03-03 11:44:45 -0800 | [diff] [blame] | 715 | variables: |
Eric Anholt | cf5ba9d | 2020-03-03 14:38:09 -0800 | [diff] [blame] | 716 | BM_KERNEL: /lava-files/Image |
| 717 | BM_DTB: /lava-files/apq8016-sbc.dtb |
| 718 | BM_ROOTFS: /lava-files/rootfs-arm64 |
| 719 | BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8" |
Eric Anholt | aea8c9c | 2020-03-03 11:44:45 -0800 | [diff] [blame] | 720 | DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt |
Eric Anholt | cf5ba9d | 2020-03-03 14:38:09 -0800 | [diff] [blame] | 721 | DEQP_SKIPS: deqp-freedreno-a307-skips.txt |
| 722 | DEQP_VER: gles2 |
| 723 | DEQP_PARALLEL: 4 |
| 724 | script: |
| 725 | - .gitlab-ci/bare-metal/fastboot.sh |
| 726 | needs: |
| 727 | - meson-arm64 |
Eric Anholt | aea8c9c | 2020-03-03 11:44:45 -0800 | [diff] [blame] | 728 | tags: |
Eric Anholt | cf5ba9d | 2020-03-03 14:38:09 -0800 | [diff] [blame] | 729 | - google-freedreno-db410c |
| 730 | |
| 731 | # Disabled due to flaky results |
| 732 | .arm64_a306_gles3: |
| 733 | extends: |
| 734 | - arm64_a306_gles2 |
| 735 | parallel: 8 |
| 736 | variables: |
| 737 | DEQP_VER: gles3 |
Eric Anholt | aea8c9c | 2020-03-03 11:44:45 -0800 | [diff] [blame] | 738 | |
Samuel Pitoiset | c1a3627 | 2019-11-13 11:03:52 +0100 | [diff] [blame] | 739 | # RADV CI |
| 740 | .test-radv: |
Samuel Pitoiset | 8f55439 | 2020-03-09 17:53:51 +0100 | [diff] [blame] | 741 | extends: .radv-rules |
Michel Dänzer | cc9493f | 2020-02-27 18:27:56 +0100 | [diff] [blame] | 742 | stage: misc-tests |
Samuel Pitoiset | c1a3627 | 2019-11-13 11:03:52 +0100 | [diff] [blame] | 743 | variables: |
| 744 | VK_DRIVER: radeon |
Samuel Pitoiset | ff2e11b | 2019-12-06 17:07:35 +0100 | [diff] [blame] | 745 | RADV_DEBUG: checkir |
Samuel Pitoiset | 42a3d82 | 2020-02-05 17:04:20 +0100 | [diff] [blame] | 746 | |
| 747 | .test-radv-unsafe: |
| 748 | extends: .test-radv |
Samuel Pitoiset | c1a3627 | 2019-11-13 11:03:52 +0100 | [diff] [blame] | 749 | # Can only be triggered manually on personal branches because RADV is the only |
| 750 | # driver that does Vulkan testing at the moment. |
| 751 | rules: |
| 752 | # Never test RADV by default in the main project. |
| 753 | - if: '$CI_PROJECT_PATH == "mesa/mesa"' |
| 754 | when: never |
| 755 | # Never test RADV by default for merge requests. |
| 756 | - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME' |
| 757 | when: never |
Samuel Pitoiset | af1cd45 | 2020-02-26 08:49:27 +0100 | [diff] [blame] | 758 | # Otherwise, allow testing RADV manually for personal branches. |
| 759 | - when: manual |
Samuel Pitoiset | c1a3627 | 2019-11-13 11:03:52 +0100 | [diff] [blame] | 760 | |
Samuel Pitoiset | 42a3d82 | 2020-02-05 17:04:20 +0100 | [diff] [blame] | 761 | .test-radv-fossilize: |
| 762 | extends: |
| 763 | - .fossilize-test |
| 764 | - .test-radv |
| 765 | |
Samuel Pitoiset | c1a3627 | 2019-11-13 11:03:52 +0100 | [diff] [blame] | 766 | radv_polaris10_vkcts: |
| 767 | extends: |
| 768 | - .deqp-test-vk |
Samuel Pitoiset | 42a3d82 | 2020-02-05 17:04:20 +0100 | [diff] [blame] | 769 | - .test-radv-unsafe |
Samuel Pitoiset | c1a3627 | 2019-11-13 11:03:52 +0100 | [diff] [blame] | 770 | variables: |
Samuel Pitoiset | c1a3627 | 2019-11-13 11:03:52 +0100 | [diff] [blame] | 771 | DEQP_SKIPS: deqp-radv-polaris10-skips.txt |
| 772 | tags: |
| 773 | - polaris10 |
Alexandros Frantzis | 803ab5d | 2020-01-08 17:46:46 +0200 | [diff] [blame] | 774 | |
Samuel Pitoiset | 42a3d82 | 2020-02-05 17:04:20 +0100 | [diff] [blame] | 775 | radv-polaris10-fossils: |
| 776 | extends: .test-radv-fossilize |
| 777 | variables: |
| 778 | RADV_FORCE_FAMILY: "polaris10" # Force creating a null device |
| 779 | |
Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 780 | # Traces CI |
Alexandros Frantzis | 803ab5d | 2020-01-08 17:46:46 +0200 | [diff] [blame] | 781 | .traces-test: |
Michel Dänzer | cc9493f | 2020-02-27 18:27:56 +0100 | [diff] [blame] | 782 | stage: misc-tests |
Alexandros Frantzis | 803ab5d | 2020-01-08 17:46:46 +0200 | [diff] [blame] | 783 | cache: |
| 784 | key: ${CI_JOB_NAME} |
| 785 | paths: |
Rohan Garg | 90a39af | 2020-02-28 13:48:53 +0100 | [diff] [blame] | 786 | - traces-db/ |
Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 787 | |
| 788 | .traces-test-gl: |
| 789 | extends: |
| 790 | - .test-gl |
| 791 | - .traces-test |
Alexandros Frantzis | 803ab5d | 2020-01-08 17:46:46 +0200 | [diff] [blame] | 792 | script: |
Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 793 | - ./artifacts/tracie-runner-gl.sh |
| 794 | |
| 795 | .traces-test-vk: |
| 796 | extends: |
| 797 | - .test-vk |
| 798 | - .traces-test |
| 799 | script: |
| 800 | - ./artifacts/tracie-runner-vk.sh |
Alexandros Frantzis | 803ab5d | 2020-01-08 17:46:46 +0200 | [diff] [blame] | 801 | |
| 802 | llvmpipe-traces: |
Pierre-Eric Pelloux-Prayer | 2a9d6fd | 2019-10-30 20:39:08 +0100 | [diff] [blame] | 803 | extends: |
| 804 | - .traces-test-gl |
| 805 | - .llvmpipe-rules |
Alexandros Frantzis | 803ab5d | 2020-01-08 17:46:46 +0200 | [diff] [blame] | 806 | variables: |
| 807 | LIBGL_ALWAYS_SOFTWARE: "true" |
| 808 | GALLIUM_DRIVER: "llvmpipe" |
Andres Gomez | 1d75595 | 2020-02-20 17:32:08 +0200 | [diff] [blame] | 809 | DEVICE_NAME: "gl-vmware-llvmpipe" |
Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 810 | |
| 811 | radv-polaris10-traces: |
| 812 | extends: |
| 813 | - .traces-test-vk |
Samuel Pitoiset | 42a3d82 | 2020-02-05 17:04:20 +0100 | [diff] [blame] | 814 | - .test-radv-unsafe |
Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 815 | variables: |
| 816 | DEVICE_NAME: "vk-amd-polaris10" |
| 817 | tags: |
| 818 | - polaris10 |