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