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