panfrost: Group SFBD state together
[mesa.git] / .gitlab-ci.yml
1 variables:
2 FDO_UPSTREAM_REPO: mesa/mesa
3 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
7
8 include:
9 - project: 'freedesktop/ci-templates'
10 ref: &ci-templates-sha 52dd4a94044449c8481d18dcdc221a3c636366d2
11 file: '/templates/debian.yml'
12 - project: 'freedesktop/ci-templates'
13 ref: *ci-templates-sha
14 file: '/templates/alpine.yml'
15 - local: '.gitlab-ci/lava-gitlab-ci.yml'
16 - local: '.gitlab-ci/test-source-dep.yml'
17
18 stages:
19 - container+docs
20 - container-2
21 - git-archive
22 - deploy
23 - meson-x86_64
24 - scons
25 - meson-misc
26 - llvmpipe
27 - softpipe
28 - freedreno
29 - panfrost
30 - radv
31 - lima
32 - virgl
33 - radeonsi
34 - success
35
36 # Generic rule to not run the job during scheduled pipelines
37 # ----------------------------------------------------------
38 .scheduled_pipelines-rules:
39 rules: &ignore_scheduled_pipelines
40 if: '$CI_PIPELINE_SOURCE == "schedule"'
41 when: never
42
43 .docs-base:
44 extends: .ci-run-policy
45 image: alpine
46 script:
47 - apk --no-cache add py3-pip graphviz
48 - pip3 install sphinx sphinx_rtd_theme
49 - sphinx-build -b html docs public
50
51 pages:
52 extends: .docs-base
53 stage: deploy
54 artifacts:
55 paths:
56 - public
57 rules:
58 - *ignore_scheduled_pipelines
59 - if: '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_REF_NAME == "master"'
60 changes: &docs-or-ci
61 - docs/**/*
62 - .gitlab-ci.yml
63 when: always
64 # Other cases default to never
65
66 test-docs:
67 extends: .docs-base
68 # Cancel job if a newer commit is pushed to the same branch
69 interruptible: true
70 stage: container+docs
71 rules:
72 - *ignore_scheduled_pipelines
73 - if: '$CI_PROJECT_NAMESPACE == "mesa"'
74 when: never
75 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
76 changes: *docs-or-ci
77 when: on_success
78 - changes: *docs-or-ci
79 when: manual
80 # Other cases default to never
81
82 # When to automatically run the CI
83 .ci-run-policy:
84 rules:
85 - *ignore_scheduled_pipelines
86 # If any files affecting the pipeline are changed, build/test jobs run
87 # automatically once all dependency jobs have passed
88 - changes: &all_paths
89 - VERSION
90 - bin/git_sha1_gen.py
91 - bin/install_megadrivers.py
92 - bin/meson_get_version.py
93 - bin/symbols-check.py
94 # GitLab CI
95 - .gitlab-ci.yml
96 - .gitlab-ci/**/*
97 # Meson
98 - meson*
99 - build-support/**/*
100 - subprojects/**/*
101 # SCons
102 - SConstruct
103 - scons/**/*
104 - common.py
105 # Source code
106 - include/**/*
107 - src/**/*
108 when: on_success
109 # Otherwise, build/test jobs won't run
110 - when: never
111 retry:
112 max: 2
113 when:
114 - runner_system_failure
115
116 success:
117 stage: success
118 image: debian:stable-slim
119 rules:
120 - *ignore_scheduled_pipelines
121 - if: '$CI_PROJECT_NAMESPACE == "mesa"'
122 when: never
123 - if: '$GITLAB_USER_LOGIN == "marge-bot"'
124 changes: *docs-or-ci
125 when: never
126 - changes: *all_paths
127 when: never
128 - when: on_success
129 variables:
130 GIT_STRATEGY: none
131 script:
132 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
133
134
135 .ci-deqp-artifacts:
136 artifacts:
137 name: "mesa_${CI_JOB_NAME}"
138 when: always
139 untracked: false
140 paths:
141 # Watch out! Artifacts are relative to the build dir.
142 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
143 - artifacts
144
145 # Build the CI docker images.
146 #
147 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
148 # image doesn't exist yet, the container stage job generates it.
149 #
150 # In order to generate a new image, one should generally change the tag.
151 # While removing the image from the registry would also work, that's not
152 # recommended except for ephemeral images during development: Replacing
153 # an image after a significant amount of time might pull in newer
154 # versions of gcc/clang or other packages, which might break the build
155 # with older commits using the same tag.
156 #
157 # After merging a change resulting in generating a new image to the
158 # main repository, it's recommended to remove the image from the source
159 # repository's container registry, so that the image from the main
160 # repository's registry will be used there as well.
161
162 .container:
163 stage: container+docs
164 extends:
165 - .ci-run-policy
166 rules:
167 - *ignore_scheduled_pipelines
168 # Run pipeline by default in the main project if any CI pipeline
169 # configuration files were changed, to ensure docker images are up to date
170 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
171 changes:
172 - .gitlab-ci.yml
173 - .gitlab-ci/**/*
174 when: on_success
175 # Run pipeline by default if it was triggered by Marge Bot, is for a
176 # merge request, and any files affecting the pipeline were changed
177 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
178 changes:
179 *all_paths
180 when: on_success
181 # Run pipeline by default in the main project if it was not triggered by
182 # Marge Bot, and any files affecting the pipeline were changed
183 - if: '$GITLAB_USER_LOGIN != "marge-bot" && $CI_PROJECT_PATH == "mesa/mesa"'
184 changes:
185 *all_paths
186 when: on_success
187 # Allow triggering jobs manually in other cases if any files affecting the
188 # pipeline were changed
189 - changes:
190 *all_paths
191 when: manual
192 # Otherwise, container jobs won't run
193 - when: never
194 variables:
195 FDO_DISTRIBUTION_VERSION: buster-slim
196 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
197 FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
198 # no need to pull the whole repo to build the container image
199 GIT_STRATEGY: none
200
201 # Debian 10 based x86 build image base
202 x86_build-base:
203 extends:
204 - .fdo.container-build@debian
205 - .container
206 variables:
207 FDO_DISTRIBUTION_TAG: &x86_build-base "2020-07-28-x86-2"
208
209 .use-x86_build-base:
210 extends:
211 - x86_build-base
212 - .ci-run-policy
213 stage: container-2
214 variables:
215 BASE_TAG: *x86_build-base
216 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_build-base:$BASE_TAG"
217 needs:
218 - x86_build-base
219
220 # Debian 10 based x86 main build image
221 x86_build:
222 extends:
223 - .use-x86_build-base
224 variables:
225 FDO_DISTRIBUTION_TAG: &x86_build "2020-08-08-glvnd"
226
227 .use-x86_build:
228 variables:
229 TAG: *x86_build
230 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
231 needs:
232 - x86_build
233
234 # Debian 10 based i386 cross-build image
235 i386_build:
236 extends:
237 - .use-x86_build-base
238 variables:
239 FDO_DISTRIBUTION_TAG: &i386_build "2020-07-28-x86-2"
240
241 .use-i386_build:
242 variables:
243 TAG: *i386_build
244 image: "$CI_REGISTRY_IMAGE/debian/i386_build:$TAG"
245 needs:
246 - i386_build
247
248 # Debian 10 based ppc64el cross-build image
249 ppc64el_build:
250 extends:
251 - .use-x86_build-base
252 variables:
253 FDO_DISTRIBUTION_TAG: &ppc64el_build "2020-07-28-x86-2"
254
255 .use-ppc64el_build:
256 variables:
257 TAG: *ppc64el_build
258 image: "$CI_REGISTRY_IMAGE/debian/ppc64el_build:$TAG"
259 needs:
260 - ppc64el_build
261
262 # Debian 10 based s390x cross-build image
263 s390x_build:
264 extends:
265 - .use-x86_build-base
266 variables:
267 FDO_DISTRIBUTION_TAG: &s390x_build "2020-07-28-x86-2"
268
269 .use-s390x_build:
270 variables:
271 TAG: *s390x_build
272 image: "$CI_REGISTRY_IMAGE/debian/s390x_build:$TAG"
273 needs:
274 - s390x_build
275
276 # Debian 10 based x86 test image base
277 x86_test-base:
278 extends: x86_build-base
279 variables:
280 FDO_DISTRIBUTION_TAG: &x86_test-base "2020-07-28-x86-2"
281
282 .use-x86_test-base:
283 extends:
284 - x86_build-base
285 - .ci-run-policy
286 stage: container-2
287 variables:
288 BASE_TAG: *x86_test-base
289 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_test-base:$BASE_TAG"
290 needs:
291 - x86_test-base
292
293 # Debian 10 based x86 test image for GL
294 x86_test-gl:
295 extends: .use-x86_test-base
296 variables:
297 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-08-14-xcb-shm"
298
299 # Debian 10 based x86 test image for VK
300 x86_test-vk:
301 extends: .use-x86_test-base
302 variables:
303 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-07-28-x86-2"
304
305 # Debian 9 based x86 build image (old LLVM)
306 x86_build_old:
307 extends: x86_build-base
308 variables:
309 FDO_DISTRIBUTION_TAG: &x86_build_old "2020-07-28-x86-2"
310 FDO_DISTRIBUTION_VERSION: stretch-slim
311
312 .use-x86_build_old:
313 variables:
314 TAG: *x86_build_old
315 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
316 needs:
317 - x86_build_old
318
319 # Debian 10 based ARM build image
320 arm_build:
321 extends:
322 - .fdo.container-build@debian@arm64v8
323 - .container
324 variables:
325 FDO_DISTRIBUTION_TAG: &arm_build "2020-08-04-nfs-2"
326
327 .use-arm_build:
328 variables:
329 TAG: *arm_build
330 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
331 needs:
332 - arm_build
333
334 # Debian 10 based x86 baremetal image base
335 arm_test-base:
336 extends:
337 - .fdo.container-build@debian
338 - .container
339 variables:
340 FDO_DISTRIBUTION_TAG: &arm_test-base "2020-07-28-libdrm"
341
342 .use-arm_test-base:
343 extends:
344 - arm_test-base
345 - .ci-run-policy
346 stage: container-2
347 variables:
348 BASE_TAG: *arm_test-base
349 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/arm_test-base:$BASE_TAG"
350 needs:
351 - arm_test-base
352
353 # x86 image with ARM64 rootfs for baremetal testing.
354 arm64_test:
355 extends:
356 - .use-arm_test-base
357 variables:
358 FDO_DISTRIBUTION_TAG: &arm64_test "2020-08-18"
359
360 .use-arm64_test:
361 variables:
362 TAG: *arm64_test
363 image: "$CI_REGISTRY_IMAGE/debian/arm64_test:$TAG"
364 needs:
365 - arm64_test
366
367 # Native Windows docker builds
368 #
369 # Unlike the above Linux-based builds - including MinGW/SCons builds which
370 # cross-compile for Windows - which use the freedesktop ci-templates, we
371 # cannot use the same scheme here. As Windows lacks support for
372 # Docker-in-Docker, and Podman does not run natively on Windows, we have
373 # to open-code much of the same ourselves.
374 #
375 # This is achieved by first running in a native Windows shell instance
376 # (host PowerShell) in the container stage to build and push the image,
377 # then in the build stage by executing inside Docker.
378
379 .windows-docker-vs2019:
380 variables:
381 WINDOWS_TAG: "2020-05-05-llvm"
382 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
383 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
384
385 .windows_build_vs2019:
386 extends:
387 - .container
388 - .windows-docker-vs2019
389 stage: container+docs
390 variables:
391 GIT_STRATEGY: fetch # we do actually need the full repository though
392 timeout: 4h # LLVM takes ages
393 tags:
394 - windows
395 - shell
396 - "1809"
397 - mesa
398 script:
399 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
400
401 .use-windows_build_vs2019:
402 extends: .windows-docker-vs2019
403 image: "$WINDOWS_IMAGE"
404 needs:
405 - windows_build_vs2019
406
407 git_archive:
408 extends: .fdo.container-build@alpine
409 stage: container+docs
410 rules:
411 - if: '$CI_PIPELINE_SOURCE == "schedule"'
412 when: always
413 variables:
414 FDO_REPO_SUFFIX: &git-archive-suffix "alpine/git_archive"
415 FDO_DISTRIBUTION_EXEC: 'pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@6f5af7e5574509726c79109e3c147cee95e81366'
416 # no need to pull the whole repo to build the container image
417 GIT_STRATEGY: none
418 FDO_DISTRIBUTION_TAG: &git-archive-tag "2020-07-07"
419 FDO_DISTRIBUTION_PACKAGES: git py3-pip
420
421
422 # Git archive
423
424 make git archive:
425 stage: git-archive
426 extends: .fdo.suffixed-image@alpine
427 rules:
428 - if: '$CI_PIPELINE_SOURCE == "schedule"'
429 when: on_success
430 # ensure we are running on packet
431 tags:
432 - packet.net
433 variables:
434 FDO_DISTRIBUTION_TAG: *git-archive-tag
435 FDO_REPO_SUFFIX: *git-archive-suffix
436 needs:
437 - git_archive
438
439 script:
440 # compress the current folder
441 - tar -cvzf ../$CI_PROJECT_NAME.tar.gz .
442
443 # login with the JWT token
444 - ci-fairy minio login $CI_JOB_JWT
445 - 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
446
447
448 # BUILD
449
450 # Shared between windows and Linux
451 .build-common:
452 extends: .ci-run-policy
453 # Cancel job if a newer commit is pushed to the same branch
454 interruptible: true
455 artifacts:
456 name: "mesa_${CI_JOB_NAME}"
457 when: always
458 paths:
459 - _build/meson-logs/*.txt
460 # scons:
461 - build/*/config.log
462 - shader-db
463
464 # Just Linux
465 .build-linux:
466 extends: .build-common
467 variables:
468 CCACHE_COMPILERCHECK: "content"
469 CCACHE_COMPRESS: "true"
470 CCACHE_DIR: /cache/mesa/ccache
471 # Use ccache transparently, and print stats before/after
472 before_script:
473 - export PATH="/usr/lib/ccache:$PATH"
474 - export CCACHE_BASEDIR="$PWD"
475 - ccache --show-stats
476 after_script:
477 - ccache --show-stats
478
479 .build-windows:
480 extends: .build-common
481 tags:
482 - windows
483 - docker
484 - "1809"
485 - mesa
486 cache:
487 key: ${CI_JOB_NAME}
488 paths:
489 - subprojects/packagecache
490
491 .meson-build:
492 extends:
493 - .build-linux
494 - .use-x86_build
495 stage: meson-x86_64
496 variables:
497 LLVM_VERSION: 9
498 script:
499 - .gitlab-ci/meson-build.sh
500
501 .scons-build:
502 extends:
503 - .build-linux
504 - .use-x86_build
505 stage: scons
506 script:
507 - env SCONSFLAGS="-j${FDO_CI_CONCURRENT:-4}" .gitlab-ci/scons-build.sh
508
509 meson-testing:
510 extends:
511 - .meson-build
512 - .ci-deqp-artifacts
513 variables:
514 UNWIND: "enabled"
515 DRI_LOADERS: >
516 -D glx=dri
517 -D gbm=enabled
518 -D egl=enabled
519 -D platforms=x11
520 GALLIUM_ST: >
521 -D dri3=enabled
522 GALLIUM_DRIVERS: "swrast,virgl,radeonsi"
523 VULKAN_DRIVERS: amd
524 BUILDTYPE: "debugoptimized"
525 EXTRA_OPTION: >
526 -D werror=true
527 UPLOAD_FOR_LAVA: 1
528 DEBIAN_ARCH: amd64
529 script:
530 - .gitlab-ci/meson-build.sh
531 - .gitlab-ci/prepare-artifacts.sh
532
533 meson-gallium:
534 extends: .meson-build
535 variables:
536 UNWIND: "enabled"
537 DRI_LOADERS: >
538 -D glx=dri
539 -D gbm=enabled
540 -D egl=enabled
541 -D platforms=x11,wayland
542 GALLIUM_ST: >
543 -D dri3=enabled
544 -D gallium-extra-hud=true
545 -D gallium-vdpau=enabled
546 -D gallium-xvmc=enabled
547 -D gallium-omx=bellagio
548 -D gallium-va=enabled
549 -D gallium-xa=enabled
550 -D gallium-nine=true
551 -D gallium-opencl=disabled
552 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
553 VULKAN_DRIVERS: swrast
554 EXTRA_OPTION: >
555 -D osmesa=gallium
556 -D tools=all
557 -D werror=true
558 script:
559 - .gitlab-ci/meson-build.sh
560 - .gitlab-ci/run-shader-db.sh
561 - src/freedreno/.gitlab-ci/run-fdtools.sh
562
563 meson-classic:
564 extends: .meson-build
565 variables:
566 UNWIND: "enabled"
567 DRI_LOADERS: >
568 -D glx=dri
569 -D gbm=enabled
570 -D egl=enabled
571 -D platforms=x11,wayland,drm,surfaceless
572 DRI_DRIVERS: "auto"
573 EXTRA_OPTION: >
574 -D osmesa=classic
575 -D tools=all
576 -D werror=true
577
578 meson-android:
579 extends: .meson-build
580 variables:
581 UNWIND: "disabled"
582 DRI_LOADERS: >
583 -D glx=disabled
584 -D gbm=disabled
585 -D egl=enabled
586 -D platforms=android
587 GALLIUM_DRIVERS: freedreno
588 VULKAN_DRIVERS: freedreno,intel,amd
589 EXTRA_OPTION: >
590 -D android-stub=true
591 -D werror=true
592 GALLIUM_ST: >
593 -D dri3=disabled
594 -D gallium-vdpau=disabled
595 -D gallium-xvmc=disabled
596 -D gallium-omx=disabled
597 -D gallium-va=disabled
598 -D gallium-xa=disabled
599 -D gallium-nine=false
600 -D gallium-opencl=disabled
601
602 .meson-cross:
603 extends:
604 - .meson-build
605 stage: meson-misc
606 variables:
607 UNWIND: "disabled"
608 DRI_LOADERS: >
609 -D glx=disabled
610 -D gbm=disabled
611 -D egl=enabled
612 -D platforms=[]
613 -D osmesa=none
614 GALLIUM_ST: >
615 -D dri3=disabled
616 -D gallium-vdpau=disabled
617 -D gallium-xvmc=disabled
618 -D gallium-omx=disabled
619 -D gallium-va=disabled
620 -D gallium-xa=disabled
621 -D gallium-nine=false
622 LLVM_VERSION: "8"
623
624 .meson-arm:
625 extends:
626 - .meson-cross
627 - .use-arm_build
628 variables:
629 VULKAN_DRIVERS: freedreno
630 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
631 BUILDTYPE: "debugoptimized"
632 tags:
633 - aarch64
634
635 meson-armhf:
636 extends:
637 - .meson-arm
638 - .ci-deqp-artifacts
639 variables:
640 CROSS: armhf
641 LLVM_VERSION: "7"
642 EXTRA_OPTION: >
643 -D llvm=disabled
644 UPLOAD_FOR_LAVA: 1
645 DEBIAN_ARCH: armhf
646 script:
647 - .gitlab-ci/meson-build.sh
648 - .gitlab-ci/prepare-artifacts.sh
649
650 meson-arm64:
651 extends:
652 - .meson-arm
653 - .ci-deqp-artifacts
654 variables:
655 VULKAN_DRIVERS: "freedreno"
656 EXTRA_OPTION: >
657 -D llvm=disabled
658 UPLOAD_FOR_LAVA: 1
659 DEBIAN_ARCH: arm64
660 script:
661 - .gitlab-ci/meson-build.sh
662 - .gitlab-ci/prepare-artifacts.sh
663
664 meson-arm64-build-test:
665 extends:
666 - .meson-arm
667 - .ci-deqp-artifacts
668 variables:
669 VULKAN_DRIVERS: "amd"
670 EXTRA_OPTION: >
671 -Dtools=panfrost
672 script:
673 - .gitlab-ci/meson-build.sh
674
675 meson-clang:
676 extends: .meson-build
677 variables:
678 UNWIND: "enabled"
679 DRI_LOADERS: >
680 -D glvnd=true
681 DRI_DRIVERS: "auto"
682 GALLIUM_DRIVERS: "auto"
683 VULKAN_DRIVERS: intel,amd,freedreno
684 CC: "ccache clang-9"
685 CXX: "ccache clang++-9"
686
687 .meson-windows-vs2019:
688 extends:
689 - .build-windows
690 - .use-windows_build_vs2019
691 stage: meson-misc
692 script:
693 - . .\.gitlab-ci\windows\mesa_build.ps1
694
695 scons-win64:
696 extends: .scons-build
697 variables:
698 SCONS_TARGET: platform=windows machine=x86_64 debug=1
699 SCONS_CHECK_COMMAND: "true"
700 allow_failure: true
701
702 meson-clover:
703 extends: .meson-build
704 variables:
705 UNWIND: "enabled"
706 DRI_LOADERS: >
707 -D glx=disabled
708 -D egl=disabled
709 -D gbm=disabled
710 GALLIUM_DRIVERS: "r600,radeonsi"
711 GALLIUM_ST: >
712 -D dri3=disabled
713 -D gallium-vdpau=disabled
714 -D gallium-xvmc=disabled
715 -D gallium-omx=disabled
716 -D gallium-va=disabled
717 -D gallium-xa=disabled
718 -D gallium-nine=false
719 -D gallium-opencl=icd
720 script:
721 - .gitlab-ci/meson-build.sh
722 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
723
724 meson-clover-old-llvm:
725 extends:
726 - meson-clover
727 - .use-x86_build_old
728 variables:
729 UNWIND: "disabled"
730 DRI_LOADERS: >
731 -D glx=disabled
732 -D egl=disabled
733 -D gbm=disabled
734 -D platforms=[]
735 GALLIUM_DRIVERS: "i915,r600"
736 script:
737 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
738 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
739 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
740 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
741 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
742
743 meson-vulkan:
744 extends: .meson-build
745 variables:
746 UNWIND: "disabled"
747 DRI_LOADERS: >
748 -D glx=disabled
749 -D gbm=disabled
750 -D egl=disabled
751 -D platforms=x11,wayland
752 -D osmesa=none
753 GALLIUM_ST: >
754 -D dri3=enabled
755 -D gallium-vdpau=disabled
756 -D gallium-xvmc=disabled
757 -D gallium-omx=disabled
758 -D gallium-va=disabled
759 -D gallium-xa=disabled
760 -D gallium-nine=false
761 -D gallium-opencl=disabled
762 -D b_sanitize=undefined
763 -D c_args=-fno-sanitize-recover=all
764 -D cpp_args=-fno-sanitize-recover=all
765 UBSAN_OPTIONS: "print_stacktrace=1"
766 VULKAN_DRIVERS: intel,amd,freedreno
767 EXTRA_OPTION: >
768 -D vulkan-overlay-layer=true
769 -D build-aco-tests=true
770 -D werror=true
771
772 meson-i386:
773 extends:
774 - .meson-cross
775 - .use-i386_build
776 variables:
777 CROSS: i386
778 VULKAN_DRIVERS: intel,amd
779 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
780 EXTRA_OPTION: >
781 -D vulkan-overlay-layer=true
782 -D werror=true
783
784 meson-s390x:
785 extends:
786 - .meson-cross
787 - .use-s390x_build
788 tags:
789 - kvm
790 variables:
791 CROSS: s390x
792 EXTRA_OPTION: >
793 -D werror=true
794 GALLIUM_DRIVERS: "swrast"
795
796 meson-ppc64el:
797 extends:
798 - meson-s390x
799 - .use-ppc64el_build
800 variables:
801 CROSS: ppc64el
802 EXTRA_OPTION: ""
803 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
804 VULKAN_DRIVERS: "amd"
805
806 meson-mingw32-x86_64:
807 extends: .meson-build
808 stage: meson-misc
809 variables:
810 UNWIND: "disabled"
811 DRI_DRIVERS: ""
812 GALLIUM_DRIVERS: "swrast"
813 EXTRA_OPTION: >
814 -Dllvm=disabled
815 -Dosmesa=gallium
816 --cross-file=.gitlab-ci/x86_64-w64-mingw32
817
818 .test:
819 extends:
820 - .ci-run-policy
821 # Cancel job if a newer commit is pushed to the same branch
822 interruptible: true
823 variables:
824 GIT_STRATEGY: none # testing doesn't build anything from source
825 before_script:
826 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
827 - rm -rf install
828 - tar -xf artifacts/install.tar
829 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
830 artifacts:
831 when: always
832 name: "mesa_${CI_JOB_NAME}"
833 paths:
834 - results/
835
836 .test-gl:
837 extends:
838 - .test
839 variables:
840 TAG: *x86_test-gl
841 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
842 needs:
843 - meson-testing
844 - x86_test-gl
845
846 .test-vk:
847 extends:
848 - .test
849 variables:
850 TAG: *x86_test-vk
851 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
852 needs:
853 - meson-testing
854 - x86_test-vk
855
856 .piglit-test:
857 extends:
858 - .test-gl
859 - .llvmpipe-rules
860 artifacts:
861 when: on_failure
862 name: "mesa_${CI_JOB_NAME}"
863 paths:
864 - summary/
865 variables:
866 LIBGL_ALWAYS_SOFTWARE: 1
867 PIGLIT_NO_WINDOW: 1
868 script:
869 - install/piglit/run.sh
870
871 piglit-quick_gl:
872 extends: .piglit-test
873 variables:
874 LP_NUM_THREADS: 0
875 NIR_VALIDATE: 0
876 PIGLIT_OPTIONS: >
877 --process-isolation false
878 -x egl_ext_device_
879 -x egl_ext_platform_device
880 -x ext_timer_query@time-elapsed
881 -x glx-multithread-clearbuffer
882 -x glx-multithread-shader-compile
883 -x max-texture-size
884 -x maxsize
885 PIGLIT_PROFILES: quick_gl
886
887 piglit-glslparser:
888 extends: .piglit-test
889 variables:
890 LP_NUM_THREADS: 0
891 NIR_VALIDATE: 0
892 PIGLIT_PROFILES: glslparser
893
894 piglit-quick_shader:
895 extends: .piglit-test
896 variables:
897 LP_NUM_THREADS: 1
898 NIR_VALIDATE: 0
899 PIGLIT_PROFILES: quick_shader
900
901 .deqp-test:
902 variables:
903 DEQP_SKIPS: deqp-default-skips.txt
904 script:
905 - ./install/deqp-runner.sh
906
907 .deqp-test-gl:
908 extends:
909 - .test-gl
910 - .deqp-test
911
912 .deqp-test-vk:
913 extends:
914 - .test-vk
915 - .deqp-test
916 variables:
917 DEQP_VER: vk
918
919 .fossilize-test:
920 extends: .test-vk
921 script:
922 - ./install/fossilize-runner.sh
923 artifacts:
924 when: on_failure
925 name: "mesa_${CI_JOB_NAME}"
926 paths:
927 - results/
928
929 llvmpipe-gles2:
930 variables:
931 DEQP_VER: gles2
932 NIR_VALIDATE: 0
933 # Don't use threads inside llvmpipe, we've already got all cores
934 # busy at the deqp-runner level.
935 LP_NUM_THREADS: 0
936 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
937 LIBGL_ALWAYS_SOFTWARE: "true"
938 DEQP_EXPECTED_RENDERER: llvmpipe
939 extends:
940 - .deqp-test-gl
941 - .llvmpipe-rules
942
943 softpipe-gles2:
944 extends:
945 - llvmpipe-gles2
946 - .softpipe-rules
947 variables:
948 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
949 DEQP_SKIPS: deqp-softpipe-skips.txt
950 GALLIUM_DRIVER: "softpipe"
951 DEQP_EXPECTED_RENDERER: softpipe
952
953 softpipe-gles3:
954 variables:
955 DEQP_VER: gles3
956 extends: softpipe-gles2
957
958 softpipe-gles31:
959 parallel: 2
960 variables:
961 DEQP_VER: gles31
962 extends: softpipe-gles2
963
964 virgl-gles2-on-gl:
965 variables:
966 DEQP_VER: gles2
967 NIR_VALIDATE: 0
968 DEQP_NO_SAVE_RESULTS: 1
969 DEQP_SKIPS: deqp-virgl-gl-skips.txt
970 # Don't use threads inside llvmpipe, we've already got all cores
971 # busy at the deqp-runner level.
972 LP_NUM_THREADS: 0
973 DEQP_EXPECTED_FAILS: deqp-virgl-gl-fails.txt
974 DEQP_OPTIONS: "--deqp-log-images=disable"
975 LIBGL_ALWAYS_SOFTWARE: "true"
976 GALLIUM_DRIVER: "virpipe"
977 DEQP_EXPECTED_RENDERER: virgl
978 extends:
979 - .deqp-test-gl
980 - .virgl-rules
981
982 virgl-gles3-on-gl:
983 variables:
984 DEQP_VER: gles3
985 DEQP_RUNNER_OPTIONS: "--timeout 180"
986 extends: virgl-gles2-on-gl
987
988 virgl-gles31-on-gl:
989 parallel: 2
990 variables:
991 DEQP_VER: gles31
992 MESA_GLES_VERSION_OVERRIDE: "3.1"
993 MESA_GLSL_VERSION_OVERRIDE: "310"
994 MESA_EXTENSION_OVERRIDE: "-GL_OES_tessellation_shader"
995 extends: virgl-gles3-on-gl
996
997 virgl-gl30-on-gl:
998 variables:
999 DEQP_VER: gl30
1000 extends: virgl-gles2-on-gl
1001
1002 virgl-gl31-on-gl:
1003 variables:
1004 DEQP_VER: gl31
1005 extends: virgl-gles2-on-gl
1006
1007 virgl-gl32-on-gl:
1008 variables:
1009 DEQP_VER: gl32
1010 extends: virgl-gles2-on-gl
1011
1012 # Rules for tests that should not be present in MRs or the main
1013 # project's pipeline (don't block marge or report red on
1014 # mesa/mesamaster) but should be present on pipelines in personal
1015 # branches (so you can opt in to running the flaky test when you want
1016 # to).
1017 .test-manual:
1018 rules:
1019 - *ignore_scheduled_pipelines
1020 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
1021 changes:
1022 *all_paths
1023 when: manual
1024 - when: never
1025
1026 virgl-gles2-on-gles:
1027 variables:
1028 VIRGL_HOST_API: GLES
1029 DEQP_EXPECTED_FAILS: deqp-virgl-gles-fails.txt
1030 extends:
1031 - virgl-gles2-on-gl
1032 - .test-manual
1033
1034 virgl-gles3-on-gles:
1035 variables:
1036 VIRGL_HOST_API: GLES
1037 DEQP_EXPECTED_FAILS: deqp-virgl-gles-fails.txt
1038 extends:
1039 - virgl-gles3-on-gl
1040 - .test-manual
1041
1042 virgl-gles31-on-gles:
1043 variables:
1044 VIRGL_HOST_API: GLES
1045 DEQP_EXPECTED_FAILS: deqp-virgl-gles-fails.txt
1046 extends:
1047 - virgl-gles31-on-gl
1048 - .test-manual
1049
1050 arm64_a630_gles2:
1051 extends:
1052 - arm64_a306_gles2
1053 variables:
1054 BM_KERNEL: /lava-files/cheza-kernel
1055 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 root=/dev/nfs rw nfsrootdebug nfsroot=,tcp,nfsvers=4.2 init=/init"
1056 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
1057 DEQP_FLAKES: deqp-freedreno-a630-flakes.txt
1058 GIT_STRATEGY: none
1059 DEQP_EXPECTED_RENDERER: FD630
1060 DEQP_NO_SAVE_RESULTS: ""
1061 tags:
1062 - google-freedreno-cheza
1063 script:
1064 - ./install/bare-metal/cros-servo.sh
1065
1066 arm64_a630_gles31:
1067 extends: arm64_a630_gles2
1068 variables:
1069 DEQP_VER: gles31
1070 # gles31 is about 12 minutes with validation enabled.
1071 NIR_VALIDATE: 0
1072
1073 arm64_a630_gles3:
1074 extends: arm64_a630_gles2
1075 variables:
1076 DEQP_VER: gles3
1077 # gles3 is about 15 minutes with validation enabled.
1078 NIR_VALIDATE: 0
1079
1080 # We almost always manage to lower UBOs back to constant uploads in
1081 # the test suite, so get a little testing for it here.
1082 arm64_a630_noubo:
1083 extends: arm64_a630_gles31
1084 variables:
1085 DEQP_VER: gles31
1086 IR3_SHADER_DEBUG: nouboopt
1087 DEQP_CASELIST_FILTER: "functional.*ubo"
1088
1089 # The driver does some guessing as to whether to render using gmem
1090 # or bypass, and some GLES3.1 features interact with either one.
1091 # Do a little testing with gmem and bypass forced.
1092 arm64_a630_bypass:
1093 extends: arm64_a630_gles31
1094 variables:
1095 CI_NODE_INDEX: 1
1096 CI_NODE_TOTAL: 5
1097 FD_MESA_DEBUG: nogmem
1098 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
1099
1100 arm64_a630_traces:
1101 extends:
1102 - arm64_a630_gles2
1103 variables:
1104 BARE_METAL_TEST_SCRIPT: "/install/tracie-runner-gl.sh"
1105 DEVICE_NAME: "freedreno-a630"
1106 DRIVER_NAME: "freedreno"
1107 TRACIE_NO_UNIT_TESTS: 1
1108 TRACIE_UPLOAD_TO_MINIO: 1
1109 # This lets us run several more traces which don't use any features we're
1110 # missing.
1111 MESA_GLSL_VERSION_OVERRIDE: "460"
1112 MESA_GL_VERSION_OVERRIDE: "4.6"
1113
1114 # Along with checking gmem path, check that we don't get obvious nir
1115 # validation failures (though it's too expensive to have it on for the
1116 # full CTS)
1117 arm64_a630_gmem:
1118 extends: arm64_a630_gles31
1119 variables:
1120 CI_NODE_INDEX: 1
1121 CI_NODE_TOTAL: 5
1122 FD_MESA_DEBUG: nobypass
1123 NIR_VALIDATE: 1
1124
1125 arm64_a630_vk:
1126 extends: arm64_a630_gles2
1127 variables:
1128 DEQP_VER: vk
1129 CI_NODE_INDEX: 1
1130 CI_NODE_TOTAL: 50
1131 VK_DRIVER: freedreno
1132 # Force binning in the main run, which makes sure we render at
1133 # least 2 bins. This is the path that impacts the most different
1134 # features. However, we end up with flaky results in
1135 # dEQP-VK.binding_model.*.geometry and dEQP-VK.glsl.*_vertex.
1136 TU_DEBUG: forcebin
1137
1138 # Do a separate sysmem pass over the testcases that really affect sysmem
1139 # rendering. This is currently very flaky, leave it as an option for devs
1140 # to click play on in their branches.
1141 arm64_a630_vk_sysmem:
1142 extends:
1143 - arm64_a630_vk
1144 variables:
1145 CI_NODE_INDEX: 1
1146 CI_NODE_TOTAL: 10
1147 DEQP_CASELIST_FILTER: "dEQP-VK.renderpass.*"
1148 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
1149 TU_DEBUG: sysmem
1150
1151 .baremetal-test:
1152 extends:
1153 - .ci-run-policy
1154 - .test
1155 # Cancel job if a newer commit is pushed to the same branch
1156 interruptible: true
1157 stage: test
1158 artifacts:
1159 when: always
1160 name: "mesa_${CI_JOB_NAME}"
1161 paths:
1162 - results/
1163 - serial*.txt
1164
1165 arm64_a306_gles2:
1166 extends:
1167 - .baremetal-test
1168 - .use-arm64_test
1169 - .freedreno-rules
1170 variables:
1171 BM_KERNEL: /lava-files/Image.gz
1172 BM_DTB: /lava-files/apq8016-sbc.dtb
1173 BM_ROOTFS: /lava-files/rootfs-arm64
1174 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
1175 FLAKES_CHANNEL: "#freedreno-ci"
1176 BARE_METAL_TEST_SCRIPT: "/install/deqp-runner.sh"
1177 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
1178 DEQP_SKIPS: deqp-default-skips.txt
1179 DEQP_FLAKES: deqp-freedreno-a307-flakes.txt
1180 DEQP_VER: gles2
1181 DEQP_PARALLEL: 4
1182 DEQP_EXPECTED_RENDERER: FD307
1183 # Since we can't get artifacts back yet, skip making them.
1184 DEQP_NO_SAVE_RESULTS: 1
1185 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
1186 script:
1187 - ./install/bare-metal/fastboot.sh
1188 needs:
1189 - arm64_test
1190 - meson-arm64
1191 tags:
1192 - google-freedreno-db410c
1193
1194 # Fractional run, single threaded, due to flaky results
1195 arm64_a306_gles3:
1196 extends:
1197 - arm64_a306_gles2
1198 variables:
1199 DEQP_VER: gles3
1200 DEQP_PARALLEL: 1
1201 CI_NODE_INDEX: 1
1202 CI_NODE_TOTAL: 25
1203 NIR_VALIDATE: 0
1204
1205 # Fractional runs with debug options. Note that since we're not
1206 # hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
1207 arm64_a306_gles3_options:
1208 extends: arm64_a306_gles2
1209 variables:
1210 DEQP_VER: gles3
1211 script:
1212 # Check that the non-constbuf UBO case works.
1213 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" ./install/bare-metal/fastboot.sh
1214
1215 arm64_a530_gles2:
1216 extends:
1217 - arm64_a306_gles2
1218 variables:
1219 BM_KERNEL: /lava-files/db820c-kernel
1220 BM_DTB: /lava-files/db820c.dtb
1221 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
1222 # current upstream kernel.
1223 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
1224 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
1225 DEQP_FLAKES: deqp-freedreno-a530-flakes.txt
1226 DEQP_EXPECTED_RENDERER: FD530
1227 NIR_VALIDATE: 0
1228 tags:
1229 - google-freedreno-db820c
1230
1231 arm64_a530_gles3:
1232 extends:
1233 - arm64_a530_gles2
1234 variables:
1235 DEQP_VER: gles3
1236 DEQP_PARALLEL: 1
1237 CI_NODE_INDEX: 1
1238 CI_NODE_TOTAL: 40
1239
1240 arm64_a530_gles31:
1241 extends:
1242 - arm64_a530_gles3
1243 variables:
1244 DEQP_VER: gles31
1245 CI_NODE_INDEX: 1
1246 CI_NODE_TOTAL: 10
1247
1248 # RADV CI
1249 .test-radv:
1250 extends: .radv-rules
1251 stage: radv
1252 variables:
1253 VK_DRIVER: radeon
1254 ACO_DEBUG: validateir,validatera
1255
1256 # Can only be triggered manually on personal branches because RADV is the only
1257 # driver that does Vulkan testing at the moment.
1258 radv_polaris10_vkcts:
1259 extends:
1260 - .deqp-test-vk
1261 - .test-radv
1262 - .test-manual
1263 variables:
1264 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
1265 tags:
1266 - polaris10
1267
1268 radv-fossils:
1269 extends:
1270 - .fossilize-test
1271 - .test-radv
1272 script:
1273 # Pitcairn (GFX6)
1274 - export RADV_FORCE_FAMILY="pitcairn"
1275 - ./install/fossilize-runner.sh
1276 # Bonaire (GFX7)
1277 - export RADV_FORCE_FAMILY="bonaire"
1278 - ./install/fossilize-runner.sh
1279 # Polaris10 (GFX8)
1280 - export RADV_FORCE_FAMILY="polaris10"
1281 - ./install/fossilize-runner.sh
1282 # Vega10 (GFX9)
1283 - export RADV_FORCE_FAMILY="gfx900"
1284 - ./install/fossilize-runner.sh
1285 # Navi10 (GFX10)
1286 - export RADV_FORCE_FAMILY="gfx1010"
1287 - ./install/fossilize-runner.sh
1288 # Sienna Cichlid (GFX10)
1289 - export RADV_FORCE_FAMILY="gfx1030"
1290 - ./install/fossilize-runner.sh
1291
1292 # Traces CI
1293 .traces-test:
1294 cache:
1295 key: ${CI_JOB_NAME}
1296 paths:
1297 - traces-db/
1298 variables:
1299 TRACIE_UPLOAD_TO_MINIO: 1
1300
1301 .traces-test-gl:
1302 extends:
1303 - .test-gl
1304 - .traces-test
1305 script:
1306 - ./install/tracie-runner-gl.sh
1307
1308 .traces-test-vk:
1309 extends:
1310 - .test-vk
1311 - .traces-test
1312 script:
1313 - ./install/tracie-runner-vk.sh
1314
1315 llvmpipe-traces:
1316 extends:
1317 - .traces-test-gl
1318 - .llvmpipe-rules
1319 variables:
1320 LIBGL_ALWAYS_SOFTWARE: "true"
1321 GALLIUM_DRIVER: "llvmpipe"
1322 DEVICE_NAME: "gl-vmware-llvmpipe"
1323 DRIVER_NAME: "llvmpipe"
1324
1325 radv-polaris10-traces:
1326 extends:
1327 - .traces-test-vk
1328 - .test-radv
1329 - .test-manual
1330 variables:
1331 DEVICE_NAME: "vk-amd-polaris10"
1332 DRIVER_NAME: "radv"
1333 tags:
1334 - polaris10
1335
1336 radv-raven-traces:
1337 extends:
1338 - .traces-test-vk
1339 - .test-radv
1340 - .test-manual
1341 variables:
1342 DEVICE_NAME: "vk-amd-raven"
1343 DRIVER_NAME: "radv"
1344 tags:
1345 - raven
1346
1347 virgl-traces:
1348 extends:
1349 - .traces-test-gl
1350 - .virgl-rules
1351 variables:
1352 LIBGL_ALWAYS_SOFTWARE: "true"
1353 GALLIUM_DRIVER: "virpipe"
1354 DEVICE_NAME: "gl-virgl"
1355 DRIVER_NAME: "virgl"
1356 MESA_GLES_VERSION_OVERRIDE: "3.1"
1357 MESA_GLSL_VERSION_OVERRIDE: "310"