freedreno: replace all dup() with os_dupfd_cloexec()
[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-02"
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-04"
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-02-gles"
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-02"
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-01"
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-09-rsync"
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-09-rsync"
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
806 llvmpipe-gles2:
807 variables:
808 DEQP_VER: gles2
809 DEQP_PARALLEL: 4
810 NIR_VALIDATE: 0
811 # Don't use threads inside llvmpipe, we've already got all 4 cores
812 # busy with DEQP_PARALLEL.
813 LP_NUM_THREADS: 0
814 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
815 LIBGL_ALWAYS_SOFTWARE: "true"
816 DEQP_EXPECTED_RENDERER: llvmpipe
817 extends:
818 - .deqp-test-gl
819 - .llvmpipe-rules
820
821 softpipe-gles2:
822 extends:
823 - llvmpipe-gles2
824 - .softpipe-rules
825 variables:
826 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
827 DEQP_SKIPS: deqp-softpipe-skips.txt
828 GALLIUM_DRIVER: "softpipe"
829 DEQP_EXPECTED_RENDERER: softpipe
830
831 softpipe-gles3:
832 parallel: 2
833 variables:
834 DEQP_VER: gles3
835 extends: softpipe-gles2
836
837 softpipe-gles31:
838 parallel: 4
839 variables:
840 DEQP_VER: gles31
841 extends: softpipe-gles2
842
843 virgl-gles2:
844 variables:
845 DEQP_VER: gles2
846 DEQP_PARALLEL: 4
847 NIR_VALIDATE: 0
848 DEQP_NO_SAVE_RESULTS: 1
849 # Don't use threads inside llvmpipe, we've already got all 4 cores
850 # busy with DEQP_PARALLEL.
851 LP_NUM_THREADS: 0
852 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
853 LIBGL_ALWAYS_SOFTWARE: "true"
854 GALLIUM_DRIVER: "virpipe"
855 DEQP_EXPECTED_RENDERER: virgl
856 extends:
857 - .deqp-test-gl
858 - .virgl-rules
859
860 virgl-gles3:
861 variables:
862 DEQP_VER: gles3
863 CI_NODE_INDEX: 1
864 CI_NODE_TOTAL: 3
865 DEQP_RUNNER_OPTIONS: "--timeout 120"
866 extends: virgl-gles2
867
868 virgl-gles31:
869 variables:
870 DEQP_VER: gles31
871 CI_NODE_INDEX: 1
872 CI_NODE_TOTAL: 10
873 DEQP_OPTIONS: "--deqp-log-images=disable"
874 DEQP_RUNNER_OPTIONS: "--timeout 120"
875 MESA_GLES_VERSION_OVERRIDE: "3.1"
876 MESA_GLSL_VERSION_OVERRIDE: "310"
877 MESA_EXTENSION_OVERRIDE: "-GL_OES_tessellation_shader"
878 extends: virgl-gles2
879
880 # Rules for tests that should not be present in MRs or the main
881 # project's pipeline (don't block marge or report red on
882 # mesa/mesamaster) but should be present on pipelines in personal
883 # branches (so you can opt in to running the flaky test when you want
884 # to).
885 .test-manual:
886 rules:
887 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
888 changes:
889 *all_paths
890 when: manual
891 - when: never
892
893 arm64_a630_gles2:
894 extends:
895 - arm64_a306_gles2
896 variables:
897 BM_KERNEL: /lava-files/cheza-kernel
898 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 root=/dev/nfs rw nfsrootdebug nfsroot=,tcp,nfsvers=4.2 init=/init"
899 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
900 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
901 GIT_STRATEGY: none
902 NIR_VALIDATE: 0
903 DEQP_EXPECTED_RENDERER: FD630
904 DEQP_NO_SAVE_RESULTS: ""
905 tags:
906 - google-freedreno-cheza
907 script:
908 - ./install/bare-metal/cros-servo.sh
909
910 arm64_a630_gles31:
911 extends: arm64_a630_gles2
912 variables:
913 DEQP_VER: gles31
914
915 arm64_a630_gles3:
916 extends: arm64_a630_gles2
917 variables:
918 DEQP_VER: gles3
919
920 # We almost always manage to lower UBOs back to constant uploads in
921 # the test suite, so get a little testing for it here.
922 arm64_a630_noubo:
923 extends: arm64_a630_gles31
924 variables:
925 DEQP_VER: gles31
926 IR3_SHADER_DEBUG: nouboopt
927 DEQP_CASELIST_FILTER: "functional.*ubo"
928
929 # The driver does some guessing as to whether to render using gmem
930 # or bypass, and some GLES3.1 features interact with either one.
931 # Do a little testing with gmem and bypass forced.
932 arm64_a630_bypass:
933 extends: arm64_a630_gles31
934 variables:
935 CI_NODE_INDEX: 1
936 CI_NODE_TOTAL: 5
937 FD_MESA_DEBUG: nogmem
938 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
939
940 # Along with checking gmem path, check that we don't get obvious nir
941 # validation failures (though it's too expensive to have it on for the
942 # full CTS)
943 arm64_a630_gmem:
944 extends: arm64_a630_gles31
945 variables:
946 CI_NODE_INDEX: 1
947 CI_NODE_TOTAL: 5
948 FD_MESA_DEBUG: nobypass
949 NIR_VALIDATE: 1
950
951 arm64_a630_vk:
952 extends: arm64_a630_gles2
953 variables:
954 DEQP_VER: vk
955 CI_NODE_INDEX: 1
956 CI_NODE_TOTAL: 50
957 VK_DRIVER: freedreno
958 # Force binning in the main run, which makes sure we render at
959 # least 2 bins. This is the path that impacts the most different
960 # features. However, we end up with flaky results in
961 # dEQP-VK.binding_model.*.geometry and dEQP-VK.glsl.*_vertex.
962 TU_DEBUG: forcebin
963
964 # Do a separate sysmem pass over the testcases that really affect sysmem
965 # rendering. This is currently very flaky, leave it as an option for devs
966 # to click play on in their branches.
967 arm64_a630_vk_sysmem:
968 extends:
969 - arm64_a630_vk
970 variables:
971 CI_NODE_INDEX: 1
972 CI_NODE_TOTAL: 10
973 DEQP_CASELIST_FILTER: "dEQP-VK.renderpass.*"
974 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
975 TU_DEBUG: sysmem
976
977 .baremetal-test:
978 extends:
979 - .ci-run-policy
980 - .test
981 stage: test
982 artifacts:
983 when: always
984 name: "mesa_${CI_JOB_NAME}"
985 paths:
986 - results/
987 - serial*.txt
988
989 arm64_a306_gles2:
990 extends:
991 - .baremetal-test
992 - .use-arm64_test
993 - .freedreno-rules
994 variables:
995 BM_KERNEL: /lava-files/Image.gz
996 BM_DTB: /lava-files/apq8016-sbc.dtb
997 BM_ROOTFS: /lava-files/rootfs-arm64
998 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
999 FLAKES_CHANNEL: "#freedreno-ci"
1000 BARE_METAL_TEST_SCRIPT: "/install/deqp-runner.sh"
1001 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
1002 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
1003 DEQP_VER: gles2
1004 DEQP_PARALLEL: 4
1005 DEQP_EXPECTED_RENDERER: FD307
1006 # Since we can't get artifacts back yet, skip making them.
1007 DEQP_NO_SAVE_RESULTS: 1
1008 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
1009 script:
1010 - ./install/bare-metal/fastboot.sh
1011 needs:
1012 - arm_test-base
1013 - arm64_test
1014 - arm_build
1015 - meson-arm64
1016 tags:
1017 - google-freedreno-db410c
1018
1019 # Fractional run, single threaded, due to flaky results
1020 arm64_a306_gles3:
1021 extends:
1022 - arm64_a306_gles2
1023 variables:
1024 DEQP_VER: gles3
1025 DEQP_PARALLEL: 1
1026 CI_NODE_INDEX: 1
1027 CI_NODE_TOTAL: 25
1028 NIR_VALIDATE: 0
1029
1030 # Fractional runs with debug options. Note that since we're not
1031 # hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
1032 arm64_a306_gles3_options:
1033 extends: arm64_a306_gles2
1034 variables:
1035 DEQP_VER: gles3
1036 script:
1037 # Check that the non-constbuf UBO case works.
1038 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" ./install/bare-metal/fastboot.sh
1039
1040 arm64_a530_gles2:
1041 extends:
1042 - arm64_a306_gles2
1043 variables:
1044 BM_KERNEL: /lava-files/db820c-kernel
1045 BM_DTB: /lava-files/db820c.dtb
1046 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
1047 # current upstream kernel.
1048 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
1049 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
1050 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
1051 DEQP_EXPECTED_RENDERER: FD530
1052 NIR_VALIDATE: 0
1053 tags:
1054 - google-freedreno-db820c
1055
1056 arm64_a530_gles3:
1057 extends:
1058 - arm64_a530_gles2
1059 variables:
1060 DEQP_VER: gles3
1061 DEQP_PARALLEL: 1
1062 CI_NODE_INDEX: 1
1063 CI_NODE_TOTAL: 40
1064
1065 arm64_a530_gles31:
1066 extends:
1067 - arm64_a530_gles3
1068 variables:
1069 DEQP_VER: gles31
1070 CI_NODE_INDEX: 1
1071 CI_NODE_TOTAL: 10
1072
1073 # RADV CI
1074 .test-radv:
1075 extends: .radv-rules
1076 stage: radv
1077 variables:
1078 VK_DRIVER: radeon
1079 RADV_DEBUG: checkir
1080 ACO_DEBUG: validateir,validatera
1081
1082 # Can only be triggered manually on personal branches because RADV is the only
1083 # driver that does Vulkan testing at the moment.
1084 radv_polaris10_vkcts:
1085 extends:
1086 - .deqp-test-vk
1087 - .test-radv
1088 - .test-manual
1089 variables:
1090 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
1091 tags:
1092 - polaris10
1093
1094 radv-fossils:
1095 extends:
1096 - .fossilize-test
1097 - .test-radv
1098 script:
1099 # Pitcairn (GFX6)
1100 - export RADV_FORCE_FAMILY="pitcairn"
1101 - ./install/fossilize-runner.sh
1102 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1103 # Bonaire (GFX7)
1104 - export RADV_FORCE_FAMILY="bonaire"
1105 - ./install/fossilize-runner.sh
1106 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1107 # Polaris10 (GFX8)
1108 - export RADV_FORCE_FAMILY="polaris10"
1109 - ./install/fossilize-runner.sh
1110 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1111 # Vega10 (GFX9)
1112 - export RADV_FORCE_FAMILY="gfx900"
1113 - ./install/fossilize-runner.sh
1114 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1115 # Navi10 (GFX10)
1116 - export RADV_FORCE_FAMILY="gfx1010"
1117 - ./install/fossilize-runner.sh
1118 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
1119
1120 # Traces CI
1121 .traces-test:
1122 cache:
1123 key: ${CI_JOB_NAME}
1124 paths:
1125 - traces-db/
1126
1127 .traces-test-gl:
1128 extends:
1129 - .test-gl
1130 - .traces-test
1131 script:
1132 - ./install/tracie-runner-gl.sh
1133
1134 .traces-test-vk:
1135 extends:
1136 - .test-vk
1137 - .traces-test
1138 script:
1139 - ./install/tracie-runner-vk.sh
1140
1141 llvmpipe-traces:
1142 extends:
1143 - .traces-test-gl
1144 - .llvmpipe-rules
1145 variables:
1146 LIBGL_ALWAYS_SOFTWARE: "true"
1147 GALLIUM_DRIVER: "llvmpipe"
1148 DEVICE_NAME: "gl-vmware-llvmpipe"
1149
1150 radv-polaris10-traces:
1151 extends:
1152 - .traces-test-vk
1153 - .test-radv
1154 - .test-manual
1155 variables:
1156 DEVICE_NAME: "vk-amd-polaris10"
1157 tags:
1158 - polaris10
1159
1160 virgl-traces:
1161 extends:
1162 - .traces-test-gl
1163 - .virgl-rules
1164 variables:
1165 LIBGL_ALWAYS_SOFTWARE: "true"
1166 GALLIUM_DRIVER: "virpipe"
1167 DEVICE_NAME: "gl-virgl"
1168 MESA_GLES_VERSION_OVERRIDE: "3.1"
1169 MESA_GLSL_VERSION_OVERRIDE: "310"