vulkan/wsi: Add callback to set ownership of buffer.
[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-04-01-jflags"
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 extends:
694 - .deqp-test-gl
695 - .llvmpipe-rules
696
697 softpipe-gles2:
698 extends:
699 - llvmpipe-gles2
700 - .softpipe-rules
701 variables:
702 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
703 DEQP_SKIPS: deqp-softpipe-skips.txt
704 GALLIUM_DRIVER: "softpipe"
705
706 softpipe-gles3:
707 parallel: 2
708 variables:
709 DEQP_VER: gles3
710 extends: softpipe-gles2
711
712 softpipe-gles31:
713 parallel: 4
714 variables:
715 DEQP_VER: gles31
716 extends: softpipe-gles2
717
718 virgl-gles2:
719 variables:
720 DEQP_VER: gles2
721 DEQP_PARALLEL: 4
722 NIR_VALIDATE: 0
723 DEQP_NO_SAVE_RESULTS: 1
724 DEQP_RUNNER_OPTIONS: "--compact-display false"
725 # Don't use threads inside llvmpipe, we've already got all 4 cores
726 # busy with DEQP_PARALLEL.
727 LP_NUM_THREADS: 0
728 DEQP_EXPECTED_FAILS: deqp-virgl-fails.txt
729 LIBGL_ALWAYS_SOFTWARE: "true"
730 GALLIUM_DRIVER: "virpipe"
731 extends:
732 - .deqp-test-gl
733 - .virgl-rules
734
735 virgl-gles3:
736 variables:
737 DEQP_VER: gles3
738 CI_NODE_INDEX: 1
739 CI_NODE_TOTAL: 3
740 DEQP_RUNNER_OPTIONS: "--compact-display false --timeout 120"
741 extends: virgl-gles2
742
743 virgl-gles31:
744 variables:
745 DEQP_VER: gles31
746 CI_NODE_INDEX: 1
747 CI_NODE_TOTAL: 10
748 DEQP_OPTIONS: "--deqp-log-images=disable"
749 DEQP_RUNNER_OPTIONS: "--compact-display false --timeout 120"
750 MESA_GLES_VERSION_OVERRIDE: "3.1"
751 MESA_GLSL_VERSION_OVERRIDE: "310"
752 extends: virgl-gles2
753
754 # Rules for tests that should not be present in MRs or the main
755 # project's pipeline (don't block marge or report red on
756 # mesa/mesamaster) but should be present on pipelines in personal
757 # branches (so you can opt in to running the flaky test when you want
758 # to).
759 .test-manual:
760 rules:
761 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
762 changes:
763 *all_paths
764 when: manual
765 - when: never
766
767 arm64_a630_gles2:
768 extends:
769 - .deqp-test-gl
770 - .use-arm_test
771 - .freedreno-rules
772 variables:
773 DEQP_VER: gles2
774 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
775 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
776 NIR_VALIDATE: 0
777 DEQP_PARALLEL: 4
778 FLAKES_CHANNEL: "#freedreno-ci"
779 tags:
780 - mesa-cheza
781 dependencies:
782 - meson-arm64
783
784 arm64_a630_gles31:
785 extends: arm64_a630_gles2
786 variables:
787 DEQP_VER: gles31
788
789 arm64_a630_gles3:
790 extends: arm64_a630_gles2
791 variables:
792 DEQP_VER: gles3
793
794 .baremetal-test:
795 extends:
796 - .ci-run-policy
797 stage: test
798
799 arm64_a306_gles2:
800 extends:
801 - .baremetal-test
802 - .use-arm_build
803 - .freedreno-rules
804 variables:
805 BM_KERNEL: /lava-files/Image.gz
806 BM_DTB: /lava-files/apq8016-sbc.dtb
807 BM_ROOTFS: /lava-files/rootfs-arm64
808 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
809 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
810 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
811 DEQP_VER: gles2
812 DEQP_PARALLEL: 4
813 script:
814 - .gitlab-ci/bare-metal/fastboot.sh
815 needs:
816 - meson-arm64
817 tags:
818 - google-freedreno-db410c
819
820 # Disabled due to flaky results
821 arm64_a306_gles3:
822 extends:
823 - arm64_a306_gles2
824 - .test-manual
825 parallel: 8
826 variables:
827 DEQP_VER: gles3
828
829 arm64_a530_gles2:
830 extends:
831 - arm64_a306_gles2
832 stage: freedreno
833 variables:
834 BM_KERNEL: /lava-files/db820c-kernel
835 BM_DTB: /lava-files/db820c.dtb
836 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
837 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
838 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
839 tags:
840 - google-freedreno-db820c
841
842 arm64_a530_gles3:
843 extends:
844 - arm64_a530_gles2
845 - .test-manual
846 parallel: 6
847 variables:
848 DEQP_VER: gles3
849
850 # RADV CI
851 .test-radv:
852 extends: .radv-rules
853 stage: radv
854 variables:
855 VK_DRIVER: radeon
856 RADV_DEBUG: checkir
857
858 .test-radv-fossilize:
859 extends:
860 - .fossilize-test
861 - .test-radv
862 script:
863 - ./install/fossilize-runner.sh
864 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
865
866 # Can only be triggered manually on personal branches because RADV is the only
867 # driver that does Vulkan testing at the moment.
868 radv_polaris10_vkcts:
869 extends:
870 - .deqp-test-vk
871 - .test-radv
872 - .test-manual
873 variables:
874 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
875 tags:
876 - polaris10
877
878 radv-fossils:
879 extends:
880 - .fossilize-test
881 - .test-radv
882 script:
883 # Polaris10
884 - export RADV_FORCE_FAMILY="polaris10"
885 - ./install/fossilize-runner.sh
886 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
887 # Vega10
888 - export RADV_FORCE_FAMILY="gfx900"
889 - ./install/fossilize-runner.sh
890 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
891 # Navi10
892 - export RADV_FORCE_FAMILY="gfx1010"
893 - ./install/fossilize-runner.sh
894 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./install/fossilize-runner.sh
895
896 # Traces CI
897 .traces-test:
898 cache:
899 key: ${CI_JOB_NAME}
900 paths:
901 - traces-db/
902
903 .traces-test-gl:
904 extends:
905 - .test-gl
906 - .traces-test
907 script:
908 - ./install/tracie-runner-gl.sh
909
910 .traces-test-vk:
911 extends:
912 - .test-vk
913 - .traces-test
914 script:
915 - ./install/tracie-runner-vk.sh
916
917 llvmpipe-traces:
918 extends:
919 - .traces-test-gl
920 - .llvmpipe-rules
921 variables:
922 LIBGL_ALWAYS_SOFTWARE: "true"
923 GALLIUM_DRIVER: "llvmpipe"
924 DEVICE_NAME: "gl-vmware-llvmpipe"
925
926 radv-polaris10-traces:
927 extends:
928 - .traces-test-vk
929 - .test-radv
930 - .test-manual
931 variables:
932 DEVICE_NAME: "vk-amd-polaris10"
933 tags:
934 - polaris10
935
936 virgl-traces:
937 extends:
938 - .traces-test-gl
939 - .virgl-rules
940 variables:
941 LIBGL_ALWAYS_SOFTWARE: "true"
942 GALLIUM_DRIVER: "virpipe"
943 DEVICE_NAME: "gl-virgl"
944 MESA_GLES_VERSION_OVERRIDE: "3.1"
945 MESA_GLSL_VERSION_OVERRIDE: "310"