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