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