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