vulkan: import common code for generating extensions
[mesa.git] / .gitlab-ci.yml
1 variables:
2 FDO_UPSTREAM_REPO: mesa/mesa
3
4 include:
5 - project: 'freedesktop/ci-templates'
6 ref: 4b2997287317808830e9cb4eb0f99b691787da88
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-04-22-winehq"
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-04-21"
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-04-09"
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-03-24"
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 tags:
226 - windows
227 - shell
228 - "1809"
229 - mesa
230 script:
231 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
232
233 .use-windows_build_vs2019:
234 extends: .windows-docker-vs2019
235 image: "$WINDOWS_IMAGE"
236 needs:
237 - windows_build_vs2019
238
239 # BUILD
240
241 # Shared between windows and Linux
242 .build-common:
243 extends: .ci-run-policy
244 artifacts:
245 name: "mesa_${CI_JOB_NAME}"
246 when: always
247 paths:
248 - _build/meson-logs/*.txt
249 # scons:
250 - build/*/config.log
251 - shader-db
252
253 # Just Linux
254 .build-linux:
255 extends: .build-common
256 variables:
257 CCACHE_COMPILERCHECK: "content"
258 CCACHE_COMPRESS: "true"
259 CCACHE_DIR: /cache/mesa/ccache
260 # Use ccache transparently, and print stats before/after
261 before_script:
262 - export PATH="/usr/lib/ccache:$PATH"
263 - export CCACHE_BASEDIR="$PWD"
264 - ccache --show-stats
265 after_script:
266 - ccache --show-stats
267
268 .build-windows:
269 extends: .build-common
270 tags:
271 - windows
272 - docker
273 - "1809"
274 - mesa
275 cache:
276 key: ${CI_JOB_NAME}
277 paths:
278 - subprojects/packagecache
279
280 .meson-build:
281 extends:
282 - .build-linux
283 - .use-x86_build
284 stage: meson-x86_64
285 variables:
286 LLVM_VERSION: 9
287 script:
288 - .gitlab-ci/meson-build.sh
289
290 .scons-build:
291 extends:
292 - .build-linux
293 - .use-x86_build
294 stage: scons
295 variables:
296 SCONSFLAGS: "-j4"
297 script:
298 - .gitlab-ci/scons-build.sh
299
300 meson-testing:
301 extends:
302 - .meson-build
303 - .ci-deqp-artifacts
304 variables:
305 UNWIND: "true"
306 DRI_LOADERS: >
307 -D glx=dri
308 -D gbm=true
309 -D egl=true
310 -D platforms=x11,drm,surfaceless
311 GALLIUM_ST: >
312 -D dri3=true
313 GALLIUM_DRIVERS: "swrast,virgl"
314 VULKAN_DRIVERS: amd
315 BUILDTYPE: "debugoptimized"
316 EXTRA_OPTION: >
317 -D werror=true
318 script:
319 - .gitlab-ci/meson-build.sh
320 - .gitlab-ci/prepare-artifacts.sh
321
322 meson-gallium:
323 extends: .meson-build
324 variables:
325 UNWIND: "true"
326 DRI_LOADERS: >
327 -D glx=dri
328 -D gbm=true
329 -D egl=true
330 -D platforms=x11,wayland,drm,surfaceless
331 GALLIUM_ST: >
332 -D dri3=true
333 -D gallium-extra-hud=true
334 -D gallium-vdpau=true
335 -D gallium-xvmc=true
336 -D gallium-omx=bellagio
337 -D gallium-va=true
338 -D gallium-xa=true
339 -D gallium-nine=true
340 -D gallium-opencl=disabled
341 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
342 EXTRA_OPTION: >
343 -D osmesa=gallium
344 -D tools=all
345 script:
346 - .gitlab-ci/meson-build.sh
347 - .gitlab-ci/run-shader-db.sh
348
349 meson-classic:
350 extends: .meson-build
351 variables:
352 UNWIND: "true"
353 DRI_LOADERS: >
354 -D glx=dri
355 -D gbm=true
356 -D egl=true
357 -D platforms=x11,wayland,drm,surfaceless
358 DRI_DRIVERS: "auto"
359 EXTRA_OPTION: >
360 -D osmesa=classic
361 -D tools=all
362
363 .meson-cross:
364 extends:
365 - .meson-build
366 stage: meson-misc
367 variables:
368 UNWIND: "false"
369 DRI_LOADERS: >
370 -D glx=disabled
371 -D gbm=false
372 -D egl=true
373 -D platforms=surfaceless
374 -D osmesa=none
375 GALLIUM_ST: >
376 -D dri3=false
377 -D gallium-vdpau=false
378 -D gallium-xvmc=false
379 -D gallium-omx=disabled
380 -D gallium-va=false
381 -D gallium-xa=false
382 -D gallium-nine=false
383 LLVM_VERSION: "8"
384
385 .meson-arm:
386 extends:
387 - .meson-cross
388 - .use-arm_build
389 variables:
390 VULKAN_DRIVERS: freedreno
391 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
392 BUILDTYPE: "debugoptimized"
393 tags:
394 - aarch64
395
396 meson-armhf:
397 extends:
398 - .meson-arm
399 - .ci-deqp-artifacts
400 variables:
401 CROSS: armhf
402 LLVM_VERSION: "7"
403 EXTRA_OPTION: >
404 -D llvm=false
405 script:
406 - .gitlab-ci/meson-build.sh
407 - .gitlab-ci/prepare-artifacts.sh
408
409 meson-arm64:
410 extends:
411 - .meson-arm
412 - .ci-deqp-artifacts
413 variables:
414 VULKAN_DRIVERS: "freedreno"
415 EXTRA_OPTION: >
416 -D llvm=false
417 script:
418 - .gitlab-ci/meson-build.sh
419 - .gitlab-ci/prepare-artifacts.sh
420
421 meson-arm64-build-test:
422 extends:
423 - .meson-arm
424 - .ci-deqp-artifacts
425 variables:
426 VULKAN_DRIVERS: "amd"
427 script:
428 - .gitlab-ci/meson-build.sh
429
430 meson-clang:
431 extends: .meson-build
432 variables:
433 UNWIND: "true"
434 DRI_LOADERS: >
435 -D glvnd=true
436 DRI_DRIVERS: "auto"
437 GALLIUM_DRIVERS: "auto"
438 VULKAN_DRIVERS: intel,amd,freedreno
439 CC: "ccache clang-9"
440 CXX: "ccache clang++-9"
441
442 meson-windows-vs2019:
443 extends:
444 - .build-windows
445 - .use-windows_build_vs2019
446 stage: meson-misc
447 script:
448 - . .\.gitlab-ci\windows\mesa_build.ps1
449
450 scons-win64:
451 extends: .scons-build
452 variables:
453 SCONS_TARGET: platform=windows machine=x86_64 debug=1
454 SCONS_CHECK_COMMAND: "true"
455 allow_failure: true
456
457 meson-clover:
458 extends: .meson-build
459 variables:
460 UNWIND: "true"
461 DRI_LOADERS: >
462 -D glx=disabled
463 -D egl=false
464 -D gbm=false
465 GALLIUM_ST: >
466 -D dri3=false
467 -D gallium-vdpau=false
468 -D gallium-xvmc=false
469 -D gallium-omx=disabled
470 -D gallium-va=false
471 -D gallium-xa=false
472 -D gallium-nine=false
473 -D gallium-opencl=icd
474 script:
475 - export GALLIUM_DRIVERS="r600,radeonsi"
476 - .gitlab-ci/meson-build.sh
477 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
478 - export GALLIUM_DRIVERS="i915,r600"
479 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
480 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
481
482 meson-clover-old-llvm:
483 extends:
484 - meson-clover
485 - .use-x86_build_old
486 variables:
487 UNWIND: "false"
488 DRI_LOADERS: >
489 -D glx=disabled
490 -D egl=false
491 -D gbm=false
492 -D platforms=drm,surfaceless
493 GALLIUM_DRIVERS: "i915,r600"
494 script:
495 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
496 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
497 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
498
499 meson-vulkan:
500 extends: .meson-build
501 variables:
502 UNWIND: "false"
503 DRI_LOADERS: >
504 -D glx=disabled
505 -D gbm=false
506 -D egl=false
507 -D platforms=x11,wayland,drm
508 -D osmesa=none
509 GALLIUM_ST: >
510 -D dri3=true
511 -D gallium-vdpau=false
512 -D gallium-xvmc=false
513 -D gallium-omx=disabled
514 -D gallium-va=false
515 -D gallium-xa=false
516 -D gallium-nine=false
517 -D gallium-opencl=disabled
518 -D b_sanitize=undefined
519 -D c_args=-fno-sanitize-recover=all
520 -D cpp_args=-fno-sanitize-recover=all
521 UBSAN_OPTIONS: "print_stacktrace=1"
522 VULKAN_DRIVERS: intel,amd,freedreno
523 EXTRA_OPTION: >
524 -D vulkan-overlay-layer=true
525 -D werror=true
526
527 meson-i386:
528 extends: .meson-cross
529 variables:
530 CROSS: i386
531 VULKAN_DRIVERS: intel,amd
532 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
533 EXTRA_OPTION: >
534 -D vulkan-overlay-layer=true
535 -D werror=true
536 script:
537 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
538 - .gitlab-ci/meson-build.sh
539
540 meson-s390x:
541 extends:
542 - .meson-cross
543 tags:
544 - kvm
545 variables:
546 CROSS: s390x
547 GALLIUM_DRIVERS: "swrast"
548 script:
549 # For unknown reasons "too many" installed i386 libraries cause qemu to
550 # crash while executing llvm-config for s390x.
551 - apt-get purge -y winehq-stable
552 - apt-get autoremove -y --purge
553 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
554 - .gitlab-ci/meson-build.sh
555
556 meson-ppc64el:
557 extends:
558 - meson-s390x
559 variables:
560 CROSS: ppc64el
561 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
562 VULKAN_DRIVERS: "amd"
563
564 meson-mingw32-x86_64:
565 extends: .meson-build
566 stage: meson-misc
567 variables:
568 UNWIND: "false"
569 DRI_DRIVERS: ""
570 GALLIUM_DRIVERS: "swrast"
571 EXTRA_OPTION: >
572 -Dllvm=false
573 -Dosmesa=gallium
574 --cross-file=.gitlab-ci/x86_64-w64-mingw32
575
576 .test:
577 extends:
578 - .ci-run-policy
579 variables:
580 GIT_STRATEGY: none # testing doesn't build anything from source
581 before_script:
582 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
583 - rm -rf install
584 - tar -xf artifacts/install.tar
585 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
586 artifacts:
587 when: always
588 name: "mesa_${CI_JOB_NAME}"
589 paths:
590 - results/
591 dependencies:
592 - meson-testing
593
594 .test-gl:
595 extends:
596 - .test
597 variables:
598 TAG: *x86_test-gl
599 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
600 needs:
601 - meson-testing
602 - x86_test-gl
603
604 .test-vk:
605 extends:
606 - .test
607 variables:
608 TAG: *x86_test-vk
609 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
610 needs:
611 - meson-testing
612 - x86_test-vk
613
614 .piglit-test:
615 extends:
616 - .test-gl
617 - .llvmpipe-rules
618 artifacts:
619 when: on_failure
620 name: "mesa_${CI_JOB_NAME}"
621 paths:
622 - summary/
623 variables:
624 LIBGL_ALWAYS_SOFTWARE: 1
625 PIGLIT_NO_WINDOW: 1
626 script:
627 - install/piglit/run.sh
628
629 piglit-quick_gl:
630 extends: .piglit-test
631 variables:
632 LP_NUM_THREADS: 0
633 NIR_VALIDATE: 0
634 PIGLIT_OPTIONS: >
635 --process-isolation false
636 -x arb_gpu_shader5
637 -x egl_ext_device_
638 -x egl_ext_platform_device
639 -x ext_timer_query@time-elapsed
640 -x glx-multithread-clearbuffer
641 -x glx-multithread-shader-compile
642 -x max-texture-size
643 -x maxsize
644 PIGLIT_PROFILES: quick_gl
645
646 piglit-glslparser:
647 extends: .piglit-test
648 variables:
649 LP_NUM_THREADS: 0
650 NIR_VALIDATE: 0
651 PIGLIT_PROFILES: glslparser
652
653 piglit-quick_shader:
654 extends: .piglit-test
655 variables:
656 LP_NUM_THREADS: 1
657 NIR_VALIDATE: 0
658 PIGLIT_PROFILES: quick_shader
659
660 .deqp-test:
661 variables:
662 DEQP_SKIPS: deqp-default-skips.txt
663 script:
664 - ./install/deqp-runner.sh
665
666 .deqp-test-gl:
667 extends:
668 - .test-gl
669 - .deqp-test
670
671 .deqp-test-vk:
672 extends:
673 - .test-vk
674 - .deqp-test
675 variables:
676 DEQP_VER: vk
677
678 .fossilize-test:
679 extends: .test-vk
680 script:
681 - ./install/fossilize-runner.sh
682
683 llvmpipe-gles2:
684 variables:
685 DEQP_VER: gles2
686 DEQP_PARALLEL: 4
687 NIR_VALIDATE: 0
688 # Don't use threads inside llvmpipe, we've already got all 4 cores
689 # busy with DEQP_PARALLEL.
690 LP_NUM_THREADS: 0
691 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
692 LIBGL_ALWAYS_SOFTWARE: "true"
693 DEQP_EXPECTED_RENDERER: llvmpipe
694 extends:
695 - .deqp-test-gl
696 - .llvmpipe-rules
697
698 softpipe-gles2:
699 extends:
700 - llvmpipe-gles2
701 - .softpipe-rules
702 variables:
703 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
704 DEQP_SKIPS: deqp-softpipe-skips.txt
705 GALLIUM_DRIVER: "softpipe"
706 DEQP_EXPECTED_RENDERER: softpipe
707
708 softpipe-gles3:
709 parallel: 2
710 variables:
711 DEQP_VER: gles3
712 extends: softpipe-gles2
713
714 softpipe-gles31:
715 parallel: 4
716 variables:
717 DEQP_VER: gles31
718 extends: softpipe-gles2
719
720 virgl-gles2:
721 variables:
722 DEQP_VER: gles2
723 DEQP_PARALLEL: 4
724 NIR_VALIDATE: 0
725 DEQP_NO_SAVE_RESULTS: 1
726 # Don't use threads inside llvmpipe, we've already got all 4 cores
727 # busy with DEQP_PARALLEL.
728 LP_NUM_THREADS: 0
729 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
730 LIBGL_ALWAYS_SOFTWARE: "true"
731 GALLIUM_DRIVER: "virpipe"
732 DEQP_EXPECTED_RENDERER: virgl
733 extends:
734 - .deqp-test-gl
735 - .virgl-rules
736
737 virgl-gles3:
738 variables:
739 DEQP_VER: gles3
740 CI_NODE_INDEX: 1
741 CI_NODE_TOTAL: 3
742 DEQP_RUNNER_OPTIONS: "--timeout 120"
743 extends: virgl-gles2
744
745 virgl-gles31:
746 variables:
747 DEQP_VER: gles31
748 CI_NODE_INDEX: 1
749 CI_NODE_TOTAL: 10
750 DEQP_OPTIONS: "--deqp-log-images=disable"
751 DEQP_RUNNER_OPTIONS: "--timeout 120"
752 MESA_GLES_VERSION_OVERRIDE: "3.1"
753 MESA_GLSL_VERSION_OVERRIDE: "310"
754 extends: virgl-gles2
755
756 # Rules for tests that should not be present in MRs or the main
757 # project's pipeline (don't block marge or report red on
758 # mesa/mesamaster) but should be present on pipelines in personal
759 # branches (so you can opt in to running the flaky test when you want
760 # to).
761 .test-manual:
762 rules:
763 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
764 changes:
765 *all_paths
766 when: manual
767 - when: never
768
769 arm64_a630_gles2:
770 extends:
771 - .deqp-test-gl
772 - .use-arm_test
773 - .freedreno-rules
774 variables:
775 DEQP_VER: gles2
776 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
777 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
778 NIR_VALIDATE: 0
779 DEQP_PARALLEL: 4
780 FLAKES_CHANNEL: "#freedreno-ci"
781 DEQP_EXPECTED_RENDERER: FD630
782 tags:
783 - mesa-cheza
784 dependencies:
785 - meson-arm64
786
787 arm64_a630_gles31:
788 extends: arm64_a630_gles2
789 variables:
790 DEQP_VER: gles31
791
792 arm64_a630_gles3:
793 extends: arm64_a630_gles2
794 variables:
795 DEQP_VER: gles3
796
797 arm64_a630_gles31_options:
798 extends: arm64_a630_gles2
799 variables:
800 DEQP_VER: gles31
801 CI_NODE_INDEX: 1
802 CI_NODE_TOTAL: 5
803 script:
804 # We almost always manage to lower UBOs back to constant uploads in
805 # the test suite, so get a little testing for it here.
806 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_EXPECTED_FAILS=deqp-freedreno-a630-noubo-fails.txt DEQP_CASELIST_FILTER="functional.\*ubo" ./install/deqp-runner.sh
807 # The driver does some guessing as to whether to render using gmem
808 # or bypass, and some GLES3.1 features interact with either one.
809 # Do a little testing with gmem and bypass forced.
810 - DEQP_RUN_SUFFIX=-bypass FD_MESA_DEBUG=nogmem DEQP_EXPECTED_FAILS=deqp-freedreno-a630-bypass-fails.txt ./install/deqp-runner.sh
811 - DEQP_RUN_SUFFIX=-gmem FD_MESA_DEBUG=nobypass ./install/deqp-runner.sh
812
813 .baremetal-test:
814 extends:
815 - .ci-run-policy
816 stage: test
817
818 arm64_a306_gles2:
819 extends:
820 - .baremetal-test
821 - .use-arm_build
822 - .freedreno-rules
823 variables:
824 BM_KERNEL: /lava-files/Image.gz
825 BM_DTB: /lava-files/apq8016-sbc.dtb
826 BM_ROOTFS: /lava-files/rootfs-arm64
827 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
828 FLAKES_CHANNEL: "#freedreno-ci"
829 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
830 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
831 DEQP_VER: gles2
832 DEQP_PARALLEL: 4
833 DEQP_EXPECTED_RENDERER: FD307
834 script:
835 - .gitlab-ci/bare-metal/fastboot.sh
836 needs:
837 - meson-arm64
838 tags:
839 - google-freedreno-db410c
840
841 # Disabled due to flaky results
842 arm64_a306_gles3:
843 extends:
844 - arm64_a306_gles2
845 variables:
846 DEQP_VER: gles3
847 DEQP_PARALLEL: 1
848 CI_NODE_INDEX: 1
849 CI_NODE_TOTAL: 50
850
851 arm64_a530_gles2:
852 extends:
853 - arm64_a306_gles2
854 variables:
855 BM_KERNEL: /lava-files/db820c-kernel
856 BM_DTB: /lava-files/db820c.dtb
857 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
858 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
859 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
860 DEQP_EXPECTED_RENDERER: FD530
861 tags:
862 - google-freedreno-db820c
863
864 arm64_a530_gles3:
865 extends:
866 - arm64_a530_gles2
867 variables:
868 DEQP_VER: gles3
869 DEQP_PARALLEL: 1
870 CI_NODE_INDEX: 1
871 CI_NODE_TOTAL: 100
872
873 arm64_a530_gles31:
874 extends:
875 - arm64_a530_gles3
876 variables:
877 DEQP_VER: gles31
878
879 # RADV CI
880 .test-radv:
881 extends: .radv-rules
882 stage: radv
883 variables:
884 VK_DRIVER: radeon
885 RADV_DEBUG: checkir
886 ACO_DEBUG: validateir,validatera
887
888 # Can only be triggered manually on personal branches because RADV is the only
889 # driver that does Vulkan testing at the moment.
890 radv_polaris10_vkcts:
891 extends:
892 - .deqp-test-vk
893 - .test-radv
894 - .test-manual
895 variables:
896 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
897 tags:
898 - polaris10
899
900 radv-fossils:
901 extends:
902 - .fossilize-test
903 - .test-radv
904 script:
905 # Pitcairn (GFX6)
906 - export RADV_FORCE_FAMILY="pitcairn"
907 - ./install/fossilize-runner.sh
908 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
909 # Bonaire (GFX7)
910 - export RADV_FORCE_FAMILY="bonaire"
911 - ./install/fossilize-runner.sh
912 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
913 # Polaris10 (GFX8)
914 - export RADV_FORCE_FAMILY="polaris10"
915 - ./install/fossilize-runner.sh
916 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
917 # Vega10 (GFX9)
918 - export RADV_FORCE_FAMILY="gfx900"
919 - ./install/fossilize-runner.sh
920 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
921 # Navi10 (GFX10)
922 - export RADV_FORCE_FAMILY="gfx1010"
923 - ./install/fossilize-runner.sh
924 - RADV_PERFTEST=aco ./install/fossilize-runner.sh
925
926 # Traces CI
927 .traces-test:
928 cache:
929 key: ${CI_JOB_NAME}
930 paths:
931 - traces-db/
932
933 .traces-test-gl:
934 extends:
935 - .test-gl
936 - .traces-test
937 script:
938 - ./install/tracie-runner-gl.sh
939
940 .traces-test-vk:
941 extends:
942 - .test-vk
943 - .traces-test
944 script:
945 - ./install/tracie-runner-vk.sh
946
947 llvmpipe-traces:
948 extends:
949 - .traces-test-gl
950 - .llvmpipe-rules
951 variables:
952 LIBGL_ALWAYS_SOFTWARE: "true"
953 GALLIUM_DRIVER: "llvmpipe"
954 DEVICE_NAME: "gl-vmware-llvmpipe"
955
956 radv-polaris10-traces:
957 extends:
958 - .traces-test-vk
959 - .test-radv
960 - .test-manual
961 variables:
962 DEVICE_NAME: "vk-amd-polaris10"
963 tags:
964 - polaris10
965
966 virgl-traces:
967 extends:
968 - .traces-test-gl
969 - .virgl-rules
970 variables:
971 LIBGL_ALWAYS_SOFTWARE: "true"
972 GALLIUM_DRIVER: "virpipe"
973 DEVICE_NAME: "gl-virgl"
974 MESA_GLES_VERSION_OVERRIDE: "3.1"
975 MESA_GLSL_VERSION_OVERRIDE: "310"