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