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