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