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