Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 1 | # This is the tag of the docker image used for the build jobs. If the |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 2 | # image doesn't exist yet, the containers stage generates it. |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 3 | # |
| 4 | # In order to generate a new image, one should generally change the tag. |
| 5 | # While removing the image from the registry would also work, that's not |
| 6 | # recommended except for ephemeral images during development: Replacing |
| 7 | # an image after a significant amount of time might pull in newer |
| 8 | # versions of gcc/clang or other packages, which might break the build |
| 9 | # with older commits using the same tag. |
| 10 | # |
| 11 | # After merging a change resulting in generating a new image to the |
| 12 | # main repository, it's recommended to remove the image from the source |
| 13 | # repository's container registry, so that the image from the main |
| 14 | # repository's registry will be used there as well. |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 15 | variables: |
Benjamin Tissoires | 7f8a9a1 | 2019-04-02 09:24:00 +0200 | [diff] [blame] | 16 | UPSTREAM_REPO: mesa/mesa |
Michel Dänzer | e55df4c | 2019-09-30 10:36:04 +0200 | [diff] [blame] | 17 | DEBIAN_TAG: "2019-09-30" |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 18 | DEBIAN_ARM64_TAG: "arm64v8-2019-08-09" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 19 | STRETCH_TAG: "2019-09-18" |
| 20 | DEBIAN_VERSION: buster-slim |
| 21 | STRETCH_VERSION: stretch-slim |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 22 | DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 23 | DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG" |
| 24 | STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG" |
Benjamin Tissoires | 7f8a9a1 | 2019-04-02 09:24:00 +0200 | [diff] [blame] | 25 | |
| 26 | include: |
| 27 | - project: 'wayland/ci-templates' |
Michel Dänzer | 2259b45 | 2019-09-06 17:01:50 +0200 | [diff] [blame] | 28 | ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 29 | file: '/templates/debian.yml' |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 30 | |
Tomeu Vizoso | 7b01f72 | 2019-09-18 16:03:36 +0200 | [diff] [blame^] | 31 | include: |
| 32 | - local: '/src/gallium/drivers/panfrost/ci/gitlab-ci.yml' |
| 33 | |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 34 | stages: |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 35 | - containers |
| 36 | - build |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 37 | - test |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 38 | |
| 39 | |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 40 | # When to automatically run the CI |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 41 | .ci-run-policy: |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 42 | only: |
Michel Dänzer | b48e64f | 2019-04-10 10:33:13 +0200 | [diff] [blame] | 43 | - branches@mesa/mesa |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 44 | - merge_requests |
| 45 | - /^ci([-/].*)?$/ |
Michel Dänzer | 6140ed3 | 2019-03-26 18:39:41 +0100 | [diff] [blame] | 46 | retry: |
| 47 | max: 2 |
| 48 | when: |
| 49 | - runner_system_failure |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 50 | |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 51 | .ci-deqp-artifacts: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 52 | artifacts: |
| 53 | when: always |
| 54 | untracked: false |
| 55 | paths: |
| 56 | # Watch out! Artifacts are relative to the build dir. |
| 57 | # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521 |
| 58 | - artifacts |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 59 | |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 60 | # Build the normal CI native and cross-build docker images. |
| 61 | |
| 62 | debian-10: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 63 | extends: |
| 64 | - .debian@container-ifnot-exists |
| 65 | - .ci-run-policy |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 66 | stage: containers |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 67 | variables: |
Benjamin Tissoires | 7f8a9a1 | 2019-04-02 09:24:00 +0200 | [diff] [blame] | 68 | GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 69 | DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh' |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 70 | |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 71 | debian-9: |
| 72 | extends: debian-10 |
| 73 | variables: |
| 74 | DEBIAN_TAG: $STRETCH_TAG |
| 75 | DEBIAN_VERSION: $STRETCH_VERSION |
| 76 | DEBIAN_IMAGE: $STRETCH_IMAGE |
| 77 | DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh' |
| 78 | |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 79 | .use-debian-9: |
| 80 | image: $STRETCH_IMAGE |
| 81 | needs: |
| 82 | - debian-9 |
| 83 | |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 84 | # Builds a Docker image with the native environment and VK-GL-CTS for testing. |
| 85 | test-container:arm64: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 86 | extends: |
| 87 | - .debian@container-ifnot-exists@arm64v8 |
| 88 | - .ci-run-policy |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 89 | stage: containers |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 90 | variables: |
| 91 | DEBIAN_TAG: "$DEBIAN_ARM64_TAG" |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 92 | GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image |
| 93 | DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh' |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 94 | |
| 95 | # BUILD |
| 96 | |
| 97 | .build: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 98 | extends: .ci-run-policy |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 99 | image: $DEBIAN_IMAGE |
Michel Dänzer | 42a1828 | 2019-09-18 16:21:32 +0200 | [diff] [blame] | 100 | needs: |
| 101 | - debian-10 |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 102 | stage: build |
Michel Dänzer | a3f34f9 | 2019-03-26 18:35:59 +0100 | [diff] [blame] | 103 | cache: |
Michel Dänzer | 4712fdf | 2019-10-01 16:00:16 +0200 | [diff] [blame] | 104 | key: ${CI_JOB_NAME} |
Michel Dänzer | a3f34f9 | 2019-03-26 18:35:59 +0100 | [diff] [blame] | 105 | paths: |
| 106 | - ccache |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 107 | artifacts: |
Eric Anholt | dd3d0b2 | 2019-07-24 09:27:48 -0700 | [diff] [blame] | 108 | when: always |
| 109 | paths: |
| 110 | - _build/meson-logs/*.txt |
| 111 | # scons: |
Michel Dänzer | 5229f27 | 2019-07-26 12:20:41 +0200 | [diff] [blame] | 112 | - build/*/config.log |
Eric Anholt | f60defa | 2019-04-10 15:59:12 -0700 | [diff] [blame] | 113 | - shader-db |
Michel Dänzer | e9de19f | 2019-04-04 18:01:27 +0200 | [diff] [blame] | 114 | variables: |
| 115 | CCACHE_COMPILERCHECK: "content" |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 116 | # Use ccache transparently, and print stats before/after |
| 117 | before_script: |
| 118 | - export PATH="/usr/lib/ccache:$PATH" |
| 119 | - export CCACHE_BASEDIR="$PWD" |
| 120 | - export CCACHE_DIR="$PWD/ccache" |
Michel Dänzer | 4712fdf | 2019-10-01 16:00:16 +0200 | [diff] [blame] | 121 | - ccache --max-size=1500M |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 122 | - ccache --zero-stats || true |
| 123 | - ccache --show-stats || true |
| 124 | after_script: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 125 | # In case the install dir is being saved as artifacts, tar it up |
| 126 | # so that symlinks and hardlinks aren't each packed separately in |
| 127 | # the zip file. |
| 128 | - if [ -d install ]; then |
| 129 | tar -cf artifacts/install.tar install; |
| 130 | fi |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 131 | - export CCACHE_DIR="$PWD/ccache" |
| 132 | - ccache --show-stats |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 133 | |
| 134 | .meson-build: |
| 135 | extends: .build |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 136 | script: |
Michel Dänzer | cc2b3a9 | 2019-05-03 10:49:43 +0200 | [diff] [blame] | 137 | - .gitlab-ci/meson-build.sh |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 138 | |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 139 | .scons-build: |
| 140 | extends: .build |
| 141 | variables: |
| 142 | SCONSFLAGS: "-j4" |
| 143 | script: |
Michel Dänzer | 0374aac | 2019-09-12 11:34:43 +0200 | [diff] [blame] | 144 | - .gitlab-ci/scons-build.sh |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 145 | |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 146 | meson-main: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 147 | extends: |
| 148 | - .meson-build |
| 149 | - .ci-deqp-artifacts |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 150 | variables: |
| 151 | UNWIND: "true" |
| 152 | DRI_LOADERS: > |
| 153 | -D glx=dri |
| 154 | -D gbm=true |
| 155 | -D egl=true |
| 156 | -D platforms=x11,wayland,drm,surfaceless |
| 157 | DRI_DRIVERS: "i915,i965,r100,r200,nouveau" |
| 158 | GALLIUM_ST: > |
| 159 | -D dri3=true |
| 160 | -D gallium-extra-hud=true |
| 161 | -D gallium-vdpau=true |
| 162 | -D gallium-xvmc=true |
| 163 | -D gallium-omx=bellagio |
| 164 | -D gallium-va=true |
| 165 | -D gallium-xa=true |
| 166 | -D gallium-nine=true |
| 167 | -D gallium-opencl=disabled |
| 168 | GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima" |
| 169 | LLVM_VERSION: "7" |
| 170 | EXTRA_OPTION: > |
| 171 | -D osmesa=gallium |
| 172 | -D tools=all |
| 173 | MESON_SHADERDB: "true" |
| 174 | BUILDTYPE: "debugoptimized" |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 175 | |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 176 | .meson-cross: |
| 177 | extends: |
| 178 | - .meson-build |
| 179 | - .ci-deqp-artifacts |
| 180 | variables: |
| 181 | UNWIND: "false" |
| 182 | DRI_LOADERS: > |
| 183 | -D glx=disabled |
| 184 | -D gbm=false |
| 185 | -D egl=true |
| 186 | -D platforms=surfaceless |
| 187 | -D osmesa=none |
| 188 | GALLIUM_ST: > |
| 189 | -D dri3=false |
| 190 | -D gallium-vdpau=false |
| 191 | -D gallium-xvmc=false |
| 192 | -D gallium-omx=disabled |
| 193 | -D gallium-va=false |
| 194 | -D gallium-xa=false |
| 195 | -D gallium-nine=false |
| 196 | -D llvm=false |
| 197 | script: |
| 198 | - .gitlab-ci/meson-build.sh |
| 199 | |
| 200 | meson-armhf: |
| 201 | extends: .meson-cross |
| 202 | variables: |
| 203 | CROSS: armhf |
| 204 | VULKAN_DRIVERS: freedreno |
| 205 | GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4" |
| 206 | # Disable the tests since we're cross compiling. |
| 207 | EXTRA_OPTION: > |
| 208 | -D build-tests=false |
| 209 | -D I-love-half-baked-turnips=true |
| 210 | -D vulkan-overlay-layer=true |
| 211 | |
| 212 | meson-arm64: |
| 213 | extends: meson-armhf |
| 214 | variables: |
| 215 | CROSS: arm64 |
| 216 | BUILDTYPE: "debugoptimized" |
| 217 | |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 218 | # NOTE: Building SWR is 2x (yes two) times slower than all the other |
| 219 | # gallium drivers combined. |
| 220 | # Start this early so that it doesn't limit the total run time. |
Eric Engestrom | 41407c6 | 2019-03-08 16:33:07 +0000 | [diff] [blame] | 221 | # |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 222 | # We also stick the glvnd build here, since we want non-glvnd in |
| 223 | # meson-main for actual driver CI. |
Eric Engestrom | 1291c68 | 2019-04-16 18:06:53 +0200 | [diff] [blame] | 224 | meson-swr-glvnd: |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 225 | extends: .meson-build |
| 226 | variables: |
| 227 | UNWIND: "true" |
| 228 | DRI_LOADERS: > |
Eric Engestrom | 1291c68 | 2019-04-16 18:06:53 +0200 | [diff] [blame] | 229 | -D glvnd=true |
| 230 | -D egl=true |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 231 | GALLIUM_ST: > |
Eric Engestrom | 41407c6 | 2019-03-08 16:33:07 +0000 | [diff] [blame] | 232 | -D dri3=true |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 233 | -D gallium-vdpau=false |
| 234 | -D gallium-xvmc=false |
| 235 | -D gallium-omx=disabled |
| 236 | -D gallium-va=false |
| 237 | -D gallium-xa=false |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 238 | -D gallium-nine=false |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 239 | -D gallium-opencl=disabled |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 240 | GALLIUM_DRIVERS: "swr,iris" |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 241 | LLVM_VERSION: "6.0" |
| 242 | |
| 243 | meson-clang: |
| 244 | extends: .meson-build |
| 245 | variables: |
| 246 | UNWIND: "true" |
| 247 | DRI_DRIVERS: "auto" |
| 248 | GALLIUM_DRIVERS: "auto" |
Eric Engestrom | 47f419d | 2019-05-01 12:09:26 +0100 | [diff] [blame] | 249 | VULKAN_DRIVERS: intel,amd,freedreno |
Michel Dänzer | 3fca2b7 | 2019-04-05 10:36:29 +0200 | [diff] [blame] | 250 | CC: "ccache clang-8" |
| 251 | CXX: "ccache clang++-8" |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 252 | |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 253 | scons-swr: |
| 254 | extends: .scons-build |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 255 | variables: |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 256 | SCONS_TARGET: "swr=1" |
| 257 | SCONS_CHECK_COMMAND: "true" |
| 258 | LLVM_VERSION: "6.0" |
| 259 | |
| 260 | scons-win64: |
| 261 | extends: .scons-build |
| 262 | variables: |
| 263 | SCONS_TARGET: platform=windows machine=x86_64 |
| 264 | SCONS_CHECK_COMMAND: "true" |
Eric Engestrom | 89a7467 | 2019-01-21 09:42:37 +0000 | [diff] [blame] | 265 | |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 266 | meson-clover: |
Eric Engestrom | b5a70af | 2019-01-28 18:05:22 +0000 | [diff] [blame] | 267 | extends: .meson-build |
| 268 | variables: |
| 269 | UNWIND: "true" |
| 270 | DRI_LOADERS: > |
| 271 | -D glx=disabled |
| 272 | -D egl=false |
| 273 | -D gbm=false |
| 274 | GALLIUM_ST: > |
| 275 | -D dri3=false |
| 276 | -D gallium-vdpau=false |
| 277 | -D gallium-xvmc=false |
| 278 | -D gallium-omx=disabled |
| 279 | -D gallium-va=false |
| 280 | -D gallium-xa=false |
| 281 | -D gallium-nine=false |
| 282 | -D gallium-opencl=icd |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 283 | script: |
| 284 | - export GALLIUM_DRIVERS="r600,radeonsi" |
| 285 | - .gitlab-ci/meson-build.sh |
Samuel Pitoiset | 7d1c091 | 2019-08-21 11:45:25 +0200 | [diff] [blame] | 286 | - LLVM_VERSION=8 .gitlab-ci/meson-build.sh |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 287 | - export GALLIUM_DRIVERS="i915,r600" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 288 | - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh |
| 289 | - LLVM_VERSION=7 .gitlab-ci/meson-build.sh |
| 290 | |
| 291 | meson-clover-old-llvm: |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 292 | extends: |
| 293 | - meson-clover |
| 294 | - .use-debian-9 |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 295 | variables: |
| 296 | UNWIND: "false" |
| 297 | DRI_LOADERS: > |
| 298 | -D glx=disabled |
| 299 | -D egl=false |
| 300 | -D gbm=false |
| 301 | -D platforms=drm,surfaceless |
| 302 | GALLIUM_DRIVERS: "i915,r600" |
| 303 | script: |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 304 | - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh |
| 305 | - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh |
| 306 | - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh |
Eric Engestrom | 8dab707 | 2019-01-28 18:09:24 +0000 | [diff] [blame] | 307 | |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 308 | meson-vulkan: |
| 309 | extends: .meson-build |
| 310 | variables: |
| 311 | UNWIND: "false" |
| 312 | DRI_LOADERS: > |
| 313 | -D glx=disabled |
| 314 | -D gbm=false |
| 315 | -D egl=false |
| 316 | -D platforms=x11,wayland,drm |
| 317 | -D osmesa=none |
| 318 | GALLIUM_ST: > |
| 319 | -D dri3=true |
| 320 | -D gallium-vdpau=false |
| 321 | -D gallium-xvmc=false |
| 322 | -D gallium-omx=disabled |
| 323 | -D gallium-va=false |
| 324 | -D gallium-xa=false |
| 325 | -D gallium-nine=false |
| 326 | -D gallium-opencl=disabled |
| 327 | VULKAN_DRIVERS: intel,amd,freedreno |
Samuel Pitoiset | 7d1c091 | 2019-08-21 11:45:25 +0200 | [diff] [blame] | 328 | LLVM_VERSION: "8" |
Eric Engestrom | 5f8d29a | 2019-05-08 18:17:23 +0200 | [diff] [blame] | 329 | EXTRA_OPTION: > |
| 330 | -D vulkan-overlay-layer=true |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 331 | |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 332 | # While the main point of this build is testing the i386 cross build, |
| 333 | # we also use this one to test some other options that are exclusive |
| 334 | # with meson-main's choices (classic swrast and osmesa) |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 335 | meson-i386: |
| 336 | extends: .meson-cross |
| 337 | variables: |
Eric Engestrom | 1c82fa0 | 2019-08-09 23:46:50 +0100 | [diff] [blame] | 338 | CROSS: i386 |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 339 | VULKAN_DRIVERS: intel |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 340 | DRI_DRIVERS: "swrast" |
| 341 | GALLIUM_DRIVERS: "iris" |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 342 | EXTRA_OPTION: > |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 343 | -D vulkan-overlay-layer=true |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 344 | -D llvm=false |
| 345 | -D osmesa=classic |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 346 | |
Michel Dänzer | 88e5796 | 2019-09-12 11:45:13 +0200 | [diff] [blame] | 347 | scons: |
Eric Engestrom | d4c6d4d | 2019-01-28 16:30:36 +0000 | [diff] [blame] | 348 | extends: .scons-build |
| 349 | variables: |
| 350 | SCONS_TARGET: "llvm=1" |
| 351 | SCONS_CHECK_COMMAND: "scons llvm=1 check" |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 352 | script: |
Michel Dänzer | 88e5796 | 2019-09-12 11:45:13 +0200 | [diff] [blame] | 353 | - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check" .gitlab-ci/scons-build.sh |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 354 | - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh |
| 355 | - LLVM_VERSION=7 .gitlab-ci/scons-build.sh |
| 356 | - LLVM_VERSION=8 .gitlab-ci/scons-build.sh |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 357 | |
| 358 | scons-old-llvm: |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 359 | extends: |
| 360 | - scons |
| 361 | - .use-debian-9 |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 362 | script: |
| 363 | - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh |
| 364 | - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh |
| 365 | - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 366 | |
| 367 | .deqp-test: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 368 | extends: .ci-run-policy |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 369 | stage: test |
| 370 | image: $DEBIAN_IMAGE |
| 371 | variables: |
| 372 | GIT_STRATEGY: none # testing doesn't build anything from source |
| 373 | DEQP_SKIPS: deqp-default-skips.txt |
| 374 | script: |
| 375 | # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY |
| 376 | - rm -rf install |
| 377 | - tar -xf artifacts/install.tar |
| 378 | - ./artifacts/deqp-runner.sh |
| 379 | artifacts: |
| 380 | when: on_failure |
| 381 | name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" |
| 382 | paths: |
| 383 | - results/ |
Michel Dänzer | cccb68b | 2019-09-13 11:13:12 +0200 | [diff] [blame] | 384 | dependencies: |
| 385 | - meson-main |
| 386 | needs: [meson-main] |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 387 | |
| 388 | test-llvmpipe-gles2: |
| 389 | parallel: 4 |
| 390 | variables: |
| 391 | DEQP_VER: gles2 |
| 392 | DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt |
| 393 | LIBGL_ALWAYS_SOFTWARE: "true" |
| 394 | DEQP_RENDERER_MATCH: "llvmpipe" |
| 395 | extends: .deqp-test |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 396 | |
| 397 | test-softpipe-gles2: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 398 | extends: test-llvmpipe-gles2 |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 399 | variables: |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 400 | DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 401 | DEQP_RENDERER_MATCH: "softpipe" |
| 402 | GALLIUM_DRIVER: "softpipe" |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 403 | |
| 404 | # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is |
| 405 | # 25 minutes. Until we can get its runtime down, just do a partial |
| 406 | # (every 10 tests) run. |
| 407 | test-softpipe-gles3-limited: |
| 408 | variables: |
| 409 | DEQP_VER: gles3 |
| 410 | DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt |
| 411 | LIBGL_ALWAYS_SOFTWARE: "true" |
| 412 | DEQP_RENDERER_MATCH: "softpipe" |
| 413 | GALLIUM_DRIVER: "softpipe" |
| 414 | CI_NODE_INDEX: 1 |
| 415 | CI_NODE_TOTAL: 10 |
| 416 | extends: .deqp-test |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 417 | |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 418 | arm64_a630_gles2: |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 419 | extends: .deqp-test |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 420 | image: $DEBIAN_ARM64_IMAGE |
| 421 | variables: |
| 422 | DEQP_VER: gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 423 | DEQP_RENDERER_MATCH: "FD630" |
| 424 | DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt |
| 425 | DEQP_SKIPS: deqp-freedreno-a630-skips.txt |
| 426 | NIR_VALIDATE: 0 |
| 427 | tags: |
| 428 | - mesa-cheza |
| 429 | dependencies: |
| 430 | - meson-arm64 |
Michel Dänzer | f2b8051 | 2019-09-18 16:28:41 +0200 | [diff] [blame] | 431 | needs: |
| 432 | - meson-arm64 |
| 433 | - test-container:arm64 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 434 | |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 435 | arm64_a630_gles31: |
| 436 | extends: arm64_a630_gles2 |
| 437 | parallel: 4 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 438 | variables: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 439 | DEQP_VER: gles31 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 440 | |
| 441 | arm64_a630_gles3: |
| 442 | parallel: 6 |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 443 | extends: arm64_a630_gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 444 | variables: |
| 445 | DEQP_VER: gles3 |
| 446 | |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 447 | arm64_a306_gles2: |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 448 | parallel: 4 |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 449 | extends: arm64_a630_gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 450 | variables: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 451 | DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt |
| 452 | DEQP_SKIPS: deqp-default-skips.txt |
| 453 | DEQP_RENDERER_MATCH: "FD307" |
| 454 | tags: |
| 455 | - db410c |