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