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