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