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