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