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