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